[03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:20:56]accept exits with 7 [04:20:56]New connection [04:20:56]New thread 3067321700 created [04:20:56]Thread 3067465060 joined [04:20:56]Waiting for new connection... [04:20:56] Sock 7.Parse request [04:20:56]Sock 7.Check first char [04:20:56]Sock 7.First char is OK [04:20:56]request: POST /json_proto HTTP/1.0 [04:20:56]Method: POST [04:20:56]URL: /json_proto [04:20:56]Method is POST - this is cgi request [04:20:56]url: /json_proto [04:20:56]query_string will be loaded in cgi processing [04:20:56]execute_cgi json_proto POST (null) [04:20:56]execute_cgi path=json_proto method=POST [04:20:56]POST find Content-Length [04:20:56]Host: 172.17.44.196:8080 [04:20:56]Content-Length: 949 [04:20:56]Content-Type: application/json [04:20:56] [04:20:56]POST finish read [04:20:56]Found Content-Length = 949 [04:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273196", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:20:56]execute_script... [04:20:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273196", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:20:56]POST & json_proto [04:20:56]process_json_proto [04:20:56]json parsed OK: [04:20:56]protocol is kg_v1.0 [04:20:56]action value=close_receipt [04:20:56]process_action close_receipt [04:20:56]cmd_close_receipt [04:20:56]MH_GetDate [04:20:56]Write to MH i2c: F0 00 00 86 82 F7 [04:20:56]Write i2c OK [04:20:56]MH_I2C_Read... [04:20:56]Read from MH i2c: F0 [04:20:56]MH_I2C_Read... [04:20:56]Read from MH i2c: F0 09 00 [04:20:56]MH_I2C_Read... [04:20:56]Read from MH i2c: F0 09 00 86 82 00 AE 79 18 67 E7 19 F8 65 03 [04:20:56]GetLastDocTimeStamp 1729651563 [04:20:56]current date 1729657262 [04:20:56]FM_GetShiftState [04:20:56]SAM_PROTO_GetShiftState [04:20:56]wFMCommunicate request_size=4 [04:20:56]MH_SAM_APDU [04:20:56]CAPDU: 80 13 01 00 [04:20:56]Write to MH i2c: E2 08 00 87 82 80 13 01 00 00 00 00 00 86 [04:20:56]Write i2c OK [04:20:56]MH_I2C_Read... [04:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:20:56]Read from MH i2c: E2 [04:20:56]MH_I2C_Read... [04:20:56]Read from MH i2c: E2 0E 00 [04:20:56]MH_I2C_Read... [04:20:56]Read from MH i2c: E2 0E 00 87 82 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EB [04:20:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [04:20:56]wFMCommunicate OK [04:20:56]SAM_PROTO_GetShiftState done [04:20:56]FM_GetShiftState done [04:20:56]opened in 1729642905 [04:20:56]opened+sec_in_day 1729729305 [04:20:56]quantity*price = 5000 [04:20:56]sum+1 = 5001 [04:20:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681079 Grizzly волнистые Сладкий чили 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 11 23.10.2024 04:21 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75278 ФПД: 117607987992371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T042102&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75278&fm=117607987992371&tin=02508201610067®Number=0000000000161154&sum=14000 0 [04:20:57]StoreToDocumentArchive [04:20:57]shift 173 fd 75278 [04:20:57]save to /storage/0173/doc_00075278 [04:20:57]save last doc name /storage/0173/doc_00075278 to /storage/kkm_last_doc_name [04:20:57]save OK [04:20:57]Clear old archive folders... [04:20:57]ProcessDocumentItem done err = 0, tmpTLVsize=399 [04:20:57]tlvbuf is 01078150 [04:20:57]SAM_PROTO_ClearQueue [04:20:57]wFMCommunicate request_size=4 [04:20:57]MH_SAM_APDU [04:20:57]CAPDU: 80 09 00 00 [04:20:57]Write to MH i2c: E2 08 00 94 82 80 09 00 00 00 00 00 00 88 [04:20:57]Write i2c OK [04:20:57]MH_I2C_Read... [04:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:20:57]Read from MH i2c: E2 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 94 82 00 90 00 8A [04:20:57]RAPDU: 90 00 [04:20:57]wFMCommunicate OK [04:20:57]SAM_PROTO_ClearQueue done [04:20:57]KKMCreateOFDPacket [04:20:57]OFDProtocolAddRootSTLVToBuf [04:20:57]FM_MakeSignedData [04:20:57]FM_MakeSignedData [04:20:57]SAM_PROTO_SignData [04:20:57]wFMCommunicate request_size=4 [04:20:57]MH_SAM_APDU [04:20:57]CAPDU: 80 0D 01 02 [04:20:57]Write to MH i2c: E2 08 00 95 82 80 0D 01 02 00 00 00 00 90 [04:20:57]Write i2c OK [04:20:57]MH_I2C_Read... [04:20:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:20:57]Read from MH i2c: E2 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 95 82 00 90 00 8B [04:20:57]RAPDU: 90 00 [04:20:57]wFMCommunicate OK [04:20:57]wFMCommunicate request_size=255 [04:20:57]MH_SAM_APDU [04:20:57]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 [04:20:57]Write to MH i2c: E2 02 01 96 82 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 00 00 15 [04:20:57]Write i2c OK [04:20:57]MH_I2C_Read... [04:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:20:58]Read from MH i2c: E2 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 03 00 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 03 00 96 82 00 90 00 8C [04:20:58]RAPDU: 90 00 [04:20:58]wFMCommunicate OK [04:20:58]wFMCommunicate request_size=158 [04:20:58]MH_SAM_APDU [04:20:58]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 AE 79 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 26 01 00 35 04 06 00 6A F6 BE 58 D7 33 [04:20:58]Write to MH i2c: E2 A1 00 97 82 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 AE 79 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 26 01 00 35 04 06 00 6A F6 BE 58 D7 33 00 00 50 [04:20:58]Write i2c OK [04:20:58]MH_I2C_Read... [04:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:20:58]Read from MH i2c: E2 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 03 00 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 03 00 97 82 00 90 00 8D [04:20:58]RAPDU: 90 00 [04:20:58]wFMCommunicate OK [04:20:58]wFMCommunicate request_size=4 [04:20:58]MH_SAM_APDU [04:20:58]CAPDU: 80 0D 03 02 [04:20:58]Write to MH i2c: E2 08 00 98 82 80 0D 03 02 00 00 00 00 95 [04:20:58]Write i2c OK [04:20:58]MH_I2C_Read... [04:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:20:58]Read from MH i2c: E2 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 0B 00 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 0B 00 98 82 00 88 81 53 FF 6F D2 2C 51 90 00 AF [04:20:58]RAPDU: 88 81 53 FF 6F D2 2C 51 90 00 [04:20:58]wFMCommunicate OK [04:20:58]SAM_PROTO_SignData done [04:20:58]FM_MakeSignedData done [04:20:58]CreateOFDProtocolMessage [04:20:58]wFMCommunicate request_size=4 [04:20:58]MH_SAM_APDU [04:20:58]CAPDU: 80 11 00 00 [04:20:58]Write to MH i2c: E2 08 00 99 82 80 11 00 00 00 00 00 00 95 [04:20:58]Write i2c OK [04:20:58]MH_I2C_Read... [04:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:20:58]Read from MH i2c: E2 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 17 00 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 17 00 99 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E2 [04:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [04:20:58]wFMCommunicate OK [04:20:58]CreateOFDProtocolMessage done [04:20:58]OFDSenderStorePacket 75278 [04:20:58]StoreOFDPacket docnum=75278 [04:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A3 01 00 00 C2 B8 9B 01 C1 FF 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 AE 79 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 26 01 00 35 04 06 00 6A F6 BE 58 D7 33 88 81 53 FF 6F D2 2C 51 [04:20:58]CheckFolder [04:20:58]dirname=/storage/ofd_packets [04:20:58]CheckFolder done [04:20:58]ProducePacketName [04:20:58]name=ofd_packets/00075278 [04:20:58]NVStorageSaveData ofd_packets/00075278 [04:20:58]File name is /storage/ofd_packets/00075278 [04:20:58]Write 449 bytes [04:20:58]NVStorageSaveData done [04:20:58]OFDSenderStorePacket done [04:20:58]KKMCreateOFDPacket done [04:20:58]NVStorageSaveData kkm_last_timestamp [04:20:58]File name is /storage/kkm_last_timestamp [04:20:58]Write 4 bytes [04:20:58]NVStorageSaveData done [04:20:58]ExternCall_PrintAddStr [04:20:58]wPrintStart [04:20:58]Write to MH i2c: 01 00 00 9A 82 1C [04:20:58]Write i2c OK [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: 01 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: 01 07 00 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: 01 07 00 9A 82 00 00 00 00 00 FF 0F 31 [04:20:58]RasterBufferAndPrint [04:20:58]line Счет N : (3)273196 [04:20:58]line ИНН: 02508201610067 [04:20:58]line Контрольно-Кассовый Чек [04:20:58]line ПРОДАЖА [04:20:58]line Товар: 4700000160358 [04:20:58]line Вода Легенда 1л [04:20:58]line 1.000 * 50.00 [04:20:58]line = 50.00 [04:20:58]line НДС 12% НСП 1% [04:20:58]line > о реализуемом товаре [04:20:58]line Товар: 4870235681079 [04:20:58]line Grizzly волнистые Сладкий чили 55 гр [04:20:58]line 1.000 * 90.00 [04:20:58]line = 90.00 [04:20:58]line НДС 12% НСП 1% [04:20:58]line > о реализуемом товаре [04:20:58]line ИТОГО: 140.00 [04:20:58]line НСП 1% : 1.24 [04:20:58]line НДС 12% : 14.87 [04:20:58]line Наличными: 140.00 [04:20:58]line Безнал.: 0.00 [04:20:58]line Место: АЗС № 133 "Партнер Нефть" [04:20:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [04:20:58]line СНО: Общий режим [04:20:58]line Чек 11 23.10.2024 04:21 [04:20:58]line Смена: 173 ФФД: 1.0 [04:20:58]line ЗНМ: 0300000020 [04:20:58]line РНМ: 0000000000161154 [04:20:58]line Версия ККМ: v1.0 [04:20:58]line ФМ: 0000000000963323 [04:20:58]line ФД: 75278 [04:20:58]line ФПД: 117607987992371 [04:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T042102&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75278&fm=117607987992371&tin=02508201610067®Number=0000000000161154&sum=14000 [04:20:58]line 0 [04:20:58]OFD Sender: Processing packet 75278 [packets to send 15, broken 14] [04:20:58]ProducePacketName [04:20:58]name=ofd_packets/00075278 [04:20:58]OFD Sender: To server: pG, [04:20:58]CommunicateWithHost lk.salyk.kg:30040 [04:20:58]ConnectInit lk.salyk.kg [04:20:58]written 0, free lines is 4095 [04:20:58]Connected sock=10 [04:20:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A3 01 00 00 C2 B8 9B 01 C1 FF 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 AE 79 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 26 01 00 35 04 06 00 6A F6 BE 58 D7 33 88 81 53 FF 6F D2 2C 51 [04:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6B DD 47 00 9F B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 26 01 00 F4 03 04 00 8A 22 18 67 B6 04 01 00 00 84 99 6B 4B 02 BE BC 68 [04:20:59]CommunicateWithHost err = 0 [04:20:59]CheckOFDResponse [04:20:59]1017 (14) - 77093643461234 [04:20:59]1041 (16) - 0000000000963323 [04:20:59]1040 (4) - 75278 [04:20:59]1012 (4) - 22.10.2024 22:09 [04:20:59]1206 (1) - 0 [04:20:59]OFD Sender: Remove packet 75278 [04:20:59]ProducePacketName [04:20:59]name=ofd_packets/00075278 [04:20:59]NVStorageDeleteData [04:20:59]Write to MH i2c: 01 00 00 C8 82 4A [04:20:59]Write i2c OK [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: 01 [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: 01 07 00 [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: 01 07 00 C8 82 00 00 00 00 00 6C 0C C9 [04:20:59]RasterBufferAndPrint [04:20:59]line [04:20:59]line [04:20:59]line [04:20:59]line [04:20:59]line [04:20:59]written 0, free lines is 3189 [04:20:59]MH_Cut [04:20:59]Write to MH i2c: D1 01 00 CF 82 01 23 [04:20:59]Write i2c OK [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: D1 [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: D1 01 00 [04:20:59]MH_I2C_Read... [04:20:59]Read from MH i2c: D1 01 00 CF 82 00 22 [04:20:59]Write to MH i2c: 01 00 00 D0 82 52 [04:20:59]Write i2c OK [04:20:59]MH_I2C_Read... [04:20:59]OFD Sender: No OFD packet to send [04:21:00]*** Cut start [04:21:00]*** Partial cut [04:21:00]*** CUTSNS_PIN = 1 [04:21:00]*** CUTSNS_PIN = 0 [04:21:00]*** Brake cut motor [04:21:00]Read from MH i2c: 01 [04:21:00]MH_I2C_Read... [04:21:00]*** Stop cut motor [04:21:00]*** Cut end [04:21:00]Read from MH i2c: 01 07 00 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: 01 07 00 D0 82 00 00 00 00 00 FF 0F 67 [04:21:00]process_action close_receipt done [04:21:00]requested_data is exist [04:21:00]produce_requested_data [04:21:00]requested_item fm.sn is exist - process it [04:21:00]wFMCommunicate request_size=4 [04:21:00]MH_SAM_APDU [04:21:00]CAPDU: 80 11 00 00 [04:21:00]Write to MH i2c: E2 08 00 D1 82 80 11 00 00 00 00 00 00 CD [04:21:00]Write i2c OK [04:21:00]MH_I2C_Read... [04:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:00]Read from MH i2c: E2 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 17 00 [04:21:00]MH_I2C_Read... [04:21:00]Read from MH i2c: E2 17 00 D1 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1A [04:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [04:21:00]wFMCommunicate OK [04:21:00]requested_item fd.num is exist - process it [04:21:00]SAM_PROTO_GetFieldsCounters [04:21:00]wFMCommunicate request_size=4 [04:21:00]MH_SAM_APDU [04:21:00]CAPDU: 80 13 00 00 [04:21:00]Write to MH i2c: E2 08 00 D2 82 80 13 00 00 00 00 00 00 D0 [04:21:00]Write i2c OK [04:21:00]MH_I2C_Read... [04:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:21:01]Read from MH i2c: E2 [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: E2 62 00 [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: E2 62 00 D2 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0E 26 01 00 0E 04 04 00 AD 00 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 E7 [04:21:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0E 26 01 00 0E 04 04 00 AD 00 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 [04:21:01]wFMCommunicate OK [04:21:01]SAM_PROTO_GetFieldsCounters done [04:21:01]requested_item shift.num is exist - process it [04:21:01]requested_item shift.opened is exist - process it [04:21:01]req_shift_opened [04:21:01]FM_GetShiftState [04:21:01]SAM_PROTO_GetShiftState [04:21:01]wFMCommunicate request_size=4 [04:21:01]MH_SAM_APDU [04:21:01]CAPDU: 80 13 01 00 [04:21:01]Write to MH i2c: E2 08 00 D3 82 80 13 01 00 00 00 00 00 D2 [04:21:01]Write i2c OK [04:21:01]MH_I2C_Read... [04:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:01]Read from MH i2c: E2 [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: E2 0E 00 [04:21:01]MH_I2C_Read... [04:21:01]Read from MH i2c: E2 0E 00 D3 82 00 09 00 01 99 41 18 67 00 00 00 00 90 00 37 [04:21:01]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [04:21:01]wFMCommunicate OK [04:21:01]SAM_PROTO_GetShiftState done [04:21:01]FM_GetShiftState done [04:21:01]req_shift_opened done [04:21:01]requested_item shift.open_date is exist - process it [04:21:01]req_shift_open_date [04:21:01]req_shift_open_date done [04:21:01]produce_requested_data done [04:21:01]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75278,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [04:21:01]process_action_free close_receipt [04:21:01]json_value_free [04:21:01]json_value_free done [04:21:01]process_json_proto returns [04:21:01]Send response to host [04:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75278,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [04:21:01]free response buf [04:21:01]execute_script done [04:21:01]execute_script returns [04:21:01]free content buf [04:21:01]Sock 7.Close socket [04:21:01]Sock 7.Thread stoped [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:16]accept exits with 9 [05:58:16]New connection [05:58:16]New thread 3067465060 created [05:58:16]Thread 3067321700 joined [05:58:16]Waiting for new connection... [05:58:16] Sock 9.Parse request [05:58:16]Sock 9.Check first char [05:58:16]Sock 9.First char is OK [05:58:16]request: POST /json_proto HTTP/1.0 [05:58:16]Method: POST [05:58:16]URL: /json_proto [05:58:16]Method is POST - this is cgi request [05:58:16]url: /json_proto [05:58:16]query_string will be loaded in cgi processing [05:58:16]execute_cgi json_proto POST (null) [05:58:16]execute_cgi path=json_proto method=POST [05:58:16]POST find Content-Length [05:58:16]Host: 172.17.44.196:8080 [05:58:16]Content-Length: 625 [05:58:16]Content-Type: application/json [05:58:16] [05:58:16]POST finish read [05:58:16]Found Content-Length = 625 [05:58:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273197", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:16]execute_script... [05:58:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273197", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:16]POST & json_proto [05:58:16]process_json_proto [05:58:16]json parsed OK: [05:58:16]protocol is kg_v1.0 [05:58:16]action value=close_receipt [05:58:16]process_action close_receipt [05:58:16]cmd_close_receipt [05:58:16]MH_GetDate [05:58:16]Write to MH i2c: F0 00 00 D4 82 45 [05:58:16]Write i2c OK [05:58:16]MH_I2C_Read... [05:58:16]Read from MH i2c: F0 [05:58:16]MH_I2C_Read... [05:58:16]Read from MH i2c: F0 09 00 [05:58:16]MH_I2C_Read... [05:58:16]Read from MH i2c: F0 09 00 D4 82 00 7D 90 18 67 E7 19 F8 65 37 [05:58:16]GetLastDocTimeStamp 1729657262 [05:58:16]current date 1729663101 [05:58:16]FM_GetShiftState [05:58:16]SAM_PROTO_GetShiftState [05:58:16]wFMCommunicate request_size=4 [05:58:16]MH_SAM_APDU [05:58:16]CAPDU: 80 13 01 00 [05:58:16]Write to MH i2c: E2 08 00 D5 82 80 13 01 00 00 00 00 00 D4 [05:58:16]Write i2c OK [05:58:16]MH_I2C_Read... [05:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:16]Read from MH i2c: E2 [05:58:16]MH_I2C_Read... [05:58:16]Read from MH i2c: E2 0E 00 [05:58:16]MH_I2C_Read... [05:58:16]Read from MH i2c: E2 0E 00 D5 82 00 09 00 01 99 41 18 67 00 00 00 00 90 00 39 [05:58:16]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [05:58:16]wFMCommunicate OK [05:58:16]SAM_PROTO_GetShiftState done [05:58:16]FM_GetShiftState done [05:58:16]opened in 1729642905 [05:58:16]opened+sec_in_day 1729729305 [05:58:16]quantity*price = 15000 [05:58:16]sum+1 = 15001 [05:58:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 12 23.10.2024 05:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75279 ФПД: 18202673192432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T055822&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75279&fm=18202673192432&tin=02508201610067®Number=0000000000161154&sum=15000 0 [05:58:17]StoreToDocumentArchive [05:58:17]shift 173 fd 75279 [05:58:17]save to /storage/0173/doc_00075279 [05:58:17]save last doc name /storage/0173/doc_00075279 to /storage/kkm_last_doc_name [05:58:17]save OK [05:58:17]Clear old archive folders... [05:58:17]ProcessDocumentItem done err = 0, tmpTLVsize=277 [05:58:17]tlvbuf is 00CD15C0 [05:58:17]SAM_PROTO_ClearQueue [05:58:17]wFMCommunicate request_size=4 [05:58:17]MH_SAM_APDU [05:58:17]CAPDU: 80 09 00 00 [05:58:17]Write to MH i2c: E2 08 00 E2 82 80 09 00 00 00 00 00 00 D6 [05:58:17]Write i2c OK [05:58:17]MH_I2C_Read... [05:58:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:17]Read from MH i2c: E2 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 03 00 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 03 00 E2 82 00 90 00 D8 [05:58:17]RAPDU: 90 00 [05:58:17]wFMCommunicate OK [05:58:17]SAM_PROTO_ClearQueue done [05:58:17]KKMCreateOFDPacket [05:58:17]OFDProtocolAddRootSTLVToBuf [05:58:17]FM_MakeSignedData [05:58:17]FM_MakeSignedData [05:58:17]SAM_PROTO_SignData [05:58:17]wFMCommunicate request_size=4 [05:58:17]MH_SAM_APDU [05:58:17]CAPDU: 80 0D 01 02 [05:58:17]Write to MH i2c: E2 08 00 E3 82 80 0D 01 02 00 00 00 00 DE [05:58:17]Write i2c OK [05:58:17]MH_I2C_Read... [05:58:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:17]Read from MH i2c: E2 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 03 00 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 03 00 E3 82 00 90 00 D9 [05:58:17]RAPDU: 90 00 [05:58:17]wFMCommunicate OK [05:58:17]wFMCommunicate request_size=255 [05:58:17]MH_SAM_APDU [05:58:17]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 7E 90 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 [05:58:17]Write to MH i2c: E2 02 01 E4 82 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 7E 90 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 00 00 05 [05:58:17]Write i2c OK [05:58:17]MH_I2C_Read... [05:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:17]Read from MH i2c: E2 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 03 00 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 03 00 E4 82 00 90 00 DA [05:58:17]RAPDU: 90 00 [05:58:17]wFMCommunicate OK [05:58:17]wFMCommunicate request_size=36 [05:58:17]MH_SAM_APDU [05:58:17]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 26 01 00 35 04 06 00 10 8E 23 DE 9D F0 [05:58:17]Write to MH i2c: E2 27 00 E5 82 80 0D 02 02 1F 00 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 26 01 00 35 04 06 00 10 8E 23 DE 9D F0 00 00 62 [05:58:17]Write i2c OK [05:58:17]MH_I2C_Read... [05:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:17]Read from MH i2c: E2 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 03 00 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 03 00 E5 82 00 90 00 DB [05:58:17]RAPDU: 90 00 [05:58:17]wFMCommunicate OK [05:58:17]wFMCommunicate request_size=4 [05:58:17]MH_SAM_APDU [05:58:17]CAPDU: 80 0D 03 02 [05:58:17]Write to MH i2c: E2 08 00 E6 82 80 0D 03 02 00 00 00 00 E3 [05:58:17]Write i2c OK [05:58:17]MH_I2C_Read... [05:58:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:17]Read from MH i2c: E2 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 0B 00 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 0B 00 E6 82 00 61 8C 0A 69 A1 61 37 B3 90 00 30 [05:58:17]RAPDU: 61 8C 0A 69 A1 61 37 B3 90 00 [05:58:17]wFMCommunicate OK [05:58:17]SAM_PROTO_SignData done [05:58:17]FM_MakeSignedData done [05:58:17]CreateOFDProtocolMessage [05:58:17]wFMCommunicate request_size=4 [05:58:17]MH_SAM_APDU [05:58:17]CAPDU: 80 11 00 00 [05:58:17]Write to MH i2c: E2 08 00 E7 82 80 11 00 00 00 00 00 00 E3 [05:58:17]Write i2c OK [05:58:17]MH_I2C_Read... [05:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:17]Read from MH i2c: E2 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 17 00 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: E2 17 00 E7 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 30 [05:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [05:58:17]wFMCommunicate OK [05:58:17]CreateOFDProtocolMessage done [05:58:17]OFDSenderStorePacket 75279 [05:58:17]StoreOFDPacket docnum=75279 [05:58:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 29 01 00 00 01 C2 21 01 8D 74 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 7E 90 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 26 01 00 35 04 06 00 10 8E 23 DE 9D F0 61 8C 0A 69 A1 61 37 B3 [05:58:17]CheckFolder [05:58:17]dirname=/storage/ofd_packets [05:58:17]CheckFolder done [05:58:17]ProducePacketName [05:58:17]name=ofd_packets/00075279 [05:58:17]NVStorageSaveData ofd_packets/00075279 [05:58:17]File name is /storage/ofd_packets/00075279 [05:58:17]Write 327 bytes [05:58:17]NVStorageSaveData done [05:58:17]OFDSenderStorePacket done [05:58:17]KKMCreateOFDPacket done [05:58:17]NVStorageSaveData kkm_last_timestamp [05:58:17]File name is /storage/kkm_last_timestamp [05:58:17]Write 4 bytes [05:58:17]NVStorageSaveData done [05:58:17]ExternCall_PrintAddStr [05:58:17]wPrintStart [05:58:17]Write to MH i2c: 01 00 00 E8 82 6A [05:58:17]Write i2c OK [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: 01 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: 01 07 00 [05:58:17]MH_I2C_Read... [05:58:17]Read from MH i2c: 01 07 00 E8 82 00 00 00 00 00 FF 0F 7F [05:58:17]RasterBufferAndPrint [05:58:17]line Счет N : (3)273197 [05:58:17]line ИНН: 02508201610067 [05:58:17]line Контрольно-Кассовый Чек [05:58:17]line ПРОДАЖА [05:58:17]line Товар: 46230607 [05:58:17]line Сигареты Richmond Bronze Edition [05:58:17]line 1.000 * 150.00 [05:58:17]line = 150.00 [05:58:17]line НДС 12% НСП 1% [05:58:17]line > о реализуемом товаре [05:58:17]line ИТОГО: 150.00 [05:58:17]line НСП 1% : 1.33 [05:58:17]line НДС 12% : 15.93 [05:58:17]line Наличными: 150.00 [05:58:17]line Безнал.: 0.00 [05:58:17]line Место: АЗС № 133 "Партнер Нефть" [05:58:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [05:58:17]line СНО: Общий режим [05:58:17]line Чек 12 23.10.2024 05:58 [05:58:17]line Смена: 173 ФФД: 1.0 [05:58:17]line ЗНМ: 0300000020 [05:58:17]line РНМ: 0000000000161154 [05:58:17]line Версия ККМ: v1.0 [05:58:17]line ФМ: 0000000000963323 [05:58:17]line ФД: 75279 [05:58:17]line ФПД: 18202673192432 [05:58:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T055822&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75279&fm=18202673192432&tin=02508201610067®Number=0000000000161154&sum=15000 [05:58:17]line 0 [05:58:18]written 0, free lines is 4095 [05:58:18]OFD Sender: Processing packet 75279 [packets to send 15, broken 14] [05:58:18]ProducePacketName [05:58:18]name=ofd_packets/00075279 [05:58:18]OFD Sender: To server: pG, [05:58:18]CommunicateWithHost lk.salyk.kg:30040 [05:58:18]ConnectInit lk.salyk.kg [05:58:18]Connected sock=7 [05:58:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 29 01 00 00 01 C2 21 01 8D 74 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 7E 90 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 26 01 00 35 04 06 00 10 8E 23 DE 9D F0 61 8C 0A 69 A1 61 37 B3 [05:58:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 25 90 47 00 05 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 26 01 00 F4 03 04 00 59 39 18 67 B6 04 01 00 00 EC E1 CA A0 0E C5 75 D6 [05:58:18]CommunicateWithHost err = 0 [05:58:18]CheckOFDResponse [05:58:18]1017 (14) - 77093643461234 [05:58:18]1041 (16) - 0000000000963323 [05:58:18]1040 (4) - 75279 [05:58:18]1012 (4) - 22.10.2024 23:46 [05:58:18]1206 (1) - 0 [05:58:18]OFD Sender: Remove packet 75279 [05:58:18]ProducePacketName [05:58:18]name=ofd_packets/00075279 [05:58:18]NVStorageDeleteData [05:58:18]Write to MH i2c: 01 00 00 10 83 93 [05:58:18]Write i2c OK [05:58:18]MH_I2C_Read... [05:58:18]Read from MH i2c: 01 [05:58:18]MH_I2C_Read... [05:58:18]Read from MH i2c: 01 07 00 [05:58:18]MH_I2C_Read... [05:58:18]Read from MH i2c: 01 07 00 10 83 00 00 00 00 00 C8 0C 6E [05:58:18]RasterBufferAndPrint [05:58:18]line [05:58:18]line [05:58:18]line [05:58:18]line [05:58:18]line [05:58:18]written 0, free lines is 3277 [05:58:18]MH_Cut [05:58:18]Write to MH i2c: D1 01 00 17 83 01 6C [05:58:18]Write i2c OK [05:58:18]MH_I2C_Read... [05:58:18]Read from MH i2c: D1 [05:58:18]MH_I2C_Read... [05:58:18]Read from MH i2c: D1 01 00 [05:58:18]MH_I2C_Read... [05:58:18]Read from MH i2c: D1 01 00 17 83 00 6B [05:58:18]Write to MH i2c: 01 00 00 18 83 9B [05:58:18]Write i2c OK [05:58:18]MH_I2C_Read... [05:58:18]OFD Sender: No OFD packet to send [05:58:19]*** Cut start [05:58:19]*** Partial cut [05:58:19]*** CUTSNS_PIN = 1 [05:58:19]*** CUTSNS_PIN = 0 [05:58:19]*** Brake cut motor [05:58:20]Read from MH i2c: 01 [05:58:20]MH_I2C_Read... [05:58:20]*** Stop cut motor [05:58:20]*** Cut end [05:58:20]Read from MH i2c: 01 07 00 [05:58:20]MH_I2C_Read... [05:58:20]Read from MH i2c: 01 07 00 18 83 00 00 00 00 00 FF 0F B0 [05:58:20]process_action close_receipt done [05:58:20]requested_data is exist [05:58:20]produce_requested_data [05:58:20]requested_item fm.sn is exist - process it [05:58:20]wFMCommunicate request_size=4 [05:58:20]MH_SAM_APDU [05:58:20]CAPDU: 80 11 00 00 [05:58:20]Write to MH i2c: E2 08 00 19 83 80 11 00 00 00 00 00 00 16 [05:58:20]Write i2c OK [05:58:20]MH_I2C_Read... [05:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:20]Read from MH i2c: E2 [05:58:20]MH_I2C_Read... [05:58:20]Read from MH i2c: E2 17 00 [05:58:20]MH_I2C_Read... [05:58:20]Read from MH i2c: E2 17 00 19 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 63 [05:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [05:58:20]wFMCommunicate OK [05:58:20]requested_item fd.num is exist - process it [05:58:20]SAM_PROTO_GetFieldsCounters [05:58:20]wFMCommunicate request_size=4 [05:58:20]MH_SAM_APDU [05:58:20]CAPDU: 80 13 00 00 [05:58:20]Write to MH i2c: E2 08 00 1A 83 80 13 00 00 00 00 00 00 19 [05:58:20]Write i2c OK [05:58:20]MH_I2C_Read... [05:58:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:58:20]Read from MH i2c: E2 [05:58:20]MH_I2C_Read... [05:58:20]Read from MH i2c: E2 62 00 [05:58:20]MH_I2C_Read... [05:58:20]Read from MH i2c: E2 62 00 1A 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0F 26 01 00 0E 04 04 00 AD 00 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 34 [05:58:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0F 26 01 00 0E 04 04 00 AD 00 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:58:20]wFMCommunicate OK [05:58:20]SAM_PROTO_GetFieldsCounters done [05:58:20]requested_item shift.num is exist - process it [05:58:20]requested_item shift.opened is exist - process it [05:58:20]req_shift_opened [05:58:20]FM_GetShiftState [05:58:20]SAM_PROTO_GetShiftState [05:58:20]wFMCommunicate request_size=4 [05:58:20]MH_SAM_APDU [05:58:20]CAPDU: 80 13 01 00 [05:58:20]Write to MH i2c: E2 08 00 1B 83 80 13 01 00 00 00 00 00 1B [05:58:20]Write i2c OK [05:58:20]MH_I2C_Read... [05:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:20]Read from MH i2c: E2 [05:58:20]MH_I2C_Read... [05:58:20]Read from MH i2c: E2 0E 00 [05:58:20]MH_I2C_Read... [05:58:20]Read from MH i2c: E2 0E 00 1B 83 00 09 00 01 99 41 18 67 00 00 00 00 90 00 80 [05:58:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [05:58:20]wFMCommunicate OK [05:58:20]SAM_PROTO_GetShiftState done [05:58:20]FM_GetShiftState done [05:58:20]req_shift_opened done [05:58:20]requested_item shift.open_date is exist - process it [05:58:20]req_shift_open_date [05:58:20]req_shift_open_date done [05:58:20]produce_requested_data done [05:58:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75279,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [05:58:20]process_action_free close_receipt [05:58:20]json_value_free [05:58:20]json_value_free done [05:58:20]process_json_proto returns [05:58:20]Send response to host [05:58:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75279,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [05:58:20]free response buf [05:58:20]execute_script done [05:58:20]execute_script returns [05:58:20]free content buf [05:58:20]Sock 9.Close socket [05:58:20]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20: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:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58: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:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:35]accept exits with 10 [07:43:35]New connection [07:43:35]New thread 3067321700 created [07:43:35]Thread 3067465060 joined [07:43:35]Waiting for new connection... [07:43:35] Sock 10.Parse request [07:43:35]Sock 10.Check first char [07:43:35]Sock 10.First char is OK [07:43:35]request: POST /json_proto HTTP/1.0 [07:43:35]Method: POST [07:43:35]URL: /json_proto [07:43:35]Method is POST - this is cgi request [07:43:35]url: /json_proto [07:43:35]query_string will be loaded in cgi processing [07:43:35]execute_cgi json_proto POST (null) [07:43:35]execute_cgi path=json_proto method=POST [07:43:35]POST find Content-Length [07:43:35]Host: 172.17.44.196:8080 [07:43:35]Content-Length: 680 [07:43:35]Content-Type: application/json [07:43:35] [07:43:35]POST finish read [07:43:35]Found Content-Length = 680 [07:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [07:43:35]execute_script... [07:43: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)1965177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [07:43:35]POST & json_proto [07:43:35]process_json_proto [07:43:35]json parsed OK: [07:43:35]protocol is kg_v1.0 [07:43:35]action value=close_receipt [07:43:35]process_action close_receipt [07:43:35]cmd_close_receipt [07:43:35]MH_GetDate [07:43:35]Write to MH i2c: F0 00 00 1C 83 8E [07:43:35]Write i2c OK [07:43:35]MH_I2C_Read... [07:43:35]Read from MH i2c: F0 [07:43:35]MH_I2C_Read... [07:43:35]Read from MH i2c: F0 09 00 [07:43:35]MH_I2C_Read... [07:43:35]Read from MH i2c: F0 09 00 1C 83 00 2D A9 18 67 E7 19 F8 65 49 [07:43:35]GetLastDocTimeStamp 1729663102 [07:43:35]current date 1729669421 [07:43:35]FM_GetShiftState [07:43:35]SAM_PROTO_GetShiftState [07:43:35]wFMCommunicate request_size=4 [07:43:35]MH_SAM_APDU [07:43:35]CAPDU: 80 13 01 00 [07:43:35]Write to MH i2c: E2 08 00 1D 83 80 13 01 00 00 00 00 00 1D [07:43:35]Write i2c OK [07:43:35]MH_I2C_Read... [07:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:35]Read from MH i2c: E2 [07:43:35]MH_I2C_Read... [07:43:35]Read from MH i2c: E2 0E 00 [07:43:35]MH_I2C_Read... [07:43:35]Read from MH i2c: E2 0E 00 1D 83 00 09 00 01 99 41 18 67 00 00 00 00 90 00 82 [07:43:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [07:43:35]wFMCommunicate OK [07:43:35]SAM_PROTO_GetShiftState done [07:43:35]FM_GetShiftState done [07:43:35]opened in 1729642905 [07:43:35]opened+sec_in_day 1729729305 [07:43:35]quantity*price = 200025 [07:43:35]sum+1 = 200026 [07:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 13 23.10.2024 07:43 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75280 ФПД: 205342025247564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074341&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75280&fm=205342025247564&tin=02508201610067®Number=0000000000161154&sum=200000 [07:43:36]StoreToDocumentArchive [07:43:36]shift 173 fd 75280 [07:43:36]save to /storage/0173/doc_00075280 [07:43:36]save last doc name /storage/0173/doc_00075280 to /storage/kkm_last_doc_name [07:43:36]save OK [07:43:36]Clear old archive folders... [07:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:43:36]tlvbuf is 00D963A0 [07:43:36]SAM_PROTO_ClearQueue [07:43:36]wFMCommunicate request_size=4 [07:43:36]MH_SAM_APDU [07:43:36]CAPDU: 80 09 00 00 [07:43:36]Write to MH i2c: E2 08 00 2A 83 80 09 00 00 00 00 00 00 1F [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 2A 83 00 90 00 21 [07:43:36]RAPDU: 90 00 [07:43:36]wFMCommunicate OK [07:43:36]SAM_PROTO_ClearQueue done [07:43:36]KKMCreateOFDPacket [07:43:36]OFDProtocolAddRootSTLVToBuf [07:43:36]FM_MakeSignedData [07:43:36]FM_MakeSignedData [07:43:36]SAM_PROTO_SignData [07:43:36]wFMCommunicate request_size=4 [07:43:36]MH_SAM_APDU [07:43:36]CAPDU: 80 0D 01 02 [07:43:36]Write to MH i2c: E2 08 00 2B 83 80 0D 01 02 00 00 00 00 27 [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 2B 83 00 90 00 22 [07:43:36]RAPDU: 90 00 [07:43:36]wFMCommunicate OK [07:43:36]wFMCommunicate request_size=255 [07:43:36]MH_SAM_APDU [07:43: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 0D 00 00 00 F4 03 04 00 2D A9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 26 01 00 35 04 06 00 BA C1 EA 78 [07:43:36]Write to MH i2c: E2 02 01 2C 83 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 0D 00 00 00 F4 03 04 00 2D A9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 26 01 00 35 04 06 00 BA C1 EA 78 00 00 B0 [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 2C 83 00 90 00 23 [07:43:36]RAPDU: 90 00 [07:43:36]wFMCommunicate OK [07:43:36]wFMCommunicate request_size=7 [07:43:36]MH_SAM_APDU [07:43:36]CAPDU: 80 0D 02 02 02 EB 4C [07:43:36]Write to MH i2c: E2 0A 00 2D 83 80 0D 02 02 02 00 EB 4C 00 00 65 [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 03 00 2D 83 00 90 00 24 [07:43:36]RAPDU: 90 00 [07:43:36]wFMCommunicate OK [07:43:36]wFMCommunicate request_size=4 [07:43:36]MH_SAM_APDU [07:43:36]CAPDU: 80 0D 03 02 [07:43:36]Write to MH i2c: E2 08 00 2E 83 80 0D 03 02 00 00 00 00 2C [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 0B 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 0B 00 2E 83 00 DE 48 DC 80 39 AB 7B 87 90 00 95 [07:43:36]RAPDU: DE 48 DC 80 39 AB 7B 87 90 00 [07:43:36]wFMCommunicate OK [07:43:36]SAM_PROTO_SignData done [07:43:36]FM_MakeSignedData done [07:43:36]CreateOFDProtocolMessage [07:43:36]wFMCommunicate request_size=4 [07:43:36]MH_SAM_APDU [07:43:36]CAPDU: 80 11 00 00 [07:43:36]Write to MH i2c: E2 08 00 2F 83 80 11 00 00 00 00 00 00 2C [07:43:36]Write i2c OK [07:43:36]MH_I2C_Read... [07:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:36]Read from MH i2c: E2 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 17 00 [07:43:36]MH_I2C_Read... [07:43:36]Read from MH i2c: E2 17 00 2F 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 79 [07:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [07:43:37]wFMCommunicate OK [07:43:37]CreateOFDProtocolMessage done [07:43:37]OFDSenderStorePacket 75280 [07:43:37]StoreOFDPacket docnum=75280 [07:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 70 53 04 01 7E 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 0D 00 00 00 F4 03 04 00 2D A9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 26 01 00 35 04 06 00 BA C1 EA 78 EB 4C DE 48 DC 80 39 AB 7B 87 [07:43:37]CheckFolder [07:43:37]dirname=/storage/ofd_packets [07:43:37]CheckFolder done [07:43:37]ProducePacketName [07:43:37]name=ofd_packets/00075280 [07:43:37]NVStorageSaveData ofd_packets/00075280 [07:43:37]File name is /storage/ofd_packets/00075280 [07:43:37]Write 298 bytes [07:43:37]NVStorageSaveData done [07:43:37]OFDSenderStorePacket done [07:43:37]KKMCreateOFDPacket done [07:43:37]NVStorageSaveData kkm_last_timestamp [07:43:37]File name is /storage/kkm_last_timestamp [07:43:37]Write 4 bytes [07:43:37]NVStorageSaveData done [07:43:37]ExternCall_PrintAddStr [07:43:37]wPrintStart [07:43:37]Write to MH i2c: 01 00 00 30 83 B3 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 07 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 07 00 30 83 00 00 00 00 00 FF 0F C8 [07:43:37]RasterBufferAndPrint [07:43:37]line Счет N : (1)1965177 [07:43:37]line ИНН: 02508201610067 [07:43:37]line Контрольно-Кассовый Чек [07:43:37]line ПРОДАЖА [07:43:37]line ТРК (МРК, ГНК) : 21 [07:43:37]line Товар: 2710194210 [07:43:37]line ДТ-К-5 [07:43:37]line 26.250 * 76.20 [07:43:37]line = 2000.25 [07:43:37]line НДС 12% НСП 1% [07:43:37]line > о реализуемом товаре [07:43:37]line ОКРУГЛЕНИЕ: -0.25 [07:43:37]line ИТОГО: 2000.00 [07:43:37]line Внесено: 2000.00 [07:43:37]line СДАЧА: 0.00 [07:43:37]line НСП 1% : 17.70 [07:43:37]line НДС 12% : 212.42 [07:43:37]line Наличными: 2000.00 [07:43:37]line Безнал.: 0.00 [07:43:37]line Место: АЗС № 133 "Партнер Нефть" [07:43:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [07:43:37]line СНО: Общий режим [07:43:37]line Чек 13 23.10.2024 07:43 [07:43:37]line Смена: 173 ФФД: 1.0 [07:43:37]line ЗНМ: 0300000020 [07:43:37]line РНМ: 0000000000161154 [07:43:37]line Версия ККМ: v1.0 [07:43:37]line ФМ: 0000000000963323 [07:43:37]line ФД: 75280 [07:43:37]line ФПД: 205342025247564 [07:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074341&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75280&fm=205342025247564&tin=02508201610067®Number=0000000000161154&sum=200000 [07:43:37]OFD Sender: Processing packet 75280 [packets to send 15, broken 14] [07:43:37]ProducePacketName [07:43:37]name=ofd_packets/00075280 [07:43:37]OFD Sender: To server: pG, [07:43:37]CommunicateWithHost lk.salyk.kg:30040 [07:43:37]ConnectInit lk.salyk.kg [07:43:37]written 0, free lines is 4095 [07:43:37]Connected sock=9 [07:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 70 53 04 01 7E 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 0D 00 00 00 F4 03 04 00 2D A9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 26 01 00 35 04 06 00 BA C1 EA 78 EB 4C DE 48 DC 80 39 AB 7B 87 [07:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 20 33 47 00 75 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 26 01 00 F4 03 04 00 09 52 18 67 B6 04 01 00 00 CB A0 D1 B2 B6 10 2B 50 [07:43:37]CommunicateWithHost err = 0 [07:43:37]CheckOFDResponse [07:43:37]1017 (14) - 77093643461234 [07:43:37]1041 (16) - 0000000000963323 [07:43:37]1040 (4) - 75280 [07:43:37]1012 (4) - 23.10.2024 01:31 [07:43:37]1206 (1) - 0 [07:43:37]OFD Sender: Remove packet 75280 [07:43:37]ProducePacketName [07:43:37]name=ofd_packets/00075280 [07:43:37]NVStorageDeleteData [07:43:37]Write to MH i2c: 01 00 00 5A 83 DD [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 07 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 07 00 5A 83 00 00 00 00 00 BB 0C AB [07:43:37]RasterBufferAndPrint [07:43:37]line [07:43:37]line [07:43:37]line [07:43:37]line [07:43:37]line [07:43:37]written 0, free lines is 3264 [07:43:37]MH_Cut [07:43:37]Write to MH i2c: D1 01 00 61 83 01 B6 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: D1 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: D1 01 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: D1 01 00 61 83 00 B5 [07:43:37]Write to MH i2c: 01 00 00 62 83 E5 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:38]OFD Sender: No OFD packet to send [07:43:38]*** Cut start [07:43:38]*** Partial cut [07:43:38]*** CUTSNS_PIN = 1 [07:43:38]*** CUTSNS_PIN = 0 [07:43:38]*** Brake cut motor [07:43:39]Read from MH i2c: 01 [07:43:39]MH_I2C_Read... [07:43:39]*** Stop cut motor [07:43:39]*** Cut end [07:43:39]Read from MH i2c: 01 07 00 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: 01 07 00 62 83 00 00 00 00 00 FF 0F FA [07:43:39]process_action close_receipt done [07:43:39]requested_data is exist [07:43:39]produce_requested_data [07:43:39]requested_item fm.sn is exist - process it [07:43:39]wFMCommunicate request_size=4 [07:43:39]MH_SAM_APDU [07:43:39]CAPDU: 80 11 00 00 [07:43:39]Write to MH i2c: E2 08 00 63 83 80 11 00 00 00 00 00 00 60 [07:43:39]Write i2c OK [07:43:39]MH_I2C_Read... [07:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:39]Read from MH i2c: E2 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 17 00 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 17 00 63 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AD [07:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [07:43:39]wFMCommunicate OK [07:43:39]requested_item fd.num is exist - process it [07:43:39]SAM_PROTO_GetFieldsCounters [07:43:39]wFMCommunicate request_size=4 [07:43:39]MH_SAM_APDU [07:43:39]CAPDU: 80 13 00 00 [07:43:39]Write to MH i2c: E2 08 00 64 83 80 13 00 00 00 00 00 00 63 [07:43:39]Write i2c OK [07:43:39]MH_I2C_Read... [07:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:39]Read from MH i2c: E2 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 62 00 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 62 00 64 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 10 26 01 00 0E 04 04 00 AD 00 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 82 [07:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 10 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:39]wFMCommunicate OK [07:43:39]SAM_PROTO_GetFieldsCounters done [07:43:39]requested_item shift.num is exist - process it [07:43:39]requested_item shift.opened is exist - process it [07:43:39]req_shift_opened [07:43:39]FM_GetShiftState [07:43:39]SAM_PROTO_GetShiftState [07:43:39]wFMCommunicate request_size=4 [07:43:39]MH_SAM_APDU [07:43:39]CAPDU: 80 13 01 00 [07:43:39]Write to MH i2c: E2 08 00 65 83 80 13 01 00 00 00 00 00 65 [07:43:39]Write i2c OK [07:43:39]MH_I2C_Read... [07:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:39]Read from MH i2c: E2 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 0E 00 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 0E 00 65 83 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CA [07:43:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [07:43:39]wFMCommunicate OK [07:43:39]SAM_PROTO_GetShiftState done [07:43:39]FM_GetShiftState done [07:43:39]req_shift_opened done [07:43:39]requested_item shift.open_date is exist - process it [07:43:39]req_shift_open_date [07:43:39]req_shift_open_date done [07:43:39]produce_requested_data done [07:43:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75280,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [07:43:39]process_action_free close_receipt [07:43:39]json_value_free [07:43:39]json_value_free done [07:43:39]process_json_proto returns [07:43:39]Send response to host [07:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75280,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [07:43:39]free response buf [07:43:39]execute_script done [07:43:39]execute_script returns [07:43:39]free content buf [07:43:39]Sock 10.Close socket [07:43:39]Sock 10.Thread stoped [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:07]accept exits with 7 [07:54:07]New connection [07:54:07]New thread 3067465060 created [07:54:07]Thread 3067321700 joined [07:54:07]Waiting for new connection... [07:54:07] Sock 7.Parse request [07:54:07]Sock 7.Check first char [07:54:07]Sock 7.First char is OK [07:54:07]request: POST /json_proto HTTP/1.0 [07:54:07]Method: POST [07:54:07]URL: /json_proto [07:54:07]Method is POST - this is cgi request [07:54:07]url: /json_proto [07:54:07]query_string will be loaded in cgi processing [07:54:07]execute_cgi json_proto POST (null) [07:54:07]execute_cgi path=json_proto method=POST [07:54:07]POST find Content-Length [07:54:07]Host: 172.17.44.196:8080 [07:54:07]Content-Length: 683 [07:54:07]Content-Type: application/json [07:54:07] [07:54:07]POST finish read [07:54:07]Found Content-Length = 683 [07:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 38.420, "sum" : 2850.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2850.00, "payments": [ { "type": 0, "sum" : 2850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:07]execute_script... [07:54: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)1965178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 38.420, "sum" : 2850.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2850.00, "payments": [ { "type": 0, "sum" : 2850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:07]POST & json_proto [07:54:07]process_json_proto [07:54:07]json parsed OK: [07:54:07]protocol is kg_v1.0 [07:54:07]action value=close_receipt [07:54:07]process_action close_receipt [07:54:07]cmd_close_receipt [07:54:07]MH_GetDate [07:54:07]Write to MH i2c: F0 00 00 66 83 D8 [07:54:07]Write i2c OK [07:54:07]MH_I2C_Read... [07:54:07]Read from MH i2c: F0 [07:54:07]MH_I2C_Read... [07:54:07]Read from MH i2c: F0 09 00 [07:54:07]MH_I2C_Read... [07:54:07]Read from MH i2c: F0 09 00 66 83 00 A5 AB 18 67 E7 19 F8 65 0D [07:54:07]GetLastDocTimeStamp 1729669421 [07:54:07]current date 1729670053 [07:54:07]FM_GetShiftState [07:54:07]SAM_PROTO_GetShiftState [07:54:07]wFMCommunicate request_size=4 [07:54:07]MH_SAM_APDU [07:54:07]CAPDU: 80 13 01 00 [07:54:07]Write to MH i2c: E2 08 00 67 83 80 13 01 00 00 00 00 00 67 [07:54:07]Write i2c OK [07:54:07]MH_I2C_Read... [07:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:07]Read from MH i2c: E2 [07:54:07]MH_I2C_Read... [07:54:07]Read from MH i2c: E2 0E 00 [07:54:07]MH_I2C_Read... [07:54:07]Read from MH i2c: E2 0E 00 67 83 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CC [07:54:07]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [07:54:07]wFMCommunicate OK [07:54:07]SAM_PROTO_GetShiftState done [07:54:07]FM_GetShiftState done [07:54:07]opened in 1729642905 [07:54:07]opened+sec_in_day 1729729305 [07:54:07]quantity*price = 285076 [07:54:07]sum+1 = 285077 [07:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 2850.00 Внесено: 5000.00 СДАЧА: 2150.00 НСП 1% : 25.23 НДС 12% : 302.74 Наличными: 2850.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 14 23.10.2024 07:54 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75281 ФПД: 211579959797250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075414&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75281&fm=211579959797250&tin=02508201610067®Number=0000000000161154&sum=285000 [07:54:08]StoreToDocumentArchive [07:54:08]shift 173 fd 75281 [07:54:08]save to /storage/0173/doc_00075281 [07:54:08]save last doc name /storage/0173/doc_00075281 to /storage/kkm_last_doc_name [07:54:08]save OK [07:54:08]Clear old archive folders... [07:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:08]tlvbuf is 00CD0F60 [07:54:08]SAM_PROTO_ClearQueue [07:54:08]wFMCommunicate request_size=4 [07:54:08]MH_SAM_APDU [07:54:08]CAPDU: 80 09 00 00 [07:54:08]Write to MH i2c: E2 08 00 74 83 80 09 00 00 00 00 00 00 69 [07:54:08]Write i2c OK [07:54:08]MH_I2C_Read... [07:54:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:08]Read from MH i2c: E2 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: E2 03 00 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: E2 03 00 74 83 00 90 00 6B [07:54:08]RAPDU: 90 00 [07:54:08]wFMCommunicate OK [07:54:08]SAM_PROTO_ClearQueue done [07:54:08]KKMCreateOFDPacket [07:54:08]OFDProtocolAddRootSTLVToBuf [07:54:08]FM_MakeSignedData [07:54:08]FM_MakeSignedData [07:54:08]SAM_PROTO_SignData [07:54:08]wFMCommunicate request_size=4 [07:54:08]MH_SAM_APDU [07:54:08]CAPDU: 80 0D 01 02 [07:54:08]Write to MH i2c: E2 08 00 75 83 80 0D 01 02 00 00 00 00 71 [07:54:08]Write i2c OK [07:54:08]MH_I2C_Read... [07:54:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:08]Read from MH i2c: E2 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: E2 03 00 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: E2 03 00 75 83 00 90 00 6C [07:54:08]RAPDU: 90 00 [07:54:08]wFMCommunicate OK [07:54:08]wFMCommunicate request_size=255 [07:54:08]MH_SAM_APDU [07:54: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 96 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 94 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 76 00 00 00 00 07 04 06 00 48 59 04 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 A6 AB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 26 01 00 35 04 06 00 C0 [07:54:08]Write to MH i2c: E2 02 01 76 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 96 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 94 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 76 00 00 00 00 07 04 06 00 48 59 04 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 A6 AB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 26 01 00 35 04 06 00 C0 00 00 8E [07:54:08]Write i2c OK [07:54:08]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 76 83 00 90 00 6D [07:54:09]RAPDU: 90 00 [07:54:09]wFMCommunicate OK [07:54:09]wFMCommunicate request_size=10 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 0D 02 02 05 6E 4C 58 66 02 [07:54:09]Write to MH i2c: E2 0D 00 77 83 80 0D 02 02 05 00 6E 4C 58 66 02 00 00 F8 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 77 83 00 90 00 6E [07:54:09]RAPDU: 90 00 [07:54:09]wFMCommunicate OK [07:54:09]wFMCommunicate request_size=4 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 0D 03 02 [07:54:09]Write to MH i2c: E2 08 00 78 83 80 0D 03 02 00 00 00 00 76 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 0B 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 0B 00 78 83 00 A9 20 28 4D 52 6C C8 27 90 00 62 [07:54:09]RAPDU: A9 20 28 4D 52 6C C8 27 90 00 [07:54:09]wFMCommunicate OK [07:54:09]SAM_PROTO_SignData done [07:54:09]FM_MakeSignedData done [07:54:09]CreateOFDProtocolMessage [07:54:09]wFMCommunicate request_size=4 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 11 00 00 [07:54:09]Write to MH i2c: E2 08 00 79 83 80 11 00 00 00 00 00 00 76 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 17 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 17 00 79 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C3 [07:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [07:54:09]wFMCommunicate OK [07:54:09]CreateOFDProtocolMessage done [07:54:09]OFDSenderStorePacket 75281 [07:54:09]StoreOFDPacket docnum=75281 [07:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 3E 84 07 01 CD 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 96 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 94 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 76 00 00 00 00 07 04 06 00 48 59 04 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 A6 AB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 26 01 00 35 04 06 00 C0 6E 4C 58 66 02 A9 20 28 4D 52 6C C8 27 [07:54:09]CheckFolder [07:54:09]dirname=/storage/ofd_packets [07:54:09]CheckFolder done [07:54:09]ProducePacketName [07:54:09]name=ofd_packets/00075281 [07:54:09]NVStorageSaveData ofd_packets/00075281 [07:54:09]File name is /storage/ofd_packets/00075281 [07:54:09]Write 301 bytes [07:54:09]NVStorageSaveData done [07:54:09]OFDSenderStorePacket done [07:54:09]KKMCreateOFDPacket done [07:54:09]NVStorageSaveData kkm_last_timestamp [07:54:09]File name is /storage/kkm_last_timestamp [07:54:09]Write 4 bytes [07:54:09]NVStorageSaveData done [07:54:09]ExternCall_PrintAddStr [07:54:09]wPrintStart [07:54:09]Write to MH i2c: 01 00 00 7A 83 FD [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: 01 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: 01 07 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: 01 07 00 7A 83 00 00 00 00 00 FF 0F 12 [07:54:09]RasterBufferAndPrint [07:54:09]line Счет N : (1)1965178 [07:54:09]line ИНН: 02508201610067 [07:54:09]line Контрольно-Кассовый Чек [07:54:09]line ПРОДАЖА [07:54:09]line ТРК (МРК, ГНК) : 54 [07:54:09]line Товар: 2710124500 [07:54:09]line Аи-95-К-5 [07:54:09]line 38.420 * 74.20 [07:54:09]line = 2850.76 [07:54:09]line НДС 12% НСП 1% [07:54:09]line > о реализуемом товаре [07:54:09]line ОКРУГЛЕНИЕ: -0.76 [07:54:09]line ИТОГО: 2850.00 [07:54:09]line Внесено: 5000.00 [07:54:09]line СДАЧА: 2150.00 [07:54:09]line НСП 1% : 25.23 [07:54:09]line НДС 12% : 302.74 [07:54:09]line Наличными: 2850.00 [07:54:09]line Безнал.: 0.00 [07:54:09]line Место: АЗС № 133 "Партнер Нефть" [07:54:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [07:54:09]line СНО: Общий режим [07:54:09]line Чек 14 23.10.2024 07:54 [07:54:09]line Смена: 173 ФФД: 1.0 [07:54:09]line ЗНМ: 0300000020 [07:54:09]line РНМ: 0000000000161154 [07:54:09]line Версия ККМ: v1.0 [07:54:09]line ФМ: 0000000000963323 [07:54:09]line ФД: 75281 [07:54:09]line ФПД: 211579959797250 [07:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075414&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75281&fm=211579959797250&tin=02508201610067®Number=0000000000161154&sum=285000 [07:54:09]OFD Sender: Processing packet 75281 [packets to send 15, broken 14] [07:54:09]ProducePacketName [07:54:09]name=ofd_packets/00075281 [07:54:09]OFD Sender: To server: pG, [07:54:09]CommunicateWithHost lk.salyk.kg:30040 [07:54:09]ConnectInit lk.salyk.kg [07:54:09]written 0, free lines is 4095 [07:54:09]Connected sock=10 [07:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 3E 84 07 01 CD 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 96 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 94 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 76 00 00 00 00 07 04 06 00 48 59 04 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 A6 AB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 26 01 00 35 04 06 00 C0 6E 4C 58 66 02 A9 20 28 4D 52 6C C8 27 [07:54:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1B 73 47 00 01 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 26 01 00 F4 03 04 00 81 54 18 67 B6 04 01 00 00 9C 3E BC 63 1A D3 E1 FB [07:54:09]CommunicateWithHost err = 0 [07:54:09]CheckOFDResponse [07:54:09]1017 (14) - 77093643461234 [07:54:09]1041 (16) - 0000000000963323 [07:54:09]1040 (4) - 75281 [07:54:09]1012 (4) - 23.10.2024 01:42 [07:54:09]1206 (1) - 0 [07:54:09]OFD Sender: Remove packet 75281 [07:54:09]ProducePacketName [07:54:09]name=ofd_packets/00075281 [07:54:09]NVStorageDeleteData [07:54:10]Write to MH i2c: 01 00 00 A4 83 27 [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 07 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 07 00 A4 83 00 00 00 00 00 BF 0C F9 [07:54:10]RasterBufferAndPrint [07:54:10]line [07:54:10]line [07:54:10]line [07:54:10]line [07:54:10]line [07:54:10]written 0, free lines is 3268 [07:54:10]MH_Cut [07:54:10]Write to MH i2c: D1 01 00 AB 83 01 00 [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: D1 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: D1 01 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: D1 01 00 AB 83 00 FF [07:54:10]Write to MH i2c: 01 00 00 AC 83 2F [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]OFD Sender: No OFD packet to send [07:54:10]*** Cut start [07:54:10]*** Partial cut [07:54:10]*** CUTSNS_PIN = 1 [07:54:11]*** CUTSNS_PIN = 0 [07:54:11]*** Brake cut motor [07:54:11]Read from MH i2c: 01 [07:54:11]MH_I2C_Read... [07:54:11]*** Stop cut motor [07:54:11]*** Cut end [07:54:11]Read from MH i2c: 01 07 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: 01 07 00 AC 83 00 00 00 00 00 FF 0F 44 [07:54:11]process_action close_receipt done [07:54:11]requested_data is exist [07:54:11]produce_requested_data [07:54:11]requested_item fm.sn is exist - process it [07:54:11]wFMCommunicate request_size=4 [07:54:11]MH_SAM_APDU [07:54:11]CAPDU: 80 11 00 00 [07:54:11]Write to MH i2c: E2 08 00 AD 83 80 11 00 00 00 00 00 00 AA [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:11]Read from MH i2c: E2 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 17 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 17 00 AD 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F7 [07:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [07:54:11]wFMCommunicate OK [07:54:11]requested_item fd.num is exist - process it [07:54:11]SAM_PROTO_GetFieldsCounters [07:54:11]wFMCommunicate request_size=4 [07:54:11]MH_SAM_APDU [07:54:11]CAPDU: 80 13 00 00 [07:54:11]Write to MH i2c: E2 08 00 AE 83 80 13 00 00 00 00 00 00 AD [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:11]Read from MH i2c: E2 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 62 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 62 00 AE 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 11 26 01 00 0E 04 04 00 AD 00 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 D0 [07:54:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 11 26 01 00 0E 04 04 00 AD 00 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:54:11]wFMCommunicate OK [07:54:11]SAM_PROTO_GetFieldsCounters done [07:54:11]requested_item shift.num is exist - process it [07:54:11]requested_item shift.opened is exist - process it [07:54:11]req_shift_opened [07:54:11]FM_GetShiftState [07:54:11]SAM_PROTO_GetShiftState [07:54:11]wFMCommunicate request_size=4 [07:54:11]MH_SAM_APDU [07:54:11]CAPDU: 80 13 01 00 [07:54:11]Write to MH i2c: E2 08 00 AF 83 80 13 01 00 00 00 00 00 AF [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:11]Read from MH i2c: E2 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 0E 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 0E 00 AF 83 00 09 00 01 99 41 18 67 00 00 00 00 90 00 14 [07:54:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [07:54:11]wFMCommunicate OK [07:54:11]SAM_PROTO_GetShiftState done [07:54:11]FM_GetShiftState done [07:54:11]req_shift_opened done [07:54:11]requested_item shift.open_date is exist - process it [07:54:11]req_shift_open_date [07:54:11]req_shift_open_date done [07:54:11]produce_requested_data done [07:54:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75281,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [07:54:11]process_action_free close_receipt [07:54:11]json_value_free [07:54:11]json_value_free done [07:54:11]process_json_proto returns [07:54:11]Send response to host [07:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75281,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [07:54:11]free response buf [07:54:11]execute_script done [07:54:11]execute_script returns [07:54:11]free content buf [07:54:11]Sock 7.Close socket [07:54:11]Sock 7.Thread stoped [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:48]accept exits with 9 [07:56:48]New connection [07:56:48]New thread 3067321700 created [07:56:48]Thread 3067465060 joined [07:56:48]Waiting for new connection... [07:56:48] Sock 9.Parse request [07:56:48]Sock 9.Check first char [07:56:48]Sock 9.First char is OK [07:56:48]request: POST /json_proto HTTP/1.0 [07:56:48]Method: POST [07:56:48]URL: /json_proto [07:56:48]Method is POST - this is cgi request [07:56:48]url: /json_proto [07:56:48]query_string will be loaded in cgi processing [07:56:48]execute_cgi json_proto POST (null) [07:56:48]execute_cgi path=json_proto method=POST [07:56:48]POST find Content-Length [07:56:48]Host: 172.17.44.196:8080 [07:56:48]Content-Length: 678 [07:56:48]Content-Type: application/json [07:56:48] [07:56:48]POST finish read [07:56:48]Found Content-Length = 678 [07:56:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:56:48]execute_script... [07:56: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)1965179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:56:48]POST & json_proto [07:56:48]process_json_proto [07:56:48]json parsed OK: [07:56:48]protocol is kg_v1.0 [07:56:48]action value=close_receipt [07:56:48]process_action close_receipt [07:56:48]cmd_close_receipt [07:56:48]MH_GetDate [07:56:48]Write to MH i2c: F0 00 00 B0 83 22 [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: F0 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: F0 09 00 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: F0 09 00 B0 83 00 47 AC 18 67 E7 19 F8 65 FA [07:56:48]GetLastDocTimeStamp 1729670054 [07:56:48]current date 1729670215 [07:56:48]FM_GetShiftState [07:56:48]SAM_PROTO_GetShiftState [07:56:48]wFMCommunicate request_size=4 [07:56:48]MH_SAM_APDU [07:56:48]CAPDU: 80 13 01 00 [07:56:48]Write to MH i2c: E2 08 00 B1 83 80 13 01 00 00 00 00 00 B1 [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:48]Read from MH i2c: E2 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: E2 0E 00 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: E2 0E 00 B1 83 00 09 00 01 99 41 18 67 00 00 00 00 90 00 16 [07:56:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [07:56:48]wFMCommunicate OK [07:56:48]SAM_PROTO_GetShiftState done [07:56:48]FM_GetShiftState done [07:56:48]opened in 1729642905 [07:56:48]opened+sec_in_day 1729729305 [07:56:48]quantity*price = 50041 [07:56:48]sum+1 = 50042 [07:56:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 15 23.10.2024 07:56 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75282 ФПД: 59822273056527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075655&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75282&fm=59822273056527&tin=02508201610067®Number=0000000000161154&sum=50000 [07:56:49]StoreToDocumentArchive [07:56:49]shift 173 fd 75282 [07:56:49]save to /storage/0173/doc_00075282 [07:56:49]save last doc name /storage/0173/doc_00075282 to /storage/kkm_last_doc_name [07:56:49]save OK [07:56:49]Clear old archive folders... [07:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:49]tlvbuf is 00E9B820 [07:56:49]SAM_PROTO_ClearQueue [07:56:49]wFMCommunicate request_size=4 [07:56:49]MH_SAM_APDU [07:56:49]CAPDU: 80 09 00 00 [07:56:49]Write to MH i2c: E2 08 00 BE 83 80 09 00 00 00 00 00 00 B3 [07:56:49]Write i2c OK [07:56:49]MH_I2C_Read... [07:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:49]Read from MH i2c: E2 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 03 00 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 03 00 BE 83 00 90 00 B5 [07:56:49]RAPDU: 90 00 [07:56:49]wFMCommunicate OK [07:56:49]SAM_PROTO_ClearQueue done [07:56:49]KKMCreateOFDPacket [07:56:49]OFDProtocolAddRootSTLVToBuf [07:56:49]FM_MakeSignedData [07:56:49]FM_MakeSignedData [07:56:49]SAM_PROTO_SignData [07:56:49]wFMCommunicate request_size=4 [07:56:49]MH_SAM_APDU [07:56:49]CAPDU: 80 0D 01 02 [07:56:49]Write to MH i2c: E2 08 00 BF 83 80 0D 01 02 00 00 00 00 BB [07:56:49]Write i2c OK [07:56:49]MH_I2C_Read... [07:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:49]Read from MH i2c: E2 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 03 00 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 03 00 BF 83 00 90 00 B6 [07:56:49]RAPDU: 90 00 [07:56:49]wFMCommunicate OK [07:56:49]wFMCommunicate request_size=255 [07:56:49]MH_SAM_APDU [07:56: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 0F 00 00 00 F4 03 04 00 47 AC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 26 01 00 35 04 06 00 36 [07:56:49]Write to MH i2c: E2 02 01 C0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 0F 00 00 00 F4 03 04 00 47 AC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 26 01 00 35 04 06 00 36 00 00 DA [07:56:49]Write i2c OK [07:56:49]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 03 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 03 00 C0 83 00 90 00 B7 [07:56:50]RAPDU: 90 00 [07:56:50]wFMCommunicate OK [07:56:50]wFMCommunicate request_size=10 [07:56:50]MH_SAM_APDU [07:56:50]CAPDU: 80 0D 02 02 05 68 75 55 CF 0F [07:56:50]Write to MH i2c: E2 0D 00 C1 83 80 0D 02 02 05 00 68 75 55 CF 0F 00 00 D8 [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 03 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 03 00 C1 83 00 90 00 B8 [07:56:50]RAPDU: 90 00 [07:56:50]wFMCommunicate OK [07:56:50]wFMCommunicate request_size=4 [07:56:50]MH_SAM_APDU [07:56:50]CAPDU: 80 0D 03 02 [07:56:50]Write to MH i2c: E2 08 00 C2 83 80 0D 03 02 00 00 00 00 C0 [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 0B 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 0B 00 C2 83 00 F9 1C 0C 74 7B 28 A6 B2 90 00 51 [07:56:50]RAPDU: F9 1C 0C 74 7B 28 A6 B2 90 00 [07:56:50]wFMCommunicate OK [07:56:50]SAM_PROTO_SignData done [07:56:50]FM_MakeSignedData done [07:56:50]CreateOFDProtocolMessage [07:56:50]wFMCommunicate request_size=4 [07:56:50]MH_SAM_APDU [07:56:50]CAPDU: 80 11 00 00 [07:56:50]Write to MH i2c: E2 08 00 C3 83 80 11 00 00 00 00 00 00 C0 [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 17 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 17 00 C3 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0D [07:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [07:56:50]wFMCommunicate OK [07:56:50]CreateOFDProtocolMessage done [07:56:50]OFDSenderStorePacket 75282 [07:56:50]StoreOFDPacket docnum=75282 [07:56:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4E 2C 07 01 5A D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 0F 00 00 00 F4 03 04 00 47 AC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 26 01 00 35 04 06 00 36 68 75 55 CF 0F F9 1C 0C 74 7B 28 A6 B2 [07:56:50]CheckFolder [07:56:50]dirname=/storage/ofd_packets [07:56:50]CheckFolder done [07:56:50]ProducePacketName [07:56:50]name=ofd_packets/00075282 [07:56:50]NVStorageSaveData ofd_packets/00075282 [07:56:50]File name is /storage/ofd_packets/00075282 [07:56:50]Write 301 bytes [07:56:50]NVStorageSaveData done [07:56:50]OFDSenderStorePacket done [07:56:50]KKMCreateOFDPacket done [07:56:50]NVStorageSaveData kkm_last_timestamp [07:56:50]File name is /storage/kkm_last_timestamp [07:56:50]Write 4 bytes [07:56:50]NVStorageSaveData done [07:56:50]ExternCall_PrintAddStr [07:56:50]wPrintStart [07:56:50]Write to MH i2c: 01 00 00 C4 83 47 [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: 01 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: 01 07 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: 01 07 00 C4 83 00 00 00 00 00 FF 0F 5C [07:56:50]RasterBufferAndPrint [07:56:50]line Счет N : (1)1965179 [07:56:50]line ИНН: 02508201610067 [07:56:50]line Контрольно-Кассовый Чек [07:56:50]line ПРОДАЖА [07:56:50]line ТРК (МРК, ГНК) : 33 [07:56:50]line Товар: 2710124130 [07:56:50]line Аи-92-К-5 [07:56:50]line 7.480 * 66.90 [07:56:50]line = 500.41 [07:56:50]line НДС 12% НСП 1% [07:56:50]line > о реализуемом товаре [07:56:50]line ОКРУГЛЕНИЕ: -0.41 [07:56:50]line ИТОГО: 500.00 [07:56:50]line Внесено: 500.00 [07:56:50]line СДАЧА: 0.00 [07:56:50]line НСП 1% : 4.43 [07:56:50]line НДС 12% : 53.14 [07:56:50]line Наличными: 500.00 [07:56:50]line Безнал.: 0.00 [07:56:50]line Место: АЗС № 133 "Партнер Нефть" [07:56:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [07:56:50]line СНО: Общий режим [07:56:50]line Чек 15 23.10.2024 07:56 [07:56:50]line Смена: 173 ФФД: 1.0 [07:56:50]line ЗНМ: 0300000020 [07:56:50]line РНМ: 0000000000161154 [07:56:50]line Версия ККМ: v1.0 [07:56:50]line ФМ: 0000000000963323 [07:56:50]line ФД: 75282 [07:56:50]line ФПД: 59822273056527 [07:56:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075655&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75282&fm=59822273056527&tin=02508201610067®Number=0000000000161154&sum=50000 [07:56:50]OFD Sender: Processing packet 75282 [packets to send 15, broken 14] [07:56:50]ProducePacketName [07:56:50]name=ofd_packets/00075282 [07:56:50]OFD Sender: To server: pG, [07:56:50]CommunicateWithHost lk.salyk.kg:30040 [07:56:50]ConnectInit lk.salyk.kg [07:56:50]written 0, free lines is 4095 [07:56:50]Connected sock=11 [07:56:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4E 2C 07 01 5A D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 0F 00 00 00 F4 03 04 00 47 AC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 26 01 00 35 04 06 00 36 68 75 55 CF 0F F9 1C 0C 74 7B 28 A6 B2 [07:56:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AA EF 47 00 29 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 26 01 00 F4 03 04 00 22 55 18 67 B6 04 01 00 00 8D 14 12 E7 26 59 10 F5 [07:56:50]CommunicateWithHost err = 0 [07:56:50]CheckOFDResponse [07:56:50]1017 (14) - 77093643461234 [07:56:50]1041 (16) - 0000000000963323 [07:56:50]1040 (4) - 75282 [07:56:50]1012 (4) - 23.10.2024 01:45 [07:56:50]1206 (1) - 0 [07:56:50]OFD Sender: Remove packet 75282 [07:56:50]ProducePacketName [07:56:50]name=ofd_packets/00075282 [07:56:50]NVStorageDeleteData [07:56:51]Write to MH i2c: 01 00 00 EE 83 71 [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: 01 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: 01 07 00 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: 01 07 00 EE 83 00 00 00 00 00 B6 0C 3A [07:56:51]RasterBufferAndPrint [07:56:51]line [07:56:51]line [07:56:51]line [07:56:51]line [07:56:51]line [07:56:51]written 0, free lines is 3258 [07:56:51]MH_Cut [07:56:51]Write to MH i2c: D1 01 00 F5 83 01 4A [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: D1 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: D1 01 00 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: D1 01 00 F5 83 00 49 [07:56:51]Write to MH i2c: 01 00 00 F6 83 79 [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:51]OFD Sender: No OFD packet to send [07:56:52]*** Cut start [07:56:52]*** Partial cut [07:56:52]*** CUTSNS_PIN = 1 [07:56:52]*** CUTSNS_PIN = 0 [07:56:52]*** Brake cut motor [07:56:52]Read from MH i2c: 01 [07:56:52]MH_I2C_Read... [07:56:52]*** Stop cut motor [07:56:52]*** Cut end [07:56:52]Read from MH i2c: 01 07 00 [07:56:52]MH_I2C_Read... [07:56:52]Read from MH i2c: 01 07 00 F6 83 00 00 00 00 00 FF 0F 8E [07:56:52]process_action close_receipt done [07:56:52]requested_data is exist [07:56:52]produce_requested_data [07:56:52]requested_item fm.sn is exist - process it [07:56:52]wFMCommunicate request_size=4 [07:56:52]MH_SAM_APDU [07:56:52]CAPDU: 80 11 00 00 [07:56:52]Write to MH i2c: E2 08 00 F7 83 80 11 00 00 00 00 00 00 F4 [07:56:52]Write i2c OK [07:56:52]MH_I2C_Read... [07:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:52]Read from MH i2c: E2 [07:56:52]MH_I2C_Read... [07:56:52]Read from MH i2c: E2 17 00 [07:56:52]MH_I2C_Read... [07:56:52]Read from MH i2c: E2 17 00 F7 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 41 [07:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [07:56:52]wFMCommunicate OK [07:56:52]requested_item fd.num is exist - process it [07:56:52]SAM_PROTO_GetFieldsCounters [07:56:52]wFMCommunicate request_size=4 [07:56:52]MH_SAM_APDU [07:56:52]CAPDU: 80 13 00 00 [07:56:52]Write to MH i2c: E2 08 00 F8 83 80 13 00 00 00 00 00 00 F7 [07:56:52]Write i2c OK [07:56:52]MH_I2C_Read... [07:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:52]Read from MH i2c: E2 [07:56:52]MH_I2C_Read... [07:56:52]Read from MH i2c: E2 62 00 [07:56:52]MH_I2C_Read... [07:56:52]Read from MH i2c: E2 62 00 F8 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 12 26 01 00 0E 04 04 00 AD 00 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 1E [07:56:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 12 26 01 00 0E 04 04 00 AD 00 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:56:52]wFMCommunicate OK [07:56:52]SAM_PROTO_GetFieldsCounters done [07:56:52]requested_item shift.num is exist - process it [07:56:52]requested_item shift.opened is exist - process it [07:56:52]req_shift_opened [07:56:52]FM_GetShiftState [07:56:52]SAM_PROTO_GetShiftState [07:56:52]wFMCommunicate request_size=4 [07:56:52]MH_SAM_APDU [07:56:52]CAPDU: 80 13 01 00 [07:56:52]Write to MH i2c: E2 08 00 F9 83 80 13 01 00 00 00 00 00 F9 [07:56:52]Write i2c OK [07:56:52]MH_I2C_Read... [07:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:52]Read from MH i2c: E2 [07:56:52]MH_I2C_Read... [07:56:52]Read from MH i2c: E2 0E 00 [07:56:52]MH_I2C_Read... [07:56:52]Read from MH i2c: E2 0E 00 F9 83 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5E [07:56:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [07:56:52]wFMCommunicate OK [07:56:52]SAM_PROTO_GetShiftState done [07:56:52]FM_GetShiftState done [07:56:52]req_shift_opened done [07:56:52]requested_item shift.open_date is exist - process it [07:56:52]req_shift_open_date [07:56:52]req_shift_open_date done [07:56:52]produce_requested_data done [07:56:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75282,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [07:56:52]process_action_free close_receipt [07:56:52]json_value_free [07:56:52]json_value_free done [07:56:52]process_json_proto returns [07:56:52]Send response to host [07:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75282,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [07:56:52]free response buf [07:56:52]execute_script done [07:56:52]execute_script returns [07:56:52]free content buf [07:56:52]Sock 9.Close socket [07:56:52]Sock 9.Thread stoped [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:39]accept exits with 7 [08:02:39]New connection [08:02:39]New thread 3067465060 created [08:02:39]Thread 3067321700 joined [08:02:39]Waiting for new connection... [08:02:39] Sock 7.Parse request [08:02:39]Sock 7.Check first char [08:02:39]Sock 7.First char is OK [08:02:39]request: POST /json_proto HTTP/1.0 [08:02:39]Method: POST [08:02:39]URL: /json_proto [08:02:39]Method is POST - this is cgi request [08:02:39]url: /json_proto [08:02:39]query_string will be loaded in cgi processing [08:02:39]execute_cgi json_proto POST (null) [08:02:39]execute_cgi path=json_proto method=POST [08:02:39]POST find Content-Length [08:02:39]Host: 172.17.44.196:8080 [08:02:39]Content-Length: 678 [08:02:39]Content-Type: application/json [08:02:39] [08:02:39]POST finish read [08:02:39]Found Content-Length = 678 [08:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:39]execute_script... [08:02:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:39]POST & json_proto [08:02:39]process_json_proto [08:02:39]json parsed OK: [08:02:39]protocol is kg_v1.0 [08:02:39]action value=close_receipt [08:02:39]process_action close_receipt [08:02:39]cmd_close_receipt [08:02:39]MH_GetDate [08:02:39]Write to MH i2c: F0 00 00 FA 83 6C [08:02:39]Write i2c OK [08:02:39]MH_I2C_Read... [08:02:39]Read from MH i2c: F0 [08:02:39]MH_I2C_Read... [08:02:39]Read from MH i2c: F0 09 00 [08:02:39]MH_I2C_Read... [08:02:39]Read from MH i2c: F0 09 00 FA 83 00 A6 AD 18 67 E7 19 F8 65 A4 [08:02:39]GetLastDocTimeStamp 1729670215 [08:02:39]current date 1729670566 [08:02:39]FM_GetShiftState [08:02:39]SAM_PROTO_GetShiftState [08:02:39]wFMCommunicate request_size=4 [08:02:39]MH_SAM_APDU [08:02:39]CAPDU: 80 13 01 00 [08:02:39]Write to MH i2c: E2 08 00 FB 83 80 13 01 00 00 00 00 00 FB [08:02:39]Write i2c OK [08:02:39]MH_I2C_Read... [08:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:39]Read from MH i2c: E2 [08:02:39]MH_I2C_Read... [08:02:39]Read from MH i2c: E2 0E 00 [08:02:39]MH_I2C_Read... [08:02:39]Read from MH i2c: E2 0E 00 FB 83 00 09 00 01 99 41 18 67 00 00 00 00 90 00 60 [08:02:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:02:39]wFMCommunicate OK [08:02:39]SAM_PROTO_GetShiftState done [08:02:39]FM_GetShiftState done [08:02:39]opened in 1729642905 [08:02:39]opened+sec_in_day 1729729305 [08:02:39]quantity*price = 60009 [08:02:39]sum+1 = 60010 [08:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 16 23.10.2024 08:02 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75283 ФПД: 186400993610507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080246&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75283&fm=186400993610507&tin=02508201610067®Number=0000000000161154&sum=60000 [08:02:41]StoreToDocumentArchive [08:02:41]shift 173 fd 75283 [08:02:41]save to /storage/0173/doc_00075283 [08:02:41]save last doc name /storage/0173/doc_00075283 to /storage/kkm_last_doc_name [08:02:41]save OK [08:02:41]Clear old archive folders... [08:02:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:41]tlvbuf is 00D95EB0 [08:02:41]SAM_PROTO_ClearQueue [08:02:41]wFMCommunicate request_size=4 [08:02:41]MH_SAM_APDU [08:02:41]CAPDU: 80 09 00 00 [08:02:41]Write to MH i2c: E2 08 00 08 84 80 09 00 00 00 00 00 00 FE [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:41]Read from MH i2c: E2 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 03 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 03 00 08 84 00 90 00 00 [08:02:41]RAPDU: 90 00 [08:02:41]wFMCommunicate OK [08:02:41]SAM_PROTO_ClearQueue done [08:02:41]KKMCreateOFDPacket [08:02:41]OFDProtocolAddRootSTLVToBuf [08:02:41]FM_MakeSignedData [08:02:41]FM_MakeSignedData [08:02:41]SAM_PROTO_SignData [08:02:41]wFMCommunicate request_size=4 [08:02:41]MH_SAM_APDU [08:02:41]CAPDU: 80 0D 01 02 [08:02:41]Write to MH i2c: E2 08 00 09 84 80 0D 01 02 00 00 00 00 06 [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:41]Read from MH i2c: E2 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 03 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 03 00 09 84 00 90 00 01 [08:02:41]RAPDU: 90 00 [08:02:41]wFMCommunicate OK [08:02:41]wFMCommunicate request_size=255 [08:02:41]MH_SAM_APDU [08: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A6 AD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 26 01 00 35 04 06 00 A9 [08:02:41]Write to MH i2c: E2 02 01 0A 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A6 AD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 26 01 00 35 04 06 00 A9 00 00 D7 [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:41]Read from MH i2c: E2 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 03 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 03 00 0A 84 00 90 00 02 [08:02:41]RAPDU: 90 00 [08:02:41]wFMCommunicate OK [08:02:41]wFMCommunicate request_size=10 [08:02:41]MH_SAM_APDU [08:02:41]CAPDU: 80 0D 02 02 05 87 DD 02 8B 0B [08:02:41]Write to MH i2c: E2 0D 00 0B 84 80 0D 02 02 05 00 87 DD 02 8B 0B 00 00 0F [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:41]Read from MH i2c: E2 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 03 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 03 00 0B 84 00 90 00 03 [08:02:41]RAPDU: 90 00 [08:02:41]wFMCommunicate OK [08:02:41]wFMCommunicate request_size=4 [08:02:41]MH_SAM_APDU [08:02:41]CAPDU: 80 0D 03 02 [08:02:41]Write to MH i2c: E2 08 00 0C 84 80 0D 03 02 00 00 00 00 0B [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:41]Read from MH i2c: E2 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 0B 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 0B 00 0C 84 00 9D 4E 19 8B 8E 0F CB DF 90 00 E2 [08:02:41]RAPDU: 9D 4E 19 8B 8E 0F CB DF 90 00 [08:02:41]wFMCommunicate OK [08:02:41]SAM_PROTO_SignData done [08:02:41]FM_MakeSignedData done [08:02:41]CreateOFDProtocolMessage [08:02:41]wFMCommunicate request_size=4 [08:02:41]MH_SAM_APDU [08:02:41]CAPDU: 80 11 00 00 [08:02:41]Write to MH i2c: E2 08 00 0D 84 80 11 00 00 00 00 00 00 0B [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:41]Read from MH i2c: E2 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 17 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: E2 17 00 0D 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 58 [08:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:02:41]wFMCommunicate OK [08:02:41]CreateOFDProtocolMessage done [08:02:41]OFDSenderStorePacket 75283 [08:02:41]StoreOFDPacket docnum=75283 [08:02:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 52 C5 07 01 7E 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A6 AD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 26 01 00 35 04 06 00 A9 87 DD 02 8B 0B 9D 4E 19 8B 8E 0F CB DF [08:02:41]CheckFolder [08:02:41]dirname=/storage/ofd_packets [08:02:41]CheckFolder done [08:02:41]ProducePacketName [08:02:41]name=ofd_packets/00075283 [08:02:41]NVStorageSaveData ofd_packets/00075283 [08:02:41]File name is /storage/ofd_packets/00075283 [08:02:41]Write 301 bytes [08:02:41]NVStorageSaveData done [08:02:41]OFDSenderStorePacket done [08:02:41]KKMCreateOFDPacket done [08:02:41]NVStorageSaveData kkm_last_timestamp [08:02:41]File name is /storage/kkm_last_timestamp [08:02:41]Write 4 bytes [08:02:41]NVStorageSaveData done [08:02:41]ExternCall_PrintAddStr [08:02:41]wPrintStart [08:02:41]Write to MH i2c: 01 00 00 0E 84 92 [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: 01 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: 01 07 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: 01 07 00 0E 84 00 00 00 00 00 FF 0F A7 [08:02:41]RasterBufferAndPrint [08:02:41]line Счет N : (1)1965185 [08:02:41]line ИНН: 02508201610067 [08:02:41]line Контрольно-Кассовый Чек [08:02:41]line ПРОДАЖА [08:02:41]line ТРК (МРК, ГНК) : 53 [08:02:41]line Товар: 2710124130 [08:02:41]line Аи-92-К-5 [08:02:41]line 8.970 * 66.90 [08:02:41]line = 600.09 [08:02:41]line НДС 12% НСП 1% [08:02:41]line > о реализуемом товаре [08:02:41]line ОКРУГЛЕНИЕ: -0.09 [08:02:41]line ИТОГО: 600.00 [08:02:41]line Внесено: 600.00 [08:02:41]line СДАЧА: 0.00 [08:02:41]line НСП 1% : 5.31 [08:02:41]line НДС 12% : 63.73 [08:02:41]line Наличными: 600.00 [08:02:41]line Безнал.: 0.00 [08:02:41]line Место: АЗС № 133 "Партнер Нефть" [08:02:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:02:41]line СНО: Общий режим [08:02:41]line Чек 16 23.10.2024 08:02 [08:02:41]line Смена: 173 ФФД: 1.0 [08:02:41]line ЗНМ: 0300000020 [08:02:41]line РНМ: 0000000000161154 [08:02:41]line Версия ККМ: v1.0 [08:02:41]line ФМ: 0000000000963323 [08:02:41]line ФД: 75283 [08:02:41]line ФПД: 186400993610507 [08:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080246&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75283&fm=186400993610507&tin=02508201610067®Number=0000000000161154&sum=60000 [08:02:41]OFD Sender: Processing packet 75283 [packets to send 15, broken 14] [08:02:41]ProducePacketName [08:02:41]name=ofd_packets/00075283 [08:02:41]OFD Sender: To server: pG, [08:02:41]CommunicateWithHost lk.salyk.kg:30040 [08:02:41]ConnectInit lk.salyk.kg [08:02:41]written 0, free lines is 4095 [08:02:42]Connected sock=10 [08:02:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 52 C5 07 01 7E 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A6 AD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 26 01 00 35 04 06 00 A9 87 DD 02 8B 0B 9D 4E 19 8B 8E 0F CB DF [08:02:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 ED E9 47 00 DD 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 26 01 00 F4 03 04 00 82 56 18 67 B6 04 01 00 00 3C 84 43 A8 51 1E C9 0E [08:02:42]CommunicateWithHost err = 0 [08:02:42]CheckOFDResponse [08:02:42]1017 (14) - 77093643461234 [08:02:42]1041 (16) - 0000000000963323 [08:02:42]1040 (4) - 75283 [08:02:42]1012 (4) - 23.10.2024 01:50 [08:02:42]1206 (1) - 0 [08:02:42]OFD Sender: Remove packet 75283 [08:02:42]ProducePacketName [08:02:42]name=ofd_packets/00075283 [08:02:42]NVStorageDeleteData [08:02:42]Write to MH i2c: 01 00 00 38 84 BC [08:02:42]Write i2c OK [08:02:42]MH_I2C_Read... [08:02:42]Read from MH i2c: 01 [08:02:42]MH_I2C_Read... [08:02:42]Read from MH i2c: 01 07 00 [08:02:42]MH_I2C_Read... [08:02:42]Read from MH i2c: 01 07 00 38 84 00 00 00 00 00 B8 0C 87 [08:02:42]RasterBufferAndPrint [08:02:42]line [08:02:42]line [08:02:42]line [08:02:42]line [08:02:42]line [08:02:42]written 0, free lines is 3263 [08:02:42]MH_Cut [08:02:42]Write to MH i2c: D1 01 00 3F 84 01 95 [08:02:42]Write i2c OK [08:02:42]MH_I2C_Read... [08:02:42]Read from MH i2c: D1 [08:02:42]MH_I2C_Read... [08:02:42]Read from MH i2c: D1 01 00 [08:02:42]MH_I2C_Read... [08:02:42]Read from MH i2c: D1 01 00 3F 84 00 94 [08:02:42]Write to MH i2c: 01 00 00 40 84 C4 [08:02:42]Write i2c OK [08:02:42]MH_I2C_Read... [08:02:42]OFD Sender: No OFD packet to send [08:02:43]*** Cut start [08:02:43]*** Partial cut [08:02:43]*** CUTSNS_PIN = 1 [08:02:43]*** CUTSNS_PIN = 0 [08:02:43]*** Brake cut motor [08:02:43]Read from MH i2c: 01 [08:02:43]MH_I2C_Read... [08:02:43]*** Stop cut motor [08:02:43]*** Cut end [08:02:43]Read from MH i2c: 01 07 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: 01 07 00 40 84 00 00 00 00 00 FF 0F D9 [08:02:43]process_action close_receipt done [08:02:43]requested_data is exist [08:02:43]produce_requested_data [08:02:43]requested_item fm.sn is exist - process it [08:02:43]wFMCommunicate request_size=4 [08:02:43]MH_SAM_APDU [08:02:43]CAPDU: 80 11 00 00 [08:02:43]Write to MH i2c: E2 08 00 41 84 80 11 00 00 00 00 00 00 3F [08:02:43]Write i2c OK [08:02:43]MH_I2C_Read... [08:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:44]Read from MH i2c: E2 [08:02:44]MH_I2C_Read... [08:02:44]Read from MH i2c: E2 17 00 [08:02:44]MH_I2C_Read... [08:02:44]Read from MH i2c: E2 17 00 41 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8C [08:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:02:44]wFMCommunicate OK [08:02:44]requested_item fd.num is exist - process it [08:02:44]SAM_PROTO_GetFieldsCounters [08:02:44]wFMCommunicate request_size=4 [08:02:44]MH_SAM_APDU [08:02:44]CAPDU: 80 13 00 00 [08:02:44]Write to MH i2c: E2 08 00 42 84 80 13 00 00 00 00 00 00 42 [08:02:44]Write i2c OK [08:02:44]MH_I2C_Read... [08:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:44]Read from MH i2c: E2 [08:02:44]MH_I2C_Read... [08:02:44]Read from MH i2c: E2 62 00 [08:02:44]MH_I2C_Read... [08:02:44]Read from MH i2c: E2 62 00 42 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 13 26 01 00 0E 04 04 00 AD 00 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 6D [08:02:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 13 26 01 00 0E 04 04 00 AD 00 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:02:44]wFMCommunicate OK [08:02:44]SAM_PROTO_GetFieldsCounters done [08:02:44]requested_item shift.num is exist - process it [08:02:44]requested_item shift.opened is exist - process it [08:02:44]req_shift_opened [08:02:44]FM_GetShiftState [08:02:44]SAM_PROTO_GetShiftState [08:02:44]wFMCommunicate request_size=4 [08:02:44]MH_SAM_APDU [08:02:44]CAPDU: 80 13 01 00 [08:02:44]Write to MH i2c: E2 08 00 43 84 80 13 01 00 00 00 00 00 44 [08:02:44]Write i2c OK [08:02:44]MH_I2C_Read... [08:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:44]Read from MH i2c: E2 [08:02:44]MH_I2C_Read... [08:02:44]Read from MH i2c: E2 0E 00 [08:02:44]MH_I2C_Read... [08:02:44]Read from MH i2c: E2 0E 00 43 84 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A9 [08:02:44]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:02:44]wFMCommunicate OK [08:02:44]SAM_PROTO_GetShiftState done [08:02:44]FM_GetShiftState done [08:02:44]req_shift_opened done [08:02:44]requested_item shift.open_date is exist - process it [08:02:44]req_shift_open_date [08:02:44]req_shift_open_date done [08:02:44]produce_requested_data done [08:02:44]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75283,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [08:02:44]process_action_free close_receipt [08:02:44]json_value_free [08:02:44]json_value_free done [08:02:44]process_json_proto returns [08:02:44]Send response to host [08:02:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75283,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [08:02:44]free response buf [08:02:44]execute_script done [08:02:44]execute_script returns [08:02:44]free content buf [08:02:44]Sock 7.Close socket [08:02:44]Sock 7.Thread stoped [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:18]accept exits with 9 [08:20:18]New connection [08:20:18]New thread 3067321700 created [08:20:18]Thread 3067465060 joined [08:20:18]Waiting for new connection... [08:20:18] Sock 9.Parse request [08:20:18]Sock 9.Check first char [08:20:18]Sock 9.First char is OK [08:20:18]request: POST /json_proto HTTP/1.0 [08:20:18]Method: POST [08:20:18]URL: /json_proto [08:20:18]Method is POST - this is cgi request [08:20:18]url: /json_proto [08:20:18]query_string will be loaded in cgi processing [08:20:18]execute_cgi json_proto POST (null) [08:20:18]execute_cgi path=json_proto method=POST [08:20:18]POST find Content-Length [08:20:18]Host: 172.17.44.196:8080 [08:20:18]Content-Length: 609 [08:20:18]Content-Type: application/json [08:20:18] [08:20:18]POST finish read [08:20:18]Found Content-Length = 609 [08:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273198", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:18]execute_script... [08:20:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273198", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:18]POST & json_proto [08:20:18]process_json_proto [08:20:18]json parsed OK: [08:20:18]protocol is kg_v1.0 [08:20:18]action value=close_receipt [08:20:18]process_action close_receipt [08:20:18]cmd_close_receipt [08:20:18]MH_GetDate [08:20:18]Write to MH i2c: F0 00 00 44 84 B7 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: F0 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: F0 09 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: F0 09 00 44 84 00 C9 B1 18 67 E7 19 F8 65 16 [08:20:18]GetLastDocTimeStamp 1729670566 [08:20:18]current date 1729671625 [08:20:18]FM_GetShiftState [08:20:18]SAM_PROTO_GetShiftState [08:20:18]wFMCommunicate request_size=4 [08:20:18]MH_SAM_APDU [08:20:18]CAPDU: 80 13 01 00 [08:20:18]Write to MH i2c: E2 08 00 45 84 80 13 01 00 00 00 00 00 46 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:18]Read from MH i2c: E2 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 0E 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: E2 0E 00 45 84 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AB [08:20:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:20:18]wFMCommunicate OK [08:20:18]SAM_PROTO_GetShiftState done [08:20:18]FM_GetShiftState done [08:20:18]opened in 1729642905 [08:20:18]opened+sec_in_day 1729729305 [08:20:18]quantity*price = 13000 [08:20:18]sum+1 = 13001 [08:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 17 23.10.2024 08:20 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75284 ФПД: 128849905508632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082025&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75284&fm=128849905508632&tin=02508201610067®Number=0000000000161154&sum=13000 0 [08:20:19]StoreToDocumentArchive [08:20:19]shift 173 fd 75284 [08:20:19]save to /storage/0173/doc_00075284 [08:20:19]save last doc name /storage/0173/doc_00075284 to /storage/kkm_last_doc_name [08:20:19]save OK [08:20:19]Clear old archive folders... [08:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=261 [08:20:19]tlvbuf is 00E9B8D0 [08:20:19]SAM_PROTO_ClearQueue [08:20:19]wFMCommunicate request_size=4 [08:20:19]MH_SAM_APDU [08:20:19]CAPDU: 80 09 00 00 [08:20:19]Write to MH i2c: E2 08 00 52 84 80 09 00 00 00 00 00 00 48 [08:20:19]Write i2c OK [08:20:19]MH_I2C_Read... [08:20:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 03 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 03 00 52 84 00 90 00 4A [08:20:20]RAPDU: 90 00 [08:20:20]wFMCommunicate OK [08:20:20]SAM_PROTO_ClearQueue done [08:20:20]KKMCreateOFDPacket [08:20:20]OFDProtocolAddRootSTLVToBuf [08:20:20]FM_MakeSignedData [08:20:20]FM_MakeSignedData [08:20:20]SAM_PROTO_SignData [08:20:20]wFMCommunicate request_size=4 [08:20:20]MH_SAM_APDU [08:20:20]CAPDU: 80 0D 01 02 [08:20:20]Write to MH i2c: E2 08 00 53 84 80 0D 01 02 00 00 00 00 50 [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 03 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 03 00 53 84 00 90 00 4B [08:20:20]RAPDU: 90 00 [08:20:20]wFMCommunicate OK [08:20:20]wFMCommunicate request_size=255 [08:20:20]MH_SAM_APDU [08:20:20]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C9 B1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 [08:20:20]Write to MH i2c: E2 02 01 54 84 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C9 B1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 A2 [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 03 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 03 00 54 84 00 90 00 4C [08:20:20]RAPDU: 90 00 [08:20:20]wFMCommunicate OK [08:20:20]wFMCommunicate request_size=20 [08:20:20]MH_SAM_APDU [08:20:20]CAPDU: 80 0D 02 02 0F 00 14 26 01 00 35 04 06 00 75 30 34 D8 E1 18 [08:20:20]Write to MH i2c: E2 17 00 55 84 80 0D 02 02 0F 00 00 14 26 01 00 35 04 06 00 75 30 34 D8 E1 18 00 00 95 [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 03 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 03 00 55 84 00 90 00 4D [08:20:20]RAPDU: 90 00 [08:20:20]wFMCommunicate OK [08:20:20]wFMCommunicate request_size=4 [08:20:20]MH_SAM_APDU [08:20:20]CAPDU: 80 0D 03 02 [08:20:20]Write to MH i2c: E2 08 00 56 84 80 0D 03 02 00 00 00 00 55 [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 0B 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 0B 00 56 84 00 4A B8 72 2E C0 93 4B 48 90 00 DE [08:20:20]RAPDU: 4A B8 72 2E C0 93 4B 48 90 00 [08:20:20]wFMCommunicate OK [08:20:20]SAM_PROTO_SignData done [08:20:20]FM_MakeSignedData done [08:20:20]CreateOFDProtocolMessage [08:20:20]wFMCommunicate request_size=4 [08:20:20]MH_SAM_APDU [08:20:20]CAPDU: 80 11 00 00 [08:20:20]Write to MH i2c: E2 08 00 57 84 80 11 00 00 00 00 00 00 55 [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 17 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 17 00 57 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A2 [08:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:20:20]wFMCommunicate OK [08:20:20]CreateOFDProtocolMessage done [08:20:20]OFDSenderStorePacket 75284 [08:20:20]StoreOFDPacket docnum=75284 [08:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 19 01 00 00 B6 C2 11 01 4B 71 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C9 B1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 26 01 00 35 04 06 00 75 30 34 D8 E1 18 4A B8 72 2E C0 93 4B 48 [08:20:20]CheckFolder [08:20:20]dirname=/storage/ofd_packets [08:20:20]CheckFolder done [08:20:20]ProducePacketName [08:20:20]name=ofd_packets/00075284 [08:20:20]NVStorageSaveData ofd_packets/00075284 [08:20:20]File name is /storage/ofd_packets/00075284 [08:20:20]Write 311 bytes [08:20:20]NVStorageSaveData done [08:20:20]OFDSenderStorePacket done [08:20:20]KKMCreateOFDPacket done [08:20:20]NVStorageSaveData kkm_last_timestamp [08:20:20]File name is /storage/kkm_last_timestamp [08:20:20]Write 4 bytes [08:20:20]NVStorageSaveData done [08:20:20]ExternCall_PrintAddStr [08:20:20]wPrintStart [08:20:20]Write to MH i2c: 01 00 00 58 84 DC [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: 01 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: 01 07 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: 01 07 00 58 84 00 00 00 00 00 FF 0F F1 [08:20:20]RasterBufferAndPrint [08:20:20]line Счет N : (3)273198 [08:20:20]line ИНН: 02508201610067 [08:20:20]line Контрольно-Кассовый Чек [08:20:20]line ПРОДАЖА [08:20:20]line Товар: 48741156 [08:20:20]line Сигареты LD Blue [08:20:20]line 1.000 * 130.00 [08:20:20]line = 130.00 [08:20:20]line НДС 12% НСП 1% [08:20:20]line > о реализуемом товаре [08:20:20]line ИТОГО: 130.00 [08:20:20]line НСП 1% : 1.15 [08:20:20]line НДС 12% : 13.80 [08:20:20]line Наличными: 130.00 [08:20:20]line Безнал.: 0.00 [08:20:20]line Место: АЗС № 133 "Партнер Нефть" [08:20:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:20:20]line СНО: Общий режим [08:20:20]line Чек 17 23.10.2024 08:20 [08:20:20]line Смена: 173 ФФД: 1.0 [08:20:20]line ЗНМ: 0300000020 [08:20:20]line РНМ: 0000000000161154 [08:20:20]line Версия ККМ: v1.0 [08:20:20]line ФМ: 0000000000963323 [08:20:20]line ФД: 75284 [08:20:20]line ФПД: 128849905508632 [08:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082025&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75284&fm=128849905508632&tin=02508201610067®Number=0000000000161154&sum=13000 [08:20:20]line 0 [08:20:20]OFD Sender: Processing packet 75284 [packets to send 15, broken 14] [08:20:20]ProducePacketName [08:20:20]name=ofd_packets/00075284 [08:20:20]OFD Sender: To server: pG, [08:20:20]CommunicateWithHost lk.salyk.kg:30040 [08:20:20]ConnectInit lk.salyk.kg [08:20:20]written 0, free lines is 4095 [08:20:20]Connected sock=10 [08:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 19 01 00 00 B6 C2 11 01 4B 71 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C9 B1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 26 01 00 35 04 06 00 75 30 34 D8 E1 18 4A B8 72 2E C0 93 4B 48 [08:20:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5A CD 47 00 E3 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 39 36 33 33 32 33 10 04 04 00 14 26 01 00 F4 03 04 00 A4 5A 18 67 B6 04 01 00 00 6F 94 B4 E7 37 8C 17 F7 [08:20:21]CommunicateWithHost err = 0 [08:20:21]CheckOFDResponse [08:20:21]1017 (14) - 77093643461234 [08:20:21]1041 (16) - 0000000000963323 [08:20:21]1040 (4) - 75284 [08:20:21]1012 (4) - 23.10.2024 02:08 [08:20:21]1206 (1) - 0 [08:20:21]OFD Sender: Remove packet 75284 [08:20:21]ProducePacketName [08:20:21]name=ofd_packets/00075284 [08:20:21]NVStorageDeleteData [08:20:21]Write to MH i2c: 01 00 00 7F 84 03 [08:20:21]Write i2c OK [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: 01 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: 01 07 00 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: 01 07 00 7F 84 00 00 00 00 00 D3 0C E9 [08:20:21]RasterBufferAndPrint [08:20:21]line [08:20:21]line [08:20:21]line [08:20:21]line [08:20:21]line [08:20:21]written 0, free lines is 3288 [08:20:21]MH_Cut [08:20:21]Write to MH i2c: D1 01 00 86 84 01 DC [08:20:21]Write i2c OK [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: D1 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: D1 01 00 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: D1 01 00 86 84 00 DB [08:20:21]Write to MH i2c: 01 00 00 87 84 0B [08:20:21]Write i2c OK [08:20:21]MH_I2C_Read... [08:20:21]OFD Sender: No OFD packet to send [08:20:22]*** Cut start [08:20:22]*** Partial cut [08:20:22]*** CUTSNS_PIN = 1 [08:20:22]*** CUTSNS_PIN = 0 [08:20:22]*** Brake cut motor [08:20:22]Read from MH i2c: 01 [08:20:22]MH_I2C_Read... [08:20:22]*** Stop cut motor [08:20:22]*** Cut end [08:20:22]Read from MH i2c: 01 07 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: 01 07 00 87 84 00 00 00 00 00 FF 0F 20 [08:20:22]process_action close_receipt done [08:20:22]requested_data is exist [08:20:22]produce_requested_data [08:20:22]requested_item fm.sn is exist - process it [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 11 00 00 [08:20:22]Write to MH i2c: E2 08 00 88 84 80 11 00 00 00 00 00 00 86 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 17 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 17 00 88 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D3 [08:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:20:22]wFMCommunicate OK [08:20:22]requested_item fd.num is exist - process it [08:20:22]SAM_PROTO_GetFieldsCounters [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 13 00 00 [08:20:22]Write to MH i2c: E2 08 00 89 84 80 13 00 00 00 00 00 00 89 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 62 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 62 00 89 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 14 26 01 00 0E 04 04 00 AD 00 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 B8 [08:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 14 26 01 00 0E 04 04 00 AD 00 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:20:22]wFMCommunicate OK [08:20:22]SAM_PROTO_GetFieldsCounters done [08:20:22]requested_item shift.num is exist - process it [08:20:22]requested_item shift.opened is exist - process it [08:20:22]req_shift_opened [08:20:22]FM_GetShiftState [08:20:22]SAM_PROTO_GetShiftState [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 13 01 00 [08:20:22]Write to MH i2c: E2 08 00 8A 84 80 13 01 00 00 00 00 00 8B [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:23]Read from MH i2c: E2 [08:20:23]MH_I2C_Read... [08:20:23]Read from MH i2c: E2 0E 00 [08:20:23]MH_I2C_Read... [08:20:23]Read from MH i2c: E2 0E 00 8A 84 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F0 [08:20:23]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:20:23]wFMCommunicate OK [08:20:23]SAM_PROTO_GetShiftState done [08:20:23]FM_GetShiftState done [08:20:23]req_shift_opened done [08:20:23]requested_item shift.open_date is exist - process it [08:20:23]req_shift_open_date [08:20:23]req_shift_open_date done [08:20:23]produce_requested_data done [08:20:23]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75284,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [08:20:23]process_action_free close_receipt [08:20:23]json_value_free [08:20:23]json_value_free done [08:20:23]process_json_proto returns [08:20:23]Send response to host [08:20:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75284,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [08:20:23]free response buf [08:20:23]execute_script done [08:20:23]execute_script returns [08:20:23]free content buf [08:20:23]Sock 9.Close socket [08:20:23]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:49]accept exits with 7 [08:34:49]New connection [08:34:49]New thread 3067465060 created [08:34:49]Thread 3067321700 joined [08:34:49]Waiting for new connection... [08:34:49] Sock 7.Parse request [08:34:49]Sock 7.Check first char [08:34:49]Sock 7.First char is OK [08:34:49]request: POST /json_proto HTTP/1.0 [08:34:49]Method: POST [08:34:49]URL: /json_proto [08:34:49]Method is POST - this is cgi request [08:34:49]url: /json_proto [08:34:49]query_string will be loaded in cgi processing [08:34:49]execute_cgi json_proto POST (null) [08:34:49]execute_cgi path=json_proto method=POST [08:34:49]POST find Content-Length [08:34:49]Host: 172.17.44.196:8080 [08:34:49]Content-Length: 862 [08:34:49]Content-Type: application/json [08:34:49] [08:34:49]POST finish read [08:34:49]Found Content-Length = 862 [08:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273199", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:49]execute_script... [08:34:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273199", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:49]POST & json_proto [08:34:49]process_json_proto [08:34:49]json parsed OK: [08:34:49]protocol is kg_v1.0 [08:34:49]action value=close_receipt [08:34:49]process_action close_receipt [08:34:49]cmd_close_receipt [08:34:49]MH_GetDate [08:34:49]Write to MH i2c: F0 00 00 8B 84 FE [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: F0 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: F0 09 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: F0 09 00 8B 84 00 30 B5 18 67 E7 19 F8 65 C8 [08:34:49]GetLastDocTimeStamp 1729671625 [08:34:49]current date 1729672496 [08:34:49]FM_GetShiftState [08:34:49]SAM_PROTO_GetShiftState [08:34:49]wFMCommunicate request_size=4 [08:34:49]MH_SAM_APDU [08:34:49]CAPDU: 80 13 01 00 [08:34:49]Write to MH i2c: E2 08 00 8C 84 80 13 01 00 00 00 00 00 8D [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:49]Read from MH i2c: E2 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 0E 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 0E 00 8C 84 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F2 [08:34:49]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:34:49]wFMCommunicate OK [08:34:49]SAM_PROTO_GetShiftState done [08:34:49]FM_GetShiftState done [08:34:49]opened in 1729642905 [08:34:49]opened+sec_in_day 1729729305 [08:34:49]quantity*price = 14000 [08:34:49]sum+1 = 14001 [08:34:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 18 23.10.2024 08:34 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75285 ФПД: 229576721598619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083456&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75285&fm=229576721598619&tin=02508201610067®Number=0000000000161154&sum=15000 0 [08:34:51]StoreToDocumentArchive [08:34:51]shift 173 fd 75285 [08:34:51]save to /storage/0173/doc_00075285 [08:34:51]save last doc name /storage/0173/doc_00075285 to /storage/kkm_last_doc_name [08:34:51]save OK [08:34:51]Clear old archive folders... [08:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=374 [08:34:51]tlvbuf is 00EBDD20 [08:34:51]SAM_PROTO_ClearQueue [08:34:51]wFMCommunicate request_size=4 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 09 00 00 [08:34:51]Write to MH i2c: E2 08 00 99 84 80 09 00 00 00 00 00 00 8F [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 99 84 00 90 00 91 [08:34:51]RAPDU: 90 00 [08:34:51]wFMCommunicate OK [08:34:51]SAM_PROTO_ClearQueue done [08:34:51]KKMCreateOFDPacket [08:34:51]OFDProtocolAddRootSTLVToBuf [08:34:51]FM_MakeSignedData [08:34:51]FM_MakeSignedData [08:34:51]SAM_PROTO_SignData [08:34:51]wFMCommunicate request_size=4 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 0D 01 02 [08:34:51]Write to MH i2c: E2 08 00 9A 84 80 0D 01 02 00 00 00 00 97 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 9A 84 00 90 00 92 [08:34:51]RAPDU: 90 00 [08:34:51]wFMCommunicate OK [08:34:51]wFMCommunicate request_size=255 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 [08:34:51]Write to MH i2c: E2 02 01 9B 84 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 00 00 02 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 9B 84 00 90 00 93 [08:34:51]RAPDU: 90 00 [08:34:51]wFMCommunicate OK [08:34:51]wFMCommunicate request_size=133 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 30 B5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 26 01 00 35 04 06 00 D0 CC 7E F0 88 9B [08:34:51]Write to MH i2c: E2 88 00 9C 84 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 30 B5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 26 01 00 35 04 06 00 D0 CC 7E F0 88 9B 00 00 57 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 9C 84 00 90 00 94 [08:34:51]RAPDU: 90 00 [08:34:51]wFMCommunicate OK [08:34:51]wFMCommunicate request_size=4 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 0D 03 02 [08:34:51]Write to MH i2c: E2 08 00 9D 84 80 0D 03 02 00 00 00 00 9C [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 0B 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 0B 00 9D 84 00 1E 07 8B 3B 50 AD 50 CA 90 00 9F [08:34:51]RAPDU: 1E 07 8B 3B 50 AD 50 CA 90 00 [08:34:51]wFMCommunicate OK [08:34:51]SAM_PROTO_SignData done [08:34:51]FM_MakeSignedData done [08:34:51]CreateOFDProtocolMessage [08:34:51]wFMCommunicate request_size=4 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 11 00 00 [08:34:51]Write to MH i2c: E2 08 00 9E 84 80 11 00 00 00 00 00 00 9C [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 17 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 17 00 9E 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E9 [08:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:34:51]wFMCommunicate OK [08:34:51]CreateOFDProtocolMessage done [08:34:51]OFDSenderStorePacket 75285 [08:34:51]StoreOFDPacket docnum=75285 [08:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 8A 01 00 00 DD 48 82 01 64 D3 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 30 B5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 26 01 00 35 04 06 00 D0 CC 7E F0 88 9B 1E 07 8B 3B 50 AD 50 CA [08:34:51]CheckFolder [08:34:51]dirname=/storage/ofd_packets [08:34:51]CheckFolder done [08:34:51]ProducePacketName [08:34:51]name=ofd_packets/00075285 [08:34:51]NVStorageSaveData ofd_packets/00075285 [08:34:51]File name is /storage/ofd_packets/00075285 [08:34:51]Write 424 bytes [08:34:51]NVStorageSaveData done [08:34:51]OFDSenderStorePacket done [08:34:51]KKMCreateOFDPacket done [08:34:51]NVStorageSaveData kkm_last_timestamp [08:34:51]File name is /storage/kkm_last_timestamp [08:34:51]Write 4 bytes [08:34:51]NVStorageSaveData done [08:34:51]ExternCall_PrintAddStr [08:34:51]wPrintStart [08:34:51]Write to MH i2c: 01 00 00 9F 84 23 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 9F 84 00 00 00 00 00 FF 0F 38 [08:34:51]RasterBufferAndPrint [08:34:51]line Счет N : (3)273199 [08:34:51]line ИНН: 02508201610067 [08:34:51]line Контрольно-Кассовый Чек [08:34:51]line ПРОДАЖА [08:34:51]line Товар: 47802995 [08:34:51]line Сигареты Winston XS Silver [08:34:51]line 1.000 * 140.00 [08:34:51]line = 140.00 [08:34:51]line НДС 12% НСП 1% [08:34:51]line > о реализуемом товаре [08:34:51]line Товар: 46226624 [08:34:51]line Mentos ПВ Клубника 6*100*2 [08:34:51]line 1.000 * 10.00 [08:34:51]line = 10.00 [08:34:51]line НДС 12% НСП 1% [08:34:51]line > о реализуемом товаре [08:34:51]line ИТОГО: 150.00 [08:34:51]line НСП 1% : 1.33 [08:34:51]line НДС 12% : 15.93 [08:34:51]line Наличными: 150.00 [08:34:51]line Безнал.: 0.00 [08:34:51]line Место: АЗС № 133 "Партнер Нефть" [08:34:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:34:51]line СНО: Общий режим [08:34:51]line Чек 18 23.10.2024 08:34 [08:34:51]line Смена: 173 ФФД: 1.0 [08:34:51]line ЗНМ: 0300000020 [08:34:51]line РНМ: 0000000000161154 [08:34:51]line Версия ККМ: v1.0 [08:34:51]line ФМ: 0000000000963323 [08:34:51]line ФД: 75285 [08:34:51]line ФПД: 229576721598619 [08:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083456&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75285&fm=229576721598619&tin=02508201610067®Number=0000000000161154&sum=15000 [08:34:51]line 0 [08:34:51]OFD Sender: Processing packet 75285 [packets to send 15, broken 14] [08:34:51]ProducePacketName [08:34:51]name=ofd_packets/00075285 [08:34:51]OFD Sender: To server: pG, [08:34:51]CommunicateWithHost lk.salyk.kg:30040 [08:34:51]ConnectInit lk.salyk.kg [08:34:51]written 0, free lines is 4095 [08:34:52]Connected sock=10 [08:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 8A 01 00 00 DD 48 82 01 64 D3 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 30 B5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 26 01 00 35 04 06 00 D0 CC 7E F0 88 9B 1E 07 8B 3B 50 AD 50 CA [08:34:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AB 81 47 00 68 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 39 36 33 33 32 33 10 04 04 00 15 26 01 00 F4 03 04 00 0C 5E 18 67 B6 04 01 00 00 0E 93 84 FE 6D 42 1C DB [08:34:52]CommunicateWithHost err = 0 [08:34:52]CheckOFDResponse [08:34:52]1017 (14) - 77093643461234 [08:34:52]1041 (16) - 0000000000963323 [08:34:52]1040 (4) - 75285 [08:34:52]1012 (4) - 23.10.2024 02:23 [08:34:52]1206 (1) - 0 [08:34:52]OFD Sender: Remove packet 75285 [08:34:52]ProducePacketName [08:34:52]name=ofd_packets/00075285 [08:34:52]NVStorageDeleteData [08:34:52]Write to MH i2c: 01 00 00 CC 84 50 [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 CC 84 00 00 00 00 00 7C 0C DF [08:34:52]RasterBufferAndPrint [08:34:52]line [08:34:52]line [08:34:52]line [08:34:52]line [08:34:52]line [08:34:52]written 0, free lines is 3204 [08:34:52]MH_Cut [08:34:52]Write to MH i2c: D1 01 00 D3 84 01 29 [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: D1 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: D1 01 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: D1 01 00 D3 84 00 28 [08:34:52]Write to MH i2c: 01 00 00 D4 84 58 [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]OFD Sender: No OFD packet to send [08:34:53]*** Cut start [08:34:53]*** Partial cut [08:34:53]*** CUTSNS_PIN = 1 [08:34:53]*** CUTSNS_PIN = 0 [08:34:53]*** Brake cut motor [08:34:54]Read from MH i2c: 01 [08:34:54]MH_I2C_Read... [08:34:54]*** Stop cut motor [08:34:54]*** Cut end [08:34:54]Read from MH i2c: 01 07 00 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: 01 07 00 D4 84 00 00 00 00 00 FF 0F 6D [08:34:54]process_action close_receipt done [08:34:54]requested_data is exist [08:34:54]produce_requested_data [08:34:54]requested_item fm.sn is exist - process it [08:34:54]wFMCommunicate request_size=4 [08:34:54]MH_SAM_APDU [08:34:54]CAPDU: 80 11 00 00 [08:34:54]Write to MH i2c: E2 08 00 D5 84 80 11 00 00 00 00 00 00 D3 [08:34:54]Write i2c OK [08:34:54]MH_I2C_Read... [08:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:54]Read from MH i2c: E2 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: E2 17 00 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: E2 17 00 D5 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 20 [08:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:34:54]wFMCommunicate OK [08:34:54]requested_item fd.num is exist - process it [08:34:54]SAM_PROTO_GetFieldsCounters [08:34:54]wFMCommunicate request_size=4 [08:34:54]MH_SAM_APDU [08:34:54]CAPDU: 80 13 00 00 [08:34:54]Write to MH i2c: E2 08 00 D6 84 80 13 00 00 00 00 00 00 D6 [08:34:54]Write i2c OK [08:34:54]MH_I2C_Read... [08:34:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:54]Read from MH i2c: E2 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: E2 62 00 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: E2 62 00 D6 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 15 26 01 00 0E 04 04 00 AD 00 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 09 [08:34:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 15 26 01 00 0E 04 04 00 AD 00 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:34:54]wFMCommunicate OK [08:34:54]SAM_PROTO_GetFieldsCounters done [08:34:54]requested_item shift.num is exist - process it [08:34:54]requested_item shift.opened is exist - process it [08:34:54]req_shift_opened [08:34:54]FM_GetShiftState [08:34:54]SAM_PROTO_GetShiftState [08:34:54]wFMCommunicate request_size=4 [08:34:54]MH_SAM_APDU [08:34:54]CAPDU: 80 13 01 00 [08:34:54]Write to MH i2c: E2 08 00 D7 84 80 13 01 00 00 00 00 00 D8 [08:34:54]Write i2c OK [08:34:54]MH_I2C_Read... [08:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:54]Read from MH i2c: E2 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: E2 0E 00 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: E2 0E 00 D7 84 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3D [08:34:54]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:34:54]wFMCommunicate OK [08:34:54]SAM_PROTO_GetShiftState done [08:34:54]FM_GetShiftState done [08:34:54]req_shift_opened done [08:34:54]requested_item shift.open_date is exist - process it [08:34:54]req_shift_open_date [08:34:54]req_shift_open_date done [08:34:54]produce_requested_data done [08:34:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75285,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [08:34:54]process_action_free close_receipt [08:34:54]json_value_free [08:34:54]json_value_free done [08:34:54]process_json_proto returns [08:34:54]Send response to host [08:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75285,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [08:34:54]free response buf [08:34:54]execute_script done [08:34:54]execute_script returns [08:34:54]free content buf [08:34:54]Sock 7.Close socket [08:34:54]Sock 7.Thread stoped [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:18]accept exits with 9 [08:38:18]New connection [08:38:18]New thread 3067321700 created [08:38:18]Thread 3067465060 joined [08:38:18]Waiting for new connection... [08:38:18] Sock 9.Parse request [08:38:18]Sock 9.Check first char [08:38:18]Sock 9.First char is OK [08:38:18]request: POST /json_proto HTTP/1.0 [08:38:18]Method: POST [08:38:18]URL: /json_proto [08:38:18]Method is POST - this is cgi request [08:38:18]url: /json_proto [08:38:18]query_string will be loaded in cgi processing [08:38:18]execute_cgi json_proto POST (null) [08:38:18]execute_cgi path=json_proto method=POST [08:38:18]POST find Content-Length [08:38:18]Host: 172.17.44.196:8080 [08:38:18]Content-Length: 625 [08:38:18]Content-Type: application/json [08:38:18] [08:38:18]POST finish read [08:38:18]Found Content-Length = 625 [08:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273200", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:18]execute_script... [08:38:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273200", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:18]POST & json_proto [08:38:18]process_json_proto [08:38:18]json parsed OK: [08:38:18]protocol is kg_v1.0 [08:38:18]action value=close_receipt [08:38:18]process_action close_receipt [08:38:18]cmd_close_receipt [08:38:18]MH_GetDate [08:38:18]Write to MH i2c: F0 00 00 D8 84 4B [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: F0 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: F0 09 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: F0 09 00 D8 84 00 01 B6 18 67 E7 19 F8 65 E7 [08:38:18]GetLastDocTimeStamp 1729672496 [08:38:18]current date 1729672705 [08:38:18]FM_GetShiftState [08:38:18]SAM_PROTO_GetShiftState [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 13 01 00 [08:38:18]Write to MH i2c: E2 08 00 D9 84 80 13 01 00 00 00 00 00 DA [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0E 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0E 00 D9 84 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3F [08:38:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:38:18]wFMCommunicate OK [08:38:18]SAM_PROTO_GetShiftState done [08:38:18]FM_GetShiftState done [08:38:18]opened in 1729642905 [08:38:18]opened+sec_in_day 1729729305 [08:38:18]quantity*price = 15000 [08:38:18]sum+1 = 15001 [08:38:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 19 23.10.2024 08:38 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75286 ФПД: 171612188575383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083825&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75286&fm=171612188575383&tin=02508201610067®Number=0000000000161154&sum=15000 0 [08:38:19]StoreToDocumentArchive [08:38:19]shift 173 fd 75286 [08:38:19]save to /storage/0173/doc_00075286 [08:38:19]save last doc name /storage/0173/doc_00075286 to /storage/kkm_last_doc_name [08:38:19]save OK [08:38:19]Clear old archive folders... [08:38:19]ProcessDocumentItem done err = 0, tmpTLVsize=277 [08:38:19]tlvbuf is 00FAC1A0 [08:38:19]SAM_PROTO_ClearQueue [08:38:19]wFMCommunicate request_size=4 [08:38:19]MH_SAM_APDU [08:38:19]CAPDU: 80 09 00 00 [08:38:19]Write to MH i2c: E2 08 00 E6 84 80 09 00 00 00 00 00 00 DC [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:19]Read from MH i2c: E2 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: E2 03 00 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: E2 03 00 E6 84 00 90 00 DE [08:38:19]RAPDU: 90 00 [08:38:19]wFMCommunicate OK [08:38:19]SAM_PROTO_ClearQueue done [08:38:19]KKMCreateOFDPacket [08:38:19]OFDProtocolAddRootSTLVToBuf [08:38:19]FM_MakeSignedData [08:38:19]FM_MakeSignedData [08:38:19]SAM_PROTO_SignData [08:38:19]wFMCommunicate request_size=4 [08:38:19]MH_SAM_APDU [08:38:19]CAPDU: 80 0D 01 02 [08:38:19]Write to MH i2c: E2 08 00 E7 84 80 0D 01 02 00 00 00 00 E4 [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:19]Read from MH i2c: E2 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: E2 03 00 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: E2 03 00 E7 84 00 90 00 DF [08:38:19]RAPDU: 90 00 [08:38:19]wFMCommunicate OK [08:38:19]wFMCommunicate request_size=255 [08:38:19]MH_SAM_APDU [08:38:19]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 01 B6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 [08:38:20]Write to MH i2c: E2 02 01 E8 84 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 01 B6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 00 00 BB [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 E8 84 00 90 00 E0 [08:38:20]RAPDU: 90 00 [08:38:20]wFMCommunicate OK [08:38:20]wFMCommunicate request_size=36 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 26 01 00 35 04 06 00 9C 14 93 8A 06 97 [08:38:20]Write to MH i2c: E2 27 00 E9 84 80 0D 02 02 1F 00 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 26 01 00 35 04 06 00 9C 14 93 8A 06 97 00 00 AD [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 E9 84 00 90 00 E1 [08:38:20]RAPDU: 90 00 [08:38:20]wFMCommunicate OK [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 0D 03 02 [08:38:20]Write to MH i2c: E2 08 00 EA 84 80 0D 03 02 00 00 00 00 E9 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 0B 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 0B 00 EA 84 00 AD 02 DA F8 F4 96 E1 A7 90 00 7D [08:38:20]RAPDU: AD 02 DA F8 F4 96 E1 A7 90 00 [08:38:20]wFMCommunicate OK [08:38:20]SAM_PROTO_SignData done [08:38:20]FM_MakeSignedData done [08:38:20]CreateOFDProtocolMessage [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 11 00 00 [08:38:20]Write to MH i2c: E2 08 00 EB 84 80 11 00 00 00 00 00 00 E9 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 17 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 17 00 EB 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 36 [08:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:38:20]wFMCommunicate OK [08:38:20]CreateOFDProtocolMessage done [08:38:20]OFDSenderStorePacket 75286 [08:38:20]StoreOFDPacket docnum=75286 [08:38:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 29 01 00 00 DD 71 21 01 2B F7 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 01 B6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 26 01 00 35 04 06 00 9C 14 93 8A 06 97 AD 02 DA F8 F4 96 E1 A7 [08:38:20]CheckFolder [08:38:20]dirname=/storage/ofd_packets [08:38:20]CheckFolder done [08:38:20]ProducePacketName [08:38:20]name=ofd_packets/00075286 [08:38:20]NVStorageSaveData ofd_packets/00075286 [08:38:20]File name is /storage/ofd_packets/00075286 [08:38:20]Write 327 bytes [08:38:20]NVStorageSaveData done [08:38:20]OFDSenderStorePacket done [08:38:20]KKMCreateOFDPacket done [08:38:20]NVStorageSaveData kkm_last_timestamp [08:38:20]File name is /storage/kkm_last_timestamp [08:38:20]Write 4 bytes [08:38:20]NVStorageSaveData done [08:38:20]ExternCall_PrintAddStr [08:38:20]wPrintStart [08:38:20]Write to MH i2c: 01 00 00 EC 84 70 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: 01 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: 01 07 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: 01 07 00 EC 84 00 00 00 00 00 FF 0F 85 [08:38:20]RasterBufferAndPrint [08:38:20]line Счет N : (3)273200 [08:38:20]line ИНН: 02508201610067 [08:38:20]line Контрольно-Кассовый Чек [08:38:20]line ПРОДАЖА [08:38:20]line Товар: 46230607 [08:38:20]line Сигареты Richmond Bronze Edition [08:38:20]line 1.000 * 150.00 [08:38:20]line = 150.00 [08:38:20]line НДС 12% НСП 1% [08:38:20]line > о реализуемом товаре [08:38:20]line ИТОГО: 150.00 [08:38:20]line НСП 1% : 1.33 [08:38:20]line НДС 12% : 15.93 [08:38:20]line Наличными: 150.00 [08:38:20]line Безнал.: 0.00 [08:38:20]line Место: АЗС № 133 "Партнер Нефть" [08:38:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:38:20]line СНО: Общий режим [08:38:20]line Чек 19 23.10.2024 08:38 [08:38:20]line Смена: 173 ФФД: 1.0 [08:38:20]line ЗНМ: 0300000020 [08:38:20]line РНМ: 0000000000161154 [08:38:20]line Версия ККМ: v1.0 [08:38:20]line ФМ: 0000000000963323 [08:38:20]line ФД: 75286 [08:38:20]line ФПД: 171612188575383 [08:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083825&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75286&fm=171612188575383&tin=02508201610067®Number=0000000000161154&sum=15000 [08:38:20]line 0 [08:38:20]OFD Sender: Processing packet 75286 [packets to send 15, broken 14] [08:38:20]ProducePacketName [08:38:20]name=ofd_packets/00075286 [08:38:20]OFD Sender: To server: pG, [08:38:20]CommunicateWithHost lk.salyk.kg:30040 [08:38:20]ConnectInit lk.salyk.kg [08:38:20]written 0, free lines is 4095 [08:38:20]Connected sock=10 [08:38:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 29 01 00 00 DD 71 21 01 2B F7 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 01 B6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 26 01 00 35 04 06 00 9C 14 93 8A 06 97 AD 02 DA F8 F4 96 E1 A7 [08:38:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0C C7 47 00 98 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 26 01 00 F4 03 04 00 DC 5E 18 67 B6 04 01 00 00 F8 4C D3 DE 33 56 2B BC [08:38:21]CommunicateWithHost err = 0 [08:38:21]CheckOFDResponse [08:38:21]1017 (14) - 77093643461234 [08:38:21]1041 (16) - 0000000000963323 [08:38:21]1040 (4) - 75286 [08:38:21]1012 (4) - 23.10.2024 02:26 [08:38:21]1206 (1) - 0 [08:38:21]OFD Sender: Remove packet 75286 [08:38:21]ProducePacketName [08:38:21]name=ofd_packets/00075286 [08:38:21]NVStorageDeleteData [08:38:21]Write to MH i2c: 01 00 00 14 85 99 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: 01 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: 01 07 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: 01 07 00 14 85 00 00 00 00 00 BD 0C 69 [08:38:21]RasterBufferAndPrint [08:38:21]line [08:38:21]line [08:38:21]line [08:38:21]line [08:38:21]line [08:38:21]written 0, free lines is 3267 [08:38:21]MH_Cut [08:38:21]Write to MH i2c: D1 01 00 1B 85 01 72 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: D1 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: D1 01 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: D1 01 00 1B 85 00 71 [08:38:21]Write to MH i2c: 01 00 00 1C 85 A1 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]OFD Sender: No OFD packet to send [08:38:22]*** Cut start [08:38:22]*** Partial cut [08:38:22]*** CUTSNS_PIN = 1 [08:38:22]*** CUTSNS_PIN = 0 [08:38:22]*** Brake cut motor [08:38:22]Read from MH i2c: 01 [08:38:22]MH_I2C_Read... [08:38:22]*** Stop cut motor [08:38:22]*** Cut end [08:38:22]Read from MH i2c: 01 07 00 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: 01 07 00 1C 85 00 00 00 00 00 FF 0F B6 [08:38:22]process_action close_receipt done [08:38:22]requested_data is exist [08:38:22]produce_requested_data [08:38:22]requested_item fm.sn is exist - process it [08:38:22]wFMCommunicate request_size=4 [08:38:22]MH_SAM_APDU [08:38:22]CAPDU: 80 11 00 00 [08:38:22]Write to MH i2c: E2 08 00 1D 85 80 11 00 00 00 00 00 00 1C [08:38:22]Write i2c OK [08:38:22]MH_I2C_Read... [08:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:22]Read from MH i2c: E2 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 17 00 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 17 00 1D 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 69 [08:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:38:22]wFMCommunicate OK [08:38:22]requested_item fd.num is exist - process it [08:38:22]SAM_PROTO_GetFieldsCounters [08:38:22]wFMCommunicate request_size=4 [08:38:22]MH_SAM_APDU [08:38:22]CAPDU: 80 13 00 00 [08:38:22]Write to MH i2c: E2 08 00 1E 85 80 13 00 00 00 00 00 00 1F [08:38:22]Write i2c OK [08:38:22]MH_I2C_Read... [08:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:22]Read from MH i2c: E2 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 62 00 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 62 00 1E 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 16 26 01 00 0E 04 04 00 AD 00 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 56 [08:38:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 16 26 01 00 0E 04 04 00 AD 00 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:38:22]wFMCommunicate OK [08:38:22]SAM_PROTO_GetFieldsCounters done [08:38:22]requested_item shift.num is exist - process it [08:38:22]requested_item shift.opened is exist - process it [08:38:22]req_shift_opened [08:38:22]FM_GetShiftState [08:38:22]SAM_PROTO_GetShiftState [08:38:22]wFMCommunicate request_size=4 [08:38:22]MH_SAM_APDU [08:38:22]CAPDU: 80 13 01 00 [08:38:22]Write to MH i2c: E2 08 00 1F 85 80 13 01 00 00 00 00 00 21 [08:38:22]Write i2c OK [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 [08:38:22]MH_I2C_Read... [08:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:23]Read from MH i2c: E2 0E 00 [08:38:23]MH_I2C_Read... [08:38:23]Read from MH i2c: E2 0E 00 1F 85 00 09 00 01 99 41 18 67 00 00 00 00 90 00 86 [08:38:23]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:38:23]wFMCommunicate OK [08:38:23]SAM_PROTO_GetShiftState done [08:38:23]FM_GetShiftState done [08:38:23]req_shift_opened done [08:38:23]requested_item shift.open_date is exist - process it [08:38:23]req_shift_open_date [08:38:23]req_shift_open_date done [08:38:23]produce_requested_data done [08:38:23]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75286,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [08:38:23]process_action_free close_receipt [08:38:23]json_value_free [08:38:23]json_value_free done [08:38:23]process_json_proto returns [08:38:23]Send response to host [08:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75286,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [08:38:23]free response buf [08:38:23]execute_script done [08:38:23]execute_script returns [08:38:23]free content buf [08:38:23]Sock 9.Close socket [08:38:23]Sock 9.Thread stoped [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:40:59]accept exits with 7 [08:40:59]New connection [08:40:59]New thread 3067465060 created [08:40:59]Thread 3067321700 joined [08:40:59]Waiting for new connection... [08:40:59] Sock 7.Parse request [08:40:59]Sock 7.Check first char [08:40:59]Sock 7.First char is OK [08:40:59]request: POST /json_proto HTTP/1.0 [08:40:59]Method: POST [08:40:59]URL: /json_proto [08:40:59]Method is POST - this is cgi request [08:40:59]url: /json_proto [08:40:59]query_string will be loaded in cgi processing [08:40:59]execute_cgi json_proto POST (null) [08:40:59]execute_cgi path=json_proto method=POST [08:40:59]POST find Content-Length [08:40:59]Host: 172.17.44.196:8080 [08:40:59]Content-Length: 755 [08:40:59]Content-Type: application/json [08:40:59] [08:40:59]POST finish read [08:40:59]Found Content-Length = 755 [08:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30058772", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:59]execute_script... [08:40: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)1965210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30058772", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:59]POST & json_proto [08:40:59]process_json_proto [08:40:59]json parsed OK: [08:40:59]protocol is kg_v1.0 [08:40:59]action value=close_receipt [08:40:59]process_action close_receipt [08:40:59]cmd_close_receipt [08:40:59]MH_GetDate [08:40:59]Write to MH i2c: F0 00 00 20 85 94 [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: F0 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: F0 09 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: F0 09 00 20 85 00 A2 B6 18 67 E7 19 F8 65 D1 [08:40:59]GetLastDocTimeStamp 1729672705 [08:40:59]current date 1729672866 [08:40:59]FM_GetShiftState [08:40:59]SAM_PROTO_GetShiftState [08:40:59]wFMCommunicate request_size=4 [08:40:59]MH_SAM_APDU [08:40:59]CAPDU: 80 13 01 00 [08:40:59]Write to MH i2c: E2 08 00 21 85 80 13 01 00 00 00 00 00 23 [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:59]Read from MH i2c: E2 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: E2 0E 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: E2 0E 00 21 85 00 09 00 01 99 41 18 67 00 00 00 00 90 00 88 [08:40:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:40:59]wFMCommunicate OK [08:40:59]SAM_PROTO_GetShiftState done [08:40:59]FM_GetShiftState done [08:40:59]opened in 1729642905 [08:40:59]opened+sec_in_day 1729729305 [08:40:59]quantity*price = 0 [08:40:59]sum+1 = 1 [08:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 20 23.10.2024 08:41 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30058772 ФМ: 0000000000963323 ФД: 75287 ФПД: 30147648125691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084106&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75287&fm=30147648125691&tin=02508201610067®Number=0000000000161154&sum=0 [08:41:01]StoreToDocumentArchive [08:41:01]shift 173 fd 75287 [08:41:01]save to /storage/0173/doc_00075287 [08:41:01]save last doc name /storage/0173/doc_00075287 to /storage/kkm_last_doc_name [08:41:01]save OK [08:41:01]Clear old archive folders... [08:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:01]tlvbuf is 00FDA290 [08:41:01]SAM_PROTO_ClearQueue [08:41:01]wFMCommunicate request_size=4 [08:41:01]MH_SAM_APDU [08:41:01]CAPDU: 80 09 00 00 [08:41:01]Write to MH i2c: E2 08 00 2E 85 80 09 00 00 00 00 00 00 25 [08:41:01]Write i2c OK [08:41:01]MH_I2C_Read... [08:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:01]Read from MH i2c: E2 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 03 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 03 00 2E 85 00 90 00 27 [08:41:01]RAPDU: 90 00 [08:41:01]wFMCommunicate OK [08:41:01]SAM_PROTO_ClearQueue done [08:41:01]KKMCreateOFDPacket [08:41:01]OFDProtocolAddRootSTLVToBuf [08:41:01]FM_MakeSignedData [08:41:01]FM_MakeSignedData [08:41:01]SAM_PROTO_SignData [08:41:01]wFMCommunicate request_size=4 [08:41:01]MH_SAM_APDU [08:41:01]CAPDU: 80 0D 01 02 [08:41:01]Write to MH i2c: E2 08 00 2F 85 80 0D 01 02 00 00 00 00 2D [08:41:01]Write i2c OK [08:41:01]MH_I2C_Read... [08:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:01]Read from MH i2c: E2 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 03 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 03 00 2F 85 00 90 00 28 [08:41:01]RAPDU: 90 00 [08:41:01]wFMCommunicate OK [08:41:01]wFMCommunicate request_size=255 [08:41:01]MH_SAM_APDU [08:41:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A2 B6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 26 01 00 35 04 06 00 1B [08:41:01]Write to MH i2c: E2 02 01 30 85 80 0D 02 02 FA 00 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A2 B6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 26 01 00 35 04 06 00 1B 00 00 C4 [08:41:01]Write i2c OK [08:41:01]MH_I2C_Read... [08:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:01]Read from MH i2c: E2 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 03 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 03 00 30 85 00 90 00 29 [08:41:01]RAPDU: 90 00 [08:41:01]wFMCommunicate OK [08:41:01]wFMCommunicate request_size=10 [08:41:01]MH_SAM_APDU [08:41:01]CAPDU: 80 0D 02 02 05 6B 4B DB 7A FB [08:41:01]Write to MH i2c: E2 0D 00 31 85 80 0D 02 02 05 00 6B 4B DB 7A FB 00 00 40 [08:41:01]Write i2c OK [08:41:01]MH_I2C_Read... [08:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:01]Read from MH i2c: E2 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 03 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 03 00 31 85 00 90 00 2A [08:41:01]RAPDU: 90 00 [08:41:01]wFMCommunicate OK [08:41:01]wFMCommunicate request_size=4 [08:41:01]MH_SAM_APDU [08:41:01]CAPDU: 80 0D 03 02 [08:41:01]Write to MH i2c: E2 08 00 32 85 80 0D 03 02 00 00 00 00 32 [08:41:01]Write i2c OK [08:41:01]MH_I2C_Read... [08:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:01]Read from MH i2c: E2 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 0B 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 0B 00 32 85 00 B5 80 32 DB 51 94 8E 8E 90 00 76 [08:41:01]RAPDU: B5 80 32 DB 51 94 8E 8E 90 00 [08:41:01]wFMCommunicate OK [08:41:01]SAM_PROTO_SignData done [08:41:01]FM_MakeSignedData done [08:41:01]CreateOFDProtocolMessage [08:41:01]wFMCommunicate request_size=4 [08:41:01]MH_SAM_APDU [08:41:01]CAPDU: 80 11 00 00 [08:41:01]Write to MH i2c: E2 08 00 33 85 80 11 00 00 00 00 00 00 32 [08:41:01]Write i2c OK [08:41:01]MH_I2C_Read... [08:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:01]Read from MH i2c: E2 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 17 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: E2 17 00 33 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7F [08:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:41:01]wFMCommunicate OK [08:41:01]CreateOFDProtocolMessage done [08:41:01]OFDSenderStorePacket 75287 [08:41:01]StoreOFDPacket docnum=75287 [08:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 10 6F 07 01 F0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A2 B6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 26 01 00 35 04 06 00 1B 6B 4B DB 7A FB B5 80 32 DB 51 94 8E 8E [08:41:01]CheckFolder [08:41:01]dirname=/storage/ofd_packets [08:41:01]CheckFolder done [08:41:01]ProducePacketName [08:41:01]name=ofd_packets/00075287 [08:41:01]NVStorageSaveData ofd_packets/00075287 [08:41:01]File name is /storage/ofd_packets/00075287 [08:41:01]Write 301 bytes [08:41:01]NVStorageSaveData done [08:41:01]OFDSenderStorePacket done [08:41:01]KKMCreateOFDPacket done [08:41:01]NVStorageSaveData kkm_last_timestamp [08:41:01]File name is /storage/kkm_last_timestamp [08:41:01]Write 4 bytes [08:41:01]NVStorageSaveData done [08:41:01]ExternCall_PrintAddStr [08:41:01]wPrintStart [08:41:01]Write to MH i2c: 01 00 00 34 85 B9 [08:41:01]Write i2c OK [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: 01 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: 01 07 00 [08:41:01]MH_I2C_Read... [08:41:01]Read from MH i2c: 01 07 00 34 85 00 00 00 00 00 FF 0F CE [08:41:01]RasterBufferAndPrint [08:41:01]line Счет N : (1)1965210 [08:41:01]line ИНН: 02508201610067 [08:41:01]line Контрольно-Кассовый Чек [08:41:01]line ПРОДАЖА [08:41:01]line ТРК (МРК, ГНК) : 54 [08:41:01]line Товар: 2710124500 [08:41:01]line Аи-95-К-5 [08:41:01]line 30.000 * 0.00 [08:41:01]line = 0.00 [08:41:01]line НДС 12% НСП 1% [08:41:01]line > о реализуемом товаре [08:41:01]line ИТОГО: 0.00 [08:41:01]line НСП 1% : 0.00 [08:41:01]line НДС 12% : 0.00 [08:41:01]line Наличными: 0.00 [08:41:01]line Безнал.: 0.00 [08:41:01]line Место: АЗС № 133 "Партнер Нефть" [08:41:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:41:01]line СНО: Общий режим [08:41:01]line Чек 20 23.10.2024 08:41 [08:41:01]line Смена: 173 ФФД: 1.0 [08:41:01]line ЗНМ: 0300000020 [08:41:01]line РНМ: 0000000000161154 [08:41:01]line Версия ККМ: v1.0 [08:41:01]line Талоны: ТК ГПНА Online [08:41:01]line 30058772 [08:41:01]line ФМ: 0000000000963323 [08:41:01]line ФД: 75287 [08:41:01]line ФПД: 30147648125691 [08:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084106&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75287&fm=30147648125691&tin=02508201610067®Number=0000000000161154&sum=0 [08:41:01]OFD Sender: Processing packet 75287 [packets to send 15, broken 14] [08:41:01]ProducePacketName [08:41:01]name=ofd_packets/00075287 [08:41:01]OFD Sender: To server: pG, [08:41:01]CommunicateWithHost lk.salyk.kg:30040 [08:41:01]ConnectInit lk.salyk.kg [08:41:01]written 0, free lines is 4095 [08:41:01]Connected sock=10 [08:41:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 10 6F 07 01 F0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A2 B6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 26 01 00 35 04 06 00 1B 6B 4B DB 7A FB B5 80 32 DB 51 94 8E 8E [08:41:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0F 98 47 00 02 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 26 01 00 F4 03 04 00 7E 5F 18 67 B6 04 01 00 00 98 BD 0B 44 FE F4 0A 2B [08:41:02]CommunicateWithHost err = 0 [08:41:02]CheckOFDResponse [08:41:02]1017 (14) - 77093643461234 [08:41:02]1041 (16) - 0000000000963323 [08:41:02]1040 (4) - 75287 [08:41:02]1012 (4) - 23.10.2024 02:29 [08:41:02]1206 (1) - 0 [08:41:02]OFD Sender: Remove packet 75287 [08:41:02]ProducePacketName [08:41:02]name=ofd_packets/00075287 [08:41:02]NVStorageDeleteData [08:41:02]Write to MH i2c: 01 00 00 5D 85 E2 [08:41:02]Write i2c OK [08:41:02]MH_I2C_Read... [08:41:02]Read from MH i2c: 01 [08:41:02]MH_I2C_Read... [08:41:02]Read from MH i2c: 01 07 00 [08:41:02]MH_I2C_Read... [08:41:02]Read from MH i2c: 01 07 00 5D 85 00 00 00 00 00 BC 0C B1 [08:41:02]RasterBufferAndPrint [08:41:02]line [08:41:02]line [08:41:02]line [08:41:02]line [08:41:02]line [08:41:02]written 0, free lines is 3263 [08:41:02]MH_Cut [08:41:02]Write to MH i2c: D1 01 00 64 85 01 BB [08:41:02]Write i2c OK [08:41:02]MH_I2C_Read... [08:41:02]Read from MH i2c: D1 [08:41:02]MH_I2C_Read... [08:41:02]Read from MH i2c: D1 01 00 [08:41:02]MH_I2C_Read... [08:41:02]Read from MH i2c: D1 01 00 64 85 00 BA [08:41:02]Write to MH i2c: 01 00 00 65 85 EA [08:41:02]Write i2c OK [08:41:02]MH_I2C_Read... [08:41:02]OFD Sender: No OFD packet to send [08:41:03]*** Cut start [08:41:03]*** Partial cut [08:41:03]*** CUTSNS_PIN = 1 [08:41:03]*** CUTSNS_PIN = 0 [08:41:03]*** Brake cut motor [08:41:03]Read from MH i2c: 01 [08:41:03]MH_I2C_Read... [08:41:03]*** Stop cut motor [08:41:03]*** Cut end [08:41:03]Read from MH i2c: 01 07 00 [08:41:03]MH_I2C_Read... [08:41:03]Read from MH i2c: 01 07 00 65 85 00 00 00 00 00 FF 0F FF [08:41:03]process_action close_receipt done [08:41:03]requested_data is exist [08:41:03]produce_requested_data [08:41:03]requested_item fm.sn is exist - process it [08:41:03]wFMCommunicate request_size=4 [08:41:03]MH_SAM_APDU [08:41:03]CAPDU: 80 11 00 00 [08:41:03]Write to MH i2c: E2 08 00 66 85 80 11 00 00 00 00 00 00 65 [08:41:03]Write i2c OK [08:41:03]MH_I2C_Read... [08:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:03]Read from MH i2c: E2 [08:41:03]MH_I2C_Read... [08:41:03]Read from MH i2c: E2 17 00 [08:41:03]MH_I2C_Read... [08:41:03]Read from MH i2c: E2 17 00 66 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B2 [08:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:41:03]wFMCommunicate OK [08:41:03]requested_item fd.num is exist - process it [08:41:03]SAM_PROTO_GetFieldsCounters [08:41:03]wFMCommunicate request_size=4 [08:41:03]MH_SAM_APDU [08:41:03]CAPDU: 80 13 00 00 [08:41:03]Write to MH i2c: E2 08 00 67 85 80 13 00 00 00 00 00 00 68 [08:41:03]Write i2c OK [08:41:03]MH_I2C_Read... [08:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:04]Read from MH i2c: E2 [08:41:04]MH_I2C_Read... [08:41:04]Read from MH i2c: E2 62 00 [08:41:04]MH_I2C_Read... [08:41:04]Read from MH i2c: E2 62 00 67 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 17 26 01 00 0E 04 04 00 AD 00 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 A3 [08:41:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 17 26 01 00 0E 04 04 00 AD 00 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:41:04]wFMCommunicate OK [08:41:04]SAM_PROTO_GetFieldsCounters done [08:41:04]requested_item shift.num is exist - process it [08:41:04]requested_item shift.opened is exist - process it [08:41:04]req_shift_opened [08:41:04]FM_GetShiftState [08:41:04]SAM_PROTO_GetShiftState [08:41:04]wFMCommunicate request_size=4 [08:41:04]MH_SAM_APDU [08:41:04]CAPDU: 80 13 01 00 [08:41:04]Write to MH i2c: E2 08 00 68 85 80 13 01 00 00 00 00 00 6A [08:41:04]Write i2c OK [08:41:04]MH_I2C_Read... [08:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:04]Read from MH i2c: E2 [08:41:04]MH_I2C_Read... [08:41:04]Read from MH i2c: E2 0E 00 [08:41:04]MH_I2C_Read... [08:41:04]Read from MH i2c: E2 0E 00 68 85 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CF [08:41:04]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:41:04]wFMCommunicate OK [08:41:04]SAM_PROTO_GetShiftState done [08:41:04]FM_GetShiftState done [08:41:04]req_shift_opened done [08:41:04]requested_item shift.open_date is exist - process it [08:41:04]req_shift_open_date [08:41:04]req_shift_open_date done [08:41:04]produce_requested_data done [08:41:04]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75287,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [08:41:04]process_action_free close_receipt [08:41:04]json_value_free [08:41:04]json_value_free done [08:41:04]process_json_proto returns [08:41:04]Send response to host [08:41:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75287,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [08:41:04]free response buf [08:41:04]execute_script done [08:41:04]execute_script returns [08:41:04]free content buf [08:41:04]Sock 7.Close socket [08:41:04]Sock 7.Thread stoped [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:30]accept exits with 9 [08:44:30]New connection [08:44:30]New thread 3067321700 created [08:44:30]Thread 3067465060 joined [08:44:30]Waiting for new connection... [08:44:30] Sock 9.Parse request [08:44:30]Sock 9.Check first char [08:44:30]Sock 9.First char is OK [08:44:30]request: POST /json_proto HTTP/1.0 [08:44:30]Method: POST [08:44:30]URL: /json_proto [08:44:30]Method is POST - this is cgi request [08:44:30]url: /json_proto [08:44:30]query_string will be loaded in cgi processing [08:44:30]execute_cgi json_proto POST (null) [08:44:30]execute_cgi path=json_proto method=POST [08:44:30]POST find Content-Length [08:44:30]Host: 172.17.44.196:8080 [08:44:30]Content-Length: 618 [08:44:30]Content-Type: application/json [08:44:30] [08:44:30]POST finish read [08:44:30]Found Content-Length = 618 [08:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273201", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 4.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:30]execute_script... [08:44:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273201", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 4.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:30]POST & json_proto [08:44:30]process_json_proto [08:44:30]json parsed OK: [08:44:30]protocol is kg_v1.0 [08:44:30]action value=close_receipt [08:44:30]process_action close_receipt [08:44:30]cmd_close_receipt [08:44:30]MH_GetDate [08:44:30]Write to MH i2c: F0 00 00 69 85 DD [08:44:30]Write i2c OK [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: F0 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: F0 09 00 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: F0 09 00 69 85 00 75 B7 18 67 E7 19 F8 65 EE [08:44:30]GetLastDocTimeStamp 1729672866 [08:44:30]current date 1729673077 [08:44:30]FM_GetShiftState [08:44:30]SAM_PROTO_GetShiftState [08:44:30]wFMCommunicate request_size=4 [08:44:30]MH_SAM_APDU [08:44:30]CAPDU: 80 13 01 00 [08:44:30]Write to MH i2c: E2 08 00 6A 85 80 13 01 00 00 00 00 00 6C [08:44:30]Write i2c OK [08:44:30]MH_I2C_Read... [08:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:30]Read from MH i2c: E2 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 0E 00 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 0E 00 6A 85 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D1 [08:44:30]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:44:30]wFMCommunicate OK [08:44:30]SAM_PROTO_GetShiftState done [08:44:30]FM_GetShiftState done [08:44:30]opened in 1729642905 [08:44:30]opened+sec_in_day 1729729305 [08:44:30]quantity*price = 50000 [08:44:30]sum+1 = 50001 [08:44:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 21 23.10.2024 08:44 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75288 ФПД: 109251969155736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084437&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75288&fm=109251969155736&tin=02508201610067®Number=0000000000161154&sum=50000 0 [08:44:31]StoreToDocumentArchive [08:44:31]shift 173 fd 75288 [08:44:31]save to /storage/0173/doc_00075288 [08:44:31]save last doc name /storage/0173/doc_00075288 to /storage/kkm_last_doc_name [08:44:31]save OK [08:44:31]Clear old archive folders... [08:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=270 [08:44:31]tlvbuf is 00EA6E60 [08:44:31]SAM_PROTO_ClearQueue [08:44:31]wFMCommunicate request_size=4 [08:44:31]MH_SAM_APDU [08:44:31]CAPDU: 80 09 00 00 [08:44:31]Write to MH i2c: E2 08 00 77 85 80 09 00 00 00 00 00 00 6E [08:44:31]Write i2c OK [08:44:31]MH_I2C_Read... [08:44:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:31]Read from MH i2c: E2 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: E2 03 00 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: E2 03 00 77 85 00 90 00 70 [08:44:31]RAPDU: 90 00 [08:44:31]wFMCommunicate OK [08:44:31]SAM_PROTO_ClearQueue done [08:44:31]KKMCreateOFDPacket [08:44:31]OFDProtocolAddRootSTLVToBuf [08:44:31]FM_MakeSignedData [08:44:31]FM_MakeSignedData [08:44:31]SAM_PROTO_SignData [08:44:31]wFMCommunicate request_size=4 [08:44:31]MH_SAM_APDU [08:44:31]CAPDU: 80 0D 01 02 [08:44:31]Write to MH i2c: E2 08 00 78 85 80 0D 01 02 00 00 00 00 76 [08:44:31]Write i2c OK [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: E2 [08:44:31]MH_I2C_Read... [08:44:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:31]Read from MH i2c: E2 03 00 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: E2 03 00 78 85 00 90 00 71 [08:44:31]RAPDU: 90 00 [08:44:31]wFMCommunicate OK [08:44:31]wFMCommunicate request_size=255 [08:44:31]MH_SAM_APDU [08:44:31]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 B7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [08:44:31]Write to MH i2c: E2 02 01 79 85 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 B7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 9B [08:44:31]Write i2c OK [08:44:31]MH_I2C_Read... [08:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:32]Read from MH i2c: E2 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 03 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 03 00 79 85 00 90 00 72 [08:44:32]RAPDU: 90 00 [08:44:32]wFMCommunicate OK [08:44:32]wFMCommunicate request_size=29 [08:44:32]MH_SAM_APDU [08:44:32]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 18 26 01 00 35 04 06 00 63 5D 34 D0 02 98 [08:44:32]Write to MH i2c: E2 20 00 7A 85 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 18 26 01 00 35 04 06 00 63 5D 34 D0 02 98 00 00 D7 [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:32]Read from MH i2c: E2 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 03 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 03 00 7A 85 00 90 00 73 [08:44:32]RAPDU: 90 00 [08:44:32]wFMCommunicate OK [08:44:32]wFMCommunicate request_size=4 [08:44:32]MH_SAM_APDU [08:44:32]CAPDU: 80 0D 03 02 [08:44:32]Write to MH i2c: E2 08 00 7B 85 80 0D 03 02 00 00 00 00 7B [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:32]Read from MH i2c: E2 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 0B 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 0B 00 7B 85 00 83 25 69 4C 4D 0B 79 47 90 00 F1 [08:44:32]RAPDU: 83 25 69 4C 4D 0B 79 47 90 00 [08:44:32]wFMCommunicate OK [08:44:32]SAM_PROTO_SignData done [08:44:32]FM_MakeSignedData done [08:44:32]CreateOFDProtocolMessage [08:44:32]wFMCommunicate request_size=4 [08:44:32]MH_SAM_APDU [08:44:32]CAPDU: 80 11 00 00 [08:44:32]Write to MH i2c: E2 08 00 7C 85 80 11 00 00 00 00 00 00 7B [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:32]Read from MH i2c: E2 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 17 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 17 00 7C 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C8 [08:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:44:32]wFMCommunicate OK [08:44:32]CreateOFDProtocolMessage done [08:44:32]OFDSenderStorePacket 75288 [08:44:32]StoreOFDPacket docnum=75288 [08:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 5C B3 1A 01 3D 3F 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 B7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 26 01 00 35 04 06 00 63 5D 34 D0 02 98 83 25 69 4C 4D 0B 79 47 [08:44:32]CheckFolder [08:44:32]dirname=/storage/ofd_packets [08:44:32]CheckFolder done [08:44:32]ProducePacketName [08:44:32]name=ofd_packets/00075288 [08:44:32]NVStorageSaveData ofd_packets/00075288 [08:44:32]File name is /storage/ofd_packets/00075288 [08:44:32]Write 320 bytes [08:44:32]NVStorageSaveData done [08:44:32]OFDSenderStorePacket done [08:44:32]KKMCreateOFDPacket done [08:44:32]NVStorageSaveData kkm_last_timestamp [08:44:32]File name is /storage/kkm_last_timestamp [08:44:32]Write 4 bytes [08:44:32]NVStorageSaveData done [08:44:32]ExternCall_PrintAddStr [08:44:32]wPrintStart [08:44:32]Write to MH i2c: 01 00 00 7D 85 02 [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: 01 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: 01 07 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: 01 07 00 7D 85 00 00 00 00 00 FF 0F 17 [08:44:32]RasterBufferAndPrint [08:44:32]line Счет N : (3)273201 [08:44:32]line ИНН: 02508201610067 [08:44:32]line Контрольно-Кассовый Чек [08:44:32]line ПРОДАЖА [08:44:32]line Товар: 48742191 [08:44:32]line Сигареты Bond Street Blue [08:44:32]line 4.000 * 125.00 [08:44:32]line = 500.00 [08:44:32]line НДС 12% НСП 1% [08:44:32]line > о реализуемом товаре [08:44:32]line ИТОГО: 500.00 [08:44:32]line НСП 1% : 4.42 [08:44:32]line НДС 12% : 53.10 [08:44:32]line Наличными: 500.00 [08:44:32]line Безнал.: 0.00 [08:44:32]line Место: АЗС № 133 "Партнер Нефть" [08:44:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:44:32]line СНО: Общий режим [08:44:32]line Чек 21 23.10.2024 08:44 [08:44:32]line Смена: 173 ФФД: 1.0 [08:44:32]line ЗНМ: 0300000020 [08:44:32]line РНМ: 0000000000161154 [08:44:32]line Версия ККМ: v1.0 [08:44:32]line ФМ: 0000000000963323 [08:44:32]line ФД: 75288 [08:44:32]line ФПД: 109251969155736 [08:44:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084437&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75288&fm=109251969155736&tin=02508201610067®Number=0000000000161154&sum=50000 [08:44:32]line 0 [08:44:32]OFD Sender: Processing packet 75288 [packets to send 15, broken 14] [08:44:32]ProducePacketName [08:44:32]name=ofd_packets/00075288 [08:44:32]OFD Sender: To server: pG, [08:44:32]CommunicateWithHost lk.salyk.kg:30040 [08:44:32]ConnectInit lk.salyk.kg [08:44:32]written 0, free lines is 4095 [08:44:32]Connected sock=10 [08:44:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 5C B3 1A 01 3D 3F 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 B7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 26 01 00 35 04 06 00 63 5D 34 D0 02 98 83 25 69 4C 4D 0B 79 47 [08:44:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A9 45 47 00 35 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 26 01 00 F4 03 04 00 50 60 18 67 B6 04 01 00 00 9E AE 1F B3 D1 B3 19 ED [08:44:32]CommunicateWithHost err = 0 [08:44:32]CheckOFDResponse [08:44:32]1017 (14) - 77093643461234 [08:44:32]1041 (16) - 0000000000963323 [08:44:32]1040 (4) - 75288 [08:44:32]1012 (4) - 23.10.2024 02:32 [08:44:32]1206 (1) - 0 [08:44:32]OFD Sender: Remove packet 75288 [08:44:32]ProducePacketName [08:44:32]name=ofd_packets/00075288 [08:44:32]NVStorageDeleteData [08:44:33]Write to MH i2c: 01 00 00 A4 85 29 [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 07 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 07 00 A4 85 00 00 00 00 00 DE 0C 1A [08:44:33]RasterBufferAndPrint [08:44:33]line [08:44:33]line [08:44:33]line [08:44:33]line [08:44:33]line [08:44:33]written 0, free lines is 3299 [08:44:33]MH_Cut [08:44:33]Write to MH i2c: D1 01 00 AB 85 01 02 [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: D1 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: D1 01 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: D1 01 00 AB 85 00 01 [08:44:33]Write to MH i2c: 01 00 00 AC 85 31 [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]OFD Sender: No OFD packet to send [08:44:33]*** Cut start [08:44:33]*** Partial cut [08:44:33]*** CUTSNS_PIN = 1 [08:44:33]*** CUTSNS_PIN = 0 [08:44:34]*** Brake cut motor [08:44:34]Read from MH i2c: 01 [08:44:34]MH_I2C_Read... [08:44:34]*** Stop cut motor [08:44:34]*** Cut end [08:44:34]Read from MH i2c: 01 07 00 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: 01 07 00 AC 85 00 00 00 00 00 FF 0F 46 [08:44:34]process_action close_receipt done [08:44:34]requested_data is exist [08:44:34]produce_requested_data [08:44:34]requested_item fm.sn is exist - process it [08:44:34]wFMCommunicate request_size=4 [08:44:34]MH_SAM_APDU [08:44:34]CAPDU: 80 11 00 00 [08:44:34]Write to MH i2c: E2 08 00 AD 85 80 11 00 00 00 00 00 00 AC [08:44:34]Write i2c OK [08:44:34]MH_I2C_Read... [08:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:34]Read from MH i2c: E2 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: E2 17 00 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: E2 17 00 AD 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F9 [08:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:44:34]wFMCommunicate OK [08:44:34]requested_item fd.num is exist - process it [08:44:34]SAM_PROTO_GetFieldsCounters [08:44:34]wFMCommunicate request_size=4 [08:44:34]MH_SAM_APDU [08:44:34]CAPDU: 80 13 00 00 [08:44:34]Write to MH i2c: E2 08 00 AE 85 80 13 00 00 00 00 00 00 AF [08:44:34]Write i2c OK [08:44:34]MH_I2C_Read... [08:44:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:34]Read from MH i2c: E2 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: E2 62 00 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: E2 62 00 AE 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 18 26 01 00 0E 04 04 00 AD 00 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 EE [08:44:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 18 26 01 00 0E 04 04 00 AD 00 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:44:34]wFMCommunicate OK [08:44:34]SAM_PROTO_GetFieldsCounters done [08:44:34]requested_item shift.num is exist - process it [08:44:34]requested_item shift.opened is exist - process it [08:44:34]req_shift_opened [08:44:34]FM_GetShiftState [08:44:34]SAM_PROTO_GetShiftState [08:44:34]wFMCommunicate request_size=4 [08:44:34]MH_SAM_APDU [08:44:34]CAPDU: 80 13 01 00 [08:44:34]Write to MH i2c: E2 08 00 AF 85 80 13 01 00 00 00 00 00 B1 [08:44:34]Write i2c OK [08:44:34]MH_I2C_Read... [08:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:34]Read from MH i2c: E2 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: E2 0E 00 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: E2 0E 00 AF 85 00 09 00 01 99 41 18 67 00 00 00 00 90 00 16 [08:44:34]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:44:34]wFMCommunicate OK [08:44:34]SAM_PROTO_GetShiftState done [08:44:34]FM_GetShiftState done [08:44:34]req_shift_opened done [08:44:34]requested_item shift.open_date is exist - process it [08:44:34]req_shift_open_date [08:44:34]req_shift_open_date done [08:44:34]produce_requested_data done [08:44:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75288,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [08:44:34]process_action_free close_receipt [08:44:34]json_value_free [08:44:34]json_value_free done [08:44:34]process_json_proto returns [08:44:34]Send response to host [08:44:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75288,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [08:44:34]free response buf [08:44:34]execute_script done [08:44:34]execute_script returns [08:44:34]free content buf [08:44:34]Sock 9.Close socket [08:44:34]Sock 9.Thread stoped [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:25]accept exits with 7 [08:51:25]New connection [08:51:25]New thread 3067465060 created [08:51:25]Thread 3067321700 joined [08:51:25]Waiting for new connection... [08:51:25] Sock 7.Parse request [08:51:25]Sock 7.Check first char [08:51:25]Sock 7.First char is OK [08:51:25]request: POST /json_proto HTTP/1.0 [08:51:25]Method: POST [08:51:25]URL: /json_proto [08:51:25]Method is POST - this is cgi request [08:51:25]url: /json_proto [08:51:25]query_string will be loaded in cgi processing [08:51:25]execute_cgi json_proto POST (null) [08:51:25]execute_cgi path=json_proto method=POST [08:51:25]POST find Content-Length [08:51:25]Host: 172.17.44.196:8080 [08:51:25]Content-Length: 618 [08:51:25]Content-Type: application/json [08:51:25] [08:51:25]POST finish read [08:51:25]Found Content-Length = 618 [08:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273202", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:25]execute_script... [08:51:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273202", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:25]POST & json_proto [08:51:25]process_json_proto [08:51:25]json parsed OK: [08:51:25]protocol is kg_v1.0 [08:51:25]action value=close_receipt [08:51:25]process_action close_receipt [08:51:25]cmd_close_receipt [08:51:25]MH_GetDate [08:51:25]Write to MH i2c: F0 00 00 B0 85 24 [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: F0 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: F0 09 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: F0 09 00 B0 85 00 14 B9 18 67 E7 19 F8 65 D6 [08:51:25]GetLastDocTimeStamp 1729673077 [08:51:25]current date 1729673492 [08:51:25]FM_GetShiftState [08:51:25]SAM_PROTO_GetShiftState [08:51:25]wFMCommunicate request_size=4 [08:51:25]MH_SAM_APDU [08:51:25]CAPDU: 80 13 01 00 [08:51:25]Write to MH i2c: E2 08 00 B1 85 80 13 01 00 00 00 00 00 B3 [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:25]Read from MH i2c: E2 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 0E 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 0E 00 B1 85 00 09 00 01 99 41 18 67 00 00 00 00 90 00 18 [08:51:25]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:51:25]wFMCommunicate OK [08:51:25]SAM_PROTO_GetShiftState done [08:51:25]FM_GetShiftState done [08:51:25]opened in 1729642905 [08:51:25]opened+sec_in_day 1729729305 [08:51:25]quantity*price = 12500 [08:51:25]sum+1 = 12501 [08:51:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 22 23.10.2024 08:51 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75289 ФПД: 171042960325540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085132&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75289&fm=171042960325540&tin=02508201610067®Number=0000000000161154&sum=12500 0 [08:51:26]StoreToDocumentArchive [08:51:26]shift 173 fd 75289 [08:51:26]save to /storage/0173/doc_00075289 [08:51:26]save last doc name /storage/0173/doc_00075289 to /storage/kkm_last_doc_name [08:51:26]save OK [08:51:26]Clear old archive folders... [08:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=270 [08:51:26]tlvbuf is 00D24000 [08:51:26]SAM_PROTO_ClearQueue [08:51:26]wFMCommunicate request_size=4 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 09 00 00 [08:51:26]Write to MH i2c: E2 08 00 BE 85 80 09 00 00 00 00 00 00 B5 [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 03 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 03 00 BE 85 00 90 00 B7 [08:51:26]RAPDU: 90 00 [08:51:26]wFMCommunicate OK [08:51:26]SAM_PROTO_ClearQueue done [08:51:26]KKMCreateOFDPacket [08:51:26]OFDProtocolAddRootSTLVToBuf [08:51:26]FM_MakeSignedData [08:51:26]FM_MakeSignedData [08:51:26]SAM_PROTO_SignData [08:51:26]wFMCommunicate request_size=4 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 0D 01 02 [08:51:26]Write to MH i2c: E2 08 00 BF 85 80 0D 01 02 00 00 00 00 BD [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 03 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 03 00 BF 85 00 90 00 B8 [08:51:26]RAPDU: 90 00 [08:51:26]wFMCommunicate OK [08:51:26]wFMCommunicate request_size=255 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 14 B9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [08:51:26]Write to MH i2c: E2 02 01 C0 85 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 14 B9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 A9 [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:27]Read from MH i2c: E2 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 03 00 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 03 00 C0 85 00 90 00 B9 [08:51:27]RAPDU: 90 00 [08:51:27]wFMCommunicate OK [08:51:27]wFMCommunicate request_size=29 [08:51:27]MH_SAM_APDU [08:51:27]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 19 26 01 00 35 04 06 00 9B 90 0A E4 3B A4 [08:51:27]Write to MH i2c: E2 20 00 C1 85 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 19 26 01 00 35 04 06 00 9B 90 0A E4 3B A4 00 00 B9 [08:51:27]Write i2c OK [08:51:27]MH_I2C_Read... [08:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:27]Read from MH i2c: E2 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 03 00 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 03 00 C1 85 00 90 00 BA [08:51:27]RAPDU: 90 00 [08:51:27]wFMCommunicate OK [08:51:27]wFMCommunicate request_size=4 [08:51:27]MH_SAM_APDU [08:51:27]CAPDU: 80 0D 03 02 [08:51:27]Write to MH i2c: E2 08 00 C2 85 80 0D 03 02 00 00 00 00 C2 [08:51:27]Write i2c OK [08:51:27]MH_I2C_Read... [08:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:27]Read from MH i2c: E2 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 0B 00 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 0B 00 C2 85 00 DD 3C 95 4B D0 16 A4 7C 90 00 C2 [08:51:27]RAPDU: DD 3C 95 4B D0 16 A4 7C 90 00 [08:51:27]wFMCommunicate OK [08:51:27]SAM_PROTO_SignData done [08:51:27]FM_MakeSignedData done [08:51:27]CreateOFDProtocolMessage [08:51:27]wFMCommunicate request_size=4 [08:51:27]MH_SAM_APDU [08:51:27]CAPDU: 80 11 00 00 [08:51:27]Write to MH i2c: E2 08 00 C3 85 80 11 00 00 00 00 00 00 C2 [08:51:27]Write i2c OK [08:51:27]MH_I2C_Read... [08:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:27]Read from MH i2c: E2 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 17 00 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 17 00 C3 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0F [08:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:51:27]wFMCommunicate OK [08:51:27]CreateOFDProtocolMessage done [08:51:27]OFDSenderStorePacket 75289 [08:51:27]StoreOFDPacket docnum=75289 [08:51:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 79 3F 1A 01 9B FE 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 14 B9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 26 01 00 35 04 06 00 9B 90 0A E4 3B A4 DD 3C 95 4B D0 16 A4 7C [08:51:27]CheckFolder [08:51:27]dirname=/storage/ofd_packets [08:51:27]CheckFolder done [08:51:27]ProducePacketName [08:51:27]name=ofd_packets/00075289 [08:51:27]NVStorageSaveData ofd_packets/00075289 [08:51:27]File name is /storage/ofd_packets/00075289 [08:51:27]Write 320 bytes [08:51:27]NVStorageSaveData done [08:51:27]OFDSenderStorePacket done [08:51:27]KKMCreateOFDPacket done [08:51:27]NVStorageSaveData kkm_last_timestamp [08:51:27]File name is /storage/kkm_last_timestamp [08:51:27]Write 4 bytes [08:51:27]NVStorageSaveData done [08:51:27]ExternCall_PrintAddStr [08:51:27]wPrintStart [08:51:27]Write to MH i2c: 01 00 00 C4 85 49 [08:51:27]Write i2c OK [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: 01 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: 01 07 00 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: 01 07 00 C4 85 00 00 00 00 00 FF 0F 5E [08:51:27]RasterBufferAndPrint [08:51:27]line Счет N : (3)273202 [08:51:27]line ИНН: 02508201610067 [08:51:27]line Контрольно-Кассовый Чек [08:51:27]line ПРОДАЖА [08:51:27]line Товар: 48742191 [08:51:27]line Сигареты Bond Street Blue [08:51:27]line 1.000 * 125.00 [08:51:27]line = 125.00 [08:51:27]line НДС 12% НСП 1% [08:51:27]line > о реализуемом товаре [08:51:27]line ИТОГО: 125.00 [08:51:27]line НСП 1% : 1.11 [08:51:27]line НДС 12% : 13.27 [08:51:27]line Наличными: 125.00 [08:51:27]line Безнал.: 0.00 [08:51:27]line Место: АЗС № 133 "Партнер Нефть" [08:51:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:51:27]line СНО: Общий режим [08:51:27]line Чек 22 23.10.2024 08:51 [08:51:27]line Смена: 173 ФФД: 1.0 [08:51:27]line ЗНМ: 0300000020 [08:51:27]line РНМ: 0000000000161154 [08:51:27]line Версия ККМ: v1.0 [08:51:27]line ФМ: 0000000000963323 [08:51:27]line ФД: 75289 [08:51:27]line ФПД: 171042960325540 [08:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085132&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75289&fm=171042960325540&tin=02508201610067®Number=0000000000161154&sum=12500 [08:51:27]OFD Sender: Processing packet 75289 [packets to send 15, broken 14] [08:51:27]ProducePacketName [08:51:27]name=ofd_packets/00075289 [08:51:27]OFD Sender: To server: pG, [08:51:27]CommunicateWithHost lk.salyk.kg:30040 [08:51:27]ConnectInit lk.salyk.kg [08:51:27]line 0 [08:51:27]written 0, free lines is 4095 [08:51:27]Connected sock=10 [08:51:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 79 3F 1A 01 9B FE 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 14 B9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 26 01 00 35 04 06 00 9B 90 0A E4 3B A4 DD 3C 95 4B D0 16 A4 7C [08:51:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D2 A1 47 00 51 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 26 01 00 F4 03 04 00 EF 61 18 67 B6 04 01 00 00 BB E0 16 EC 2C 05 DE C2 [08:51:28]CommunicateWithHost err = 0 [08:51:28]CheckOFDResponse [08:51:28]1017 (14) - 77093643461234 [08:51:28]1041 (16) - 0000000000963323 [08:51:28]1040 (4) - 75289 [08:51:28]1012 (4) - 23.10.2024 02:39 [08:51:28]1206 (1) - 0 [08:51:28]OFD Sender: Remove packet 75289 [08:51:28]ProducePacketName [08:51:28]name=ofd_packets/00075289 [08:51:28]NVStorageDeleteData [08:51:28]Write to MH i2c: 01 00 00 EB 85 70 [08:51:28]Write i2c OK [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: 01 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: 01 07 00 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: 01 07 00 EB 85 00 00 00 00 00 DC 0C 5F [08:51:28]RasterBufferAndPrint [08:51:28]line [08:51:28]line [08:51:28]line [08:51:28]line [08:51:28]line [08:51:28]written 0, free lines is 3297 [08:51:28]MH_Cut [08:51:28]Write to MH i2c: D1 01 00 F2 85 01 49 [08:51:28]Write i2c OK [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: D1 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: D1 01 00 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: D1 01 00 F2 85 00 48 [08:51:28]Write to MH i2c: 01 00 00 F3 85 78 [08:51:28]Write i2c OK [08:51:28]MH_I2C_Read... [08:51:28]OFD Sender: No OFD packet to send [08:51:28]*** Cut start [08:51:28]*** Partial cut [08:51:28]*** CUTSNS_PIN = 1 [08:51:29]*** CUTSNS_PIN = 0 [08:51:29]*** Brake cut motor [08:51:29]Read from MH i2c: 01 [08:51:29]MH_I2C_Read... [08:51:29]*** Stop cut motor [08:51:29]*** Cut end [08:51:29]Read from MH i2c: 01 07 00 [08:51:29]MH_I2C_Read... [08:51:29]Read from MH i2c: 01 07 00 F3 85 00 00 00 00 00 FF 0F 8D [08:51:29]process_action close_receipt done [08:51:29]requested_data is exist [08:51:29]produce_requested_data [08:51:29]requested_item fm.sn is exist - process it [08:51:29]wFMCommunicate request_size=4 [08:51:29]MH_SAM_APDU [08:51:29]CAPDU: 80 11 00 00 [08:51:29]Write to MH i2c: E2 08 00 F4 85 80 11 00 00 00 00 00 00 F3 [08:51:29]Write i2c OK [08:51:29]MH_I2C_Read... [08:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:29]Read from MH i2c: E2 [08:51:29]MH_I2C_Read... [08:51:29]Read from MH i2c: E2 17 00 [08:51:29]MH_I2C_Read... [08:51:29]Read from MH i2c: E2 17 00 F4 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 40 [08:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:51:29]wFMCommunicate OK [08:51:29]requested_item fd.num is exist - process it [08:51:29]SAM_PROTO_GetFieldsCounters [08:51:29]wFMCommunicate request_size=4 [08:51:29]MH_SAM_APDU [08:51:29]CAPDU: 80 13 00 00 [08:51:29]Write to MH i2c: E2 08 00 F5 85 80 13 00 00 00 00 00 00 F6 [08:51:29]Write i2c OK [08:51:29]MH_I2C_Read... [08:51:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:29]Read from MH i2c: E2 [08:51:29]MH_I2C_Read... [08:51:29]Read from MH i2c: E2 62 00 [08:51:29]MH_I2C_Read... [08:51:29]Read from MH i2c: E2 62 00 F5 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 19 26 01 00 0E 04 04 00 AD 00 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 39 [08:51:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 19 26 01 00 0E 04 04 00 AD 00 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:51:29]wFMCommunicate OK [08:51:29]SAM_PROTO_GetFieldsCounters done [08:51:29]requested_item shift.num is exist - process it [08:51:29]requested_item shift.opened is exist - process it [08:51:29]req_shift_opened [08:51:29]FM_GetShiftState [08:51:29]SAM_PROTO_GetShiftState [08:51:29]wFMCommunicate request_size=4 [08:51:29]MH_SAM_APDU [08:51:29]CAPDU: 80 13 01 00 [08:51:29]Write to MH i2c: E2 08 00 F6 85 80 13 01 00 00 00 00 00 F8 [08:51:29]Write i2c OK [08:51:29]MH_I2C_Read... [08:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:29]Read from MH i2c: E2 [08:51:29]MH_I2C_Read... [08:51:29]Read from MH i2c: E2 0E 00 [08:51:29]MH_I2C_Read... [08:51:29]Read from MH i2c: E2 0E 00 F6 85 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5D [08:51:29]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:51:29]wFMCommunicate OK [08:51:29]SAM_PROTO_GetShiftState done [08:51:29]FM_GetShiftState done [08:51:29]req_shift_opened done [08:51:29]requested_item shift.open_date is exist - process it [08:51:29]req_shift_open_date [08:51:29]req_shift_open_date done [08:51:29]produce_requested_data done [08:51:29]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75289,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [08:51:29]process_action_free close_receipt [08:51:29]json_value_free [08:51:29]json_value_free done [08:51:29]process_json_proto returns [08:51:29]Send response to host [08:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75289,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [08:51:29]free response buf [08:51:29]execute_script done [08:51:29]execute_script returns [08:51:29]free content buf [08:51:29]Sock 7.Close socket [08:51:29]Sock 7.Thread stoped [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:24]accept exits with 9 [08:59:24]New connection [08:59:24]New thread 3067321700 created [08:59:24]Thread 3067465060 joined [08:59:24]Waiting for new connection... [08:59:24] Sock 9.Parse request [08:59:24]Sock 9.Check first char [08:59:24]Sock 9.First char is OK [08:59:24]request: POST /json_proto HTTP/1.0 [08:59:24]Method: POST [08:59:24]URL: /json_proto [08:59:24]Method is POST - this is cgi request [08:59:24]url: /json_proto [08:59:24]query_string will be loaded in cgi processing [08:59:24]execute_cgi json_proto POST (null) [08:59:24]execute_cgi path=json_proto method=POST [08:59:24]POST find Content-Length [08:59:24]Host: 172.17.44.196:8080 [08:59:24]Content-Length: 621 [08:59:24]Content-Type: application/json [08:59:24] [08:59:24]POST finish read [08:59:24]Found Content-Length = 621 [08:59:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273203", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:24]execute_script... [08:59:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273203", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:24]POST & json_proto [08:59:24]process_json_proto [08:59:24]json parsed OK: [08:59:24]protocol is kg_v1.0 [08:59:24]action value=close_receipt [08:59:24]process_action close_receipt [08:59:24]cmd_close_receipt [08:59:24]MH_GetDate [08:59:24]Write to MH i2c: F0 00 00 F7 85 6B [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: F0 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: F0 09 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: F0 09 00 F7 85 00 F3 BA 18 67 E7 19 F8 65 FD [08:59:24]GetLastDocTimeStamp 1729673492 [08:59:24]current date 1729673971 [08:59:24]FM_GetShiftState [08:59:24]SAM_PROTO_GetShiftState [08:59:24]wFMCommunicate request_size=4 [08:59:24]MH_SAM_APDU [08:59:24]CAPDU: 80 13 01 00 [08:59:24]Write to MH i2c: E2 08 00 F8 85 80 13 01 00 00 00 00 00 FA [08:59:24]Write i2c OK [08:59:24]MH_I2C_Read... [08:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:24]Read from MH i2c: E2 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 0E 00 [08:59:24]MH_I2C_Read... [08:59:24]Read from MH i2c: E2 0E 00 F8 85 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5F [08:59:24]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:59:24]wFMCommunicate OK [08:59:24]SAM_PROTO_GetShiftState done [08:59:24]FM_GetShiftState done [08:59:24]opened in 1729642905 [08:59:24]opened+sec_in_day 1729729305 [08:59:24]quantity*price = 14000 [08:59:24]sum+1 = 14001 [08:59:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 23 23.10.2024 08:59 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75290 ФПД: 230807322030130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085931&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75290&fm=230807322030130&tin=02508201610067®Number=0000000000161154&sum=14000 0 [08:59:25]StoreToDocumentArchive [08:59:25]shift 173 fd 75290 [08:59:25]save to /storage/0173/doc_00075290 [08:59:25]save last doc name /storage/0173/doc_00075290 to /storage/kkm_last_doc_name [08:59:25]save OK [08:59:25]Clear old archive folders... [08:59:25]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:59:25]tlvbuf is 00DADD50 [08:59:25]SAM_PROTO_ClearQueue [08:59:25]wFMCommunicate request_size=4 [08:59:25]MH_SAM_APDU [08:59:25]CAPDU: 80 09 00 00 [08:59:25]Write to MH i2c: E2 08 00 05 86 80 09 00 00 00 00 00 00 FD [08:59:25]Write i2c OK [08:59:25]MH_I2C_Read... [08:59:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:25]Read from MH i2c: E2 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: E2 03 00 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: E2 03 00 05 86 00 90 00 FF [08:59:25]RAPDU: 90 00 [08:59:25]wFMCommunicate OK [08:59:25]SAM_PROTO_ClearQueue done [08:59:25]KKMCreateOFDPacket [08:59:25]OFDProtocolAddRootSTLVToBuf [08:59:25]FM_MakeSignedData [08:59:25]FM_MakeSignedData [08:59:25]SAM_PROTO_SignData [08:59:25]wFMCommunicate request_size=4 [08:59:25]MH_SAM_APDU [08:59:25]CAPDU: 80 0D 01 02 [08:59:25]Write to MH i2c: E2 08 00 06 86 80 0D 01 02 00 00 00 00 05 [08:59:25]Write i2c OK [08:59:25]MH_I2C_Read... [08:59:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:25]Read from MH i2c: E2 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: E2 03 00 [08:59:25]MH_I2C_Read... [08:59:25]Read from MH i2c: E2 03 00 06 86 00 90 00 00 [08:59:25]RAPDU: 90 00 [08:59:25]wFMCommunicate OK [08:59:25]wFMCommunicate request_size=255 [08:59:25]MH_SAM_APDU [08:59:25]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F3 BA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [08:59:25]Write to MH i2c: E2 02 01 07 86 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F3 BA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 E3 [08:59:25]Write i2c OK [08:59:25]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 03 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 03 00 07 86 00 90 00 01 [08:59:26]RAPDU: 90 00 [08:59:26]wFMCommunicate OK [08:59:26]wFMCommunicate request_size=32 [08:59:26]MH_SAM_APDU [08:59:26]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 26 01 00 35 04 06 00 D1 EB 04 70 F0 32 [08:59:26]Write to MH i2c: E2 23 00 08 86 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 26 01 00 35 04 06 00 D1 EB 04 70 F0 32 00 00 F2 [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 03 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 03 00 08 86 00 90 00 02 [08:59:26]RAPDU: 90 00 [08:59:26]wFMCommunicate OK [08:59:26]wFMCommunicate request_size=4 [08:59:26]MH_SAM_APDU [08:59:26]CAPDU: 80 0D 03 02 [08:59:26]Write to MH i2c: E2 08 00 09 86 80 0D 03 02 00 00 00 00 0A [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 0B 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 0B 00 09 86 00 58 69 2A 9C 53 0A 19 9A 90 00 A2 [08:59:26]RAPDU: 58 69 2A 9C 53 0A 19 9A 90 00 [08:59:26]wFMCommunicate OK [08:59:26]SAM_PROTO_SignData done [08:59:26]FM_MakeSignedData done [08:59:26]CreateOFDProtocolMessage [08:59:26]wFMCommunicate request_size=4 [08:59:26]MH_SAM_APDU [08:59:26]CAPDU: 80 11 00 00 [08:59:26]Write to MH i2c: E2 08 00 0A 86 80 11 00 00 00 00 00 00 0A [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 17 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 17 00 0A 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 57 [08:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:59:26]wFMCommunicate OK [08:59:26]CreateOFDProtocolMessage done [08:59:26]OFDSenderStorePacket 75290 [08:59:26]StoreOFDPacket docnum=75290 [08:59:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 75 83 1D 01 76 2C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F3 BA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 26 01 00 35 04 06 00 D1 EB 04 70 F0 32 58 69 2A 9C 53 0A 19 9A [08:59:26]CheckFolder [08:59:26]dirname=/storage/ofd_packets [08:59:26]CheckFolder done [08:59:26]ProducePacketName [08:59:26]name=ofd_packets/00075290 [08:59:26]NVStorageSaveData ofd_packets/00075290 [08:59:26]File name is /storage/ofd_packets/00075290 [08:59:26]Write 323 bytes [08:59:26]NVStorageSaveData done [08:59:26]OFDSenderStorePacket done [08:59:26]KKMCreateOFDPacket done [08:59:26]NVStorageSaveData kkm_last_timestamp [08:59:26]File name is /storage/kkm_last_timestamp [08:59:26]Write 4 bytes [08:59:26]NVStorageSaveData done [08:59:26]ExternCall_PrintAddStr [08:59:26]wPrintStart [08:59:26]Write to MH i2c: 01 00 00 0B 86 91 [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: 01 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: 01 07 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: 01 07 00 0B 86 00 00 00 00 00 FF 0F A6 [08:59:26]RasterBufferAndPrint [08:59:26]line Счет N : (3)273203 [08:59:26]line ИНН: 02508201610067 [08:59:26]line Контрольно-Кассовый Чек [08:59:26]line ПРОДАЖА [08:59:26]line Товар: 48743570 [08:59:26]line Сигареты Winston XStyle Blue [08:59:26]line 1.000 * 140.00 [08:59:26]line = 140.00 [08:59:26]line НДС 12% НСП 1% [08:59:26]line > о реализуемом товаре [08:59:26]line ИТОГО: 140.00 [08:59:26]line НСП 1% : 1.24 [08:59:26]line НДС 12% : 14.87 [08:59:26]line Наличными: 140.00 [08:59:26]line Безнал.: 0.00 [08:59:26]line Место: АЗС № 133 "Партнер Нефть" [08:59:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [08:59:26]line СНО: Общий режим [08:59:26]line Чек 23 23.10.2024 08:59 [08:59:26]line Смена: 173 ФФД: 1.0 [08:59:26]line ЗНМ: 0300000020 [08:59:26]line РНМ: 0000000000161154 [08:59:26]line Версия ККМ: v1.0 [08:59:26]line ФМ: 0000000000963323 [08:59:26]line ФД: 75290 [08:59:26]line ФПД: 230807322030130 [08:59:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085931&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75290&fm=230807322030130&tin=02508201610067®Number=0000000000161154&sum=14000 [08:59:26]line 0 [08:59:26]OFD Sender: Processing packet 75290 [packets to send 15, broken 14] [08:59:26]ProducePacketName [08:59:26]name=ofd_packets/00075290 [08:59:26]OFD Sender: To server: pG, [08:59:26]CommunicateWithHost lk.salyk.kg:30040 [08:59:26]ConnectInit lk.salyk.kg [08:59:26]written 0, free lines is 4095 [08:59:26]Connected sock=10 [08:59:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 75 83 1D 01 76 2C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F3 BA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 26 01 00 35 04 06 00 D1 EB 04 70 F0 32 58 69 2A 9C 53 0A 19 9A [08:59:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 52 B7 47 00 D1 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 39 36 33 33 32 33 10 04 04 00 1A 26 01 00 F4 03 04 00 CE 63 18 67 B6 04 01 00 00 A8 DE FA 60 AA E0 37 D8 [08:59:27]CommunicateWithHost err = 0 [08:59:27]CheckOFDResponse [08:59:27]1017 (14) - 77093643461234 [08:59:27]1041 (16) - 0000000000963323 [08:59:27]1040 (4) - 75290 [08:59:27]1012 (4) - 23.10.2024 02:47 [08:59:27]1206 (1) - 0 [08:59:27]OFD Sender: Remove packet 75290 [08:59:27]ProducePacketName [08:59:27]name=ofd_packets/00075290 [08:59:27]NVStorageDeleteData [08:59:27]Write to MH i2c: 01 00 00 32 86 B8 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: 01 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: 01 07 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: 01 07 00 32 86 00 00 00 00 00 DE 0C A9 [08:59:27]RasterBufferAndPrint [08:59:27]line [08:59:27]line [08:59:27]line [08:59:27]line [08:59:27]line [08:59:27]written 0, free lines is 3300 [08:59:27]MH_Cut [08:59:27]Write to MH i2c: D1 01 00 39 86 01 91 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: D1 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: D1 01 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: D1 01 00 39 86 00 90 [08:59:27]Write to MH i2c: 01 00 00 3A 86 C0 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]OFD Sender: No OFD packet to send [08:59:27]*** Cut start [08:59:27]*** Partial cut [08:59:27]*** CUTSNS_PIN = 1 [08:59:27]*** CUTSNS_PIN = 0 [08:59:28]*** Brake cut motor [08:59:28]Read from MH i2c: 01 [08:59:28]MH_I2C_Read... [08:59:28]*** Stop cut motor [08:59:28]*** Cut end [08:59:28]Read from MH i2c: 01 07 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 3A 86 00 00 00 00 00 FF 0F D5 [08:59:28]process_action close_receipt done [08:59:28]requested_data is exist [08:59:28]produce_requested_data [08:59:28]requested_item fm.sn is exist - process it [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 11 00 00 [08:59:28]Write to MH i2c: E2 08 00 3B 86 80 11 00 00 00 00 00 00 3B [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 17 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 17 00 3B 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 88 [08:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [08:59:28]wFMCommunicate OK [08:59:28]requested_item fd.num is exist - process it [08:59:28]SAM_PROTO_GetFieldsCounters [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 13 00 00 [08:59:28]Write to MH i2c: E2 08 00 3C 86 80 13 00 00 00 00 00 00 3E [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 62 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 62 00 3C 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1A 26 01 00 0E 04 04 00 AD 00 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 85 [08:59:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1A 26 01 00 0E 04 04 00 AD 00 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:59:28]wFMCommunicate OK [08:59:28]SAM_PROTO_GetFieldsCounters done [08:59:28]requested_item shift.num is exist - process it [08:59:28]requested_item shift.opened is exist - process it [08:59:28]req_shift_opened [08:59:28]FM_GetShiftState [08:59:28]SAM_PROTO_GetShiftState [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 13 01 00 [08:59:28]Write to MH i2c: E2 08 00 3D 86 80 13 01 00 00 00 00 00 40 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 0E 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 0E 00 3D 86 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A5 [08:59:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [08:59:28]wFMCommunicate OK [08:59:28]SAM_PROTO_GetShiftState done [08:59:28]FM_GetShiftState done [08:59:28]req_shift_opened done [08:59:28]requested_item shift.open_date is exist - process it [08:59:28]req_shift_open_date [08:59:28]req_shift_open_date done [08:59:28]produce_requested_data done [08:59:28]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75290,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [08:59:28]process_action_free close_receipt [08:59:28]json_value_free [08:59:28]json_value_free done [08:59:28]process_json_proto returns [08:59:28]Send response to host [08:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75290,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [08:59:28]free response buf [08:59:28]execute_script done [08:59:28]execute_script returns [08:59:28]free content buf [08:59:28]Sock 9.Close socket [08:59:28]Sock 9.Thread stoped [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]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:09]accept exits with 7 [09:09:09]New connection [09:09:09]New thread 3067465060 created [09:09:09]Thread 3067321700 joined [09:09:09]Waiting for new connection... [09:09:09] Sock 7.Parse request [09:09:09]Sock 7.Check first char [09:09:09]Sock 7.First char is OK [09:09:09]request: POST /json_proto HTTP/1.0 [09:09:09]Method: POST [09:09:09]URL: /json_proto [09:09:09]Method is POST - this is cgi request [09:09:09]url: /json_proto [09:09:09]query_string will be loaded in cgi processing [09:09:09]execute_cgi json_proto POST (null) [09:09:09]execute_cgi path=json_proto method=POST [09:09:09]POST find Content-Length [09:09:09]Host: 172.17.44.196:8080 [09:09:09]Content-Length: 680 [09:09:09]Content-Type: application/json [09:09:09] [09:09:09]POST finish read [09:09:09]Found Content-Length = 680 [09:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [09:09:09]execute_script... [09:09: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)1965242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [09:09:09]POST & json_proto [09:09:09]process_json_proto [09:09:09]json parsed OK: [09:09:09]protocol is kg_v1.0 [09:09:09]action value=close_receipt [09:09:09]process_action close_receipt [09:09:09]cmd_close_receipt [09:09:09]MH_GetDate [09:09:09]Write to MH i2c: F0 00 00 3E 86 B3 [09:09:09]Write i2c OK [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: F0 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: F0 09 00 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: F0 09 00 3E 86 00 3C BD 18 67 E7 19 F8 65 91 [09:09:09]GetLastDocTimeStamp 1729673971 [09:09:09]current date 1729674556 [09:09:09]FM_GetShiftState [09:09:09]SAM_PROTO_GetShiftState [09:09:09]wFMCommunicate request_size=4 [09:09:09]MH_SAM_APDU [09:09:09]CAPDU: 80 13 01 00 [09:09:09]Write to MH i2c: E2 08 00 3F 86 80 13 01 00 00 00 00 00 42 [09:09:09]Write i2c OK [09:09:09]MH_I2C_Read... [09:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:09]Read from MH i2c: E2 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: E2 0E 00 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: E2 0E 00 3F 86 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A7 [09:09:09]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:09:09]wFMCommunicate OK [09:09:09]SAM_PROTO_GetShiftState done [09:09:09]FM_GetShiftState done [09:09:09]opened in 1729642905 [09:09:09]opened+sec_in_day 1729729305 [09:09:09]quantity*price = 150037 [09:09:09]sum+1 = 150039 [09:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 24 23.10.2024 09:09 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75291 ФПД: 267663162081753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090916&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75291&fm=267663162081753&tin=02508201610067®Number=0000000000161154&sum=150000 [09:09:10]StoreToDocumentArchive [09:09:10]shift 173 fd 75291 [09:09:10]save to /storage/0173/doc_00075291 [09:09:10]save last doc name /storage/0173/doc_00075291 to /storage/kkm_last_doc_name [09:09:10]save OK [09:09:10]Clear old archive folders... [09:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:09:10]tlvbuf is 00F07320 [09:09:10]SAM_PROTO_ClearQueue [09:09:10]wFMCommunicate request_size=4 [09:09:10]MH_SAM_APDU [09:09:10]CAPDU: 80 09 00 00 [09:09:10]Write to MH i2c: E2 08 00 4C 86 80 09 00 00 00 00 00 00 44 [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:10]Read from MH i2c: E2 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 4C 86 00 90 00 46 [09:09:10]RAPDU: 90 00 [09:09:10]wFMCommunicate OK [09:09:10]SAM_PROTO_ClearQueue done [09:09:10]KKMCreateOFDPacket [09:09:10]OFDProtocolAddRootSTLVToBuf [09:09:10]FM_MakeSignedData [09:09:10]FM_MakeSignedData [09:09:10]SAM_PROTO_SignData [09:09:10]wFMCommunicate request_size=4 [09:09:10]MH_SAM_APDU [09:09:10]CAPDU: 80 0D 01 02 [09:09:10]Write to MH i2c: E2 08 00 4D 86 80 0D 01 02 00 00 00 00 4C [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:10]Read from MH i2c: E2 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 4D 86 00 90 00 47 [09:09:10]RAPDU: 90 00 [09:09:10]wFMCommunicate OK [09:09:10]wFMCommunicate request_size=255 [09:09:10]MH_SAM_APDU [09:09: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3C BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 26 01 00 35 04 06 00 F3 70 2F B2 [09:09:10]Write to MH i2c: E2 02 01 4E 86 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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3C BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 26 01 00 35 04 06 00 F3 70 2F B2 00 00 FE [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:10]Read from MH i2c: E2 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 4E 86 00 90 00 48 [09:09:10]RAPDU: 90 00 [09:09:10]wFMCommunicate OK [09:09:10]wFMCommunicate request_size=7 [09:09:10]MH_SAM_APDU [09:09:10]CAPDU: 80 0D 02 02 02 01 D9 [09:09:10]Write to MH i2c: E2 0A 00 4F 86 80 0D 02 02 02 00 01 D9 00 00 2D [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:10]Read from MH i2c: E2 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 03 00 4F 86 00 90 00 49 [09:09:10]RAPDU: 90 00 [09:09:10]wFMCommunicate OK [09:09:10]wFMCommunicate request_size=4 [09:09:10]MH_SAM_APDU [09:09:10]CAPDU: 80 0D 03 02 [09:09:10]Write to MH i2c: E2 08 00 50 86 80 0D 03 02 00 00 00 00 51 [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:10]Read from MH i2c: E2 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 0B 00 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 0B 00 50 86 00 32 21 7C 37 E0 66 7B 3B 90 00 54 [09:09:10]RAPDU: 32 21 7C 37 E0 66 7B 3B 90 00 [09:09:11]wFMCommunicate OK [09:09:11]SAM_PROTO_SignData done [09:09:11]FM_MakeSignedData done [09:09:11]CreateOFDProtocolMessage [09:09:11]wFMCommunicate request_size=4 [09:09:11]MH_SAM_APDU [09:09:11]CAPDU: 80 11 00 00 [09:09:11]Write to MH i2c: E2 08 00 51 86 80 11 00 00 00 00 00 00 51 [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:11]Read from MH i2c: E2 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 17 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 17 00 51 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9E [09:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:09:11]wFMCommunicate OK [09:09:11]CreateOFDProtocolMessage done [09:09:11]OFDSenderStorePacket 75291 [09:09:11]StoreOFDPacket docnum=75291 [09:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 A7 BD 04 01 13 8A 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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3C BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 26 01 00 35 04 06 00 F3 70 2F B2 01 D9 32 21 7C 37 E0 66 7B 3B [09:09:11]CheckFolder [09:09:11]dirname=/storage/ofd_packets [09:09:11]CheckFolder done [09:09:11]ProducePacketName [09:09:11]name=ofd_packets/00075291 [09:09:11]NVStorageSaveData ofd_packets/00075291 [09:09:11]File name is /storage/ofd_packets/00075291 [09:09:11]Write 298 bytes [09:09:11]NVStorageSaveData done [09:09:11]OFDSenderStorePacket done [09:09:11]KKMCreateOFDPacket done [09:09:11]NVStorageSaveData kkm_last_timestamp [09:09:11]File name is /storage/kkm_last_timestamp [09:09:11]Write 4 bytes [09:09:11]NVStorageSaveData done [09:09:11]ExternCall_PrintAddStr [09:09:11]wPrintStart [09:09:11]Write to MH i2c: 01 00 00 52 86 D8 [09:09:11]OFD Sender: Processing packet 75291 [packets to send 15, broken 14] [09:09:11]ProducePacketName [09:09:11]name=ofd_packets/00075291 [09:09:11]OFD Sender: To server: pG, [09:09:11]CommunicateWithHost lk.salyk.kg:30040 [09:09:11]ConnectInit lk.salyk.kg [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: 01 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: 01 07 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: 01 07 00 52 86 00 00 00 00 00 FF 0F ED [09:09:11]RasterBufferAndPrint [09:09:11]line Счет N : (1)1965242 [09:09:11]line ИНН: 02508201610067 [09:09:11]line Контрольно-Кассовый Чек [09:09:11]line ПРОДАЖА [09:09:11]line ТРК (МРК, ГНК) : 11 [09:09:11]line Товар: 2710194210 [09:09:11]line ДТ-К-5 [09:09:11]line 19.690 * 76.20 [09:09:11]line = 1500.38 [09:09:11]line НДС 12% НСП 1% [09:09:11]line > о реализуемом товаре [09:09:11]line ОКРУГЛЕНИЕ: -0.38 [09:09:11]line ИТОГО: 1500.00 [09:09:11]line Внесено: 1500.00 [09:09:11]line СДАЧА: 0.00 [09:09:11]line НСП 1% : 13.28 [09:09:11]line НДС 12% : 159.33 [09:09:11]line Наличными: 1500.00 [09:09:11]line Безнал.: 0.00 [09:09:11]line Место: АЗС № 133 "Партнер Нефть" [09:09:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:09:11]line СНО: Общий режим [09:09:11]line Чек 24 23.10.2024 09:09 [09:09:11]line Смена: 173 ФФД: 1.0 [09:09:11]line ЗНМ: 0300000020 [09:09:11]line РНМ: 0000000000161154 [09:09:11]line Версия ККМ: v1.0 [09:09:11]line ФМ: 0000000000963323 [09:09:11]line ФД: 75291 [09:09:11]line ФПД: 267663162081753 [09:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090916&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75291&fm=267663162081753&tin=02508201610067®Number=0000000000161154&sum=150000 [09:09:11]Connected sock=10 [09:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 A7 BD 04 01 13 8A 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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3C BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 26 01 00 35 04 06 00 F3 70 2F B2 01 D9 32 21 7C 37 E0 66 7B 3B [09:09:11]written 0, free lines is 4095 [09:09:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A5 A2 47 00 A1 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 26 01 00 F4 03 04 00 17 66 18 67 B6 04 01 00 00 DF CC 33 CB 4A CC 31 53 [09:09:11]CommunicateWithHost err = 0 [09:09:11]CheckOFDResponse [09:09:11]1017 (14) - 77093643461234 [09:09:11]1041 (16) - 0000000000963323 [09:09:11]1040 (4) - 75291 [09:09:11]1012 (4) - 23.10.2024 02:57 [09:09:11]1206 (1) - 0 [09:09:11]OFD Sender: Remove packet 75291 [09:09:11]ProducePacketName [09:09:11]name=ofd_packets/00075291 [09:09:11]NVStorageDeleteData [09:09:11]Write to MH i2c: 01 00 00 7C 86 02 [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: 01 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: 01 07 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: 01 07 00 7C 86 00 00 00 00 00 AB 0C C0 [09:09:11]RasterBufferAndPrint [09:09:11]line [09:09:11]line [09:09:11]line [09:09:11]line [09:09:11]line [09:09:11]written 0, free lines is 3248 [09:09:11]MH_Cut [09:09:11]Write to MH i2c: D1 01 00 83 86 01 DB [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: D1 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: D1 01 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: D1 01 00 83 86 00 DA [09:09:11]Write to MH i2c: 01 00 00 84 86 0A [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:12]OFD Sender: No OFD packet to send [09:09:12]*** Cut start [09:09:12]*** Partial cut [09:09:12]*** CUTSNS_PIN = 1 [09:09:12]*** CUTSNS_PIN = 0 [09:09:13]*** Brake cut motor [09:09:13]Read from MH i2c: 01 [09:09:13]MH_I2C_Read... [09:09:13]*** Stop cut motor [09:09:13]*** Cut end [09:09:13]Read from MH i2c: 01 07 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 07 00 84 86 00 00 00 00 00 FF 0F 1F [09:09:13]process_action close_receipt done [09:09:13]requested_data is exist [09:09:13]produce_requested_data [09:09:13]requested_item fm.sn is exist - process it [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 11 00 00 [09:09:13]Write to MH i2c: E2 08 00 85 86 80 11 00 00 00 00 00 00 85 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 17 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 17 00 85 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D2 [09:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:09:13]wFMCommunicate OK [09:09:13]requested_item fd.num is exist - process it [09:09:13]SAM_PROTO_GetFieldsCounters [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 13 00 00 [09:09:13]Write to MH i2c: E2 08 00 86 86 80 13 00 00 00 00 00 00 88 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 62 00 [09:09:13]MH_I2C_Read... [09:09:13]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 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1B 26 01 00 0E 04 04 00 AD 00 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 D3 [09:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1B 26 01 00 0E 04 04 00 AD 00 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:09:13]wFMCommunicate OK [09:09:13]SAM_PROTO_GetFieldsCounters done [09:09:13]requested_item shift.num is exist - process it [09:09:13]requested_item shift.opened is exist - process it [09:09:13]req_shift_opened [09:09:13]FM_GetShiftState [09:09:13]SAM_PROTO_GetShiftState [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 13 01 00 [09:09:13]Write to MH i2c: E2 08 00 87 86 80 13 01 00 00 00 00 00 8A [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 0E 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 0E 00 87 86 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EF [09:09:13]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:09:13]wFMCommunicate OK [09:09:13]SAM_PROTO_GetShiftState done [09:09:13]FM_GetShiftState done [09:09:13]req_shift_opened done [09:09:13]requested_item shift.open_date is exist - process it [09:09:13]req_shift_open_date [09:09:13]req_shift_open_date done [09:09:13]produce_requested_data done [09:09:13]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75291,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:09:13]process_action_free close_receipt [09:09:13]json_value_free [09:09:13]json_value_free done [09:09:13]process_json_proto returns [09:09:13]Send response to host [09:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75291,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:09:13]free response buf [09:09:13]execute_script done [09:09:13]execute_script returns [09:09:13]free content buf [09:09:13]Sock 7.Close socket [09:09:13]Sock 7.Thread stoped [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:12]accept exits with 9 [09:10:12]New connection [09:10:12]New thread 3067321700 created [09:10:12]Thread 3067465060 joined [09:10:12]Waiting for new connection... [09:10:12] Sock 9.Parse request [09:10:12]Sock 9.Check first char [09:10:12]Sock 9.First char is OK [09:10:12]request: POST /json_proto HTTP/1.0 [09:10:12]Method: POST [09:10:12]URL: /json_proto [09:10:12]Method is POST - this is cgi request [09:10:12]url: /json_proto [09:10:12]query_string will be loaded in cgi processing [09:10:12]execute_cgi json_proto POST (null) [09:10:12]execute_cgi path=json_proto method=POST [09:10:12]POST find Content-Length [09:10:12]Host: 172.17.44.196:8080 [09:10:12]Content-Length: 659 [09:10:12]Content-Type: application/json [09:10:12] [09:10:12]POST finish read [09:10:12]Found Content-Length = 659 [09:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "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:10:12]execute_script... [09: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)1965243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "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:10:12]POST & json_proto [09:10:12]process_json_proto [09:10:12]json parsed OK: [09:10:12]protocol is kg_v1.0 [09:10:12]action value=close_receipt [09:10:12]process_action close_receipt [09:10:12]cmd_close_receipt [09:10:12]MH_GetDate [09:10:12]Write to MH i2c: F0 00 00 88 86 FD [09:10:12]Write i2c OK [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: F0 [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: F0 09 00 [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: F0 09 00 88 86 00 7B BD 18 67 E7 19 F8 65 1A [09:10:12]GetLastDocTimeStamp 1729674556 [09:10:12]current date 1729674619 [09:10:12]FM_GetShiftState [09:10:12]SAM_PROTO_GetShiftState [09:10:12]wFMCommunicate request_size=4 [09:10:12]MH_SAM_APDU [09:10:12]CAPDU: 80 13 01 00 [09:10:12]Write to MH i2c: E2 08 00 89 86 80 13 01 00 00 00 00 00 8C [09:10:12]Write i2c OK [09:10:12]MH_I2C_Read... [09:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:12]Read from MH i2c: E2 [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: E2 0E 00 [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: E2 0E 00 89 86 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F1 [09:10:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:10:12]wFMCommunicate OK [09:10:12]SAM_PROTO_GetShiftState done [09:10:12]FM_GetShiftState done [09:10:12]opened in 1729642905 [09:10:12]opened+sec_in_day 1729729305 [09:10:12]quantity*price = 30027 [09:10:12]sum+1 = 30029 [09:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 25 23.10.2024 09:10 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75292 ФПД: 278525811037628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091019&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75292&fm=278525811037628&tin=02508201610067®Number=0000000000161154&sum=30000 [09:10:13]StoreToDocumentArchive [09:10:13]shift 173 fd 75292 [09:10:13]save to /storage/0173/doc_00075292 [09:10:13]save last doc name /storage/0173/doc_00075292 to /storage/kkm_last_doc_name [09:10:13]save OK [09:10:13]Clear old archive folders... [09:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:10:13]tlvbuf is 00DBBEC0 [09:10:13]SAM_PROTO_ClearQueue [09:10:13]wFMCommunicate request_size=4 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 09 00 00 [09:10:13]Write to MH i2c: E2 08 00 96 86 80 09 00 00 00 00 00 00 8E [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 96 86 00 90 00 90 [09:10:13]RAPDU: 90 00 [09:10:13]wFMCommunicate OK [09:10:13]SAM_PROTO_ClearQueue done [09:10:13]KKMCreateOFDPacket [09:10:13]OFDProtocolAddRootSTLVToBuf [09:10:13]FM_MakeSignedData [09:10:13]FM_MakeSignedData [09:10:13]SAM_PROTO_SignData [09:10:13]wFMCommunicate request_size=4 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 0D 01 02 [09:10:13]Write to MH i2c: E2 08 00 97 86 80 0D 01 02 00 00 00 00 96 [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 03 00 97 86 00 90 00 91 [09:10:13]RAPDU: 90 00 [09:10:13]wFMCommunicate OK [09:10:13]wFMCommunicate request_size=253 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 19 00 00 00 F4 03 04 00 7B BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 26 01 00 35 04 06 00 FD 51 58 07 15 BC [09:10:13]Write to MH i2c: E2 00 01 98 86 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 19 00 00 00 F4 03 04 00 7B BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 26 01 00 35 04 06 00 FD 51 58 07 15 BC 00 00 1F [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:14]Read from MH i2c: E2 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: E2 03 00 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: E2 03 00 98 86 00 90 00 92 [09:10:14]RAPDU: 90 00 [09:10:14]wFMCommunicate OK [09:10:14]wFMCommunicate request_size=4 [09:10:14]MH_SAM_APDU [09:10:14]CAPDU: 80 0D 03 02 [09:10:14]Write to MH i2c: E2 08 00 99 86 80 0D 03 02 00 00 00 00 9A [09:10:14]Write i2c OK [09:10:14]MH_I2C_Read... [09:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:14]Read from MH i2c: E2 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: E2 0B 00 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: E2 0B 00 99 86 00 27 49 07 EF DB 21 63 C0 90 00 20 [09:10:14]RAPDU: 27 49 07 EF DB 21 63 C0 90 00 [09:10:14]wFMCommunicate OK [09:10:14]SAM_PROTO_SignData done [09:10:14]FM_MakeSignedData done [09:10:14]CreateOFDProtocolMessage [09:10:14]wFMCommunicate request_size=4 [09:10:14]MH_SAM_APDU [09:10:14]CAPDU: 80 11 00 00 [09:10:14]Write to MH i2c: E2 08 00 9A 86 80 11 00 00 00 00 00 00 9A [09:10:14]Write i2c OK [09:10:14]MH_I2C_Read... [09:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:14]Read from MH i2c: E2 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: E2 17 00 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: E2 17 00 9A 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E7 [09:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:10:14]wFMCommunicate OK [09:10:14]CreateOFDProtocolMessage done [09:10:14]OFDSenderStorePacket 75292 [09:10:14]StoreOFDPacket docnum=75292 [09:10:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 AA 6C 00 01 E0 4B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 19 00 00 00 F4 03 04 00 7B BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 26 01 00 35 04 06 00 FD 51 58 07 15 BC 27 49 07 EF DB 21 63 C0 [09:10:14]CheckFolder [09:10:14]dirname=/storage/ofd_packets [09:10:14]CheckFolder done [09:10:14]ProducePacketName [09:10:14]name=ofd_packets/00075292 [09:10:14]NVStorageSaveData ofd_packets/00075292 [09:10:14]File name is /storage/ofd_packets/00075292 [09:10:14]Write 294 bytes [09:10:14]NVStorageSaveData done [09:10:14]OFDSenderStorePacket done [09:10:14]KKMCreateOFDPacket done [09:10:14]NVStorageSaveData kkm_last_timestamp [09:10:14]File name is /storage/kkm_last_timestamp [09:10:14]Write 4 bytes [09:10:14]NVStorageSaveData done [09:10:14]ExternCall_PrintAddStr [09:10:14]wPrintStart [09:10:14]Write to MH i2c: 01 00 00 9B 86 21 [09:10:14]Write i2c OK [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: 01 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: 01 07 00 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: 01 07 00 9B 86 00 00 00 00 00 FF 0F 36 [09:10:14]RasterBufferAndPrint [09:10:14]line Счет N : (1)1965243 [09:10:14]line ИНН: 02508201610067 [09:10:14]line Контрольно-Кассовый Чек [09:10:14]line ПРОДАЖА [09:10:14]line ТРК (МРК, ГНК) : 42 [09:10:14]line Товар: 2710124130 [09:10:14]line SU-92 [09:10:14]line 4.390 * 68.40 [09:10:14]line = 300.28 [09:10:14]line НДС 12% НСП 1% [09:10:14]line > о реализуемом товаре [09:10:14]line ОКРУГЛЕНИЕ: -0.28 [09:10:14]line ИТОГО: 300.00 [09:10:14]line Внесено: 300.00 [09:10:14]line СДАЧА: 0.00 [09:10:14]line НСП 1% : 2.66 [09:10:14]line НДС 12% : 31.89 [09:10:14]line Наличными: 300.00 [09:10:14]line Безнал.: 0.00 [09:10:14]line Место: АЗС № 133 "Партнер Нефть" [09:10:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:10:14]line СНО: Общий режим [09:10:14]line Чек 25 23.10.2024 09:10 [09:10:14]line Смена: 173 ФФД: 1.0 [09:10:14]line ЗНМ: 0300000020 [09:10:14]line РНМ: 0000000000161154 [09:10:14]line Версия ККМ: v1.0 [09:10:14]line ФМ: 0000000000963323 [09:10:14]line ФД: 75292 [09:10:14]line ФПД: 278525811037628 [09:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091019&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75292&fm=278525811037628&tin=02508201610067®Number=0000000000161154&sum=30000 [09:10:14]OFD Sender: Processing packet 75292 [packets to send 15, broken 14] [09:10:14]ProducePacketName [09:10:14]name=ofd_packets/00075292 [09:10:14]OFD Sender: To server: pG, [09:10:14]CommunicateWithHost lk.salyk.kg:30040 [09:10:14]ConnectInit lk.salyk.kg [09:10:14]written 0, free lines is 4095 [09:10:14]Connected sock=10 [09:10:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 AA 6C 00 01 E0 4B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 19 00 00 00 F4 03 04 00 7B BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 26 01 00 35 04 06 00 FD 51 58 07 15 BC 27 49 07 EF DB 21 63 C0 [09:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5A A2 47 00 B1 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 26 01 00 F4 03 04 00 56 66 18 67 B6 04 01 00 00 4B 74 56 F7 42 76 0F 9E [09:10:14]CommunicateWithHost err = 0 [09:10:14]CheckOFDResponse [09:10:14]1017 (14) - 77093643461234 [09:10:14]1041 (16) - 0000000000963323 [09:10:14]1040 (4) - 75292 [09:10:14]1012 (4) - 23.10.2024 02:58 [09:10:14]1206 (1) - 0 [09:10:14]OFD Sender: Remove packet 75292 [09:10:14]ProducePacketName [09:10:14]name=ofd_packets/00075292 [09:10:14]NVStorageDeleteData [09:10:15]Write to MH i2c: 01 00 00 C5 86 4B [09:10:15]Write i2c OK [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: 01 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: 01 07 00 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: 01 07 00 C5 86 00 00 00 00 00 C4 0C 22 [09:10:15]RasterBufferAndPrint [09:10:15]line [09:10:15]line [09:10:15]line [09:10:15]line [09:10:15]line [09:10:15]written 0, free lines is 3274 [09:10:15]MH_Cut [09:10:15]Write to MH i2c: D1 01 00 CC 86 01 24 [09:10:15]Write i2c OK [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: D1 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: D1 01 00 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: D1 01 00 CC 86 00 23 [09:10:15]Write to MH i2c: 01 00 00 CD 86 53 [09:10:15]Write i2c OK [09:10:15]MH_I2C_Read... [09:10:15]OFD Sender: No OFD packet to send [09:10:15]*** Cut start [09:10:15]*** Partial cut [09:10:15]*** CUTSNS_PIN = 1 [09:10:15]*** CUTSNS_PIN = 0 [09:10:16]*** Brake cut motor [09:10:16]Read from MH i2c: 01 [09:10:16]MH_I2C_Read... [09:10:16]*** Stop cut motor [09:10:16]*** Cut end [09:10:16]Read from MH i2c: 01 07 00 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: 01 07 00 CD 86 00 00 00 00 00 FF 0F 68 [09:10:16]process_action close_receipt done [09:10:16]requested_data is exist [09:10:16]produce_requested_data [09:10:16]requested_item fm.sn is exist - process it [09:10:16]wFMCommunicate request_size=4 [09:10:16]MH_SAM_APDU [09:10:16]CAPDU: 80 11 00 00 [09:10:16]Write to MH i2c: E2 08 00 CE 86 80 11 00 00 00 00 00 00 CE [09:10:16]Write i2c OK [09:10:16]MH_I2C_Read... [09:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:16]Read from MH i2c: E2 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 17 00 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 17 00 CE 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1B [09:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:10:16]wFMCommunicate OK [09:10:16]requested_item fd.num is exist - process it [09:10:16]SAM_PROTO_GetFieldsCounters [09:10:16]wFMCommunicate request_size=4 [09:10:16]MH_SAM_APDU [09:10:16]CAPDU: 80 13 00 00 [09:10:16]Write to MH i2c: E2 08 00 CF 86 80 13 00 00 00 00 00 00 D1 [09:10:16]Write i2c OK [09:10:16]MH_I2C_Read... [09:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:16]Read from MH i2c: E2 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 62 00 [09:10:16]MH_I2C_Read... [09:10:16]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 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1C 26 01 00 0E 04 04 00 AD 00 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 20 [09:10:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1C 26 01 00 0E 04 04 00 AD 00 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:10:16]wFMCommunicate OK [09:10:16]SAM_PROTO_GetFieldsCounters done [09:10:16]requested_item shift.num is exist - process it [09:10:16]requested_item shift.opened is exist - process it [09:10:16]req_shift_opened [09:10:16]FM_GetShiftState [09:10:16]SAM_PROTO_GetShiftState [09:10:16]wFMCommunicate request_size=4 [09:10:16]MH_SAM_APDU [09:10:16]CAPDU: 80 13 01 00 [09:10:16]Write to MH i2c: E2 08 00 D0 86 80 13 01 00 00 00 00 00 D3 [09:10:16]Write i2c OK [09:10:16]MH_I2C_Read... [09:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:16]Read from MH i2c: E2 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 0E 00 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 0E 00 D0 86 00 09 00 01 99 41 18 67 00 00 00 00 90 00 38 [09:10:16]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:10:16]wFMCommunicate OK [09:10:16]SAM_PROTO_GetShiftState done [09:10:16]FM_GetShiftState done [09:10:16]req_shift_opened done [09:10:16]requested_item shift.open_date is exist - process it [09:10:16]req_shift_open_date [09:10:16]req_shift_open_date done [09:10:16]produce_requested_data done [09:10:16]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75292,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:10:16]process_action_free close_receipt [09:10:16]json_value_free [09:10:16]json_value_free done [09:10:16]process_json_proto returns [09:10:16]Send response to host [09:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75292,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:10:16]free response buf [09:10:16]execute_script done [09:10:16]execute_script returns [09:10:16]free content buf [09:10:16]Sock 9.Close socket [09:10:16]Sock 9.Thread stoped [09:10:18]accept exits with 7 [09:10:18]New connection [09:10:18]New thread 3067465060 created [09:10:18]Thread 3067321700 joined [09:10:18]Waiting for new connection... [09:10:18] Sock 7.Parse request [09:10:18]Sock 7.Check first char [09:10:18]Sock 7.First char is OK [09:10:18]request: POST /json_proto HTTP/1.0 [09:10:18]Method: POST [09:10:18]URL: /json_proto [09:10:18]Method is POST - this is cgi request [09:10:18]url: /json_proto [09:10:18]query_string will be loaded in cgi processing [09:10:18]execute_cgi json_proto POST (null) [09:10:18]execute_cgi path=json_proto method=POST [09:10:18]POST find Content-Length [09:10:18]Host: 172.17.44.196:8080 [09:10:18]Content-Length: 752 [09:10:18]Content-Type: application/json [09:10:18] [09:10:18]POST finish read [09:10:18]Found Content-Length = 752 [09:10:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087243", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:18]execute_script... [09:10: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)1965244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087243", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:18]POST & json_proto [09:10:18]process_json_proto [09:10:18]json parsed OK: [09:10:18]protocol is kg_v1.0 [09:10:18]action value=close_receipt [09:10:18]process_action close_receipt [09:10:18]cmd_close_receipt [09:10:18]MH_GetDate [09:10:18]Write to MH i2c: F0 00 00 D1 86 46 [09:10:18]Write i2c OK [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: F0 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: F0 09 00 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: F0 09 00 D1 86 00 81 BD 18 67 E7 19 F8 65 69 [09:10:18]GetLastDocTimeStamp 1729674619 [09:10:18]current date 1729674625 [09:10:18]FM_GetShiftState [09:10:18]SAM_PROTO_GetShiftState [09:10:18]wFMCommunicate request_size=4 [09:10:18]MH_SAM_APDU [09:10:18]CAPDU: 80 13 01 00 [09:10:18]Write to MH i2c: E2 08 00 D2 86 80 13 01 00 00 00 00 00 D5 [09:10:18]Write i2c OK [09:10:18]MH_I2C_Read... [09:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:18]Read from MH i2c: E2 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: E2 0E 00 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: E2 0E 00 D2 86 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3A [09:10:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:10:18]wFMCommunicate OK [09:10:18]SAM_PROTO_GetShiftState done [09:10:18]FM_GetShiftState done [09:10:18]opened in 1729642905 [09:10:18]opened+sec_in_day 1729729305 [09:10:18]quantity*price = 0 [09:10:18]sum+1 = 1 [09:10:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 26 23.10.2024 09:10 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30087243 ФМ: 0000000000963323 ФД: 75293 ФПД: 279338306519910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091025&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75293&fm=279338306519910&tin=02508201610067®Number=0000000000161154&sum=0 [09:10:19]StoreToDocumentArchive [09:10:19]shift 173 fd 75293 [09:10:19]save to /storage/0173/doc_00075293 [09:10:19]save last doc name /storage/0173/doc_00075293 to /storage/kkm_last_doc_name [09:10:19]save OK [09:10:19]Clear old archive folders... [09:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:10:19]tlvbuf is B6FD2060 [09:10:19]SAM_PROTO_ClearQueue [09:10:19]wFMCommunicate request_size=4 [09:10:19]MH_SAM_APDU [09:10:19]CAPDU: 80 09 00 00 [09:10:19]Write to MH i2c: E2 08 00 DF 86 80 09 00 00 00 00 00 00 D7 [09:10:19]Write i2c OK [09:10:19]MH_I2C_Read... [09:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:19]Read from MH i2c: E2 [09:10:19]MH_I2C_Read... [09:10:19]Read from MH i2c: E2 03 00 [09:10:19]MH_I2C_Read... [09:10:19]Read from MH i2c: E2 03 00 DF 86 00 90 00 D9 [09:10:19]RAPDU: 90 00 [09:10:19]wFMCommunicate OK [09:10:19]SAM_PROTO_ClearQueue done [09:10:19]KKMCreateOFDPacket [09:10:19]OFDProtocolAddRootSTLVToBuf [09:10:19]FM_MakeSignedData [09:10:19]FM_MakeSignedData [09:10:19]SAM_PROTO_SignData [09:10:19]wFMCommunicate request_size=4 [09:10:19]MH_SAM_APDU [09:10:19]CAPDU: 80 0D 01 02 [09:10:19]Write to MH i2c: E2 08 00 E0 86 80 0D 01 02 00 00 00 00 DF [09:10:19]Write i2c OK [09:10:19]MH_I2C_Read... [09:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:19]Read from MH i2c: E2 [09:10:19]MH_I2C_Read... [09:10:19]Read from MH i2c: E2 03 00 [09:10:19]MH_I2C_Read... [09:10:19]Read from MH i2c: E2 03 00 E0 86 00 90 00 DA [09:10:19]RAPDU: 90 00 [09:10:19]wFMCommunicate OK [09:10:19]wFMCommunicate request_size=255 [09:10:19]MH_SAM_APDU [09:10: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 81 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 26 01 00 35 04 06 00 FE 0E 84 88 [09:10:20]Write to MH i2c: E2 02 01 E1 86 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 81 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 26 01 00 35 04 06 00 FE 0E 84 88 00 00 7D [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 E1 86 00 90 00 DB [09:10:20]RAPDU: 90 00 [09:10:20]wFMCommunicate OK [09:10:20]wFMCommunicate request_size=7 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 0D 02 02 02 43 66 [09:10:20]Write to MH i2c: E2 0A 00 E2 86 80 0D 02 02 02 00 43 66 00 00 8F [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 03 00 E2 86 00 90 00 DC [09:10:20]RAPDU: 90 00 [09:10:20]wFMCommunicate OK [09:10:20]wFMCommunicate request_size=4 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 0D 03 02 [09:10:20]Write to MH i2c: E2 08 00 E3 86 80 0D 03 02 00 00 00 00 E4 [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 0B 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 0B 00 E3 86 00 A4 4F 92 2C 91 99 6A 61 90 00 8B [09:10:20]RAPDU: A4 4F 92 2C 91 99 6A 61 90 00 [09:10:20]wFMCommunicate OK [09:10:20]SAM_PROTO_SignData done [09:10:20]FM_MakeSignedData done [09:10:20]CreateOFDProtocolMessage [09:10:20]wFMCommunicate request_size=4 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 11 00 00 [09:10:20]Write to MH i2c: E2 08 00 E4 86 80 11 00 00 00 00 00 00 E4 [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:20]OFD Sender: No OFD packet to send [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 17 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 17 00 E4 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 31 [09:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:10:20]wFMCommunicate OK [09:10:20]CreateOFDProtocolMessage done [09:10:20]OFDSenderStorePacket 75293 [09:10:20]StoreOFDPacket docnum=75293 [09:10:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 BB 07 04 01 BD 78 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 81 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 26 01 00 35 04 06 00 FE 0E 84 88 43 66 A4 4F 92 2C 91 99 6A 61 [09:10:20]CheckFolder [09:10:20]dirname=/storage/ofd_packets [09:10:20]CheckFolder done [09:10:20]ProducePacketName [09:10:20]name=ofd_packets/00075293 [09:10:20]NVStorageSaveData ofd_packets/00075293 [09:10:20]File name is /storage/ofd_packets/00075293 [09:10:20]Write 298 bytes [09:10:20]NVStorageSaveData done [09:10:20]OFDSenderStorePacket done [09:10:20]KKMCreateOFDPacket done [09:10:20]NVStorageSaveData kkm_last_timestamp [09:10:20]File name is /storage/kkm_last_timestamp [09:10:20]Write 4 bytes [09:10:20]NVStorageSaveData done [09:10:20]ExternCall_PrintAddStr [09:10:20]wPrintStart [09:10:20]Write to MH i2c: 01 00 00 E5 86 6B [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: 01 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: 01 07 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: 01 07 00 E5 86 00 00 00 00 00 FF 0F 80 [09:10:20]RasterBufferAndPrint [09:10:20]line Счет N : (1)1965244 [09:10:20]line ИНН: 02508201610067 [09:10:20]line Контрольно-Кассовый Чек [09:10:20]line ПРОДАЖА [09:10:20]line ТРК (МРК, ГНК) : 11 [09:10:20]line Товар: 2710194210 [09:10:20]line ДТ-К-5 [09:10:20]line 20.000 * 0.00 [09:10:20]line = 0.00 [09:10:20]line НДС 12% НСП 1% [09:10:20]line > о реализуемом товаре [09:10:20]line ИТОГО: 0.00 [09:10:20]line НСП 1% : 0.00 [09:10:20]line НДС 12% : 0.00 [09:10:20]line Наличными: 0.00 [09:10:20]line Безнал.: 0.00 [09:10:20]line Место: АЗС № 133 "Партнер Нефть" [09:10:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:10:20]line СНО: Общий режим [09:10:20]line Чек 26 23.10.2024 09:10 [09:10:20]line Смена: 173 ФФД: 1.0 [09:10:20]line ЗНМ: 0300000020 [09:10:20]line РНМ: 0000000000161154 [09:10:20]line Версия ККМ: v1.0 [09:10:20]line Талоны: ТК ГПНА Online [09:10:20]line 30087243 [09:10:20]line ФМ: 0000000000963323 [09:10:20]line ФД: 75293 [09:10:20]line ФПД: 279338306519910 [09:10:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091025&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75293&fm=279338306519910&tin=02508201610067®Number=0000000000161154&sum=0 [09:10:20]written 0, free lines is 4095 [09:10:20]OFD Sender: Processing packet 75293 [packets to send 15, broken 14] [09:10:20]ProducePacketName [09:10:20]name=ofd_packets/00075293 [09:10:20]OFD Sender: To server: pG, [09:10:20]CommunicateWithHost lk.salyk.kg:30040 [09:10:20]ConnectInit lk.salyk.kg [09:10:20]Connected sock=10 [09:10:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 BB 07 04 01 BD 78 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 81 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 26 01 00 35 04 06 00 FE 0E 84 88 43 66 A4 4F 92 2C 91 99 6A 61 [09:10:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 74 1C 47 00 BE 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 39 36 33 33 32 33 10 04 04 00 1D 26 01 00 F4 03 04 00 5C 66 18 67 B6 04 01 00 00 4D 2C 77 A0 F3 25 82 91 [09:10:20]CommunicateWithHost err = 0 [09:10:20]CheckOFDResponse [09:10:20]1017 (14) - 77093643461234 [09:10:20]1041 (16) - 0000000000963323 [09:10:20]1040 (4) - 75293 [09:10:20]1012 (4) - 23.10.2024 02:58 [09:10:20]1206 (1) - 0 [09:10:20]OFD Sender: Remove packet 75293 [09:10:20]ProducePacketName [09:10:20]name=ofd_packets/00075293 [09:10:20]NVStorageDeleteData [09:10:20]Write to MH i2c: 01 00 00 0E 87 95 [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: 01 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: 01 07 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: 01 07 00 0E 87 00 00 00 00 00 D1 0C 79 [09:10:20]RasterBufferAndPrint [09:10:20]line [09:10:20]line [09:10:20]line [09:10:20]line [09:10:20]line [09:10:20]written 0, free lines is 3294 [09:10:20]MH_Cut [09:10:20]Write to MH i2c: D1 01 00 15 87 01 6E [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: D1 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: D1 01 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: D1 01 00 15 87 00 6D [09:10:20]Write to MH i2c: 01 00 00 16 87 9D [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:21]OFD Sender: No OFD packet to send [09:10:21]*** Cut start [09:10:21]*** Partial cut [09:10:21]*** CUTSNS_PIN = 1 [09:10:21]*** CUTSNS_PIN = 0 [09:10:22]*** Brake cut motor [09:10:22]Read from MH i2c: 01 [09:10:22]MH_I2C_Read... [09:10:22]*** Stop cut motor [09:10:22]*** Cut end [09:10:22]Read from MH i2c: 01 07 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: 01 07 00 16 87 00 00 00 00 00 FF 0F B2 [09:10:22]process_action close_receipt done [09:10:22]requested_data is exist [09:10:22]produce_requested_data [09:10:22]requested_item fm.sn is exist - process it [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 11 00 00 [09:10:22]Write to MH i2c: E2 08 00 17 87 80 11 00 00 00 00 00 00 18 [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:22]Read from MH i2c: E2 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 17 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 17 00 17 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 65 [09:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:10:22]wFMCommunicate OK [09:10:22]requested_item fd.num is exist - process it [09:10:22]SAM_PROTO_GetFieldsCounters [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 13 00 00 [09:10:22]Write to MH i2c: E2 08 00 18 87 80 13 00 00 00 00 00 00 1B [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:22]Read from MH i2c: E2 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 62 00 [09:10:22]MH_I2C_Read... [09:10:22]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 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1D 26 01 00 0E 04 04 00 AD 00 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 6E [09:10:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1D 26 01 00 0E 04 04 00 AD 00 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:10:22]wFMCommunicate OK [09:10:22]SAM_PROTO_GetFieldsCounters done [09:10:22]requested_item shift.num is exist - process it [09:10:22]requested_item shift.opened is exist - process it [09:10:22]req_shift_opened [09:10:22]FM_GetShiftState [09:10:22]SAM_PROTO_GetShiftState [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 13 01 00 [09:10:22]Write to MH i2c: E2 08 00 19 87 80 13 01 00 00 00 00 00 1D [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:22]Read from MH i2c: E2 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 0E 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 0E 00 19 87 00 09 00 01 99 41 18 67 00 00 00 00 90 00 82 [09:10:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:10:22]wFMCommunicate OK [09:10:22]SAM_PROTO_GetShiftState done [09:10:22]FM_GetShiftState done [09:10:22]req_shift_opened done [09:10:22]requested_item shift.open_date is exist - process it [09:10:22]req_shift_open_date [09:10:22]req_shift_open_date done [09:10:22]produce_requested_data done [09:10:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75293,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:10:22]process_action_free close_receipt [09:10:22]json_value_free [09:10:22]json_value_free done [09:10:22]process_json_proto returns [09:10:22]Send response to host [09:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75293,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:10:22]free response buf [09:10:22]execute_script done [09:10:22]execute_script returns [09:10:22]free content buf [09:10:22]Sock 7.Close socket [09:10:22]Sock 7.Thread stoped [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:35]accept exits with 9 [09:10:35]New connection [09:10:35]New thread 3067321700 created [09:10:35]Thread 3067465060 joined [09:10:35]Waiting for new connection... [09:10:35] Sock 9.Parse request [09:10:35]Sock 9.Check first char [09:10:35]Sock 9.First char is OK [09:10:35]request: POST /json_proto HTTP/1.0 [09:10:35]Method: POST [09:10:35]URL: /json_proto [09:10:35]Method is POST - this is cgi request [09:10:35]url: /json_proto [09:10:35]query_string will be loaded in cgi processing [09:10:35]execute_cgi json_proto POST (null) [09:10:35]execute_cgi path=json_proto method=POST [09:10:35]POST find Content-Length [09:10:35]Host: 172.17.44.196:8080 [09:10:35]Content-Length: 678 [09:10:35]Content-Type: application/json [09:10:35] [09:10:35]POST finish read [09:10:35]Found Content-Length = 678 [09:10:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [09:10:35]execute_script... [09:10: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)1965246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [09:10:35]POST & json_proto [09:10:35]process_json_proto [09:10:35]json parsed OK: [09:10:35]protocol is kg_v1.0 [09:10:35]action value=close_receipt [09:10:35]process_action close_receipt [09:10:35]cmd_close_receipt [09:10:35]MH_GetDate [09:10:35]Write to MH i2c: F0 00 00 1A 87 90 [09:10:35]Write i2c OK [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: F0 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: F0 09 00 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: F0 09 00 1A 87 00 92 BD 18 67 E7 19 F8 65 C4 [09:10:35]GetLastDocTimeStamp 1729674625 [09:10:35]current date 1729674642 [09:10:35]FM_GetShiftState [09:10:35]SAM_PROTO_GetShiftState [09:10:35]wFMCommunicate request_size=4 [09:10:35]MH_SAM_APDU [09:10:35]CAPDU: 80 13 01 00 [09:10:35]Write to MH i2c: E2 08 00 1B 87 80 13 01 00 00 00 00 00 1F [09:10:35]Write i2c OK [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: E2 [09:10:35]MH_I2C_Read... [09:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:35]Read from MH i2c: E2 0E 00 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: E2 0E 00 1B 87 00 09 00 01 99 41 18 67 00 00 00 00 90 00 84 [09:10:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:10:35]wFMCommunicate OK [09:10:35]SAM_PROTO_GetShiftState done [09:10:35]FM_GetShiftState done [09:10:35]opened in 1729642905 [09:10:35]opened+sec_in_day 1729729305 [09:10:35]quantity*price = 60009 [09:10:35]sum+1 = 60010 [09:10:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 27 23.10.2024 09:10 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75294 ФПД: 168005634880835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091042&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75294&fm=168005634880835&tin=02508201610067®Number=0000000000161154&sum=60000 [09:10:36]StoreToDocumentArchive [09:10:36]shift 173 fd 75294 [09:10:36]save to /storage/0173/doc_00075294 [09:10:36]save last doc name /storage/0173/doc_00075294 to /storage/kkm_last_doc_name [09:10:36]save OK [09:10:36]Clear old archive folders... [09:10:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:36]tlvbuf is 00E8D5C0 [09:10:36]SAM_PROTO_ClearQueue [09:10:36]wFMCommunicate request_size=4 [09:10:36]MH_SAM_APDU [09:10:36]CAPDU: 80 09 00 00 [09:10:36]Write to MH i2c: E2 08 00 28 87 80 09 00 00 00 00 00 00 21 [09:10:36]Write i2c OK [09:10:36]MH_I2C_Read... [09:10:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:36]Read from MH i2c: E2 [09:10:36]MH_I2C_Read... [09:10:36]Read from MH i2c: E2 03 00 [09:10:36]MH_I2C_Read... [09:10:36]Read from MH i2c: E2 03 00 28 87 00 90 00 23 [09:10:36]RAPDU: 90 00 [09:10:36]wFMCommunicate OK [09:10:36]SAM_PROTO_ClearQueue done [09:10:36]KKMCreateOFDPacket [09:10:36]OFDProtocolAddRootSTLVToBuf [09:10:36]FM_MakeSignedData [09:10:36]FM_MakeSignedData [09:10:36]SAM_PROTO_SignData [09:10:36]wFMCommunicate request_size=4 [09:10:36]MH_SAM_APDU [09:10:36]CAPDU: 80 0D 01 02 [09:10:36]Write to MH i2c: E2 08 00 29 87 80 0D 01 02 00 00 00 00 29 [09:10:36]Write i2c OK [09:10:36]MH_I2C_Read... [09:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:37]Read from MH i2c: E2 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 03 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 03 00 29 87 00 90 00 24 [09:10:37]RAPDU: 90 00 [09:10:37]wFMCommunicate OK [09:10:37]wFMCommunicate request_size=255 [09:10:37]MH_SAM_APDU [09: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 1B 00 00 00 F4 03 04 00 92 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 26 01 00 35 04 06 00 98 [09:10:37]Write to MH i2c: E2 02 01 2A 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 1B 00 00 00 F4 03 04 00 92 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 26 01 00 35 04 06 00 98 00 00 FB [09:10:37]Write i2c OK [09:10:37]MH_I2C_Read... [09:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:37]Read from MH i2c: E2 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 03 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 03 00 2A 87 00 90 00 25 [09:10:37]RAPDU: 90 00 [09:10:37]wFMCommunicate OK [09:10:37]wFMCommunicate request_size=10 [09:10:37]MH_SAM_APDU [09:10:37]CAPDU: 80 0D 02 02 05 CC DC 2F F5 43 [09:10:37]Write to MH i2c: E2 0D 00 2B 87 80 0D 02 02 05 00 CC DC 2F F5 43 00 00 45 [09:10:37]Write i2c OK [09:10:37]MH_I2C_Read... [09:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:37]Read from MH i2c: E2 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 03 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 03 00 2B 87 00 90 00 26 [09:10:37]RAPDU: 90 00 [09:10:37]wFMCommunicate OK [09:10:37]wFMCommunicate request_size=4 [09:10:37]MH_SAM_APDU [09:10:37]CAPDU: 80 0D 03 02 [09:10:37]Write to MH i2c: E2 08 00 2C 87 80 0D 03 02 00 00 00 00 2E [09:10:37]Write i2c OK [09:10:37]MH_I2C_Read... [09:10:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:37]Read from MH i2c: E2 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 0B 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 0B 00 2C 87 00 41 79 AB 6D 04 DD AA E3 90 00 6F [09:10:37]RAPDU: 41 79 AB 6D 04 DD AA E3 90 00 [09:10:37]wFMCommunicate OK [09:10:37]SAM_PROTO_SignData done [09:10:37]FM_MakeSignedData done [09:10:37]CreateOFDProtocolMessage [09:10:37]wFMCommunicate request_size=4 [09:10:37]MH_SAM_APDU [09:10:37]CAPDU: 80 11 00 00 [09:10:37]Write to MH i2c: E2 08 00 2D 87 80 11 00 00 00 00 00 00 2E [09:10:37]Write i2c OK [09:10:37]MH_I2C_Read... [09:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:37]Read from MH i2c: E2 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 17 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 17 00 2D 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7B [09:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:10:37]wFMCommunicate OK [09:10:37]CreateOFDProtocolMessage done [09:10:37]OFDSenderStorePacket 75294 [09:10:37]StoreOFDPacket docnum=75294 [09:10:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 1D A1 07 01 CC 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 1B 00 00 00 F4 03 04 00 92 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 26 01 00 35 04 06 00 98 CC DC 2F F5 43 41 79 AB 6D 04 DD AA E3 [09:10:37]CheckFolder [09:10:37]dirname=/storage/ofd_packets [09:10:37]CheckFolder done [09:10:37]ProducePacketName [09:10:37]name=ofd_packets/00075294 [09:10:37]NVStorageSaveData ofd_packets/00075294 [09:10:37]File name is /storage/ofd_packets/00075294 [09:10:37]Write 301 bytes [09:10:37]NVStorageSaveData done [09:10:37]OFDSenderStorePacket done [09:10:37]KKMCreateOFDPacket done [09:10:37]NVStorageSaveData kkm_last_timestamp [09:10:37]File name is /storage/kkm_last_timestamp [09:10:37]Write 4 bytes [09:10:37]NVStorageSaveData done [09:10:37]ExternCall_PrintAddStr [09:10:37]wPrintStart [09:10:37]Write to MH i2c: 01 00 00 2E 87 B5 [09:10:37]Write i2c OK [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: 01 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: 01 07 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: 01 07 00 2E 87 00 00 00 00 00 FF 0F CA [09:10:37]RasterBufferAndPrint [09:10:37]line Счет N : (1)1965246 [09:10:37]line ИНН: 02508201610067 [09:10:37]line Контрольно-Кассовый Чек [09:10:37]line ПРОДАЖА [09:10:37]line ТРК (МРК, ГНК) : 63 [09:10:37]line Товар: 2710124130 [09:10:37]line Аи-92-К-5 [09:10:37]line 8.970 * 66.90 [09:10:37]line = 600.09 [09:10:37]line НДС 12% НСП 1% [09:10:37]line > о реализуемом товаре [09:10:37]line ОКРУГЛЕНИЕ: -0.09 [09:10:37]line ИТОГО: 600.00 [09:10:37]line Внесено: 600.00 [09:10:37]line СДАЧА: 0.00 [09:10:37]line НСП 1% : 5.31 [09:10:37]line НДС 12% : 63.73 [09:10:37]line Наличными: 600.00 [09:10:37]line Безнал.: 0.00 [09:10:37]line Место: АЗС № 133 "Партнер Нефть" [09:10:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:10:37]line СНО: Общий режим [09:10:37]line Чек 27 23.10.2024 09:10 [09:10:37]line Смена: 173 ФФД: 1.0 [09:10:37]line ЗНМ: 0300000020 [09:10:37]line РНМ: 0000000000161154 [09:10:37]line Версия ККМ: v1.0 [09:10:37]line ФМ: 0000000000963323 [09:10:37]line ФД: 75294 [09:10:37]line ФПД: 168005634880835 [09:10:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091042&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75294&fm=168005634880835&tin=02508201610067®Number=0000000000161154&sum=60000 [09:10:37]written 0, free lines is 4095 [09:10:37]OFD Sender: Processing packet 75294 [packets to send 15, broken 14] [09:10:37]ProducePacketName [09:10:37]name=ofd_packets/00075294 [09:10:37]OFD Sender: To server: pG, [09:10:37]CommunicateWithHost lk.salyk.kg:30040 [09:10:37]ConnectInit lk.salyk.kg [09:10:37]Connected sock=10 [09:10:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 1D A1 07 01 CC 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 1B 00 00 00 F4 03 04 00 92 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 26 01 00 35 04 06 00 98 CC DC 2F F5 43 41 79 AB 6D 04 DD AA E3 [09:10:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 43 93 47 00 42 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 26 01 00 F4 03 04 00 6D 66 18 67 B6 04 01 00 00 09 14 31 BC 22 48 52 2C [09:10:37]CommunicateWithHost err = 0 [09:10:37]CheckOFDResponse [09:10:37]1017 (14) - 77093643461234 [09:10:37]1041 (16) - 0000000000963323 [09:10:37]1040 (4) - 75294 [09:10:37]1012 (4) - 23.10.2024 02:58 [09:10:37]1206 (1) - 0 [09:10:37]OFD Sender: Remove packet 75294 [09:10:37]ProducePacketName [09:10:37]name=ofd_packets/00075294 [09:10:37]NVStorageDeleteData [09:10:37]Write to MH i2c: 01 00 00 58 87 DF [09:10:37]Write i2c OK [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: 01 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: 01 07 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: 01 07 00 58 87 00 00 00 00 00 B0 0C A2 [09:10:37]RasterBufferAndPrint [09:10:37]line [09:10:37]line [09:10:37]line [09:10:37]line [09:10:37]line [09:10:37]written 0, free lines is 3259 [09:10:38]MH_Cut [09:10:38]Write to MH i2c: D1 01 00 5F 87 01 B8 [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: D1 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: D1 01 00 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: D1 01 00 5F 87 00 B7 [09:10:38]Write to MH i2c: 01 00 00 60 87 E7 [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]OFD Sender: No OFD packet to send [09:10:38]*** Cut start [09:10:38]*** Partial cut [09:10:38]*** CUTSNS_PIN = 1 [09:10:38]*** CUTSNS_PIN = 0 [09:10:39]*** Brake cut motor [09:10:39]Read from MH i2c: 01 [09:10:39]MH_I2C_Read... [09:10:39]*** Stop cut motor [09:10:39]*** Cut end [09:10:39]Read from MH i2c: 01 07 00 [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: 01 07 00 60 87 00 00 00 00 00 FF 0F FC [09:10:39]process_action close_receipt done [09:10:39]requested_data is exist [09:10:39]produce_requested_data [09:10:39]requested_item fm.sn is exist - process it [09:10:39]wFMCommunicate request_size=4 [09:10:39]MH_SAM_APDU [09:10:39]CAPDU: 80 11 00 00 [09:10:39]Write to MH i2c: E2 08 00 61 87 80 11 00 00 00 00 00 00 62 [09:10:39]Write i2c OK [09:10:39]MH_I2C_Read... [09:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:39]Read from MH i2c: E2 [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: E2 17 00 [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: E2 17 00 61 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AF [09:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:10:39]wFMCommunicate OK [09:10:39]requested_item fd.num is exist - process it [09:10:39]SAM_PROTO_GetFieldsCounters [09:10:39]wFMCommunicate request_size=4 [09:10:39]MH_SAM_APDU [09:10:39]CAPDU: 80 13 00 00 [09:10:39]Write to MH i2c: E2 08 00 62 87 80 13 00 00 00 00 00 00 65 [09:10:39]Write i2c OK [09:10:39]MH_I2C_Read... [09:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:39]Read from MH i2c: E2 [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: E2 62 00 [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: E2 62 00 62 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1E 26 01 00 0E 04 04 00 AD 00 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 BC [09:10:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1E 26 01 00 0E 04 04 00 AD 00 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:10:39]wFMCommunicate OK [09:10:39]SAM_PROTO_GetFieldsCounters done [09:10:39]requested_item shift.num is exist - process it [09:10:39]requested_item shift.opened is exist - process it [09:10:39]req_shift_opened [09:10:39]FM_GetShiftState [09:10:39]SAM_PROTO_GetShiftState [09:10:39]wFMCommunicate request_size=4 [09:10:39]MH_SAM_APDU [09:10:39]CAPDU: 80 13 01 00 [09:10:39]Write to MH i2c: E2 08 00 63 87 80 13 01 00 00 00 00 00 67 [09:10:39]Write i2c OK [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: E2 [09:10:39]MH_I2C_Read... [09:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:39]Read from MH i2c: E2 0E 00 [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: E2 0E 00 63 87 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CC [09:10:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:10:39]wFMCommunicate OK [09:10:39]SAM_PROTO_GetShiftState done [09:10:39]FM_GetShiftState done [09:10:39]req_shift_opened done [09:10:39]requested_item shift.open_date is exist - process it [09:10:39]req_shift_open_date [09:10:39]req_shift_open_date done [09:10:39]produce_requested_data done [09:10:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75294,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:10:39]process_action_free close_receipt [09:10:39]json_value_free [09:10:39]json_value_free done [09:10:39]process_json_proto returns [09:10:39]Send response to host [09:10:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75294,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:10:39]free response buf [09:10:39]execute_script done [09:10:39]execute_script returns [09:10:39]free content buf [09:10:39]Sock 9.Close socket [09:10:39]Sock 9.Thread stoped [09:10:40]accept exits with 7 [09:10:40]New connection [09:10:40]New thread 3067465060 created [09:10:40]Thread 3067321700 joined [09:10:40]Waiting for new connection... [09:10:40] Sock 7.Parse request [09:10:40]Sock 7.Check first char [09:10:40]Sock 7.First char is OK [09:10:40]request: POST /json_proto HTTP/1.0 [09:10:40]Method: POST [09:10:40]URL: /json_proto [09:10:40]Method is POST - this is cgi request [09:10:40]url: /json_proto [09:10:40]query_string will be loaded in cgi processing [09:10:40]execute_cgi json_proto POST (null) [09:10:40]execute_cgi path=json_proto method=POST [09:10:40]POST find Content-Length [09:10:40]Host: 172.17.44.196:8080 [09:10:40]Content-Length: 664 [09:10:40]Content-Type: application/json [09:10:40] [09:10:40]POST finish read [09:10:40]Found Content-Length = 664 [09:10:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:10:40]execute_script... [09:10: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)1965245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:10:40]POST & json_proto [09:10:40]process_json_proto [09:10:40]json parsed OK: [09:10:40]protocol is kg_v1.0 [09:10:40]action value=close_receipt [09:10:40]process_action close_receipt [09:10:40]cmd_close_receipt [09:10:40]MH_GetDate [09:10:40]Write to MH i2c: F0 00 00 64 87 DA [09:10:40]Write i2c OK [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: F0 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: F0 09 00 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: F0 09 00 64 87 00 97 BD 18 67 E7 19 F8 65 13 [09:10:40]GetLastDocTimeStamp 1729674642 [09:10:40]current date 1729674647 [09:10:40]FM_GetShiftState [09:10:40]SAM_PROTO_GetShiftState [09:10:40]wFMCommunicate request_size=4 [09:10:40]MH_SAM_APDU [09:10:40]CAPDU: 80 13 01 00 [09:10:40]Write to MH i2c: E2 08 00 65 87 80 13 01 00 00 00 00 00 69 [09:10:40]Write i2c OK [09:10:40]MH_I2C_Read... [09:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:40]Read from MH i2c: E2 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 0E 00 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 0E 00 65 87 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CE [09:10:40]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:10:40]wFMCommunicate OK [09:10:40]SAM_PROTO_GetShiftState done [09:10:40]FM_GetShiftState done [09:10:40]opened in 1729642905 [09:10:40]opened+sec_in_day 1729729305 [09:10:40]quantity*price = 100000 [09:10:40]sum+1 = 100002 [09:10:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 28 23.10.2024 09:10 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75295 ФПД: 7075641152541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091047&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75295&fm=7075641152541&tin=02508201610067®Number=0000000000161154&sum=100000 [09:10:42]StoreToDocumentArchive [09:10:42]shift 173 fd 75295 [09:10:42]save to /storage/0173/doc_00075295 [09:10:42]save last doc name /storage/0173/doc_00075295 to /storage/kkm_last_doc_name [09:10:42]save OK [09:10:42]Clear old archive folders... [09:10:42]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:10:42]tlvbuf is 01093CE0 [09:10:42]SAM_PROTO_ClearQueue [09:10:42]wFMCommunicate request_size=4 [09:10:42]MH_SAM_APDU [09:10:42]CAPDU: 80 09 00 00 [09:10:42]Write to MH i2c: E2 08 00 72 87 80 09 00 00 00 00 00 00 6B [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:42]Read from MH i2c: E2 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 72 87 00 90 00 6D [09:10:42]RAPDU: 90 00 [09:10:42]wFMCommunicate OK [09:10:42]SAM_PROTO_ClearQueue done [09:10:42]KKMCreateOFDPacket [09:10:42]OFDProtocolAddRootSTLVToBuf [09:10:42]FM_MakeSignedData [09:10:42]FM_MakeSignedData [09:10:42]SAM_PROTO_SignData [09:10:42]wFMCommunicate request_size=4 [09:10:42]MH_SAM_APDU [09:10:42]CAPDU: 80 0D 01 02 [09:10:42]Write to MH i2c: E2 08 00 73 87 80 0D 01 02 00 00 00 00 73 [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:42]Read from MH i2c: E2 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 73 87 00 90 00 6E [09:10:42]RAPDU: 90 00 [09:10:42]wFMCommunicate OK [09:10:42]wFMCommunicate request_size=253 [09:10:42]MH_SAM_APDU [09:10:42]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 97 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 26 01 00 35 04 06 00 06 6F 6D 13 D4 1D [09:10:42]Write to MH i2c: E2 00 01 74 87 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 97 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 26 01 00 35 04 06 00 06 6F 6D 13 D4 1D 00 00 A0 [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:43]Read from MH i2c: E2 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: E2 03 00 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: E2 03 00 74 87 00 90 00 6F [09:10:43]RAPDU: 90 00 [09:10:43]wFMCommunicate OK [09:10:43]wFMCommunicate request_size=4 [09:10:43]MH_SAM_APDU [09:10:43]CAPDU: 80 0D 03 02 [09:10:43]Write to MH i2c: E2 08 00 75 87 80 0D 03 02 00 00 00 00 77 [09:10:43]Write i2c OK [09:10:43]MH_I2C_Read... [09:10:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:43]Read from MH i2c: E2 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: E2 0B 00 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: E2 0B 00 75 87 00 B1 10 23 17 03 D3 3A FD 90 00 80 [09:10:43]RAPDU: B1 10 23 17 03 D3 3A FD 90 00 [09:10:43]wFMCommunicate OK [09:10:43]SAM_PROTO_SignData done [09:10:43]FM_MakeSignedData done [09:10:43]CreateOFDProtocolMessage [09:10:43]wFMCommunicate request_size=4 [09:10:43]MH_SAM_APDU [09:10:43]CAPDU: 80 11 00 00 [09:10:43]Write to MH i2c: E2 08 00 76 87 80 11 00 00 00 00 00 00 77 [09:10:43]Write i2c OK [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: E2 [09:10:43]MH_I2C_Read... [09:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:43]Read from MH i2c: E2 17 00 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: E2 17 00 76 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C4 [09:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:10:43]wFMCommunicate OK [09:10:43]CreateOFDProtocolMessage done [09:10:43]OFDSenderStorePacket 75295 [09:10:43]StoreOFDPacket docnum=75295 [09:10:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 BD 4B 00 01 2D E0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 97 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 26 01 00 35 04 06 00 06 6F 6D 13 D4 1D B1 10 23 17 03 D3 3A FD [09:10:43]CheckFolder [09:10:43]dirname=/storage/ofd_packets [09:10:43]CheckFolder done [09:10:43]ProducePacketName [09:10:43]name=ofd_packets/00075295 [09:10:43]NVStorageSaveData ofd_packets/00075295 [09:10:43]File name is /storage/ofd_packets/00075295 [09:10:43]Write 294 bytes [09:10:43]NVStorageSaveData done [09:10:43]OFDSenderStorePacket done [09:10:43]KKMCreateOFDPacket done [09:10:43]NVStorageSaveData kkm_last_timestamp [09:10:43]File name is /storage/kkm_last_timestamp [09:10:43]Write 4 bytes [09:10:43]NVStorageSaveData done [09:10:43]ExternCall_PrintAddStr [09:10:43]wPrintStart [09:10:43]Write to MH i2c: 01 00 00 77 87 FE [09:10:43]Write i2c OK [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: 01 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: 01 07 00 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: 01 07 00 77 87 00 00 00 00 00 FF 0F 13 [09:10:43]RasterBufferAndPrint [09:10:43]line Счет N : (1)1965245 [09:10:43]line ИНН: 02508201610067 [09:10:43]line Контрольно-Кассовый Чек [09:10:43]line ПРОДАЖА [09:10:43]line ТРК (МРК, ГНК) : 52 [09:10:43]line Товар: 2710124130 [09:10:43]line SU-92 [09:10:43]line 14.620 * 68.40 [09:10:43]line = 1000.01 [09:10:43]line НДС 12% НСП 1% [09:10:43]line > о реализуемом товаре [09:10:43]line ОКРУГЛЕНИЕ: -0.01 [09:10:43]line ИТОГО: 1000.00 [09:10:43]line Внесено: 1000.00 [09:10:43]line СДАЧА: 0.00 [09:10:43]line НСП 1% : 8.85 [09:10:43]line НДС 12% : 106.20 [09:10:43]line Наличными: 1000.00 [09:10:43]line Безнал.: 0.00 [09:10:43]line Место: АЗС № 133 "Партнер Нефть" [09:10:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:10:43]line СНО: Общий режим [09:10:43]line Чек 28 23.10.2024 09:10 [09:10:43]line Смена: 173 ФФД: 1.0 [09:10:43]line ЗНМ: 0300000020 [09:10:43]line РНМ: 0000000000161154 [09:10:43]line Версия ККМ: v1.0 [09:10:43]line ФМ: 0000000000963323 [09:10:43]line ФД: 75295 [09:10:43]line ФПД: 7075641152541 [09:10:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091047&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75295&fm=7075641152541&tin=02508201610067®Number=0000000000161154&sum=100000 [09:10:43]written 0, free lines is 4095 [09:10:43]OFD Sender: Processing packet 75295 [packets to send 15, broken 14] [09:10:43]ProducePacketName [09:10:43]name=ofd_packets/00075295 [09:10:43]OFD Sender: To server: pG, [09:10:43]CommunicateWithHost lk.salyk.kg:30040 [09:10:43]ConnectInit lk.salyk.kg [09:10:43]Connected sock=11 [09:10:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 BD 4B 00 01 2D E0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 97 BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 26 01 00 35 04 06 00 06 6F 6D 13 D4 1D B1 10 23 17 03 D3 3A FD [09:10:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D8 9D 47 00 FF 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 39 36 33 33 32 33 10 04 04 00 1F 26 01 00 F4 03 04 00 73 66 18 67 B6 04 01 00 00 5D 1C ED 8C 33 F5 82 94 [09:10:43]CommunicateWithHost err = 0 [09:10:43]CheckOFDResponse [09:10:43]1017 (14) - 77093643461234 [09:10:43]1041 (16) - 0000000000963323 [09:10:43]1040 (4) - 75295 [09:10:43]1012 (4) - 23.10.2024 02:58 [09:10:43]1206 (1) - 0 [09:10:43]OFD Sender: Remove packet 75295 [09:10:43]ProducePacketName [09:10:43]name=ofd_packets/00075295 [09:10:43]NVStorageDeleteData [09:10:43]Write to MH i2c: 01 00 00 A1 87 28 [09:10:43]Write i2c OK [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: 01 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: 01 07 00 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: 01 07 00 A1 87 00 00 00 00 00 0B 0D 47 [09:10:43]RasterBufferAndPrint [09:10:43]line [09:10:43]line [09:10:43]line [09:10:43]line [09:10:43]line [09:10:43]written 0, free lines is 3358 [09:10:43]MH_Cut [09:10:43]Write to MH i2c: D1 01 00 A8 87 01 01 [09:10:43]Write i2c OK [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: D1 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: D1 01 00 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: D1 01 00 A8 87 00 00 [09:10:43]Write to MH i2c: 01 00 00 A9 87 30 [09:10:43]Write i2c OK [09:10:43]MH_I2C_Read... [09:10:44]OFD Sender: No OFD packet to send [09:10:44]*** Cut start [09:10:44]*** Partial cut [09:10:44]*** CUTSNS_PIN = 1 [09:10:44]*** CUTSNS_PIN = 0 [09:10:44]*** Brake cut motor [09:10:45]Read from MH i2c: 01 [09:10:45]MH_I2C_Read... [09:10:45]*** Stop cut motor [09:10:45]*** Cut end [09:10:45]Read from MH i2c: 01 07 00 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: 01 07 00 A9 87 00 00 00 00 00 FF 0F 45 [09:10:45]process_action close_receipt done [09:10:45]requested_data is exist [09:10:45]produce_requested_data [09:10:45]requested_item fm.sn is exist - process it [09:10:45]wFMCommunicate request_size=4 [09:10:45]MH_SAM_APDU [09:10:45]CAPDU: 80 11 00 00 [09:10:45]Write to MH i2c: E2 08 00 AA 87 80 11 00 00 00 00 00 00 AB [09:10:45]Write i2c OK [09:10:45]MH_I2C_Read... [09:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:45]Read from MH i2c: E2 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 17 00 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 17 00 AA 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F8 [09:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:10:45]wFMCommunicate OK [09:10:45]requested_item fd.num is exist - process it [09:10:45]SAM_PROTO_GetFieldsCounters [09:10:45]wFMCommunicate request_size=4 [09:10:45]MH_SAM_APDU [09:10:45]CAPDU: 80 13 00 00 [09:10:45]Write to MH i2c: E2 08 00 AB 87 80 13 00 00 00 00 00 00 AE [09:10:45]Write i2c OK [09:10:45]MH_I2C_Read... [09:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:45]Read from MH i2c: E2 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 62 00 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 62 00 AB 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1F 26 01 00 0E 04 04 00 AD 00 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 [09:10:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1F 26 01 00 0E 04 04 00 AD 00 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:10:45]wFMCommunicate OK [09:10:45]SAM_PROTO_GetFieldsCounters done [09:10:45]requested_item shift.num is exist - process it [09:10:45]requested_item shift.opened is exist - process it [09:10:45]req_shift_opened [09:10:45]FM_GetShiftState [09:10:45]SAM_PROTO_GetShiftState [09:10:45]wFMCommunicate request_size=4 [09:10:45]MH_SAM_APDU [09:10:45]CAPDU: 80 13 01 00 [09:10:45]Write to MH i2c: E2 08 00 AC 87 80 13 01 00 00 00 00 00 B0 [09:10:45]Write i2c OK [09:10:45]MH_I2C_Read... [09:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:45]Read from MH i2c: E2 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 0E 00 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 0E 00 AC 87 00 09 00 01 99 41 18 67 00 00 00 00 90 00 15 [09:10:45]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:10:45]wFMCommunicate OK [09:10:45]SAM_PROTO_GetShiftState done [09:10:45]FM_GetShiftState done [09:10:45]req_shift_opened done [09:10:45]requested_item shift.open_date is exist - process it [09:10:45]req_shift_open_date [09:10:45]req_shift_open_date done [09:10:45]produce_requested_data done [09:10:45]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75295,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:10:45]process_action_free close_receipt [09:10:45]json_value_free [09:10:45]json_value_free done [09:10:45]process_json_proto returns [09:10:45]Send response to host [09:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75295,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:10:45]free response buf [09:10:45]execute_script done [09:10:45]execute_script returns [09:10:45]free content buf [09:10:45]Sock 7.Close socket [09:10:45]Sock 7.Thread stoped [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:34]accept exits with 9 [09:11:34]New connection [09:11:34]New thread 3067321700 created [09:11:34]Thread 3067465060 joined [09:11:34]Waiting for new connection... [09:11:34] Sock 9.Parse request [09:11:34]Sock 9.Check first char [09:11:34]Sock 9.First char is OK [09:11:34]request: POST /json_proto HTTP/1.0 [09:11:34]Method: POST [09:11:34]URL: /json_proto [09:11:34]Method is POST - this is cgi request [09:11:34]url: /json_proto [09:11:34]query_string will be loaded in cgi processing [09:11:34]execute_cgi json_proto POST (null) [09:11:34]execute_cgi path=json_proto method=POST [09:11:34]POST find Content-Length [09:11:34]Host: 172.17.44.196:8080 [09:11:34]Content-Length: 661 [09:11:34]Content-Type: application/json [09:11:34] [09:11:34]POST finish read [09:11:34]Found Content-Length = 661 [09:11:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273204", "tax_sys" : 0, "items" : [ { "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 2.000, "sum" : 102.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 102.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:34]execute_script... [09:11:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273204", "tax_sys" : 0, "items" : [ { "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 2.000, "sum" : 102.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 102.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:34]POST & json_proto [09:11:34]process_json_proto [09:11:34]json parsed OK: [09:11:34]protocol is kg_v1.0 [09:11:34]action value=close_receipt [09:11:34]process_action close_receipt [09:11:34]cmd_close_receipt [09:11:34]MH_GetDate [09:11:34]Write to MH i2c: F0 00 00 AD 87 23 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: F0 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: F0 09 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: F0 09 00 AD 87 00 CD BD 18 67 E7 19 F8 65 92 [09:11:34]GetLastDocTimeStamp 1729674647 [09:11:34]current date 1729674701 [09:11:34]FM_GetShiftState [09:11:34]SAM_PROTO_GetShiftState [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 13 01 00 [09:11:34]Write to MH i2c: E2 08 00 AE 87 80 13 01 00 00 00 00 00 B2 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 0E 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 0E 00 AE 87 00 09 00 01 99 41 18 67 00 00 00 00 90 00 17 [09:11:34]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:11:34]wFMCommunicate OK [09:11:34]SAM_PROTO_GetShiftState done [09:11:34]FM_GetShiftState done [09:11:34]opened in 1729642905 [09:11:34]opened+sec_in_day 1729729305 [09:11:34]quantity*price = 10200 [09:11:34]sum+1 = 10201 [09:11:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 102.00 НСП 1% : 0.90 НДС 12% : 10.83 Наличными: 102.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 29 23.10.2024 09:11 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75296 ФПД: 196285211403786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091141&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75296&fm=196285211403786&tin=02508201610067®Number=0000000000161154&sum=10200 0 [09:11:35]StoreToDocumentArchive [09:11:35]shift 173 fd 75296 [09:11:35]save to /storage/0173/doc_00075296 [09:11:35]save last doc name /storage/0173/doc_00075296 to /storage/kkm_last_doc_name [09:11:35]save OK [09:11:35]Clear old archive folders... [09:11:35]ProcessDocumentItem done err = 0, tmpTLVsize=290 [09:11:35]tlvbuf is 00DBBEC0 [09:11:35]SAM_PROTO_ClearQueue [09:11:35]wFMCommunicate request_size=4 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 09 00 00 [09:11:35]Write to MH i2c: E2 08 00 BB 87 80 09 00 00 00 00 00 00 B4 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 BB 87 00 90 00 B6 [09:11:35]RAPDU: 90 00 [09:11:35]wFMCommunicate OK [09:11:35]SAM_PROTO_ClearQueue done [09:11:35]KKMCreateOFDPacket [09:11:35]OFDProtocolAddRootSTLVToBuf [09:11:35]FM_MakeSignedData [09:11:35]FM_MakeSignedData [09:11:35]SAM_PROTO_SignData [09:11:35]wFMCommunicate request_size=4 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 0D 01 02 [09:11:35]Write to MH i2c: E2 08 00 BC 87 80 0D 01 02 00 00 00 00 BC [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 BC 87 00 90 00 B7 [09:11:35]RAPDU: 90 00 [09:11:35]wFMCommunicate OK [09:11:35]wFMCommunicate request_size=255 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 D8 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 04 00 00 00 00 07 04 06 00 D8 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 1D 00 00 00 F4 03 04 00 CD BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [09:11:35]Write to MH i2c: E2 02 01 BD 87 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 D8 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 04 00 00 00 00 07 04 06 00 D8 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 1D 00 00 00 F4 03 04 00 CD BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 1E [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:36]Read from MH i2c: E2 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 03 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 03 00 BD 87 00 90 00 B8 [09:11:36]RAPDU: 90 00 [09:11:36]wFMCommunicate OK [09:11:36]wFMCommunicate request_size=49 [09:11:36]MH_SAM_APDU [09:11:36]CAPDU: 80 0D 02 02 2C 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 26 01 00 35 04 06 00 B2 85 36 4C E6 0A [09:11:36]Write to MH i2c: E2 34 00 BE 87 80 0D 02 02 2C 00 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 26 01 00 35 04 06 00 B2 85 36 4C E6 0A 00 00 CF [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:36]Read from MH i2c: E2 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 03 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 03 00 BE 87 00 90 00 B9 [09:11:36]RAPDU: 90 00 [09:11:36]wFMCommunicate OK [09:11:36]wFMCommunicate request_size=4 [09:11:36]MH_SAM_APDU [09:11:36]CAPDU: 80 0D 03 02 [09:11:36]Write to MH i2c: E2 08 00 BF 87 80 0D 03 02 00 00 00 00 C1 [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:36]Read from MH i2c: E2 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 0B 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 0B 00 BF 87 00 D7 97 79 08 68 42 C7 23 90 00 45 [09:11:36]RAPDU: D7 97 79 08 68 42 C7 23 90 00 [09:11:36]wFMCommunicate OK [09:11:36]SAM_PROTO_SignData done [09:11:36]FM_MakeSignedData done [09:11:36]CreateOFDProtocolMessage [09:11:36]wFMCommunicate request_size=4 [09:11:36]MH_SAM_APDU [09:11:36]CAPDU: 80 11 00 00 [09:11:36]Write to MH i2c: E2 08 00 C0 87 80 11 00 00 00 00 00 00 C1 [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:36]Read from MH i2c: E2 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 17 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 17 00 C0 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0E [09:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:11:36]wFMCommunicate OK [09:11:36]CreateOFDProtocolMessage done [09:11:36]OFDSenderStorePacket 75296 [09:11:36]StoreOFDPacket docnum=75296 [09:11:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 36 01 00 00 D7 6B 2E 01 D0 56 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 D8 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 04 00 00 00 00 07 04 06 00 D8 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 1D 00 00 00 F4 03 04 00 CD BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 26 01 00 35 04 06 00 B2 85 36 4C E6 0A D7 97 79 08 68 42 C7 23 [09:11:36]CheckFolder [09:11:36]dirname=/storage/ofd_packets [09:11:36]CheckFolder done [09:11:36]ProducePacketName [09:11:36]name=ofd_packets/00075296 [09:11:36]NVStorageSaveData ofd_packets/00075296 [09:11:36]File name is /storage/ofd_packets/00075296 [09:11:36]Write 340 bytes [09:11:36]NVStorageSaveData done [09:11:36]OFDSenderStorePacket done [09:11:36]KKMCreateOFDPacket done [09:11:36]NVStorageSaveData kkm_last_timestamp [09:11:36]File name is /storage/kkm_last_timestamp [09:11:36]Write 4 bytes [09:11:36]NVStorageSaveData done [09:11:36]ExternCall_PrintAddStr [09:11:36]wPrintStart [09:11:36]Write to MH i2c: 01 00 00 C1 87 48 [09:11:36]OFD Sender: Processing packet 75296 [packets to send 15, broken 14] [09:11:36]ProducePacketName [09:11:36]name=ofd_packets/00075296 [09:11:36]OFD Sender: To server: pG, [09:11:36]CommunicateWithHost lk.salyk.kg:30040 [09:11:36]ConnectInit lk.salyk.kg [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: 01 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: 01 07 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: 01 07 00 C1 87 00 00 00 00 00 FF 0F 5D [09:11:36]RasterBufferAndPrint [09:11:36]line Счет N : (3)273204 [09:11:36]line ИНН: 02508201610067 [09:11:36]line Контрольно-Кассовый Чек [09:11:36]line ПРОДАЖА [09:11:36]line Товар: 46196613 [09:11:36]line Р/ж Orbit XXL white cочное яблоко 20,4г [09:11:36]line 2.000 * 51.00 [09:11:36]line = 102.00 [09:11:36]line НДС 12% НСП 1% [09:11:36]line > о реализуемом товаре [09:11:36]line ИТОГО: 102.00 [09:11:36]line НСП 1% : 0.90 [09:11:36]line НДС 12% : 10.83 [09:11:36]line Наличными: 102.00 [09:11:36]line Безнал.: 0.00 [09:11:36]line Место: АЗС № 133 "Партнер Нефть" [09:11:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:11:36]line СНО: Общий режим [09:11:36]line Чек 29 23.10.2024 09:11 [09:11:36]line Смена: 173 ФФД: 1.0 [09:11:36]line ЗНМ: 0300000020 [09:11:36]line РНМ: 0000000000161154 [09:11:36]line Версия ККМ: v1.0 [09:11:36]line ФМ: 0000000000963323 [09:11:36]line ФД: 75296 [09:11:36]line ФПД: 196285211403786 [09:11:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091141&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75296&fm=196285211403786&tin=02508201610067®Number=0000000000161154&sum=10200 [09:11:36]line 0 [09:11:36]Connected sock=11 [09:11:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 36 01 00 00 D7 6B 2E 01 D0 56 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 D8 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 04 00 00 00 00 07 04 06 00 D8 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 1D 00 00 00 F4 03 04 00 CD BD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 26 01 00 35 04 06 00 B2 85 36 4C E6 0A D7 97 79 08 68 42 C7 23 [09:11:36]written 0, free lines is 4095 [09:11:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A0 01 47 00 F2 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 39 36 33 33 32 33 10 04 04 00 20 26 01 00 F4 03 04 00 A8 66 18 67 B6 04 01 00 00 AF 88 9B 28 B6 7C D4 BC [09:11:36]CommunicateWithHost err = 0 [09:11:36]CheckOFDResponse [09:11:36]1017 (14) - 77093643461234 [09:11:36]1041 (16) - 0000000000963323 [09:11:36]1040 (4) - 75296 [09:11:36]1012 (4) - 23.10.2024 02:59 [09:11:36]1206 (1) - 0 [09:11:36]OFD Sender: Remove packet 75296 [09:11:36]ProducePacketName [09:11:36]name=ofd_packets/00075296 [09:11:36]NVStorageDeleteData [09:11:37]Write to MH i2c: 01 00 00 E9 87 70 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 07 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 07 00 E9 87 00 00 00 00 00 CE 0C 51 [09:11:37]RasterBufferAndPrint [09:11:37]line [09:11:37]line [09:11:37]line [09:11:37]line [09:11:37]line [09:11:37]written 0, free lines is 3282 [09:11:37]MH_Cut [09:11:37]Write to MH i2c: D1 01 00 F0 87 01 49 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: D1 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: D1 01 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: D1 01 00 F0 87 00 48 [09:11:37]Write to MH i2c: 01 00 00 F1 87 78 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]OFD Sender: No OFD packet to send [09:11:38]*** Cut start [09:11:38]*** Partial cut [09:11:38]*** CUTSNS_PIN = 1 [09:11:38]*** CUTSNS_PIN = 0 [09:11:38]*** Brake cut motor [09:11:38]Read from MH i2c: 01 [09:11:38]MH_I2C_Read... [09:11:38]*** Stop cut motor [09:11:38]*** Cut end [09:11:38]Read from MH i2c: 01 07 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: 01 07 00 F1 87 00 00 00 00 00 FF 0F 8D [09:11:38]process_action close_receipt done [09:11:38]requested_data is exist [09:11:38]produce_requested_data [09:11:38]requested_item fm.sn is exist - process it [09:11:38]wFMCommunicate request_size=4 [09:11:38]MH_SAM_APDU [09:11:38]CAPDU: 80 11 00 00 [09:11:38]Write to MH i2c: E2 08 00 F2 87 80 11 00 00 00 00 00 00 F3 [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:38]Read from MH i2c: E2 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 17 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 17 00 F2 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 40 [09:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:11:38]wFMCommunicate OK [09:11:38]requested_item fd.num is exist - process it [09:11:38]SAM_PROTO_GetFieldsCounters [09:11:38]wFMCommunicate request_size=4 [09:11:38]MH_SAM_APDU [09:11:38]CAPDU: 80 13 00 00 [09:11:38]Write to MH i2c: E2 08 00 F3 87 80 13 00 00 00 00 00 00 F6 [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:38]Read from MH i2c: E2 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 62 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 62 00 F3 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 20 26 01 00 0E 04 04 00 AD 00 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 55 [09:11:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 20 26 01 00 0E 04 04 00 AD 00 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:38]wFMCommunicate OK [09:11:38]SAM_PROTO_GetFieldsCounters done [09:11:38]requested_item shift.num is exist - process it [09:11:38]requested_item shift.opened is exist - process it [09:11:38]req_shift_opened [09:11:38]FM_GetShiftState [09:11:38]SAM_PROTO_GetShiftState [09:11:38]wFMCommunicate request_size=4 [09:11:38]MH_SAM_APDU [09:11:38]CAPDU: 80 13 01 00 [09:11:38]Write to MH i2c: E2 08 00 F4 87 80 13 01 00 00 00 00 00 F8 [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:38]Read from MH i2c: E2 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 0E 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 0E 00 F4 87 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5D [09:11:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:11:38]wFMCommunicate OK [09:11:38]SAM_PROTO_GetShiftState done [09:11:38]FM_GetShiftState done [09:11:38]req_shift_opened done [09:11:38]requested_item shift.open_date is exist - process it [09:11:38]req_shift_open_date [09:11:38]req_shift_open_date done [09:11:38]produce_requested_data done [09:11:38]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75296,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:11:38]process_action_free close_receipt [09:11:38]json_value_free [09:11:38]json_value_free done [09:11:38]process_json_proto returns [09:11:38]Send response to host [09:11:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75296,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:11:38]free response buf [09:11:38]execute_script done [09:11:38]execute_script returns [09:11:38]free content buf [09:11:38]Sock 9.Close socket [09:11:38]Sock 9.Thread stoped [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:48]accept exits with 7 [09:12:48]New connection [09:12:48]New thread 3067465060 created [09:12:48]Thread 3067321700 joined [09:12:48]Waiting for new connection... [09:12:48] Sock 7.Parse request [09:12:48]Sock 7.Check first char [09:12:48]Sock 7.First char is OK [09:12:48]request: POST /json_proto HTTP/1.0 [09:12:48]Method: POST [09:12:48]URL: /json_proto [09:12:48]Method is POST - this is cgi request [09:12:48]url: /json_proto [09:12:48]query_string will be loaded in cgi processing [09:12:48]execute_cgi json_proto POST (null) [09:12:48]execute_cgi path=json_proto method=POST [09:12:48]POST find Content-Length [09:12:48]Host: 172.17.44.196:8080 [09:12:48]Content-Length: 755 [09:12:48]Content-Type: application/json [09:12:48] [09:12:48]POST finish read [09:12:48]Found Content-Length = 755 [09:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30058772", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:48]execute_script... [09:12: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)1965249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30058772", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:48]POST & json_proto [09:12:48]process_json_proto [09:12:48]json parsed OK: [09:12:48]protocol is kg_v1.0 [09:12:48]action value=close_receipt [09:12:48]process_action close_receipt [09:12:48]cmd_close_receipt [09:12:48]MH_GetDate [09:12:48]Write to MH i2c: F0 00 00 F5 87 6B [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: F0 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: F0 09 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: F0 09 00 F5 87 00 17 BE 18 67 E7 19 F8 65 25 [09:12:48]GetLastDocTimeStamp 1729674701 [09:12:48]current date 1729674775 [09:12:48]FM_GetShiftState [09:12:48]SAM_PROTO_GetShiftState [09:12:48]wFMCommunicate request_size=4 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 13 01 00 [09:12:48]Write to MH i2c: E2 08 00 F6 87 80 13 01 00 00 00 00 00 FA [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 0E 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 0E 00 F6 87 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5F [09:12:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:12:48]wFMCommunicate OK [09:12:48]SAM_PROTO_GetShiftState done [09:12:48]FM_GetShiftState done [09:12:48]opened in 1729642905 [09:12:48]opened+sec_in_day 1729729305 [09:12:48]quantity*price = 0 [09:12:48]sum+1 = 1 [09:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 30 23.10.2024 09:12 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30058772 ФМ: 0000000000963323 ФД: 75297 ФПД: 78270731426961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091255&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75297&fm=78270731426961&tin=02508201610067®Number=0000000000161154&sum=0 [09:12:49]StoreToDocumentArchive [09:12:49]shift 173 fd 75297 [09:12:49]save to /storage/0173/doc_00075297 [09:12:49]save last doc name /storage/0173/doc_00075297 to /storage/kkm_last_doc_name [09:12:49]save OK [09:12:49]Clear old archive folders... [09:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:49]tlvbuf is 00DC5580 [09:12:49]SAM_PROTO_ClearQueue [09:12:49]wFMCommunicate request_size=4 [09:12:49]MH_SAM_APDU [09:12:49]CAPDU: 80 09 00 00 [09:12:49]Write to MH i2c: E2 08 00 03 88 80 09 00 00 00 00 00 00 FD [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:49]Read from MH i2c: E2 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 03 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 03 00 03 88 00 90 00 FF [09:12:49]RAPDU: 90 00 [09:12:49]wFMCommunicate OK [09:12:49]SAM_PROTO_ClearQueue done [09:12:49]KKMCreateOFDPacket [09:12:49]OFDProtocolAddRootSTLVToBuf [09:12:49]FM_MakeSignedData [09:12:49]FM_MakeSignedData [09:12:49]SAM_PROTO_SignData [09:12:49]wFMCommunicate request_size=4 [09:12:49]MH_SAM_APDU [09:12:49]CAPDU: 80 0D 01 02 [09:12:49]Write to MH i2c: E2 08 00 04 88 80 0D 01 02 00 00 00 00 05 [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:49]Read from MH i2c: E2 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 03 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 03 00 04 88 00 90 00 00 [09:12:49]RAPDU: 90 00 [09:12:49]wFMCommunicate OK [09:12:49]wFMCommunicate request_size=255 [09:12:49]MH_SAM_APDU [09:12: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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 17 BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 26 01 00 35 04 06 00 47 [09:12:49]Write to MH i2c: E2 02 01 05 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 17 BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 26 01 00 35 04 06 00 47 00 00 50 [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 05 88 00 90 00 01 [09:12:50]RAPDU: 90 00 [09:12:50]wFMCommunicate OK [09:12:50]wFMCommunicate request_size=10 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 0D 02 02 05 2F D3 24 9C 91 [09:12:50]Write to MH i2c: E2 0D 00 06 88 80 0D 02 02 05 00 2F D3 24 9C 91 00 00 65 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 03 00 06 88 00 90 00 02 [09:12:50]RAPDU: 90 00 [09:12:50]wFMCommunicate OK [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 0D 03 02 [09:12:50]Write to MH i2c: E2 08 00 07 88 80 0D 03 02 00 00 00 00 0A [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 0B 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 0B 00 07 88 00 EC 6D 23 29 00 98 1A 62 90 00 C4 [09:12:50]RAPDU: EC 6D 23 29 00 98 1A 62 90 00 [09:12:50]wFMCommunicate OK [09:12:50]SAM_PROTO_SignData done [09:12:50]FM_MakeSignedData done [09:12:50]CreateOFDProtocolMessage [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 11 00 00 [09:12:50]Write to MH i2c: E2 08 00 08 88 80 11 00 00 00 00 00 00 0A [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 17 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 17 00 08 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 57 [09:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:12:50]wFMCommunicate OK [09:12:50]CreateOFDProtocolMessage done [09:12:50]OFDSenderStorePacket 75297 [09:12:50]StoreOFDPacket docnum=75297 [09:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 DA CC 07 01 C0 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 17 BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 26 01 00 35 04 06 00 47 2F D3 24 9C 91 EC 6D 23 29 00 98 1A 62 [09:12:50]CheckFolder [09:12:50]dirname=/storage/ofd_packets [09:12:50]CheckFolder done [09:12:50]ProducePacketName [09:12:50]name=ofd_packets/00075297 [09:12:50]NVStorageSaveData ofd_packets/00075297 [09:12:50]File name is /storage/ofd_packets/00075297 [09:12:50]Write 301 bytes [09:12:50]NVStorageSaveData done [09:12:50]OFDSenderStorePacket done [09:12:50]KKMCreateOFDPacket done [09:12:50]NVStorageSaveData kkm_last_timestamp [09:12:50]File name is /storage/kkm_last_timestamp [09:12:50]Write 4 bytes [09:12:50]NVStorageSaveData done [09:12:50]ExternCall_PrintAddStr [09:12:50]wPrintStart [09:12:50]Write to MH i2c: 01 00 00 09 88 91 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 07 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 07 00 09 88 00 00 00 00 00 FF 0F A6 [09:12:50]RasterBufferAndPrint [09:12:50]line Счет N : (1)1965249 [09:12:50]line ИНН: 02508201610067 [09:12:50]line Контрольно-Кассовый Чек [09:12:50]line ПРОДАЖА [09:12:50]line ТРК (МРК, ГНК) : 63 [09:12:50]line Товар: 2710124130 [09:12:50]line Аи-92-К-5 [09:12:50]line 14.950 * 0.00 [09:12:50]line = 0.00 [09:12:50]line НДС 12% НСП 1% [09:12:50]line > о реализуемом товаре [09:12:50]line ИТОГО: 0.00 [09:12:50]line НСП 1% : 0.00 [09:12:50]line НДС 12% : 0.00 [09:12:50]line Наличными: 0.00 [09:12:50]line Безнал.: 0.00 [09:12:50]line Место: АЗС № 133 "Партнер Нефть" [09:12:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:12:50]line СНО: Общий режим [09:12:50]line Чек 30 23.10.2024 09:12 [09:12:50]line Смена: 173 ФФД: 1.0 [09:12:50]line ЗНМ: 0300000020 [09:12:50]line РНМ: 0000000000161154 [09:12:50]line Версия ККМ: v1.0 [09:12:50]line Талоны: ТК ГПНА Online [09:12:50]line 30058772 [09:12:50]line ФМ: 0000000000963323 [09:12:50]line ФД: 75297 [09:12:50]line ФПД: 78270731426961 [09:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091255&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75297&fm=78270731426961&tin=02508201610067®Number=0000000000161154&sum=0 [09:12:50]written 0, free lines is 4095 [09:12:50]OFD Sender: Processing packet 75297 [packets to send 15, broken 14] [09:12:50]ProducePacketName [09:12:50]name=ofd_packets/00075297 [09:12:50]OFD Sender: To server: pG, [09:12:50]CommunicateWithHost lk.salyk.kg:30040 [09:12:50]ConnectInit lk.salyk.kg [09:12:50]Connected sock=10 [09:12:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 DA CC 07 01 C0 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 17 BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 26 01 00 35 04 06 00 47 2F D3 24 9C 91 EC 6D 23 29 00 98 1A 62 [09:12:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 24 38 47 00 3F 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 26 01 00 F4 03 04 00 F2 66 18 67 B6 04 01 00 00 68 DC 65 B7 B9 47 7F 14 [09:12:50]CommunicateWithHost err = 0 [09:12:50]CheckOFDResponse [09:12:50]1017 (14) - 77093643461234 [09:12:50]1041 (16) - 0000000000963323 [09:12:50]1040 (4) - 75297 [09:12:50]1012 (4) - 23.10.2024 03:01 [09:12:50]1206 (1) - 0 [09:12:50]OFD Sender: Remove packet 75297 [09:12:50]ProducePacketName [09:12:50]name=ofd_packets/00075297 [09:12:50]NVStorageDeleteData [09:12:50]Write to MH i2c: 01 00 00 32 88 BA [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 07 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 07 00 32 88 00 00 00 00 00 BD 0C 8A [09:12:50]RasterBufferAndPrint [09:12:50]line [09:12:50]line [09:12:50]line [09:12:50]line [09:12:50]line [09:12:50]written 0, free lines is 3264 [09:12:50]MH_Cut [09:12:50]Write to MH i2c: D1 01 00 39 88 01 93 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: D1 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: D1 01 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: D1 01 00 39 88 00 92 [09:12:50]Write to MH i2c: 01 00 00 3A 88 C2 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:51]OFD Sender: No OFD packet to send [09:12:51]*** Cut start [09:12:51]*** Partial cut [09:12:51]*** CUTSNS_PIN = 1 [09:12:51]*** CUTSNS_PIN = 0 [09:12:51]*** Brake cut motor [09:12:52]Read from MH i2c: 01 [09:12:52]MH_I2C_Read... [09:12:52]*** Stop cut motor [09:12:52]*** Cut end [09:12:52]Read from MH i2c: 01 07 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: 01 07 00 3A 88 00 00 00 00 00 FF 0F D7 [09:12:52]process_action close_receipt done [09:12:52]requested_data is exist [09:12:52]produce_requested_data [09:12:52]requested_item fm.sn is exist - process it [09:12:52]wFMCommunicate request_size=4 [09:12:52]MH_SAM_APDU [09:12:52]CAPDU: 80 11 00 00 [09:12:52]Write to MH i2c: E2 08 00 3B 88 80 11 00 00 00 00 00 00 3D [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:52]Read from MH i2c: E2 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 17 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 17 00 3B 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [09:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:12:52]wFMCommunicate OK [09:12:52]requested_item fd.num is exist - process it [09:12:52]SAM_PROTO_GetFieldsCounters [09:12:52]wFMCommunicate request_size=4 [09:12:52]MH_SAM_APDU [09:12:52]CAPDU: 80 13 00 00 [09:12:52]Write to MH i2c: E2 08 00 3C 88 80 13 00 00 00 00 00 00 40 [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:52]Read from MH i2c: E2 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 62 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 62 00 3C 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 21 26 01 00 0E 04 04 00 AD 00 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 A3 [09:12:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 21 26 01 00 0E 04 04 00 AD 00 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:12:52]wFMCommunicate OK [09:12:52]SAM_PROTO_GetFieldsCounters done [09:12:52]requested_item shift.num is exist - process it [09:12:52]requested_item shift.opened is exist - process it [09:12:52]req_shift_opened [09:12:52]FM_GetShiftState [09:12:52]SAM_PROTO_GetShiftState [09:12:52]wFMCommunicate request_size=4 [09:12:52]MH_SAM_APDU [09:12:52]CAPDU: 80 13 01 00 [09:12:52]Write to MH i2c: E2 08 00 3D 88 80 13 01 00 00 00 00 00 42 [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:52]Read from MH i2c: E2 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 0E 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 0E 00 3D 88 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A7 [09:12:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:12:52]wFMCommunicate OK [09:12:52]SAM_PROTO_GetShiftState done [09:12:52]FM_GetShiftState done [09:12:52]req_shift_opened done [09:12:52]requested_item shift.open_date is exist - process it [09:12:52]req_shift_open_date [09:12:52]req_shift_open_date done [09:12:52]produce_requested_data done [09:12:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75297,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:12:52]process_action_free close_receipt [09:12:52]json_value_free [09:12:52]json_value_free done [09:12:52]process_json_proto returns [09:12:52]Send response to host [09:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75297,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:12:52]free response buf [09:12:52]execute_script done [09:12:52]execute_script returns [09:12:52]free content buf [09:12:52]Sock 7.Close socket [09:12:52]Sock 7.Thread stoped [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:12]accept exits with 9 [09:13:12]New connection [09:13:12]New thread 3067321700 created [09:13:12]Thread 3067465060 joined [09:13:12]Waiting for new connection... [09:13:12] Sock 9.Parse request [09:13:12]Sock 9.Check first char [09:13:12]Sock 9.First char is OK [09:13:12]request: POST /json_proto HTTP/1.0 [09:13:12]Method: POST [09:13:12]URL: /json_proto [09:13:12]Method is POST - this is cgi request [09:13:12]url: /json_proto [09:13:12]query_string will be loaded in cgi processing [09:13:12]execute_cgi json_proto POST (null) [09:13:12]execute_cgi path=json_proto method=POST [09:13:12]POST find Content-Length [09:13:12]Host: 172.17.44.196:8080 [09:13:12]Content-Length: 755 [09:13:12]Content-Type: application/json [09:13:12] [09:13:12]POST finish read [09:13:12]Found Content-Length = 755 [09:13:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30058772", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:12]execute_script... [09:13: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)1965250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30058772", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:12]POST & json_proto [09:13:12]process_json_proto [09:13:12]json parsed OK: [09:13:12]protocol is kg_v1.0 [09:13:12]action value=close_receipt [09:13:12]process_action close_receipt [09:13:12]cmd_close_receipt [09:13:12]MH_GetDate [09:13:12]Write to MH i2c: F0 00 00 3E 88 B5 [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: F0 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: F0 09 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: F0 09 00 3E 88 00 2F BE 18 67 E7 19 F8 65 87 [09:13:12]GetLastDocTimeStamp 1729674775 [09:13:12]current date 1729674799 [09:13:12]FM_GetShiftState [09:13:12]SAM_PROTO_GetShiftState [09:13:12]wFMCommunicate request_size=4 [09:13:12]MH_SAM_APDU [09:13:12]CAPDU: 80 13 01 00 [09:13:12]Write to MH i2c: E2 08 00 3F 88 80 13 01 00 00 00 00 00 44 [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:12]Read from MH i2c: E2 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: E2 0E 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: E2 0E 00 3F 88 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A9 [09:13:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:13:12]wFMCommunicate OK [09:13:12]SAM_PROTO_GetShiftState done [09:13:12]FM_GetShiftState done [09:13:12]opened in 1729642905 [09:13:12]opened+sec_in_day 1729729305 [09:13:12]quantity*price = 0 [09:13:12]sum+1 = 1 [09:13:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 31 23.10.2024 09:13 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30058772 ФМ: 0000000000963323 ФД: 75298 ФПД: 139038598149372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091319&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75298&fm=139038598149372&tin=02508201610067®Number=0000000000161154&sum=0 [09:13:14]StoreToDocumentArchive [09:13:14]shift 173 fd 75298 [09:13:14]save to /storage/0173/doc_00075298 [09:13:14]save last doc name /storage/0173/doc_00075298 to /storage/kkm_last_doc_name [09:13:14]save OK [09:13:14]Clear old archive folders... [09:13:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:14]tlvbuf is 00D611E0 [09:13:14]SAM_PROTO_ClearQueue [09:13:14]wFMCommunicate request_size=4 [09:13:14]MH_SAM_APDU [09:13:14]CAPDU: 80 09 00 00 [09:13:14]Write to MH i2c: E2 08 00 4C 88 80 09 00 00 00 00 00 00 46 [09:13:14]Write i2c OK [09:13:14]MH_I2C_Read... [09:13:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:14]Read from MH i2c: E2 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 03 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 03 00 4C 88 00 90 00 48 [09:13:14]RAPDU: 90 00 [09:13:14]wFMCommunicate OK [09:13:14]SAM_PROTO_ClearQueue done [09:13:14]KKMCreateOFDPacket [09:13:14]OFDProtocolAddRootSTLVToBuf [09:13:14]FM_MakeSignedData [09:13:14]FM_MakeSignedData [09:13:14]SAM_PROTO_SignData [09:13:14]wFMCommunicate request_size=4 [09:13:14]MH_SAM_APDU [09:13:14]CAPDU: 80 0D 01 02 [09:13:14]Write to MH i2c: E2 08 00 4D 88 80 0D 01 02 00 00 00 00 4E [09:13:14]Write i2c OK [09:13:14]MH_I2C_Read... [09:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:14]Read from MH i2c: E2 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 03 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 03 00 4D 88 00 90 00 49 [09:13:14]RAPDU: 90 00 [09:13:14]wFMCommunicate OK [09:13:14]wFMCommunicate request_size=255 [09:13:14]MH_SAM_APDU [09:13: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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2F BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 26 01 00 35 04 06 00 7E [09:13:14]Write to MH i2c: E2 02 01 4E 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2F BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 26 01 00 35 04 06 00 7E 00 00 EA [09:13:14]Write i2c OK [09:13:14]MH_I2C_Read... [09:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:14]Read from MH i2c: E2 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 03 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 03 00 4E 88 00 90 00 4A [09:13:14]RAPDU: 90 00 [09:13:14]wFMCommunicate OK [09:13:14]wFMCommunicate request_size=10 [09:13:14]MH_SAM_APDU [09:13:14]CAPDU: 80 0D 02 02 05 74 72 40 B4 FC [09:13:14]Write to MH i2c: E2 0D 00 4F 88 80 0D 02 02 05 00 74 72 40 B4 FC 00 00 31 [09:13:14]Write i2c OK [09:13:14]MH_I2C_Read... [09:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:14]Read from MH i2c: E2 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 03 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 03 00 4F 88 00 90 00 4B [09:13:14]RAPDU: 90 00 [09:13:14]wFMCommunicate OK [09:13:14]wFMCommunicate request_size=4 [09:13:14]MH_SAM_APDU [09:13:14]CAPDU: 80 0D 03 02 [09:13:14]Write to MH i2c: E2 08 00 50 88 80 0D 03 02 00 00 00 00 53 [09:13:14]Write i2c OK [09:13:14]MH_I2C_Read... [09:13:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:14]Read from MH i2c: E2 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 0B 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 0B 00 50 88 00 AB BF CC 25 83 A6 17 0A 90 00 F9 [09:13:14]RAPDU: AB BF CC 25 83 A6 17 0A 90 00 [09:13:14]wFMCommunicate OK [09:13:14]SAM_PROTO_SignData done [09:13:14]FM_MakeSignedData done [09:13:14]CreateOFDProtocolMessage [09:13:14]wFMCommunicate request_size=4 [09:13:14]MH_SAM_APDU [09:13:14]CAPDU: 80 11 00 00 [09:13:14]Write to MH i2c: E2 08 00 51 88 80 11 00 00 00 00 00 00 53 [09:13:14]Write i2c OK [09:13:14]MH_I2C_Read... [09:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:14]Read from MH i2c: E2 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 17 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 17 00 51 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A0 [09:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:13:14]wFMCommunicate OK [09:13:14]CreateOFDProtocolMessage done [09:13:14]OFDSenderStorePacket 75298 [09:13:14]StoreOFDPacket docnum=75298 [09:13:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 BC 0F 07 01 BD 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2F BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 26 01 00 35 04 06 00 7E 74 72 40 B4 FC AB BF CC 25 83 A6 17 0A [09:13:14]CheckFolder [09:13:14]dirname=/storage/ofd_packets [09:13:14]CheckFolder done [09:13:14]ProducePacketName [09:13:14]name=ofd_packets/00075298 [09:13:14]NVStorageSaveData ofd_packets/00075298 [09:13:14]File name is /storage/ofd_packets/00075298 [09:13:14]Write 301 bytes [09:13:14]NVStorageSaveData done [09:13:14]OFDSenderStorePacket done [09:13:14]KKMCreateOFDPacket done [09:13:14]NVStorageSaveData kkm_last_timestamp [09:13:14]File name is /storage/kkm_last_timestamp [09:13:14]Write 4 bytes [09:13:14]NVStorageSaveData done [09:13:14]ExternCall_PrintAddStr [09:13:14]wPrintStart [09:13:14]Write to MH i2c: 01 00 00 52 88 DA [09:13:14]Write i2c OK [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: 01 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: 01 07 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: 01 07 00 52 88 00 00 00 00 00 FF 0F EF [09:13:14]RasterBufferAndPrint [09:13:14]line Счет N : (1)1965250 [09:13:14]line ИНН: 02508201610067 [09:13:14]line Контрольно-Кассовый Чек [09:13:14]line ПРОДАЖА [09:13:14]line ТРК (МРК, ГНК) : 53 [09:13:14]line Товар: 2710124130 [09:13:14]line Аи-92-К-5 [09:13:14]line 14.950 * 0.00 [09:13:14]line = 0.00 [09:13:14]line НДС 12% НСП 1% [09:13:14]line > о реализуемом товаре [09:13:14]line ИТОГО: 0.00 [09:13:14]line НСП 1% : 0.00 [09:13:14]line НДС 12% : 0.00 [09:13:14]line Наличными: 0.00 [09:13:14]line Безнал.: 0.00 [09:13:14]line Место: АЗС № 133 "Партнер Нефть" [09:13:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:13:14]line СНО: Общий режим [09:13:14]line Чек 31 23.10.2024 09:13 [09:13:14]line Смена: 173 ФФД: 1.0 [09:13:14]line ЗНМ: 0300000020 [09:13:14]line РНМ: 0000000000161154 [09:13:14]line Версия ККМ: v1.0 [09:13:14]line Талоны: ТК ГПНА Online [09:13:14]line 30058772 [09:13:14]line ФМ: 0000000000963323 [09:13:14]line ФД: 75298 [09:13:14]line ФПД: 139038598149372 [09:13:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091319&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75298&fm=139038598149372&tin=02508201610067®Number=0000000000161154&sum=0 [09:13:14]OFD Sender: Processing packet 75298 [packets to send 15, broken 14] [09:13:14]ProducePacketName [09:13:14]name=ofd_packets/00075298 [09:13:14]OFD Sender: To server: pG, [09:13:14]CommunicateWithHost lk.salyk.kg:30040 [09:13:14]ConnectInit lk.salyk.kg [09:13:14]written 0, free lines is 4095 [09:13:15]Connected sock=10 [09:13:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 BC 0F 07 01 BD 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 2F BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 26 01 00 35 04 06 00 7E 74 72 40 B4 FC AB BF CC 25 83 A6 17 0A [09:13:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A6 AD 47 00 AC 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 26 01 00 F4 03 04 00 0B 67 18 67 B6 04 01 00 00 C2 A1 B2 02 97 CB 46 03 [09:13:15]CommunicateWithHost err = 0 [09:13:15]CheckOFDResponse [09:13:15]1017 (14) - 77093643461234 [09:13:15]1041 (16) - 0000000000963323 [09:13:15]1040 (4) - 75298 [09:13:15]1012 (4) - 23.10.2024 03:01 [09:13:15]1206 (1) - 0 [09:13:15]OFD Sender: Remove packet 75298 [09:13:15]ProducePacketName [09:13:15]name=ofd_packets/00075298 [09:13:15]NVStorageDeleteData [09:13:15]Write to MH i2c: 01 00 00 7B 88 03 [09:13:15]Write i2c OK [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: 01 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: 01 07 00 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: 01 07 00 7B 88 00 00 00 00 00 C1 0C D7 [09:13:15]RasterBufferAndPrint [09:13:15]line [09:13:15]line [09:13:15]line [09:13:15]line [09:13:15]line [09:13:15]written 0, free lines is 3270 [09:13:15]MH_Cut [09:13:15]Write to MH i2c: D1 01 00 82 88 01 DC [09:13:15]Write i2c OK [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: D1 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: D1 01 00 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: D1 01 00 82 88 00 DB [09:13:15]Write to MH i2c: 01 00 00 83 88 0B [09:13:15]Write i2c OK [09:13:15]MH_I2C_Read... [09:13:15]OFD Sender: No OFD packet to send [09:13:16]*** Cut start [09:13:16]*** Partial cut [09:13:16]*** CUTSNS_PIN = 1 [09:13:16]*** CUTSNS_PIN = 0 [09:13:16]*** Brake cut motor [09:13:16]Read from MH i2c: 01 [09:13:16]MH_I2C_Read... [09:13:16]*** Stop cut motor [09:13:16]*** Cut end [09:13:16]Read from MH i2c: 01 07 00 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: 01 07 00 83 88 00 00 00 00 00 FF 0F 20 [09:13:16]process_action close_receipt done [09:13:16]requested_data is exist [09:13:16]produce_requested_data [09:13:16]requested_item fm.sn is exist - process it [09:13:16]wFMCommunicate request_size=4 [09:13:16]MH_SAM_APDU [09:13:16]CAPDU: 80 11 00 00 [09:13:16]Write to MH i2c: E2 08 00 84 88 80 11 00 00 00 00 00 00 86 [09:13:16]Write i2c OK [09:13:16]MH_I2C_Read... [09:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:16]Read from MH i2c: E2 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: E2 17 00 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: E2 17 00 84 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D3 [09:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:13:16]wFMCommunicate OK [09:13:16]requested_item fd.num is exist - process it [09:13:16]SAM_PROTO_GetFieldsCounters [09:13:16]wFMCommunicate request_size=4 [09:13:16]MH_SAM_APDU [09:13:16]CAPDU: 80 13 00 00 [09:13:16]Write to MH i2c: E2 08 00 85 88 80 13 00 00 00 00 00 00 89 [09:13:16]Write i2c OK [09:13:16]MH_I2C_Read... [09:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:17]Read from MH i2c: E2 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: E2 62 00 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: E2 62 00 85 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 22 26 01 00 0E 04 04 00 AD 00 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 F0 [09:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 22 26 01 00 0E 04 04 00 AD 00 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:13:17]wFMCommunicate OK [09:13:17]SAM_PROTO_GetFieldsCounters done [09:13:17]requested_item shift.num is exist - process it [09:13:17]requested_item shift.opened is exist - process it [09:13:17]req_shift_opened [09:13:17]FM_GetShiftState [09:13:17]SAM_PROTO_GetShiftState [09:13:17]wFMCommunicate request_size=4 [09:13:17]MH_SAM_APDU [09:13:17]CAPDU: 80 13 01 00 [09:13:17]Write to MH i2c: E2 08 00 86 88 80 13 01 00 00 00 00 00 8B [09:13:17]Write i2c OK [09:13:17]MH_I2C_Read... [09:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:17]Read from MH i2c: E2 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: E2 0E 00 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: E2 0E 00 86 88 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F0 [09:13:17]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:13:17]wFMCommunicate OK [09:13:17]SAM_PROTO_GetShiftState done [09:13:17]FM_GetShiftState done [09:13:17]req_shift_opened done [09:13:17]requested_item shift.open_date is exist - process it [09:13:17]req_shift_open_date [09:13:17]req_shift_open_date done [09:13:17]produce_requested_data done [09:13:17]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75298,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:13:17]process_action_free close_receipt [09:13:17]json_value_free [09:13:17]json_value_free done [09:13:17]process_json_proto returns [09:13:17]Send response to host [09:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75298,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:13:17]free response buf [09:13:17]execute_script done [09:13:17]execute_script returns [09:13:17]free content buf [09:13:17]Sock 9.Close socket [09:13:17]Sock 9.Thread stoped [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:04]accept exits with 7 [09:15:04]New connection [09:15:04]New thread 3067465060 created [09:15:04]Thread 3067321700 joined [09:15:04]Waiting for new connection... [09:15:04] Sock 7.Parse request [09:15:04]Sock 7.Check first char [09:15:04]Sock 7.First char is OK [09:15:04]request: POST /json_proto HTTP/1.0 [09:15:04]Method: POST [09:15:04]URL: /json_proto [09:15:04]Method is POST - this is cgi request [09:15:04]url: /json_proto [09:15:04]query_string will be loaded in cgi processing [09:15:04]execute_cgi json_proto POST (null) [09:15:04]execute_cgi path=json_proto method=POST [09:15:04]POST find Content-Length [09:15:04]Host: 172.17.44.196:8080 [09:15:04]Content-Length: 931 [09:15:04]Content-Type: application/json [09:15:04] [09:15:04]POST finish read [09:15:04]Found Content-Length = 931 [09:15:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273205", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:04]execute_script... [09:15:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273205", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:04]POST & json_proto [09:15:04]process_json_proto [09:15:04]json parsed OK: [09:15:04]protocol is kg_v1.0 [09:15:04]action value=close_receipt [09:15:04]process_action close_receipt [09:15:04]cmd_close_receipt [09:15:04]MH_GetDate [09:15:04]Write to MH i2c: F0 00 00 87 88 FE [09:15:04]Write i2c OK [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: F0 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: F0 09 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: F0 09 00 87 88 00 9F BE 18 67 E7 19 F8 65 40 [09:15:04]GetLastDocTimeStamp 1729674799 [09:15:04]current date 1729674911 [09:15:04]FM_GetShiftState [09:15:04]SAM_PROTO_GetShiftState [09:15:04]wFMCommunicate request_size=4 [09:15:04]MH_SAM_APDU [09:15:04]CAPDU: 80 13 01 00 [09:15:04]Write to MH i2c: E2 08 00 88 88 80 13 01 00 00 00 00 00 8D [09:15:04]Write i2c OK [09:15:04]MH_I2C_Read... [09:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:04]Read from MH i2c: E2 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 0E 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 0E 00 88 88 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F2 [09:15:04]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:15:04]wFMCommunicate OK [09:15:04]SAM_PROTO_GetShiftState done [09:15:04]FM_GetShiftState done [09:15:04]opened in 1729642905 [09:15:04]opened+sec_in_day 1729729305 [09:15:04]quantity*price = 11500 [09:15:04]sum+1 = 11501 [09:15:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660013331421 Эскимо Ленинградское 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 32 23.10.2024 09:15 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75299 ФПД: 15341571688531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091511&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75299&fm=15341571688531&tin=02508201610067®Number=0000000000161154&sum=21000 0 [09:15:06]StoreToDocumentArchive [09:15:06]shift 173 fd 75299 [09:15:06]save to /storage/0173/doc_00075299 [09:15:06]save last doc name /storage/0173/doc_00075299 to /storage/kkm_last_doc_name [09:15:06]save OK [09:15:06]Clear old archive folders... [09:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=391 [09:15:06]tlvbuf is 00DC53D0 [09:15:06]SAM_PROTO_ClearQueue [09:15:06]wFMCommunicate request_size=4 [09:15:06]MH_SAM_APDU [09:15:06]CAPDU: 80 09 00 00 [09:15:06]Write to MH i2c: E2 08 00 95 88 80 09 00 00 00 00 00 00 8F [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:06]Read from MH i2c: E2 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 03 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 03 00 95 88 00 90 00 91 [09:15:06]RAPDU: 90 00 [09:15:06]wFMCommunicate OK [09:15:06]SAM_PROTO_ClearQueue done [09:15:06]KKMCreateOFDPacket [09:15:06]OFDProtocolAddRootSTLVToBuf [09:15:06]FM_MakeSignedData [09:15:06]FM_MakeSignedData [09:15:06]SAM_PROTO_SignData [09:15:06]wFMCommunicate request_size=4 [09:15:06]MH_SAM_APDU [09:15:06]CAPDU: 80 0D 01 02 [09:15:06]Write to MH i2c: E2 08 00 96 88 80 0D 01 02 00 00 00 00 97 [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:06]Read from MH i2c: E2 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 03 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 03 00 96 88 00 90 00 92 [09:15:06]RAPDU: 90 00 [09:15:06]wFMCommunicate OK [09:15:06]wFMCommunicate request_size=255 [09:15:06]MH_SAM_APDU [09:15:06]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [09:15:06]Write to MH i2c: E2 02 01 97 88 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 79 [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:06]Read from MH i2c: E2 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 03 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 03 00 97 88 00 90 00 93 [09:15:06]RAPDU: 90 00 [09:15:06]wFMCommunicate OK [09:15:06]wFMCommunicate request_size=150 [09:15:06]MH_SAM_APDU [09:15:06]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9F BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 26 01 00 35 04 06 00 0D F3 FC EE 48 53 [09:15:06]Write to MH i2c: E2 99 00 98 88 80 0D 02 02 91 00 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9F BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 26 01 00 35 04 06 00 0D F3 FC EE 48 53 00 00 28 [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:06]Read from MH i2c: E2 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 03 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 03 00 98 88 00 90 00 94 [09:15:06]RAPDU: 90 00 [09:15:06]wFMCommunicate OK [09:15:06]wFMCommunicate request_size=4 [09:15:06]MH_SAM_APDU [09:15:06]CAPDU: 80 0D 03 02 [09:15:06]Write to MH i2c: E2 08 00 99 88 80 0D 03 02 00 00 00 00 9C [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:06]Read from MH i2c: E2 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 0B 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 0B 00 99 88 00 07 86 73 70 B1 D8 76 7A 90 00 86 [09:15:06]RAPDU: 07 86 73 70 B1 D8 76 7A 90 00 [09:15:06]wFMCommunicate OK [09:15:06]SAM_PROTO_SignData done [09:15:06]FM_MakeSignedData done [09:15:06]CreateOFDProtocolMessage [09:15:06]wFMCommunicate request_size=4 [09:15:06]MH_SAM_APDU [09:15:06]CAPDU: 80 11 00 00 [09:15:06]Write to MH i2c: E2 08 00 9A 88 80 11 00 00 00 00 00 00 9C [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:06]Read from MH i2c: E2 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 17 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 17 00 9A 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E9 [09:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:15:06]wFMCommunicate OK [09:15:06]CreateOFDProtocolMessage done [09:15:06]OFDSenderStorePacket 75299 [09:15:06]StoreOFDPacket docnum=75299 [09:15:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9B 01 00 00 6C 87 93 01 B0 E2 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9F BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 26 01 00 35 04 06 00 0D F3 FC EE 48 53 07 86 73 70 B1 D8 76 7A [09:15:06]CheckFolder [09:15:06]dirname=/storage/ofd_packets [09:15:06]CheckFolder done [09:15:06]ProducePacketName [09:15:06]name=ofd_packets/00075299 [09:15:06]NVStorageSaveData ofd_packets/00075299 [09:15:06]File name is /storage/ofd_packets/00075299 [09:15:06]Write 441 bytes [09:15:06]NVStorageSaveData done [09:15:06]OFDSenderStorePacket done [09:15:06]KKMCreateOFDPacket done [09:15:06]NVStorageSaveData kkm_last_timestamp [09:15:06]File name is /storage/kkm_last_timestamp [09:15:06]Write 4 bytes [09:15:06]NVStorageSaveData done [09:15:06]ExternCall_PrintAddStr [09:15:06]wPrintStart [09:15:06]Write to MH i2c: 01 00 00 9B 88 23 [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: 01 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: 01 07 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: 01 07 00 9B 88 00 00 00 00 00 FF 0F 38 [09:15:06]RasterBufferAndPrint [09:15:06]line Счет N : (3)273205 [09:15:06]line ИНН: 02508201610067 [09:15:06]line Контрольно-Кассовый Чек [09:15:06]line ПРОДАЖА [09:15:06]line Товар: 2000036210013 [09:15:06]line Кофе Капучино (GABB TRADE) [09:15:06]line 1.000 * 115.00 [09:15:06]line = 115.00 [09:15:06]line НДС 12% НСП 1% [09:15:07]line > о реализуемом товаре [09:15:07]line Товар: 4660013331421 [09:15:07]line Эскимо Ленинградское [09:15:07]line 1.000 * 95.00 [09:15:07]line = 95.00 [09:15:07]line НДС 12% НСП 1% [09:15:07]line > о реализуемом товаре [09:15:07]line ИТОГО: 210.00 [09:15:07]line НСП 1% : 1.86 [09:15:07]line НДС 12% : 22.30 [09:15:07]line Наличными: 210.00 [09:15:07]line Безнал.: 0.00 [09:15:07]line Место: АЗС № 133 "Партнер Нефть" [09:15:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:15:07]line СНО: Общий режим [09:15:07]line Чек 32 23.10.2024 09:15 [09:15:07]line Смена: 173 ФФД: 1.0 [09:15:07]line ЗНМ: 0300000020 [09:15:07]line РНМ: 0000000000161154 [09:15:07]line Версия ККМ: v1.0 [09:15:07]line ФМ: 0000000000963323 [09:15:07]line ФД: 75299 [09:15:07]line ФПД: 15341571688531 [09:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091511&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75299&fm=15341571688531&tin=02508201610067®Number=0000000000161154&sum=21000 [09:15:07]line 0 [09:15:07]OFD Sender: Processing packet 75299 [packets to send 15, broken 14] [09:15:07]ProducePacketName [09:15:07]name=ofd_packets/00075299 [09:15:07]OFD Sender: To server: pG, [09:15:07]CommunicateWithHost lk.salyk.kg:30040 [09:15:07]ConnectInit lk.salyk.kg [09:15:07]written 0, free lines is 4095 [09:15:07]Connected sock=10 [09:15:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9B 01 00 00 6C 87 93 01 B0 E2 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9F BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 26 01 00 35 04 06 00 0D F3 FC EE 48 53 07 86 73 70 B1 D8 76 7A [09:15:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 17 83 47 00 29 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 26 01 00 F4 03 04 00 7B 67 18 67 B6 04 01 00 00 5F DB 20 44 8A A6 8D 70 [09:15:07]CommunicateWithHost err = 0 [09:15:07]CheckOFDResponse [09:15:07]1017 (14) - 77093643461234 [09:15:07]1041 (16) - 0000000000963323 [09:15:07]1040 (4) - 75299 [09:15:07]1012 (4) - 23.10.2024 03:03 [09:15:07]1206 (1) - 0 [09:15:07]OFD Sender: Remove packet 75299 [09:15:07]ProducePacketName [09:15:07]name=ofd_packets/00075299 [09:15:07]NVStorageDeleteData [09:15:07]Write to MH i2c: 01 00 00 C8 88 50 [09:15:07]Write i2c OK [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: 01 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: 01 07 00 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: 01 07 00 C8 88 00 00 00 00 00 72 0C D5 [09:15:07]RasterBufferAndPrint [09:15:07]line [09:15:07]line [09:15:07]line [09:15:07]line [09:15:07]line [09:15:07]written 0, free lines is 3192 [09:15:07]MH_Cut [09:15:07]Write to MH i2c: D1 01 00 CF 88 01 29 [09:15:07]Write i2c OK [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: D1 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: D1 01 00 [09:15:07]MH_I2C_Read... [09:15:07]Read from MH i2c: D1 01 00 CF 88 00 28 [09:15:07]Write to MH i2c: 01 00 00 D0 88 58 [09:15:07]Write i2c OK [09:15:07]MH_I2C_Read... [09:15:07]OFD Sender: No OFD packet to send [09:15:08]*** Cut start [09:15:08]*** Partial cut [09:15:08]*** CUTSNS_PIN = 1 [09:15:08]*** CUTSNS_PIN = 0 [09:15:08]*** Brake cut motor [09:15:09]Read from MH i2c: 01 [09:15:09]MH_I2C_Read... [09:15:09]*** Stop cut motor [09:15:09]*** Cut end [09:15:09]Read from MH i2c: 01 07 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: 01 07 00 D0 88 00 00 00 00 00 FF 0F 6D [09:15:09]process_action close_receipt done [09:15:09]requested_data is exist [09:15:09]produce_requested_data [09:15:09]requested_item fm.sn is exist - process it [09:15:09]wFMCommunicate request_size=4 [09:15:09]MH_SAM_APDU [09:15:09]CAPDU: 80 11 00 00 [09:15:09]Write to MH i2c: E2 08 00 D1 88 80 11 00 00 00 00 00 00 D3 [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:09]Read from MH i2c: E2 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 17 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 17 00 D1 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 20 [09:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:15:09]wFMCommunicate OK [09:15:09]requested_item fd.num is exist - process it [09:15:09]SAM_PROTO_GetFieldsCounters [09:15:09]wFMCommunicate request_size=4 [09:15:09]MH_SAM_APDU [09:15:09]CAPDU: 80 13 00 00 [09:15:09]Write to MH i2c: E2 08 00 D2 88 80 13 00 00 00 00 00 00 D6 [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:09]Read from MH i2c: E2 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 62 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 62 00 D2 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 23 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [09:15:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 23 26 01 00 0E 04 04 00 AD 00 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:15:09]wFMCommunicate OK [09:15:09]SAM_PROTO_GetFieldsCounters done [09:15:09]requested_item shift.num is exist - process it [09:15:09]requested_item shift.opened is exist - process it [09:15:09]req_shift_opened [09:15:09]FM_GetShiftState [09:15:09]SAM_PROTO_GetShiftState [09:15:09]wFMCommunicate request_size=4 [09:15:09]MH_SAM_APDU [09:15:09]CAPDU: 80 13 01 00 [09:15:09]Write to MH i2c: E2 08 00 D3 88 80 13 01 00 00 00 00 00 D8 [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:09]Read from MH i2c: E2 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 0E 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 0E 00 D3 88 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3D [09:15:09]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:15:09]wFMCommunicate OK [09:15:09]SAM_PROTO_GetShiftState done [09:15:09]FM_GetShiftState done [09:15:09]req_shift_opened done [09:15:09]requested_item shift.open_date is exist - process it [09:15:09]req_shift_open_date [09:15:09]req_shift_open_date done [09:15:09]produce_requested_data done [09:15:09]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75299,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:15:09]process_action_free close_receipt [09:15:09]json_value_free [09:15:09]json_value_free done [09:15:09]process_json_proto returns [09:15:09]Send response to host [09:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75299,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:15:09]free response buf [09:15:09]execute_script done [09:15:09]execute_script returns [09:15:09]free content buf [09:15:09]Sock 7.Close socket [09:15:09]Sock 7.Thread stoped [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:56]accept exits with 9 [09:15:56]New connection [09:15:56]New thread 3067321700 created [09:15:56]Thread 3067465060 joined [09:15:56]Waiting for new connection... [09:15:56] Sock 9.Parse request [09:15:56]Sock 9.Check first char [09:15:56]Sock 9.First char is OK [09:15:56]request: POST /json_proto HTTP/1.0 [09:15:56]Method: POST [09:15:56]URL: /json_proto [09:15:56]Method is POST - this is cgi request [09:15:56]url: /json_proto [09:15:56]query_string will be loaded in cgi processing [09:15:56]execute_cgi json_proto POST (null) [09:15:56]execute_cgi path=json_proto method=POST [09:15:56]POST find Content-Length [09:15:56]Host: 172.17.44.196:8080 [09:15:56]Content-Length: 678 [09:15:56]Content-Type: application/json [09:15:56] [09:15:56]POST finish read [09:15:56]Found Content-Length = 678 [09:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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" ] } } [09:15:56]execute_script... [09: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)1965253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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" ] } } [09:15:56]POST & json_proto [09:15:56]process_json_proto [09:15:56]json parsed OK: [09:15:56]protocol is kg_v1.0 [09:15:56]action value=close_receipt [09:15:56]process_action close_receipt [09:15:56]cmd_close_receipt [09:15:56]MH_GetDate [09:15:56]Write to MH i2c: F0 00 00 D4 88 4B [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: F0 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: F0 09 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: F0 09 00 D4 88 00 D2 BE 18 67 E7 19 F8 65 C0 [09:15:56]GetLastDocTimeStamp 1729674911 [09:15:56]current date 1729674962 [09:15:56]FM_GetShiftState [09:15:56]SAM_PROTO_GetShiftState [09:15:56]wFMCommunicate request_size=4 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 13 01 00 [09:15:56]Write to MH i2c: E2 08 00 D5 88 80 13 01 00 00 00 00 00 DA [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 0E 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 0E 00 D5 88 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3F [09:15:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:15:56]wFMCommunicate OK [09:15:56]SAM_PROTO_GetShiftState done [09:15:56]FM_GetShiftState done [09:15:56]opened in 1729642905 [09:15:56]opened+sec_in_day 1729729305 [09:15:56]quantity*price = 40006 [09:15:56]sum+1 = 40007 [09:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 33 23.10.2024 09:16 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75300 ФПД: 88929953046375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091602&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75300&fm=88929953046375&tin=02508201610067®Number=0000000000161154&sum=40000 [09:15:57]StoreToDocumentArchive [09:15:57]shift 173 fd 75300 [09:15:57]save to /storage/0173/doc_00075300 [09:15:57]save last doc name /storage/0173/doc_00075300 to /storage/kkm_last_doc_name [09:15:57]save OK [09:15:57]Clear old archive folders... [09:15:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:57]tlvbuf is 00FABEF0 [09:15:57]SAM_PROTO_ClearQueue [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 09 00 00 [09:15:57]Write to MH i2c: E2 08 00 E2 88 80 09 00 00 00 00 00 00 DC [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 E2 88 00 90 00 DE [09:15:57]RAPDU: 90 00 [09:15:57]wFMCommunicate OK [09:15:57]SAM_PROTO_ClearQueue done [09:15:57]KKMCreateOFDPacket [09:15:57]OFDProtocolAddRootSTLVToBuf [09:15:57]FM_MakeSignedData [09:15:57]FM_MakeSignedData [09:15:57]SAM_PROTO_SignData [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 0D 01 02 [09:15:57]Write to MH i2c: E2 08 00 E3 88 80 0D 01 02 00 00 00 00 E4 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 E3 88 00 90 00 DF [09:15:57]RAPDU: 90 00 [09:15:57]wFMCommunicate OK [09:15:57]wFMCommunicate request_size=255 [09:15:57]MH_SAM_APDU [09:15: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 21 00 00 00 F4 03 04 00 D2 BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 26 01 00 35 04 06 00 50 [09:15:57]Write to MH i2c: E2 02 01 E4 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 21 00 00 00 F4 03 04 00 D2 BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 26 01 00 35 04 06 00 50 00 00 AD [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 E4 88 00 90 00 E0 [09:15:57]RAPDU: 90 00 [09:15:57]wFMCommunicate OK [09:15:57]wFMCommunicate request_size=10 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 0D 02 02 05 E1 9E 42 DF 67 [09:15:57]Write to MH i2c: E2 0D 00 E5 88 80 0D 02 02 05 00 E1 9E 42 DF 67 00 00 F8 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 E5 88 00 90 00 E1 [09:15:57]RAPDU: 90 00 [09:15:57]wFMCommunicate OK [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 0D 03 02 [09:15:57]Write to MH i2c: E2 08 00 E6 88 80 0D 03 02 00 00 00 00 E9 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 0B 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 0B 00 E6 88 00 1F 5D 42 6A F8 34 40 41 90 00 BF [09:15:57]RAPDU: 1F 5D 42 6A F8 34 40 41 90 00 [09:15:57]wFMCommunicate OK [09:15:57]SAM_PROTO_SignData done [09:15:57]FM_MakeSignedData done [09:15:57]CreateOFDProtocolMessage [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 11 00 00 [09:15:57]Write to MH i2c: E2 08 00 E7 88 80 11 00 00 00 00 00 00 E9 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 17 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 17 00 E7 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 36 [09:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:15:57]wFMCommunicate OK [09:15:57]CreateOFDProtocolMessage done [09:15:57]OFDSenderStorePacket 75300 [09:15:57]StoreOFDPacket docnum=75300 [09:15:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 49 82 07 01 A8 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 21 00 00 00 F4 03 04 00 D2 BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 26 01 00 35 04 06 00 50 E1 9E 42 DF 67 1F 5D 42 6A F8 34 40 41 [09:15:57]CheckFolder [09:15:57]dirname=/storage/ofd_packets [09:15:57]CheckFolder done [09:15:57]ProducePacketName [09:15:57]name=ofd_packets/00075300 [09:15:57]NVStorageSaveData ofd_packets/00075300 [09:15:57]File name is /storage/ofd_packets/00075300 [09:15:57]Write 301 bytes [09:15:57]NVStorageSaveData done [09:15:57]OFDSenderStorePacket done [09:15:57]KKMCreateOFDPacket done [09:15:57]NVStorageSaveData kkm_last_timestamp [09:15:57]File name is /storage/kkm_last_timestamp [09:15:57]Write 4 bytes [09:15:57]NVStorageSaveData done [09:15:57]ExternCall_PrintAddStr [09:15:57]wPrintStart [09:15:57]Write to MH i2c: 01 00 00 E8 88 70 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 07 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 07 00 E8 88 00 00 00 00 00 FF 0F 85 [09:15:57]RasterBufferAndPrint [09:15:57]line Счет N : (1)1965253 [09:15:57]line ИНН: 02508201610067 [09:15:57]line Контрольно-Кассовый Чек [09:15:57]line ПРОДАЖА [09:15:57]line ТРК (МРК, ГНК) : 33 [09:15:57]line Товар: 2710124130 [09:15:57]line Аи-92-К-5 [09:15:57]line 5.980 * 66.90 [09:15:57]line = 400.06 [09:15:57]line НДС 12% НСП 1% [09:15:57]line > о реализуемом товаре [09:15:57]line ОКРУГЛЕНИЕ: -0.06 [09:15:57]line ИТОГО: 400.00 [09:15:57]line Внесено: 400.00 [09:15:57]line СДАЧА: 0.00 [09:15:57]line НСП 1% : 3.54 [09:15:57]line НДС 12% : 42.48 [09:15:57]line Наличными: 400.00 [09:15:57]line Безнал.: 0.00 [09:15:57]line Место: АЗС № 133 "Партнер Нефть" [09:15:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:15:57]line СНО: Общий режим [09:15:57]line Чек 33 23.10.2024 09:16 [09:15:57]line Смена: 173 ФФД: 1.0 [09:15:57]line ЗНМ: 0300000020 [09:15:57]line РНМ: 0000000000161154 [09:15:57]line Версия ККМ: v1.0 [09:15:57]line ФМ: 0000000000963323 [09:15:57]line ФД: 75300 [09:15:57]line ФПД: 88929953046375 [09:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091602&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75300&fm=88929953046375&tin=02508201610067®Number=0000000000161154&sum=40000 [09:15:58]OFD Sender: Processing packet 75300 [packets to send 15, broken 14] [09:15:58]ProducePacketName [09:15:58]name=ofd_packets/00075300 [09:15:58]OFD Sender: To server: pG, [09:15:58]CommunicateWithHost lk.salyk.kg:30040 [09:15:58]ConnectInit lk.salyk.kg [09:15:58]written 0, free lines is 4095 [09:15:58]Connected sock=10 [09:15:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 49 82 07 01 A8 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 21 00 00 00 F4 03 04 00 D2 BE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 26 01 00 35 04 06 00 50 E1 9E 42 DF 67 1F 5D 42 6A F8 34 40 41 [09:15:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8C D2 47 00 EC F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 26 01 00 F4 03 04 00 AE 67 18 67 B6 04 01 00 00 E3 0B C9 68 E7 08 1D 92 [09:15:58]CommunicateWithHost err = 0 [09:15:58]CheckOFDResponse [09:15:58]1017 (14) - 77093643461234 [09:15:58]1041 (16) - 0000000000963323 [09:15:58]1040 (4) - 75300 [09:15:58]1012 (4) - 23.10.2024 03:04 [09:15:58]1206 (1) - 0 [09:15:58]OFD Sender: Remove packet 75300 [09:15:58]ProducePacketName [09:15:58]name=ofd_packets/00075300 [09:15:58]NVStorageDeleteData [09:15:58]Write to MH i2c: 01 00 00 12 89 9B [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 12 89 00 00 00 00 00 AF 0C 5D [09:15:58]RasterBufferAndPrint [09:15:58]line [09:15:58]line [09:15:58]line [09:15:58]line [09:15:58]line [09:15:58]written 0, free lines is 3251 [09:15:58]MH_Cut [09:15:58]Write to MH i2c: D1 01 00 19 89 01 74 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: D1 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: D1 01 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: D1 01 00 19 89 00 73 [09:15:58]Write to MH i2c: 01 00 00 1A 89 A3 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]OFD Sender: No OFD packet to send [09:15:59]*** Cut start [09:15:59]*** Partial cut [09:15:59]*** CUTSNS_PIN = 1 [09:15:59]*** CUTSNS_PIN = 0 [09:15:59]*** Brake cut motor [09:16:00]Read from MH i2c: 01 [09:16:00]MH_I2C_Read... [09:16:00]*** Stop cut motor [09:16:00]*** Cut end [09:16:00]Read from MH i2c: 01 07 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: 01 07 00 1A 89 00 00 00 00 00 FF 0F B8 [09:16:00]process_action close_receipt done [09:16:00]requested_data is exist [09:16:00]produce_requested_data [09:16:00]requested_item fm.sn is exist - process it [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 11 00 00 [09:16:00]Write to MH i2c: E2 08 00 1B 89 80 11 00 00 00 00 00 00 1E [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 17 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 17 00 1B 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6B [09:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:16:00]wFMCommunicate OK [09:16:00]requested_item fd.num is exist - process it [09:16:00]SAM_PROTO_GetFieldsCounters [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 13 00 00 [09:16:00]Write to MH i2c: E2 08 00 1C 89 80 13 00 00 00 00 00 00 21 [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 62 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 62 00 1C 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 24 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [09:16:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 24 26 01 00 0E 04 04 00 AD 00 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:16:00]wFMCommunicate OK [09:16:00]SAM_PROTO_GetFieldsCounters done [09:16:00]requested_item shift.num is exist - process it [09:16:00]requested_item shift.opened is exist - process it [09:16:00]req_shift_opened [09:16:00]FM_GetShiftState [09:16:00]SAM_PROTO_GetShiftState [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 13 01 00 [09:16:00]Write to MH i2c: E2 08 00 1D 89 80 13 01 00 00 00 00 00 23 [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 0E 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 0E 00 1D 89 00 09 00 01 99 41 18 67 00 00 00 00 90 00 88 [09:16:00]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:16:00]wFMCommunicate OK [09:16:00]SAM_PROTO_GetShiftState done [09:16:00]FM_GetShiftState done [09:16:00]req_shift_opened done [09:16:00]requested_item shift.open_date is exist - process it [09:16:00]req_shift_open_date [09:16:00]req_shift_open_date done [09:16:00]produce_requested_data done [09:16:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75300,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:16:00]process_action_free close_receipt [09:16:00]json_value_free [09:16:00]json_value_free done [09:16:00]process_json_proto returns [09:16:00]Send response to host [09:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75300,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:16:00]free response buf [09:16:00]execute_script done [09:16:00]execute_script returns [09:16:00]free content buf [09:16:00]Sock 9.Close socket [09:16:00]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:12]accept exits with 7 [09:26:12]New connection [09:26:12]New thread 3067465060 created [09:26:12]Thread 3067321700 joined [09:26:12]Waiting for new connection... [09:26:12] Sock 7.Parse request [09:26:12]Sock 7.Check first char [09:26:12]Sock 7.First char is OK [09:26:12]request: POST /json_proto HTTP/1.0 [09:26:12]Method: POST [09:26:12]URL: /json_proto [09:26:12]Method is POST - this is cgi request [09:26:12]url: /json_proto [09:26:12]query_string will be loaded in cgi processing [09:26:12]execute_cgi json_proto POST (null) [09:26:12]execute_cgi path=json_proto method=POST [09:26:12]POST find Content-Length [09:26:12]Host: 172.17.44.196:8080 [09:26:12]Content-Length: 683 [09:26:12]Content-Type: application/json [09:26:12] [09:26:12]POST finish read [09:26:12]Found Content-Length = 683 [09:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:12]execute_script... [09:26: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)1965261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:12]POST & json_proto [09:26:12]process_json_proto [09:26:12]json parsed OK: [09:26:12]protocol is kg_v1.0 [09:26:12]action value=close_receipt [09:26:12]process_action close_receipt [09:26:12]cmd_close_receipt [09:26:12]MH_GetDate [09:26:12]Write to MH i2c: F0 00 00 1E 89 96 [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 09 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 09 00 1E 89 00 3B C1 18 67 E7 19 F8 65 77 [09:26:12]GetLastDocTimeStamp 1729674962 [09:26:12]current date 1729675579 [09:26:12]FM_GetShiftState [09:26:12]SAM_PROTO_GetShiftState [09:26:12]wFMCommunicate request_size=4 [09:26:12]MH_SAM_APDU [09:26:12]CAPDU: 80 13 01 00 [09:26:12]Write to MH i2c: E2 08 00 1F 89 80 13 01 00 00 00 00 00 25 [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:12]Read from MH i2c: E2 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 0E 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 0E 00 1F 89 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8A [09:26:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:26:12]wFMCommunicate OK [09:26:12]SAM_PROTO_GetShiftState done [09:26:12]FM_GetShiftState done [09:26:12]opened in 1729642905 [09:26:12]opened+sec_in_day 1729729305 [09:26:12]quantity*price = 100021 [09:26:12]sum+1 = 100023 [09:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 34 23.10.2024 09:26 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75301 ФПД: 232426624041769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092619&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75301&fm=232426624041769&tin=02508201610067®Number=0000000000161154&sum=100000 [09:26:13]StoreToDocumentArchive [09:26:13]shift 173 fd 75301 [09:26:13]save to /storage/0173/doc_00075301 [09:26:13]save last doc name /storage/0173/doc_00075301 to /storage/kkm_last_doc_name [09:26:13]save OK [09:26:13]Clear old archive folders... [09:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:13]tlvbuf is 00E9BAB0 [09:26:13]SAM_PROTO_ClearQueue [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 09 00 00 [09:26:13]Write to MH i2c: E2 08 00 2C 89 80 09 00 00 00 00 00 00 27 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 2C 89 00 90 00 29 [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]SAM_PROTO_ClearQueue done [09:26:14]KKMCreateOFDPacket [09:26:14]OFDProtocolAddRootSTLVToBuf [09:26:14]FM_MakeSignedData [09:26:14]FM_MakeSignedData [09:26:14]SAM_PROTO_SignData [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 0D 01 02 [09:26:14]Write to MH i2c: E2 08 00 2D 89 80 0D 01 02 00 00 00 00 2F [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 2D 89 00 90 00 2A [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]wFMCommunicate request_size=255 [09:26:14]MH_SAM_APDU [09:26: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3B C1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 26 01 00 35 04 06 00 D3 [09:26:14]Write to MH i2c: E2 02 01 2E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3B C1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 26 01 00 35 04 06 00 D3 00 00 37 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 2E 89 00 90 00 2B [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]wFMCommunicate request_size=10 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 0D 02 02 05 64 0A 5C C3 29 [09:26:14]Write to MH i2c: E2 0D 00 2F 89 80 0D 02 02 05 00 64 0A 5C C3 29 00 00 F2 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 2F 89 00 90 00 2C [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 0D 03 02 [09:26:14]Write to MH i2c: E2 08 00 30 89 80 0D 03 02 00 00 00 00 34 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 0B 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 0B 00 30 89 00 E2 AB CB 12 DB 9F 84 8C 90 00 29 [09:26:14]RAPDU: E2 AB CB 12 DB 9F 84 8C 90 00 [09:26:14]wFMCommunicate OK [09:26:14]SAM_PROTO_SignData done [09:26:14]FM_MakeSignedData done [09:26:14]CreateOFDProtocolMessage [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 11 00 00 [09:26:14]Write to MH i2c: E2 08 00 31 89 80 11 00 00 00 00 00 00 34 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 31 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 81 [09:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:26:14]wFMCommunicate OK [09:26:14]CreateOFDProtocolMessage done [09:26:14]OFDSenderStorePacket 75301 [09:26:14]StoreOFDPacket docnum=75301 [09:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 BB 0B 07 01 DA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3B C1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 26 01 00 35 04 06 00 D3 64 0A 5C C3 29 E2 AB CB 12 DB 9F 84 8C [09:26:14]CheckFolder [09:26:14]dirname=/storage/ofd_packets [09:26:14]CheckFolder done [09:26:14]ProducePacketName [09:26:14]name=ofd_packets/00075301 [09:26:14]NVStorageSaveData ofd_packets/00075301 [09:26:14]File name is /storage/ofd_packets/00075301 [09:26:14]Write 301 bytes [09:26:14]NVStorageSaveData done [09:26:14]OFDSenderStorePacket done [09:26:14]KKMCreateOFDPacket done [09:26:14]NVStorageSaveData kkm_last_timestamp [09:26:14]File name is /storage/kkm_last_timestamp [09:26:14]Write 4 bytes [09:26:14]NVStorageSaveData done [09:26:14]ExternCall_PrintAddStr [09:26:14]wPrintStart [09:26:14]Write to MH i2c: 01 00 00 32 89 BB [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 07 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 07 00 32 89 00 00 00 00 00 FF 0F D0 [09:26:14]RasterBufferAndPrint [09:26:14]line Счет N : (1)1965261 [09:26:14]line ИНН: 02508201610067 [09:26:14]line Контрольно-Кассовый Чек [09:26:14]line ПРОДАЖА [09:26:14]line ТРК (МРК, ГНК) : 34 [09:26:14]line Товар: 2710124500 [09:26:14]line Аи-95-К-5 [09:26:14]line 13.480 * 74.20 [09:26:14]line = 1000.22 [09:26:14]line НДС 12% НСП 1% [09:26:14]line > о реализуемом товаре [09:26:14]line ОКРУГЛЕНИЕ: -0.22 [09:26:14]line ИТОГО: 1000.00 [09:26:14]line Внесено: 1000.00 [09:26:14]line СДАЧА: 0.00 [09:26:14]line НСП 1% : 8.85 [09:26:14]line НДС 12% : 106.22 [09:26:14]line Наличными: 1000.00 [09:26:14]line Безнал.: 0.00 [09:26:14]line Место: АЗС № 133 "Партнер Нефть" [09:26:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:26:14]line СНО: Общий режим [09:26:14]line Чек 34 23.10.2024 09:26 [09:26:14]line Смена: 173 ФФД: 1.0 [09:26:14]line ЗНМ: 0300000020 [09:26:14]line РНМ: 0000000000161154 [09:26:14]line Версия ККМ: v1.0 [09:26:14]line ФМ: 0000000000963323 [09:26:14]line ФД: 75301 [09:26:14]line ФПД: 232426624041769 [09:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092619&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75301&fm=232426624041769&tin=02508201610067®Number=0000000000161154&sum=100000 [09:26:14]OFD Sender: Processing packet 75301 [packets to send 15, broken 14] [09:26:14]ProducePacketName [09:26:14]name=ofd_packets/00075301 [09:26:14]OFD Sender: To server: pG, [09:26:14]CommunicateWithHost lk.salyk.kg:30040 [09:26:14]ConnectInit lk.salyk.kg [09:26:14]written 0, free lines is 4095 [09:26:14]Connected sock=10 [09:26:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 BB 0B 07 01 DA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3B C1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 26 01 00 35 04 06 00 D3 64 0A 5C C3 29 E2 AB CB 12 DB 9F 84 8C [09:26:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F3 E0 47 00 1E 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 39 36 33 33 32 33 10 04 04 00 25 26 01 00 F4 03 04 00 17 6A 18 67 B6 04 01 00 00 B5 9C D5 E0 FD 6E 2A 23 [09:26:15]CommunicateWithHost err = 0 [09:26:15]CheckOFDResponse [09:26:15]1017 (14) - 77093643461234 [09:26:15]1041 (16) - 0000000000963323 [09:26:15]1040 (4) - 75301 [09:26:15]1012 (4) - 23.10.2024 03:14 [09:26:15]1206 (1) - 0 [09:26:15]OFD Sender: Remove packet 75301 [09:26:15]ProducePacketName [09:26:15]name=ofd_packets/00075301 [09:26:15]NVStorageDeleteData [09:26:15]Write to MH i2c: 01 00 00 5C 89 E5 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 07 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 07 00 5C 89 00 00 00 00 00 A5 0C 9D [09:26:15]RasterBufferAndPrint [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]written 0, free lines is 3241 [09:26:15]MH_Cut [09:26:15]Write to MH i2c: D1 01 00 63 89 01 BE [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: D1 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: D1 01 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: D1 01 00 63 89 00 BD [09:26:15]Write to MH i2c: 01 00 00 64 89 ED [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]OFD Sender: No OFD packet to send [09:26:16]*** Cut start [09:26:16]*** Partial cut [09:26:16]*** CUTSNS_PIN = 1 [09:26:16]*** CUTSNS_PIN = 0 [09:26:16]*** Brake cut motor [09:26:16]Read from MH i2c: 01 [09:26:16]MH_I2C_Read... [09:26:16]*** Stop cut motor [09:26:16]*** Cut end [09:26:16]Read from MH i2c: 01 07 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: 01 07 00 64 89 00 00 00 00 00 FF 0F 02 [09:26:16]process_action close_receipt done [09:26:16]requested_data is exist [09:26:16]produce_requested_data [09:26:16]requested_item fm.sn is exist - process it [09:26:16]wFMCommunicate request_size=4 [09:26:16]MH_SAM_APDU [09:26:16]CAPDU: 80 11 00 00 [09:26:16]Write to MH i2c: E2 08 00 65 89 80 11 00 00 00 00 00 00 68 [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 [09:26:16]MH_I2C_Read... [09:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:16]Read from MH i2c: E2 17 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 17 00 65 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B5 [09:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:26:16]wFMCommunicate OK [09:26:16]requested_item fd.num is exist - process it [09:26:16]SAM_PROTO_GetFieldsCounters [09:26:16]wFMCommunicate request_size=4 [09:26:16]MH_SAM_APDU [09:26:16]CAPDU: 80 13 00 00 [09:26:16]Write to MH i2c: E2 08 00 66 89 80 13 00 00 00 00 00 00 6B [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 62 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 62 00 66 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 25 26 01 00 0E 04 04 00 AD 00 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 DE [09:26:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 25 26 01 00 0E 04 04 00 AD 00 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:26:17]wFMCommunicate OK [09:26:17]SAM_PROTO_GetFieldsCounters done [09:26:17]requested_item shift.num is exist - process it [09:26:17]requested_item shift.opened is exist - process it [09:26:17]req_shift_opened [09:26:17]FM_GetShiftState [09:26:17]SAM_PROTO_GetShiftState [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 13 01 00 [09:26:17]Write to MH i2c: E2 08 00 67 89 80 13 01 00 00 00 00 00 6D [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 0E 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 0E 00 67 89 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D2 [09:26:17]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:26:17]wFMCommunicate OK [09:26:17]SAM_PROTO_GetShiftState done [09:26:17]FM_GetShiftState done [09:26:17]req_shift_opened done [09:26:17]requested_item shift.open_date is exist - process it [09:26:17]req_shift_open_date [09:26:17]req_shift_open_date done [09:26:17]produce_requested_data done [09:26:17]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75301,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:26:17]process_action_free close_receipt [09:26:17]json_value_free [09:26:17]json_value_free done [09:26:17]process_json_proto returns [09:26:17]Send response to host [09:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75301,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:26:17]free response buf [09:26:17]execute_script done [09:26:17]execute_script returns [09:26:17]free content buf [09:26:17]Sock 7.Close socket [09:26:17]Sock 7.Thread stoped [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:42]accept exits with 9 [09:31:42]New connection [09:31:42]New thread 3067321700 created [09:31:42]Thread 3067465060 joined [09:31:42]Waiting for new connection... [09:31:42] Sock 9.Parse request [09:31:42]Sock 9.Check first char [09:31:42]Sock 9.First char is OK [09:31:42]request: POST /json_proto HTTP/1.0 [09:31:42]Method: POST [09:31:42]URL: /json_proto [09:31:42]Method is POST - this is cgi request [09:31:42]url: /json_proto [09:31:42]query_string will be loaded in cgi processing [09:31:42]execute_cgi json_proto POST (null) [09:31:42]execute_cgi path=json_proto method=POST [09:31:42]POST find Content-Length [09:31:42]Host: 172.17.44.196:8080 [09:31:42]Content-Length: 678 [09:31:42]Content-Type: application/json [09:31:42] [09:31:42]POST finish read [09:31:42]Found Content-Length = 678 [09:31:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:42]execute_script... [09:31: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)1965263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:42]POST & json_proto [09:31:42]process_json_proto [09:31:42]json parsed OK: [09:31:42]protocol is kg_v1.0 [09:31:42]action value=close_receipt [09:31:42]process_action close_receipt [09:31:42]cmd_close_receipt [09:31:42]MH_GetDate [09:31:42]Write to MH i2c: F0 00 00 68 89 E0 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: F0 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: F0 09 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: F0 09 00 68 89 00 85 C2 18 67 E7 19 F8 65 0C [09:31:42]GetLastDocTimeStamp 1729675579 [09:31:42]current date 1729675909 [09:31:42]FM_GetShiftState [09:31:42]SAM_PROTO_GetShiftState [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 13 01 00 [09:31:42]Write to MH i2c: E2 08 00 69 89 80 13 01 00 00 00 00 00 6F [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 0E 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 0E 00 69 89 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D4 [09:31:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:31:42]wFMCommunicate OK [09:31:42]SAM_PROTO_GetShiftState done [09:31:42]FM_GetShiftState done [09:31:42]opened in 1729642905 [09:31:42]opened+sec_in_day 1729729305 [09:31:42]quantity*price = 50010 [09:31:42]sum+1 = 50012 [09:31:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 35 23.10.2024 09:31 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75302 ФПД: 265191308443568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093149&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75302&fm=265191308443568&tin=02508201610067®Number=0000000000161154&sum=50000 [09:31:44]StoreToDocumentArchive [09:31:44]shift 173 fd 75302 [09:31:44]save to /storage/0173/doc_00075302 [09:31:44]save last doc name /storage/0173/doc_00075302 to /storage/kkm_last_doc_name [09:31:44]save OK [09:31:44]Clear old archive folders... [09:31:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:44]tlvbuf is 00D96420 [09:31:44]SAM_PROTO_ClearQueue [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 09 00 00 [09:31:44]Write to MH i2c: E2 08 00 76 89 80 09 00 00 00 00 00 00 71 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 76 89 00 90 00 73 [09:31:44]RAPDU: 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_ClearQueue done [09:31:44]KKMCreateOFDPacket [09:31:44]OFDProtocolAddRootSTLVToBuf [09:31:44]FM_MakeSignedData [09:31:44]FM_MakeSignedData [09:31:44]SAM_PROTO_SignData [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 0D 01 02 [09:31:44]Write to MH i2c: E2 08 00 77 89 80 0D 01 02 00 00 00 00 79 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 77 89 00 90 00 74 [09:31:44]RAPDU: 90 00 [09:31:44]wFMCommunicate OK [09:31:44]wFMCommunicate request_size=255 [09:31:44]MH_SAM_APDU [09:31: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 85 C2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 26 01 00 35 04 06 00 F1 [09:31:44]Write to MH i2c: E2 02 01 78 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 85 C2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 26 01 00 35 04 06 00 F1 00 00 A7 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 78 89 00 90 00 75 [09:31:44]RAPDU: 90 00 [09:31:44]wFMCommunicate OK [09:31:44]wFMCommunicate request_size=10 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 0D 02 02 05 30 A9 BC BF B0 [09:31:44]Write to MH i2c: E2 0D 00 79 89 80 0D 02 02 05 00 30 A9 BC BF B0 00 00 8A [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 79 89 00 90 00 76 [09:31:44]RAPDU: 90 00 [09:31:44]wFMCommunicate OK [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 0D 03 02 [09:31:44]Write to MH i2c: E2 08 00 7A 89 80 0D 03 02 00 00 00 00 7E [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0B 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0B 00 7A 89 00 F6 4B 31 AD 46 F2 5E 61 90 00 95 [09:31:44]RAPDU: F6 4B 31 AD 46 F2 5E 61 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_SignData done [09:31:44]FM_MakeSignedData done [09:31:44]CreateOFDProtocolMessage [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 11 00 00 [09:31:44]Write to MH i2c: E2 08 00 7B 89 80 11 00 00 00 00 00 00 7E [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 7B 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CB [09:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:31:44]wFMCommunicate OK [09:31:44]CreateOFDProtocolMessage done [09:31:44]OFDSenderStorePacket 75302 [09:31:44]StoreOFDPacket docnum=75302 [09:31:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 DE 75 07 01 AC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 85 C2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 26 01 00 35 04 06 00 F1 30 A9 BC BF B0 F6 4B 31 AD 46 F2 5E 61 [09:31:44]CheckFolder [09:31:44]dirname=/storage/ofd_packets [09:31:44]CheckFolder done [09:31:44]ProducePacketName [09:31:44]name=ofd_packets/00075302 [09:31:44]NVStorageSaveData ofd_packets/00075302 [09:31:44]File name is /storage/ofd_packets/00075302 [09:31:44]Write 301 bytes [09:31:44]NVStorageSaveData done [09:31:44]OFDSenderStorePacket done [09:31:44]KKMCreateOFDPacket done [09:31:44]NVStorageSaveData kkm_last_timestamp [09:31:44]File name is /storage/kkm_last_timestamp [09:31:44]Write 4 bytes [09:31:44]NVStorageSaveData done [09:31:44]ExternCall_PrintAddStr [09:31:44]wPrintStart [09:31:44]Write to MH i2c: 01 00 00 7C 89 05 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 07 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 07 00 7C 89 00 00 00 00 00 FF 0F 1A [09:31:44]RasterBufferAndPrint [09:31:44]line Счет N : (1)1965263 [09:31:44]line ИНН: 02508201610067 [09:31:44]line Контрольно-Кассовый Чек [09:31:44]line ПРОДАЖА [09:31:44]line ТРК (МРК, ГНК) : 64 [09:31:44]line Товар: 2710124500 [09:31:44]line Аи-95-К-5 [09:31:44]line 6.740 * 74.20 [09:31:44]line = 500.11 [09:31:44]line НДС 12% НСП 1% [09:31:44]line > о реализуемом товаре [09:31:44]line ОКРУГЛЕНИЕ: -0.11 [09:31:44]line ИТОГО: 500.00 [09:31:44]line Внесено: 500.00 [09:31:44]line СДАЧА: 0.00 [09:31:44]line НСП 1% : 4.43 [09:31:44]line НДС 12% : 53.11 [09:31:44]line Наличными: 500.00 [09:31:44]line Безнал.: 0.00 [09:31:44]line Место: АЗС № 133 "Партнер Нефть" [09:31:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:31:44]line СНО: Общий режим [09:31:44]line Чек 35 23.10.2024 09:31 [09:31:44]line Смена: 173 ФФД: 1.0 [09:31:44]line ЗНМ: 0300000020 [09:31:44]line РНМ: 0000000000161154 [09:31:44]line Версия ККМ: v1.0 [09:31:44]line ФМ: 0000000000963323 [09:31:44]line ФД: 75302 [09:31:44]line ФПД: 265191308443568 [09:31:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093149&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75302&fm=265191308443568&tin=02508201610067®Number=0000000000161154&sum=50000 [09:31:44]OFD Sender: Processing packet 75302 [packets to send 15, broken 14] [09:31:44]ProducePacketName [09:31:44]name=ofd_packets/00075302 [09:31:44]OFD Sender: To server: pG, [09:31:44]CommunicateWithHost lk.salyk.kg:30040 [09:31:44]ConnectInit lk.salyk.kg [09:31:44]written 0, free lines is 4095 [09:31:45]Connected sock=10 [09:31:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 DE 75 07 01 AC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 85 C2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 26 01 00 35 04 06 00 F1 30 A9 BC BF B0 F6 4B 31 AD 46 F2 5E 61 [09:31:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A6 68 47 00 65 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 26 26 01 00 F4 03 04 00 61 6B 18 67 B6 04 01 00 00 4A EB 65 DE FB 4D 71 65 [09:31:45]CommunicateWithHost err = 0 [09:31:45]CheckOFDResponse [09:31:45]1017 (14) - 77093643461234 [09:31:45]1041 (16) - 0000000000963323 [09:31:45]1040 (4) - 75302 [09:31:45]1012 (4) - 23.10.2024 03:20 [09:31:45]1206 (1) - 0 [09:31:45]OFD Sender: Remove packet 75302 [09:31:45]ProducePacketName [09:31:45]name=ofd_packets/00075302 [09:31:45]NVStorageDeleteData [09:31:45]Write to MH i2c: 01 00 00 A6 89 2F [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: 01 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: 01 07 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: 01 07 00 A6 89 00 00 00 00 00 AA 0C EC [09:31:45]RasterBufferAndPrint [09:31:45]line [09:31:45]line [09:31:45]line [09:31:45]line [09:31:45]line [09:31:45]written 0, free lines is 3246 [09:31:45]MH_Cut [09:31:45]Write to MH i2c: D1 01 00 AD 89 01 08 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: D1 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: D1 01 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: D1 01 00 AD 89 00 07 [09:31:45]Write to MH i2c: 01 00 00 AE 89 37 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]OFD Sender: No OFD packet to send [09:31:46]*** Cut start [09:31:46]*** Partial cut [09:31:46]*** CUTSNS_PIN = 1 [09:31:46]*** CUTSNS_PIN = 0 [09:31:46]*** Brake cut motor [09:31:46]Read from MH i2c: 01 [09:31:46]MH_I2C_Read... [09:31:46]*** Stop cut motor [09:31:46]*** Cut end [09:31:46]Read from MH i2c: 01 07 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: 01 07 00 AE 89 00 00 00 00 00 FF 0F 4C [09:31:46]process_action close_receipt done [09:31:46]requested_data is exist [09:31:46]produce_requested_data [09:31:46]requested_item fm.sn is exist - process it [09:31:46]wFMCommunicate request_size=4 [09:31:46]MH_SAM_APDU [09:31:46]CAPDU: 80 11 00 00 [09:31:46]Write to MH i2c: E2 08 00 AF 89 80 11 00 00 00 00 00 00 B2 [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:46]Read from MH i2c: E2 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 17 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 17 00 AF 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FF [09:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:31:46]wFMCommunicate OK [09:31:46]requested_item fd.num is exist - process it [09:31:46]SAM_PROTO_GetFieldsCounters [09:31:46]wFMCommunicate request_size=4 [09:31:46]MH_SAM_APDU [09:31:46]CAPDU: 80 13 00 00 [09:31:46]Write to MH i2c: E2 08 00 B0 89 80 13 00 00 00 00 00 00 B5 [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 62 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 62 00 B0 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 26 26 01 00 0E 04 04 00 AD 00 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 2C [09:31:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 26 26 01 00 0E 04 04 00 AD 00 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:31:47]wFMCommunicate OK [09:31:47]SAM_PROTO_GetFieldsCounters done [09:31:47]requested_item shift.num is exist - process it [09:31:47]requested_item shift.opened is exist - process it [09:31:47]req_shift_opened [09:31:47]FM_GetShiftState [09:31:47]SAM_PROTO_GetShiftState [09:31:47]wFMCommunicate request_size=4 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 13 01 00 [09:31:47]Write to MH i2c: E2 08 00 B1 89 80 13 01 00 00 00 00 00 B7 [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0E 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0E 00 B1 89 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1C [09:31:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:31:47]wFMCommunicate OK [09:31:47]SAM_PROTO_GetShiftState done [09:31:47]FM_GetShiftState done [09:31:47]req_shift_opened done [09:31:47]requested_item shift.open_date is exist - process it [09:31:47]req_shift_open_date [09:31:47]req_shift_open_date done [09:31:47]produce_requested_data done [09:31:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75302,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:31:47]process_action_free close_receipt [09:31:47]json_value_free [09:31:47]json_value_free done [09:31:47]process_json_proto returns [09:31:47]Send response to host [09:31:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75302,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:31:47]free response buf [09:31:47]execute_script done [09:31:47]execute_script returns [09:31:47]free content buf [09:31:47]Sock 9.Close socket [09:31:47]Sock 9.Thread stoped [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:31]accept exits with 7 [09:33:31]New connection [09:33:31]New thread 3067465060 created [09:33:31]Thread 3067321700 joined [09:33:31]Waiting for new connection... [09:33:31] Sock 7.Parse request [09:33:31]Sock 7.Check first char [09:33:31]Sock 7.First char is OK [09:33:31]request: POST /json_proto HTTP/1.0 [09:33:31]Method: POST [09:33:31]URL: /json_proto [09:33:31]Method is POST - this is cgi request [09:33:31]url: /json_proto [09:33:31]query_string will be loaded in cgi processing [09:33:31]execute_cgi json_proto POST (null) [09:33:31]execute_cgi path=json_proto method=POST [09:33:31]POST find Content-Length [09:33:31]Host: 172.17.44.196:8080 [09:33:31]Content-Length: 894 [09:33:31]Content-Type: application/json [09:33:31] [09:33:31]POST finish read [09:33:31]Found Content-Length = 894 [09:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273206", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:31]execute_script... [09:33:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273206", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:31]POST & json_proto [09:33:31]process_json_proto [09:33:31]json parsed OK: [09:33:31]protocol is kg_v1.0 [09:33:31]action value=close_receipt [09:33:31]process_action close_receipt [09:33:31]cmd_close_receipt [09:33:31]MH_GetDate [09:33:31]Write to MH i2c: F0 00 00 B2 89 2A [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: F0 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: F0 09 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: F0 09 00 B2 89 00 F2 C2 18 67 E7 19 F8 65 C3 [09:33:31]GetLastDocTimeStamp 1729675909 [09:33:31]current date 1729676018 [09:33:31]FM_GetShiftState [09:33:31]SAM_PROTO_GetShiftState [09:33:31]wFMCommunicate request_size=4 [09:33:31]MH_SAM_APDU [09:33:31]CAPDU: 80 13 01 00 [09:33:31]Write to MH i2c: E2 08 00 B3 89 80 13 01 00 00 00 00 00 B9 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 0E 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 0E 00 B3 89 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1E [09:33:31]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:33:31]wFMCommunicate OK [09:33:31]SAM_PROTO_GetShiftState done [09:33:31]FM_GetShiftState done [09:33:31]opened in 1729642905 [09:33:31]opened+sec_in_day 1729729305 [09:33:31]quantity*price = 18000 [09:33:31]sum+1 = 18001 [09:33:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741231 Сигареты Winston Super Slims Silver 2.000 * 135.00 = 270.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.78 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 36 23.10.2024 09:33 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75303 ФПД: 244893590178924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093338&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75303&fm=244893590178924&tin=02508201610067®Number=0000000000161154&sum=45000 0 [09:33:33]StoreToDocumentArchive [09:33:33]shift 173 fd 75303 [09:33:33]save to /storage/0173/doc_00075303 [09:33:33]save last doc name /storage/0173/doc_00075303 to /storage/kkm_last_doc_name [09:33:33]save OK [09:33:33]Clear old archive folders... [09:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=389 [09:33:33]tlvbuf is 00FAC390 [09:33:33]SAM_PROTO_ClearQueue [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 09 00 00 [09:33:33]Write to MH i2c: E2 08 00 C0 89 80 09 00 00 00 00 00 00 BB [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 03 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 03 00 C0 89 00 90 00 BD [09:33:33]RAPDU: 90 00 [09:33:33]wFMCommunicate OK [09:33:33]SAM_PROTO_ClearQueue done [09:33:33]KKMCreateOFDPacket [09:33:33]OFDProtocolAddRootSTLVToBuf [09:33:33]FM_MakeSignedData [09:33:33]FM_MakeSignedData [09:33:33]SAM_PROTO_SignData [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 0D 01 02 [09:33:33]Write to MH i2c: E2 08 00 C1 89 80 0D 01 02 00 00 00 00 C3 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 03 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 03 00 C1 89 00 90 00 BE [09:33:33]RAPDU: 90 00 [09:33:33]wFMCommunicate OK [09:33:33]wFMCommunicate request_size=255 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [09:33:33]Write to MH i2c: E2 02 01 C2 89 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 ED [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 03 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 03 00 C2 89 00 90 00 BF [09:33:33]RAPDU: 90 00 [09:33:33]wFMCommunicate OK [09:33:33]wFMCommunicate request_size=148 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 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 24 00 00 00 F4 03 04 00 F2 C2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 26 01 00 35 04 06 00 DE BA BB 73 4C 6C [09:33:33]Write to MH i2c: E2 97 00 C3 89 80 0D 02 02 8F 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 AA 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 24 00 00 00 F4 03 04 00 F2 C2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 26 01 00 35 04 06 00 DE BA BB 73 4C 6C 00 00 97 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 03 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 03 00 C3 89 00 90 00 C0 [09:33:33]RAPDU: 90 00 [09:33:33]wFMCommunicate OK [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 0D 03 02 [09:33:33]Write to MH i2c: E2 08 00 C4 89 80 0D 03 02 00 00 00 00 C8 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 0B 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 0B 00 C4 89 00 E7 15 81 DB B8 A7 62 32 90 00 14 [09:33:33]RAPDU: E7 15 81 DB B8 A7 62 32 90 00 [09:33:33]wFMCommunicate OK [09:33:33]SAM_PROTO_SignData done [09:33:33]FM_MakeSignedData done [09:33:33]CreateOFDProtocolMessage [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 11 00 00 [09:33:33]Write to MH i2c: E2 08 00 C5 89 80 11 00 00 00 00 00 00 C8 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 17 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 17 00 C5 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 15 [09:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:33:33]wFMCommunicate OK [09:33:33]CreateOFDProtocolMessage done [09:33:33]OFDSenderStorePacket 75303 [09:33:33]StoreOFDPacket docnum=75303 [09:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 99 01 00 00 72 A8 91 01 66 B6 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 AA 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 24 00 00 00 F4 03 04 00 F2 C2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 26 01 00 35 04 06 00 DE BA BB 73 4C 6C E7 15 81 DB B8 A7 62 32 [09:33:33]CheckFolder [09:33:33]dirname=/storage/ofd_packets [09:33:33]CheckFolder done [09:33:33]ProducePacketName [09:33:33]name=ofd_packets/00075303 [09:33:33]NVStorageSaveData ofd_packets/00075303 [09:33:33]File name is /storage/ofd_packets/00075303 [09:33:33]Write 439 bytes [09:33:33]NVStorageSaveData done [09:33:33]OFDSenderStorePacket done [09:33:33]KKMCreateOFDPacket done [09:33:33]NVStorageSaveData kkm_last_timestamp [09:33:33]File name is /storage/kkm_last_timestamp [09:33:33]Write 4 bytes [09:33:33]NVStorageSaveData done [09:33:33]ExternCall_PrintAddStr [09:33:33]wPrintStart [09:33:33]Write to MH i2c: 01 00 00 C6 89 4F [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: 01 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: 01 07 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: 01 07 00 C6 89 00 00 00 00 00 FF 0F 64 [09:33:33]RasterBufferAndPrint [09:33:33]line Счет N : (3)273206 [09:33:33]line ИНН: 02508201610067 [09:33:33]line Контрольно-Кассовый Чек [09:33:34]line ПРОДАЖА [09:33:34]line Товар: 2000032780025 [09:33:34]line Сосиска в тесте DC 110г [09:33:34]line 3.000 * 60.00 [09:33:34]line = 180.00 [09:33:34]line НДС 12% НСП 1% [09:33:34]line > о реализуемом товаре [09:33:34]line Товар: 48741231 [09:33:34]line Сигареты Winston Super Slims Silver [09:33:34]line 2.000 * 135.00 [09:33:34]line = 270.00 [09:33:34]line НДС 12% НСП 1% [09:33:34]line > о реализуемом товаре [09:33:34]line ИТОГО: 450.00 [09:33:34]line НСП 1% : 3.98 [09:33:34]line НДС 12% : 47.78 [09:33:34]line Наличными: 450.00 [09:33:34]line Безнал.: 0.00 [09:33:34]line Место: АЗС № 133 "Партнер Нефть" [09:33:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:33:34]line СНО: Общий режим [09:33:34]line Чек 36 23.10.2024 09:33 [09:33:34]line Смена: 173 ФФД: 1.0 [09:33:34]line ЗНМ: 0300000020 [09:33:34]line РНМ: 0000000000161154 [09:33:34]line Версия ККМ: v1.0 [09:33:34]line ФМ: 0000000000963323 [09:33:34]line ФД: 75303 [09:33:34]line ФПД: 244893590178924 [09:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093338&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75303&fm=244893590178924&tin=02508201610067®Number=0000000000161154&sum=45000 [09:33:34]line 0 [09:33:34]OFD Sender: Processing packet 75303 [packets to send 15, broken 14] [09:33:34]ProducePacketName [09:33:34]name=ofd_packets/00075303 [09:33:34]OFD Sender: To server: pG, [09:33:34]CommunicateWithHost lk.salyk.kg:30040 [09:33:34]ConnectInit lk.salyk.kg [09:33:34]written 0, free lines is 4095 [09:33:34]Connected sock=10 [09:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 99 01 00 00 72 A8 91 01 66 B6 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 AA 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 24 00 00 00 F4 03 04 00 F2 C2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 26 01 00 35 04 06 00 DE BA BB 73 4C 6C E7 15 81 DB B8 A7 62 32 [09:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 62 0C 47 00 63 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 27 26 01 00 F4 03 04 00 CE 6B 18 67 B6 04 01 00 00 98 F9 CC 79 BF B8 11 67 [09:33:34]CommunicateWithHost err = 0 [09:33:34]CheckOFDResponse [09:33:34]1017 (14) - 77093643461234 [09:33:34]1041 (16) - 0000000000963323 [09:33:34]1040 (4) - 75303 [09:33:34]1012 (4) - 23.10.2024 03:21 [09:33:34]1206 (1) - 0 [09:33:34]OFD Sender: Remove packet 75303 [09:33:34]ProducePacketName [09:33:34]name=ofd_packets/00075303 [09:33:34]NVStorageDeleteData [09:33:34]Write to MH i2c: 01 00 00 F4 89 7D [09:33:34]Write i2c OK [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: 01 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: 01 07 00 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: 01 07 00 F4 89 00 00 00 00 00 4C 0C DC [09:33:34]RasterBufferAndPrint [09:33:34]line [09:33:34]line [09:33:34]line [09:33:34]line [09:33:34]line [09:33:34]written 0, free lines is 3152 [09:33:34]MH_Cut [09:33:34]Write to MH i2c: D1 01 00 FB 89 01 56 [09:33:34]Write i2c OK [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: D1 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: D1 01 00 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: D1 01 00 FB 89 00 55 [09:33:34]Write to MH i2c: 01 00 00 FC 89 85 [09:33:34]Write i2c OK [09:33:34]MH_I2C_Read... [09:33:34]OFD Sender: No OFD packet to send [09:33:35]*** Cut start [09:33:35]*** Partial cut [09:33:35]*** CUTSNS_PIN = 1 [09:33:35]*** CUTSNS_PIN = 0 [09:33:35]*** Brake cut motor [09:33:36]Read from MH i2c: 01 [09:33:36]MH_I2C_Read... [09:33:36]*** Stop cut motor [09:33:36]*** Cut end [09:33:36]Read from MH i2c: 01 07 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: 01 07 00 FC 89 00 00 00 00 00 FF 0F 9A [09:33:36]process_action close_receipt done [09:33:36]requested_data is exist [09:33:36]produce_requested_data [09:33:36]requested_item fm.sn is exist - process it [09:33:36]wFMCommunicate request_size=4 [09:33:36]MH_SAM_APDU [09:33:36]CAPDU: 80 11 00 00 [09:33:36]Write to MH i2c: E2 08 00 FD 89 80 11 00 00 00 00 00 00 00 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:36]Read from MH i2c: E2 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 17 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 17 00 FD 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4D [09:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:33:36]wFMCommunicate OK [09:33:36]requested_item fd.num is exist - process it [09:33:36]SAM_PROTO_GetFieldsCounters [09:33:36]wFMCommunicate request_size=4 [09:33:36]MH_SAM_APDU [09:33:36]CAPDU: 80 13 00 00 [09:33:36]Write to MH i2c: E2 08 00 FE 89 80 13 00 00 00 00 00 00 03 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:36]Read from MH i2c: E2 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 62 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 62 00 FE 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 27 26 01 00 0E 04 04 00 AD 00 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 7E [09:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 27 26 01 00 0E 04 04 00 AD 00 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:33:36]wFMCommunicate OK [09:33:36]SAM_PROTO_GetFieldsCounters done [09:33:36]requested_item shift.num is exist - process it [09:33:36]requested_item shift.opened is exist - process it [09:33:36]req_shift_opened [09:33:36]FM_GetShiftState [09:33:36]SAM_PROTO_GetShiftState [09:33:36]wFMCommunicate request_size=4 [09:33:36]MH_SAM_APDU [09:33:36]CAPDU: 80 13 01 00 [09:33:36]Write to MH i2c: E2 08 00 FF 89 80 13 01 00 00 00 00 00 05 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:36]Read from MH i2c: E2 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 0E 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 0E 00 FF 89 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6A [09:33:36]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:33:36]wFMCommunicate OK [09:33:36]SAM_PROTO_GetShiftState done [09:33:36]FM_GetShiftState done [09:33:36]req_shift_opened done [09:33:36]requested_item shift.open_date is exist - process it [09:33:36]req_shift_open_date [09:33:36]req_shift_open_date done [09:33:36]produce_requested_data done [09:33:36]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75303,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:33:36]process_action_free close_receipt [09:33:36]json_value_free [09:33:36]json_value_free done [09:33:36]process_json_proto returns [09:33:36]Send response to host [09:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75303,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:33:36]free response buf [09:33:36]execute_script done [09:33:36]execute_script returns [09:33:36]free content buf [09:33:36]Sock 7.Close socket [09:33:36]Sock 7.Thread stoped [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]accept exits with 9 [09:35:19]New connection [09:35:19]New thread 3067321700 created [09:35:19]Thread 3067465060 joined [09:35:19]Waiting for new connection... [09:35:19] Sock 9.Parse request [09:35:19]Sock 9.Check first char [09:35:19]Sock 9.First char is OK [09:35:19]request: POST /json_proto HTTP/1.0 [09:35:19]Method: POST [09:35:19]URL: /json_proto [09:35:19]Method is POST - this is cgi request [09:35:19]url: /json_proto [09:35:19]query_string will be loaded in cgi processing [09:35:19]execute_cgi json_proto POST (null) [09:35:19]execute_cgi path=json_proto method=POST [09:35:19]POST find Content-Length [09:35:19]Host: 172.17.44.196:8080 [09:35:19]Content-Length: 658 [09:35:19]Content-Type: application/json [09:35:19] [09:35:19]POST finish read [09:35:19]Found Content-Length = 658 [09:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273207", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:19]execute_script... [09:35:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273207", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:19]POST & json_proto [09:35:19]process_json_proto [09:35:19]json parsed OK: [09:35:19]protocol is kg_v1.0 [09:35:19]action value=close_receipt [09:35:19]process_action close_receipt [09:35:19]cmd_close_receipt [09:35:19]MH_GetDate [09:35:19]Write to MH i2c: F0 00 00 00 8A 79 [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: F0 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: F0 09 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: F0 09 00 00 8A 00 5E C3 18 67 E7 19 F8 65 7F [09:35:19]GetLastDocTimeStamp 1729676018 [09:35:19]current date 1729676126 [09:35:19]FM_GetShiftState [09:35:19]SAM_PROTO_GetShiftState [09:35:19]wFMCommunicate request_size=4 [09:35:19]MH_SAM_APDU [09:35:19]CAPDU: 80 13 01 00 [09:35:19]Write to MH i2c: E2 08 00 01 8A 80 13 01 00 00 00 00 00 08 [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:19]Read from MH i2c: E2 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 0E 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 0E 00 01 8A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6D [09:35:19]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:35:19]wFMCommunicate OK [09:35:19]SAM_PROTO_GetShiftState done [09:35:19]FM_GetShiftState done [09:35:19]opened in 1729642905 [09:35:19]opened+sec_in_day 1729729305 [09:35:19]quantity*price = 12500 [09:35:19]sum+1 = 12501 [09:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 37 23.10.2024 09:35 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75304 ФПД: 181674420778617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093526&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75304&fm=181674420778617&tin=02508201610067®Number=0000000000161154&sum=12500 0 [09:35:20]StoreToDocumentArchive [09:35:20]shift 173 fd 75304 [09:35:20]save to /storage/0173/doc_00075304 [09:35:20]save last doc name /storage/0173/doc_00075304 to /storage/kkm_last_doc_name [09:35:20]save OK [09:35:20]Clear old archive folders... [09:35:20]ProcessDocumentItem done err = 0, tmpTLVsize=278 [09:35:20]tlvbuf is 00F075F0 [09:35:20]SAM_PROTO_ClearQueue [09:35:20]wFMCommunicate request_size=4 [09:35:20]MH_SAM_APDU [09:35:20]CAPDU: 80 09 00 00 [09:35:20]Write to MH i2c: E2 08 00 0E 8A 80 09 00 00 00 00 00 00 0A [09:35:20]Write i2c OK [09:35:20]MH_I2C_Read... [09:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:20]Read from MH i2c: E2 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: E2 03 00 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: E2 03 00 0E 8A 00 90 00 0C [09:35:20]RAPDU: 90 00 [09:35:20]wFMCommunicate OK [09:35:20]SAM_PROTO_ClearQueue done [09:35:20]KKMCreateOFDPacket [09:35:20]OFDProtocolAddRootSTLVToBuf [09:35:20]FM_MakeSignedData [09:35:20]FM_MakeSignedData [09:35:20]SAM_PROTO_SignData [09:35:20]wFMCommunicate request_size=4 [09:35:20]MH_SAM_APDU [09:35:20]CAPDU: 80 0D 01 02 [09:35:20]Write to MH i2c: E2 08 00 0F 8A 80 0D 01 02 00 00 00 00 12 [09:35:20]Write i2c OK [09:35:20]MH_I2C_Read... [09:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:20]Read from MH i2c: E2 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: E2 03 00 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: E2 03 00 0F 8A 00 90 00 0D [09:35:20]RAPDU: 90 00 [09:35:20]wFMCommunicate OK [09:35:20]wFMCommunicate request_size=255 [09:35:20]MH_SAM_APDU [09:35:20]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 5E C3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 [09:35:20]Write to MH i2c: E2 02 01 10 8A 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 5E C3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 00 00 29 [09:35:20]Write i2c OK [09:35:20]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 10 8A 00 90 00 0E [09:35:21]RAPDU: 90 00 [09:35:21]wFMCommunicate OK [09:35:21]wFMCommunicate request_size=37 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 26 01 00 35 04 06 00 A5 3B 5F 50 B6 79 [09:35:21]Write to MH i2c: E2 28 00 11 8A 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 26 01 00 35 04 06 00 A5 3B 5F 50 B6 79 00 00 73 [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 11 8A 00 90 00 0F [09:35:21]RAPDU: 90 00 [09:35:21]wFMCommunicate OK [09:35:21]wFMCommunicate request_size=4 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 0D 03 02 [09:35:21]Write to MH i2c: E2 08 00 12 8A 80 0D 03 02 00 00 00 00 17 [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 0B 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 0B 00 12 8A 00 33 73 64 74 BA D9 2C B8 90 00 0D [09:35:21]RAPDU: 33 73 64 74 BA D9 2C B8 90 00 [09:35:21]wFMCommunicate OK [09:35:21]SAM_PROTO_SignData done [09:35:21]FM_MakeSignedData done [09:35:21]CreateOFDProtocolMessage [09:35:21]wFMCommunicate request_size=4 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 11 00 00 [09:35:21]Write to MH i2c: E2 08 00 13 8A 80 11 00 00 00 00 00 00 17 [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 17 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 17 00 13 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 64 [09:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:35:21]wFMCommunicate OK [09:35:21]CreateOFDProtocolMessage done [09:35:21]OFDSenderStorePacket 75304 [09:35:21]StoreOFDPacket docnum=75304 [09:35:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 9C 7E 22 01 13 9B 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 5E C3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 26 01 00 35 04 06 00 A5 3B 5F 50 B6 79 33 73 64 74 BA D9 2C B8 [09:35:21]CheckFolder [09:35:21]dirname=/storage/ofd_packets [09:35:21]CheckFolder done [09:35:21]ProducePacketName [09:35:21]name=ofd_packets/00075304 [09:35:21]NVStorageSaveData ofd_packets/00075304 [09:35:21]File name is /storage/ofd_packets/00075304 [09:35:21]Write 328 bytes [09:35:21]NVStorageSaveData done [09:35:21]OFDSenderStorePacket done [09:35:21]KKMCreateOFDPacket done [09:35:21]NVStorageSaveData kkm_last_timestamp [09:35:21]File name is /storage/kkm_last_timestamp [09:35:21]Write 4 bytes [09:35:21]NVStorageSaveData done [09:35:21]ExternCall_PrintAddStr [09:35:21]wPrintStart [09:35:21]Write to MH i2c: 01 00 00 14 8A 9E [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: 01 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: 01 07 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: 01 07 00 14 8A 00 00 00 00 00 FF 0F B3 [09:35:21]RasterBufferAndPrint [09:35:21]line Счет N : (3)273207 [09:35:21]line ИНН: 02508201610067 [09:35:21]line Контрольно-Кассовый Чек [09:35:21]line ПРОДАЖА [09:35:21]line Товар: 5449000054227 [09:35:21]line Напиток Кока-Кола 1л [09:35:21]line 1.000 * 125.00 [09:35:21]line = 125.00 [09:35:21]line НДС 12% НСП 1% [09:35:21]line > о реализуемом товаре [09:35:21]line ИТОГО: 125.00 [09:35:21]line НСП 1% : 1.11 [09:35:21]line НДС 12% : 13.27 [09:35:21]line Наличными: 125.00 [09:35:21]line Безнал.: 0.00 [09:35:21]line Место: АЗС № 133 "Партнер Нефть" [09:35:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:35:21]line СНО: Общий режим [09:35:21]line Чек 37 23.10.2024 09:35 [09:35:21]line Смена: 173 ФФД: 1.0 [09:35:21]line ЗНМ: 0300000020 [09:35:21]line РНМ: 0000000000161154 [09:35:21]line Версия ККМ: v1.0 [09:35:21]line ФМ: 0000000000963323 [09:35:21]line ФД: 75304 [09:35:21]line ФПД: 181674420778617 [09:35:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T093526&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75304&fm=181674420778617&tin=02508201610067®Number=0000000000161154&sum=12500 [09:35:21]line 0 [09:35:21]OFD Sender: Processing packet 75304 [packets to send 15, broken 14] [09:35:21]ProducePacketName [09:35:21]name=ofd_packets/00075304 [09:35:21]OFD Sender: To server: pG, [09:35:21]CommunicateWithHost lk.salyk.kg:30040 [09:35:21]ConnectInit lk.salyk.kg [09:35:21]written 0, free lines is 4095 [09:35:21]Connected sock=10 [09:35:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 9C 7E 22 01 13 9B 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 5E C3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 26 01 00 35 04 06 00 A5 3B 5F 50 B6 79 33 73 64 74 BA D9 2C B8 [09:35:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 92 6A 47 00 13 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 28 26 01 00 F4 03 04 00 39 6C 18 67 B6 04 01 00 00 34 26 8B 4D D5 D6 11 DE [09:35:21]CommunicateWithHost err = 0 [09:35:21]CheckOFDResponse [09:35:21]1017 (14) - 77093643461234 [09:35:21]1041 (16) - 0000000000963323 [09:35:21]1040 (4) - 75304 [09:35:21]1012 (4) - 23.10.2024 03:23 [09:35:21]1206 (1) - 0 [09:35:21]OFD Sender: Remove packet 75304 [09:35:21]ProducePacketName [09:35:21]name=ofd_packets/00075304 [09:35:21]NVStorageDeleteData [09:35:22]Write to MH i2c: 01 00 00 3B 8A C5 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 07 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 07 00 3B 8A 00 00 00 00 00 D4 0C AC [09:35:22]RasterBufferAndPrint [09:35:22]line [09:35:22]line [09:35:22]line [09:35:22]line [09:35:22]line [09:35:22]written 0, free lines is 3288 [09:35:22]MH_Cut [09:35:22]Write to MH i2c: D1 01 00 42 8A 01 9E [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: D1 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: D1 01 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: D1 01 00 42 8A 00 9D [09:35:22]Write to MH i2c: 01 00 00 43 8A CD [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]OFD Sender: No OFD packet to send [09:35:22]*** Cut start [09:35:22]*** Partial cut [09:35:22]*** CUTSNS_PIN = 1 [09:35:22]*** CUTSNS_PIN = 0 [09:35:23]*** Brake cut motor [09:35:23]Read from MH i2c: 01 [09:35:23]MH_I2C_Read... [09:35:23]*** Stop cut motor [09:35:23]*** Cut end [09:35:23]Read from MH i2c: 01 07 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 43 8A 00 00 00 00 00 FF 0F E2 [09:35:23]process_action close_receipt done [09:35:23]requested_data is exist [09:35:23]produce_requested_data [09:35:23]requested_item fm.sn is exist - process it [09:35:23]wFMCommunicate request_size=4 [09:35:23]MH_SAM_APDU [09:35:23]CAPDU: 80 11 00 00 [09:35:23]Write to MH i2c: E2 08 00 44 8A 80 11 00 00 00 00 00 00 48 [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:23]Read from MH i2c: E2 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 17 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 17 00 44 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 95 [09:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:35:23]wFMCommunicate OK [09:35:23]requested_item fd.num is exist - process it [09:35:23]SAM_PROTO_GetFieldsCounters [09:35:23]wFMCommunicate request_size=4 [09:35:23]MH_SAM_APDU [09:35:23]CAPDU: 80 13 00 00 [09:35:23]Write to MH i2c: E2 08 00 45 8A 80 13 00 00 00 00 00 00 4B [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:23]Read from MH i2c: E2 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 62 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 62 00 45 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 28 26 01 00 0E 04 04 00 AD 00 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 CA [09:35:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 28 26 01 00 0E 04 04 00 AD 00 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:35:23]wFMCommunicate OK [09:35:23]SAM_PROTO_GetFieldsCounters done [09:35:23]requested_item shift.num is exist - process it [09:35:23]requested_item shift.opened is exist - process it [09:35:23]req_shift_opened [09:35:23]FM_GetShiftState [09:35:23]SAM_PROTO_GetShiftState [09:35:23]wFMCommunicate request_size=4 [09:35:23]MH_SAM_APDU [09:35:23]CAPDU: 80 13 01 00 [09:35:23]Write to MH i2c: E2 08 00 46 8A 80 13 01 00 00 00 00 00 4D [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:23]Read from MH i2c: E2 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 0E 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 0E 00 46 8A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B2 [09:35:23]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:35:23]wFMCommunicate OK [09:35:23]SAM_PROTO_GetShiftState done [09:35:23]FM_GetShiftState done [09:35:23]req_shift_opened done [09:35:23]requested_item shift.open_date is exist - process it [09:35:23]req_shift_open_date [09:35:23]req_shift_open_date done [09:35:23]produce_requested_data done [09:35:23]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75304,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:35:23]process_action_free close_receipt [09:35:23]json_value_free [09:35:23]json_value_free done [09:35:23]process_json_proto returns [09:35:23]Send response to host [09:35:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75304,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:35:23]free response buf [09:35:23]execute_script done [09:35:23]execute_script returns [09:35:23]free content buf [09:35:23]Sock 9.Close socket [09:35:23]Sock 9.Thread stoped [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:18]accept exits with 7 [09:41:18]New connection [09:41:18]New thread 3067465060 created [09:41:18]Thread 3067321700 joined [09:41:18]Waiting for new connection... [09:41:18] Sock 7.Parse request [09:41:18]Sock 7.Check first char [09:41:18]Sock 7.First char is OK [09:41:18]request: POST /json_proto HTTP/1.0 [09:41:18]Method: POST [09:41:18]URL: /json_proto [09:41:18]Method is POST - this is cgi request [09:41:18]url: /json_proto [09:41:18]query_string will be loaded in cgi processing [09:41:18]execute_cgi json_proto POST (null) [09:41:18]execute_cgi path=json_proto method=POST [09:41:18]POST find Content-Length [09:41:18]Host: 172.17.44.196:8080 [09:41:18]Content-Length: 678 [09:41:18]Content-Type: application/json [09:41:18] [09:41:18]POST finish read [09:41:18]Found Content-Length = 678 [09:41:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:18]execute_script... [09:41: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)1965271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:18]POST & json_proto [09:41:18]process_json_proto [09:41:18]json parsed OK: [09:41:18]protocol is kg_v1.0 [09:41:18]action value=close_receipt [09:41:18]process_action close_receipt [09:41:18]cmd_close_receipt [09:41:18]MH_GetDate [09:41:18]Write to MH i2c: F0 00 00 47 8A C0 [09:41:18]Write i2c OK [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: F0 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: F0 09 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: F0 09 00 47 8A 00 C5 C4 18 67 E7 19 F8 65 2E [09:41:18]GetLastDocTimeStamp 1729676126 [09:41:18]current date 1729676485 [09:41:18]FM_GetShiftState [09:41:18]SAM_PROTO_GetShiftState [09:41:18]wFMCommunicate request_size=4 [09:41:18]MH_SAM_APDU [09:41:18]CAPDU: 80 13 01 00 [09:41:18]Write to MH i2c: E2 08 00 48 8A 80 13 01 00 00 00 00 00 4F [09:41:18]Write i2c OK [09:41:18]MH_I2C_Read... [09:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:18]Read from MH i2c: E2 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 0E 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 0E 00 48 8A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B4 [09:41:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:41:18]wFMCommunicate OK [09:41:18]SAM_PROTO_GetShiftState done [09:41:18]FM_GetShiftState done [09:41:18]opened in 1729642905 [09:41:18]opened+sec_in_day 1729729305 [09:41:18]quantity*price = 22037 [09:41:18]sum+1 = 22038 [09:41:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 38 23.10.2024 09:41 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75305 ФПД: 145381288930610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094125&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75305&fm=145381288930610&tin=02508201610067®Number=0000000000161154&sum=22000 [09:41:19]StoreToDocumentArchive [09:41:19]shift 173 fd 75305 [09:41:19]save to /storage/0173/doc_00075305 [09:41:19]save last doc name /storage/0173/doc_00075305 to /storage/kkm_last_doc_name [09:41:19]save OK [09:41:19]Clear old archive folders... [09:41:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:19]tlvbuf is 00E36600 [09:41:19]SAM_PROTO_ClearQueue [09:41:19]wFMCommunicate request_size=4 [09:41:19]MH_SAM_APDU [09:41:19]CAPDU: 80 09 00 00 [09:41:19]Write to MH i2c: E2 08 00 55 8A 80 09 00 00 00 00 00 00 51 [09:41:19]Write i2c OK [09:41:19]MH_I2C_Read... [09:41:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:19]Read from MH i2c: E2 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: E2 03 00 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: E2 03 00 55 8A 00 90 00 53 [09:41:19]RAPDU: 90 00 [09:41:19]wFMCommunicate OK [09:41:19]SAM_PROTO_ClearQueue done [09:41:19]KKMCreateOFDPacket [09:41:19]OFDProtocolAddRootSTLVToBuf [09:41:19]FM_MakeSignedData [09:41:19]FM_MakeSignedData [09:41:19]SAM_PROTO_SignData [09:41:19]wFMCommunicate request_size=4 [09:41:19]MH_SAM_APDU [09:41:19]CAPDU: 80 0D 01 02 [09:41:19]Write to MH i2c: E2 08 00 56 8A 80 0D 01 02 00 00 00 00 59 [09:41:19]Write i2c OK [09:41:19]MH_I2C_Read... [09:41:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:19]Read from MH i2c: E2 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: E2 03 00 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: E2 03 00 56 8A 00 90 00 54 [09:41:19]RAPDU: 90 00 [09:41:19]wFMCommunicate OK [09:41:19]wFMCommunicate request_size=255 [09:41:19]MH_SAM_APDU [09:41: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C5 C4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 26 01 00 35 04 06 00 84 [09:41:19]Write to MH i2c: E2 02 01 57 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C5 C4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 26 01 00 35 04 06 00 84 00 00 AB [09:41:19]Write i2c OK [09:41:19]MH_I2C_Read... [09:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:20]Read from MH i2c: E2 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 03 00 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 03 00 57 8A 00 90 00 55 [09:41:20]RAPDU: 90 00 [09:41:20]wFMCommunicate OK [09:41:20]wFMCommunicate request_size=10 [09:41:20]MH_SAM_APDU [09:41:20]CAPDU: 80 0D 02 02 05 39 38 15 6D 32 [09:41:20]Write to MH i2c: E2 0D 00 58 8A 80 0D 02 02 05 00 39 38 15 6D 32 00 00 8B [09:41:20]Write i2c OK [09:41:20]MH_I2C_Read... [09:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:20]Read from MH i2c: E2 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 03 00 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 03 00 58 8A 00 90 00 56 [09:41:20]RAPDU: 90 00 [09:41:20]wFMCommunicate OK [09:41:20]wFMCommunicate request_size=4 [09:41:20]MH_SAM_APDU [09:41:20]CAPDU: 80 0D 03 02 [09:41:20]Write to MH i2c: E2 08 00 59 8A 80 0D 03 02 00 00 00 00 5E [09:41:20]Write i2c OK [09:41:20]MH_I2C_Read... [09:41:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:20]Read from MH i2c: E2 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 0B 00 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 0B 00 59 8A 00 F3 F9 01 B7 01 C2 BF 43 90 00 C8 [09:41:20]RAPDU: F3 F9 01 B7 01 C2 BF 43 90 00 [09:41:20]wFMCommunicate OK [09:41:20]SAM_PROTO_SignData done [09:41:20]FM_MakeSignedData done [09:41:20]CreateOFDProtocolMessage [09:41:20]wFMCommunicate request_size=4 [09:41:20]MH_SAM_APDU [09:41:20]CAPDU: 80 11 00 00 [09:41:20]Write to MH i2c: E2 08 00 5A 8A 80 11 00 00 00 00 00 00 5E [09:41:20]Write i2c OK [09:41:20]MH_I2C_Read... [09:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:20]Read from MH i2c: E2 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 17 00 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 17 00 5A 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AB [09:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:41:20]wFMCommunicate OK [09:41:20]CreateOFDProtocolMessage done [09:41:20]OFDSenderStorePacket 75305 [09:41:20]StoreOFDPacket docnum=75305 [09:41:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 01 4E 07 01 53 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C5 C4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 26 01 00 35 04 06 00 84 39 38 15 6D 32 F3 F9 01 B7 01 C2 BF 43 [09:41:20]CheckFolder [09:41:20]dirname=/storage/ofd_packets [09:41:20]CheckFolder done [09:41:20]ProducePacketName [09:41:20]name=ofd_packets/00075305 [09:41:20]NVStorageSaveData ofd_packets/00075305 [09:41:20]File name is /storage/ofd_packets/00075305 [09:41:20]Write 301 bytes [09:41:20]NVStorageSaveData done [09:41:20]OFDSenderStorePacket done [09:41:20]KKMCreateOFDPacket done [09:41:20]NVStorageSaveData kkm_last_timestamp [09:41:20]File name is /storage/kkm_last_timestamp [09:41:20]Write 4 bytes [09:41:20]NVStorageSaveData done [09:41:20]ExternCall_PrintAddStr [09:41:20]wPrintStart [09:41:20]Write to MH i2c: 01 00 00 5B 8A E5 [09:41:20]Write i2c OK [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: 01 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: 01 07 00 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: 01 07 00 5B 8A 00 00 00 00 00 FF 0F FA [09:41:20]RasterBufferAndPrint [09:41:20]line Счет N : (1)1965271 [09:41:20]line ИНН: 02508201610067 [09:41:20]line Контрольно-Кассовый Чек [09:41:20]line ПРОДАЖА [09:41:20]line ТРК (МРК, ГНК) : 64 [09:41:20]line Товар: 2710124500 [09:41:20]line Аи-95-К-5 [09:41:20]line 2.970 * 74.20 [09:41:20]line = 220.37 [09:41:20]line НДС 12% НСП 1% [09:41:20]line > о реализуемом товаре [09:41:20]line ОКРУГЛЕНИЕ: -0.37 [09:41:20]line ИТОГО: 220.00 [09:41:20]line Внесено: 220.00 [09:41:20]line СДАЧА: 0.00 [09:41:20]line НСП 1% : 1.95 [09:41:20]line НДС 12% : 23.40 [09:41:20]line Наличными: 220.00 [09:41:20]line Безнал.: 0.00 [09:41:20]line Место: АЗС № 133 "Партнер Нефть" [09:41:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:41:20]line СНО: Общий режим [09:41:20]line Чек 38 23.10.2024 09:41 [09:41:20]line Смена: 173 ФФД: 1.0 [09:41:20]line ЗНМ: 0300000020 [09:41:20]line РНМ: 0000000000161154 [09:41:20]line Версия ККМ: v1.0 [09:41:20]line ФМ: 0000000000963323 [09:41:20]line ФД: 75305 [09:41:20]line ФПД: 145381288930610 [09:41:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094125&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75305&fm=145381288930610&tin=02508201610067®Number=0000000000161154&sum=22000 [09:41:20]OFD Sender: Processing packet 75305 [packets to send 15, broken 14] [09:41:20]ProducePacketName [09:41:20]name=ofd_packets/00075305 [09:41:20]OFD Sender: To server: pG, [09:41:20]CommunicateWithHost lk.salyk.kg:30040 [09:41:20]ConnectInit lk.salyk.kg [09:41:20]written 0, free lines is 4095 [09:41:20]Connected sock=10 [09:41:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 01 4E 07 01 53 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C5 C4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 26 01 00 35 04 06 00 84 39 38 15 6D 32 F3 F9 01 B7 01 C2 BF 43 [09:41:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A7 88 47 00 DD 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 29 26 01 00 F4 03 04 00 A0 6D 18 67 B6 04 01 00 00 FB 7C 80 36 3A B3 DF 21 [09:41:21]CommunicateWithHost err = 0 [09:41:21]CheckOFDResponse [09:41:21]1017 (14) - 77093643461234 [09:41:21]1041 (16) - 0000000000963323 [09:41:21]1040 (4) - 75305 [09:41:21]1012 (4) - 23.10.2024 03:29 [09:41:21]1206 (1) - 0 [09:41:21]OFD Sender: Remove packet 75305 [09:41:21]ProducePacketName [09:41:21]name=ofd_packets/00075305 [09:41:21]NVStorageDeleteData [09:41:21]Write to MH i2c: 01 00 00 85 8A 0F [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: 01 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: 01 07 00 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: 01 07 00 85 8A 00 00 00 00 00 AA 0C CC [09:41:21]RasterBufferAndPrint [09:41:21]line [09:41:21]line [09:41:21]line [09:41:21]line [09:41:21]line [09:41:21]written 0, free lines is 3245 [09:41:21]MH_Cut [09:41:21]Write to MH i2c: D1 01 00 8C 8A 01 E8 [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: D1 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: D1 01 00 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: D1 01 00 8C 8A 00 E7 [09:41:21]Write to MH i2c: 01 00 00 8D 8A 17 [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:21]OFD Sender: No OFD packet to send [09:41:22]*** Cut start [09:41:22]*** Partial cut [09:41:22]*** CUTSNS_PIN = 1 [09:41:22]*** CUTSNS_PIN = 0 [09:41:22]*** Brake cut motor [09:41:22]Read from MH i2c: 01 [09:41:22]MH_I2C_Read... [09:41:22]*** Stop cut motor [09:41:22]*** Cut end [09:41:22]Read from MH i2c: 01 07 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: 01 07 00 8D 8A 00 00 00 00 00 FF 0F 2C [09:41:22]process_action close_receipt done [09:41:22]requested_data is exist [09:41:22]produce_requested_data [09:41:22]requested_item fm.sn is exist - process it [09:41:22]wFMCommunicate request_size=4 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 11 00 00 [09:41:22]Write to MH i2c: E2 08 00 8E 8A 80 11 00 00 00 00 00 00 92 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 17 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 17 00 8E 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DF [09:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:41:22]wFMCommunicate OK [09:41:22]requested_item fd.num is exist - process it [09:41:22]SAM_PROTO_GetFieldsCounters [09:41:22]wFMCommunicate request_size=4 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 13 00 00 [09:41:22]Write to MH i2c: E2 08 00 8F 8A 80 13 00 00 00 00 00 00 95 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 62 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 62 00 8F 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 29 26 01 00 0E 04 04 00 AD 00 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 18 [09:41:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 29 26 01 00 0E 04 04 00 AD 00 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:41:22]wFMCommunicate OK [09:41:22]SAM_PROTO_GetFieldsCounters done [09:41:22]requested_item shift.num is exist - process it [09:41:22]requested_item shift.opened is exist - process it [09:41:22]req_shift_opened [09:41:22]FM_GetShiftState [09:41:22]SAM_PROTO_GetShiftState [09:41:22]wFMCommunicate request_size=4 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 13 01 00 [09:41:22]Write to MH i2c: E2 08 00 90 8A 80 13 01 00 00 00 00 00 97 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 0E 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 0E 00 90 8A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FC [09:41:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:41:22]wFMCommunicate OK [09:41:22]SAM_PROTO_GetShiftState done [09:41:22]FM_GetShiftState done [09:41:22]req_shift_opened done [09:41:22]requested_item shift.open_date is exist - process it [09:41:22]req_shift_open_date [09:41:22]req_shift_open_date done [09:41:22]produce_requested_data done [09:41:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75305,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:41:22]process_action_free close_receipt [09:41:22]json_value_free [09:41:22]json_value_free done [09:41:22]process_json_proto returns [09:41:22]Send response to host [09:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75305,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:41:22]free response buf [09:41:22]execute_script done [09:41:22]execute_script returns [09:41:22]free content buf [09:41:22]Sock 7.Close socket [09:41:22]Sock 7.Thread stoped [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:51]accept exits with 9 [09:43:51]New connection [09:43:51]New thread 3067321700 created [09:43:51]Thread 3067465060 joined [09:43:51]Waiting for new connection... [09:43:51] Sock 9.Parse request [09:43:51]Sock 9.Check first char [09:43:51]Sock 9.First char is OK [09:43:51]request: POST /json_proto HTTP/1.0 [09:43:51]Method: POST [09:43:51]URL: /json_proto [09:43:51]Method is POST - this is cgi request [09:43:51]url: /json_proto [09:43:51]query_string will be loaded in cgi processing [09:43:51]execute_cgi json_proto POST (null) [09:43:51]execute_cgi path=json_proto method=POST [09:43:51]POST find Content-Length [09:43:51]Host: 172.17.44.196:8080 [09:43:51]Content-Length: 659 [09:43:51]Content-Type: application/json [09:43:51] [09:43:51]POST finish read [09:43:51]Found Content-Length = 659 [09:43:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [09:43:51]execute_script... [09:43: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)1965275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [09:43:51]POST & json_proto [09:43:51]process_json_proto [09:43:51]json parsed OK: [09:43:51]protocol is kg_v1.0 [09:43:51]action value=close_receipt [09:43:51]process_action close_receipt [09:43:51]cmd_close_receipt [09:43:51]MH_GetDate [09:43:51]Write to MH i2c: F0 00 00 91 8A 0A [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: F0 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: F0 09 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: F0 09 00 91 8A 00 5E C5 18 67 E7 19 F8 65 12 [09:43:51]GetLastDocTimeStamp 1729676485 [09:43:51]current date 1729676638 [09:43:51]FM_GetShiftState [09:43:51]SAM_PROTO_GetShiftState [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 13 01 00 [09:43:51]Write to MH i2c: E2 08 00 92 8A 80 13 01 00 00 00 00 00 99 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0E 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0E 00 92 8A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FE [09:43:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:43:51]wFMCommunicate OK [09:43:51]SAM_PROTO_GetShiftState done [09:43:51]FM_GetShiftState done [09:43:51]opened in 1729642905 [09:43:51]opened+sec_in_day 1729729305 [09:43:51]quantity*price = 40014 [09:43:51]sum+1 = 40015 [09:43:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 39 23.10.2024 09:43 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75306 ФПД: 195997493477518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094358&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75306&fm=195997493477518&tin=02508201610067®Number=0000000000161154&sum=40000 [09:43:52]StoreToDocumentArchive [09:43:52]shift 173 fd 75306 [09:43:52]save to /storage/0173/doc_00075306 [09:43:52]save last doc name /storage/0173/doc_00075306 to /storage/kkm_last_doc_name [09:43:52]save OK [09:43:52]Clear old archive folders... [09:43:52]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:43:52]tlvbuf is 00D96080 [09:43:52]SAM_PROTO_ClearQueue [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 09 00 00 [09:43:52]Write to MH i2c: E2 08 00 9F 8A 80 09 00 00 00 00 00 00 9B [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 03 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 03 00 9F 8A 00 90 00 9D [09:43:52]RAPDU: 90 00 [09:43:52]wFMCommunicate OK [09:43:52]SAM_PROTO_ClearQueue done [09:43:52]KKMCreateOFDPacket [09:43:52]OFDProtocolAddRootSTLVToBuf [09:43:52]FM_MakeSignedData [09:43:52]FM_MakeSignedData [09:43:52]SAM_PROTO_SignData [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 0D 01 02 [09:43:52]Write to MH i2c: E2 08 00 A0 8A 80 0D 01 02 00 00 00 00 A3 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 03 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 03 00 A0 8A 00 90 00 9E [09:43:52]RAPDU: 90 00 [09:43:52]wFMCommunicate OK [09:43:52]wFMCommunicate request_size=253 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 27 00 00 00 F4 03 04 00 5E C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 26 01 00 35 04 06 00 B2 42 38 F9 C0 8E [09:43:52]Write to MH i2c: E2 00 01 A1 8A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 27 00 00 00 F4 03 04 00 5E C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 26 01 00 35 04 06 00 B2 42 38 F9 C0 8E 00 00 F8 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 03 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 03 00 A1 8A 00 90 00 9F [09:43:53]RAPDU: 90 00 [09:43:53]wFMCommunicate OK [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 0D 03 02 [09:43:53]Write to MH i2c: E2 08 00 A2 8A 80 0D 03 02 00 00 00 00 A7 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0B 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0B 00 A2 8A 00 0A 24 73 42 56 37 7C 9F 90 00 33 [09:43:53]RAPDU: 0A 24 73 42 56 37 7C 9F 90 00 [09:43:53]wFMCommunicate OK [09:43:53]SAM_PROTO_SignData done [09:43:53]FM_MakeSignedData done [09:43:53]CreateOFDProtocolMessage [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 11 00 00 [09:43:53]Write to MH i2c: E2 08 00 A3 8A 80 11 00 00 00 00 00 00 A7 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 17 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 17 00 A3 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F4 [09:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:43:53]wFMCommunicate OK [09:43:53]CreateOFDProtocolMessage done [09:43:53]OFDSenderStorePacket 75306 [09:43:53]StoreOFDPacket docnum=75306 [09:43:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 8A 68 00 01 7A 19 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 27 00 00 00 F4 03 04 00 5E C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 26 01 00 35 04 06 00 B2 42 38 F9 C0 8E 0A 24 73 42 56 37 7C 9F [09:43:53]CheckFolder [09:43:53]dirname=/storage/ofd_packets [09:43:53]CheckFolder done [09:43:53]ProducePacketName [09:43:53]name=ofd_packets/00075306 [09:43:53]NVStorageSaveData ofd_packets/00075306 [09:43:53]File name is /storage/ofd_packets/00075306 [09:43:53]Write 294 bytes [09:43:53]NVStorageSaveData done [09:43:53]OFDSenderStorePacket done [09:43:53]KKMCreateOFDPacket done [09:43:53]NVStorageSaveData kkm_last_timestamp [09:43:53]File name is /storage/kkm_last_timestamp [09:43:53]Write 4 bytes [09:43:53]NVStorageSaveData done [09:43:53]ExternCall_PrintAddStr [09:43:53]wPrintStart [09:43:53]Write to MH i2c: 01 00 00 A4 8A 2E [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: 01 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: 01 07 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: 01 07 00 A4 8A 00 00 00 00 00 FF 0F 43 [09:43:53]RasterBufferAndPrint [09:43:53]line Счет N : (1)1965275 [09:43:53]line ИНН: 02508201610067 [09:43:53]line Контрольно-Кассовый Чек [09:43:53]line ПРОДАЖА [09:43:53]line ТРК (МРК, ГНК) : 62 [09:43:53]line Товар: 2710124130 [09:43:53]line SU-92 [09:43:53]line 5.850 * 68.40 [09:43:53]line = 400.14 [09:43:53]line НДС 12% НСП 1% [09:43:53]line > о реализуемом товаре [09:43:53]line ОКРУГЛЕНИЕ: -0.14 [09:43:53]line ИТОГО: 400.00 [09:43:53]line Внесено: 400.00 [09:43:53]line СДАЧА: 0.00 [09:43:53]line НСП 1% : 3.54 [09:43:53]line НДС 12% : 42.49 [09:43:53]line Наличными: 400.00 [09:43:53]line Безнал.: 0.00 [09:43:53]line Место: АЗС № 133 "Партнер Нефть" [09:43:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:43:53]line СНО: Общий режим [09:43:53]line Чек 39 23.10.2024 09:43 [09:43:53]line Смена: 173 ФФД: 1.0 [09:43:53]line ЗНМ: 0300000020 [09:43:53]line РНМ: 0000000000161154 [09:43:53]line Версия ККМ: v1.0 [09:43:53]line ФМ: 0000000000963323 [09:43:53]line ФД: 75306 [09:43:53]line ФПД: 195997493477518 [09:43:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094358&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75306&fm=195997493477518&tin=02508201610067®Number=0000000000161154&sum=40000 [09:43:53]OFD Sender: Processing packet 75306 [packets to send 15, broken 14] [09:43:53]ProducePacketName [09:43:53]name=ofd_packets/00075306 [09:43:53]OFD Sender: To server: pG, [09:43:53]CommunicateWithHost lk.salyk.kg:30040 [09:43:53]ConnectInit lk.salyk.kg [09:43:53]written 0, free lines is 4095 [09:43:53]Connected sock=10 [09:43:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 8A 68 00 01 7A 19 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 27 00 00 00 F4 03 04 00 5E C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2A 26 01 00 35 04 06 00 B2 42 38 F9 C0 8E 0A 24 73 42 56 37 7C 9F [09:43:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E1 4A 47 00 B5 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 39 36 33 33 32 33 10 04 04 00 2A 26 01 00 F4 03 04 00 39 6E 18 67 B6 04 01 00 00 6A B9 BF 8A 14 7B 6C FC [09:43:54]CommunicateWithHost err = 0 [09:43:54]CheckOFDResponse [09:43:54]1017 (14) - 77093643461234 [09:43:54]1041 (16) - 0000000000963323 [09:43:54]1040 (4) - 75306 [09:43:54]1012 (4) - 23.10.2024 03:32 [09:43:54]1206 (1) - 0 [09:43:54]OFD Sender: Remove packet 75306 [09:43:54]ProducePacketName [09:43:54]name=ofd_packets/00075306 [09:43:54]NVStorageDeleteData [09:43:54]Write to MH i2c: 01 00 00 CE 8A 58 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 07 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 07 00 CE 8A 00 00 00 00 00 A3 0C 0E [09:43:54]RasterBufferAndPrint [09:43:54]line [09:43:54]line [09:43:54]line [09:43:54]line [09:43:54]line [09:43:54]written 0, free lines is 3239 [09:43:54]MH_Cut [09:43:54]Write to MH i2c: D1 01 00 D5 8A 01 31 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: D1 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: D1 01 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: D1 01 00 D5 8A 00 30 [09:43:54]Write to MH i2c: 01 00 00 D6 8A 60 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]OFD Sender: No OFD packet to send [09:43:55]*** Cut start [09:43:55]*** Partial cut [09:43:55]*** CUTSNS_PIN = 1 [09:43:55]*** CUTSNS_PIN = 0 [09:43:55]*** Brake cut motor [09:43:55]Read from MH i2c: 01 [09:43:55]MH_I2C_Read... [09:43:55]*** Stop cut motor [09:43:55]*** Cut end [09:43:55]Read from MH i2c: 01 07 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: 01 07 00 D6 8A 00 00 00 00 00 FF 0F 75 [09:43:55]process_action close_receipt done [09:43:55]requested_data is exist [09:43:55]produce_requested_data [09:43:55]requested_item fm.sn is exist - process it [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 11 00 00 [09:43:55]Write to MH i2c: E2 08 00 D7 8A 80 11 00 00 00 00 00 00 DB [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 17 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 17 00 D7 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 28 [09:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:43:55]wFMCommunicate OK [09:43:55]requested_item fd.num is exist - process it [09:43:55]SAM_PROTO_GetFieldsCounters [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 13 00 00 [09:43:55]Write to MH i2c: E2 08 00 D8 8A 80 13 00 00 00 00 00 00 DE [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 62 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 62 00 D8 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2A 26 01 00 0E 04 04 00 AD 00 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 65 [09:43:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2A 26 01 00 0E 04 04 00 AD 00 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:43:55]wFMCommunicate OK [09:43:55]SAM_PROTO_GetFieldsCounters done [09:43:55]requested_item shift.num is exist - process it [09:43:55]requested_item shift.opened is exist - process it [09:43:55]req_shift_opened [09:43:55]FM_GetShiftState [09:43:55]SAM_PROTO_GetShiftState [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 13 01 00 [09:43:55]Write to MH i2c: E2 08 00 D9 8A 80 13 01 00 00 00 00 00 E0 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 0E 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 0E 00 D9 8A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 45 [09:43:55]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:43:55]wFMCommunicate OK [09:43:55]SAM_PROTO_GetShiftState done [09:43:55]FM_GetShiftState done [09:43:55]req_shift_opened done [09:43:55]requested_item shift.open_date is exist - process it [09:43:55]req_shift_open_date [09:43:55]req_shift_open_date done [09:43:55]produce_requested_data done [09:43:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75306,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:43:55]process_action_free close_receipt [09:43:55]json_value_free [09:43:55]json_value_free done [09:43:55]process_json_proto returns [09:43:55]Send response to host [09:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75306,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:43:55]free response buf [09:43:55]execute_script done [09:43:55]execute_script returns [09:43:55]free content buf [09:43:55]Sock 9.Close socket [09:43:55]Sock 9.Thread stoped [09:43:56]accept exits with 7 [09:43:56]New connection [09:43:56]New thread 3067465060 created [09:43:56]Thread 3067321700 joined [09:43:56]Waiting for new connection... [09:43:56] Sock 7.Parse request [09:43:56]Sock 7.Check first char [09:43:56]Sock 7.First char is OK [09:43:56]request: POST /json_proto HTTP/1.0 [09:43:56]Method: POST [09:43:56]URL: /json_proto [09:43:56]Method is POST - this is cgi request [09:43:56]url: /json_proto [09:43:56]query_string will be loaded in cgi processing [09:43:56]execute_cgi json_proto POST (null) [09:43:56]execute_cgi path=json_proto method=POST [09:43:56]POST find Content-Length [09:43:56]Host: 172.17.44.196:8080 [09:43:56]Content-Length: 755 [09:43:56]Content-Type: application/json [09:43:56] [09:43:56]POST finish read [09:43:56]Found Content-Length = 755 [09:43:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30099305", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:56]execute_script... [09: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)1965274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30099305", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:56]POST & json_proto [09:43:56]process_json_proto [09:43:56]json parsed OK: [09:43:56]protocol is kg_v1.0 [09:43:56]action value=close_receipt [09:43:56]process_action close_receipt [09:43:56]cmd_close_receipt [09:43:56]MH_GetDate [09:43:56]Write to MH i2c: F0 00 00 DA 8A 53 [09:43:56]Write i2c OK [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: F0 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: F0 09 00 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: F0 09 00 DA 8A 00 62 C5 18 67 E7 19 F8 65 5F [09:43:56]GetLastDocTimeStamp 1729676638 [09:43:56]current date 1729676642 [09:43:56]FM_GetShiftState [09:43:56]SAM_PROTO_GetShiftState [09:43:56]wFMCommunicate request_size=4 [09:43:56]MH_SAM_APDU [09:43:56]CAPDU: 80 13 01 00 [09:43:56]Write to MH i2c: E2 08 00 DB 8A 80 13 01 00 00 00 00 00 E2 [09:43:56]Write i2c OK [09:43:56]MH_I2C_Read... [09:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:56]Read from MH i2c: E2 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: E2 0E 00 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: E2 0E 00 DB 8A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 47 [09:43:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:43:56]wFMCommunicate OK [09:43:56]SAM_PROTO_GetShiftState done [09:43:56]FM_GetShiftState done [09:43:56]opened in 1729642905 [09:43:56]opened+sec_in_day 1729729305 [09:43:56]quantity*price = 0 [09:43:56]sum+1 = 1 [09:43:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 40 23.10.2024 09:44 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30099305 ФМ: 0000000000963323 ФД: 75307 ФПД: 266433671785665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094403&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75307&fm=266433671785665&tin=02508201610067®Number=0000000000161154&sum=0 [09:43:57]StoreToDocumentArchive [09:43:57]shift 173 fd 75307 [09:43:57]save to /storage/0173/doc_00075307 [09:43:57]save last doc name /storage/0173/doc_00075307 to /storage/kkm_last_doc_name [09:43:57]save OK [09:43:57]Clear old archive folders... [09:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:57]tlvbuf is B6FD2C70 [09:43:57]SAM_PROTO_ClearQueue [09:43:57]wFMCommunicate request_size=4 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 09 00 00 [09:43:57]Write to MH i2c: E2 08 00 E8 8A 80 09 00 00 00 00 00 00 E4 [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 E8 8A 00 90 00 E6 [09:43:57]RAPDU: 90 00 [09:43:57]wFMCommunicate OK [09:43:57]SAM_PROTO_ClearQueue done [09:43:57]KKMCreateOFDPacket [09:43:57]OFDProtocolAddRootSTLVToBuf [09:43:57]FM_MakeSignedData [09:43:57]FM_MakeSignedData [09:43:57]SAM_PROTO_SignData [09:43:57]wFMCommunicate request_size=4 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 0D 01 02 [09:43:57]Write to MH i2c: E2 08 00 E9 8A 80 0D 01 02 00 00 00 00 EC [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 E9 8A 00 90 00 E7 [09:43:57]RAPDU: 90 00 [09:43:57]wFMCommunicate OK [09:43:57]wFMCommunicate request_size=255 [09:43:57]MH_SAM_APDU [09: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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 63 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 26 01 00 35 04 06 00 F2 [09:43:57]Write to MH i2c: E2 02 01 EA 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 63 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 26 01 00 35 04 06 00 F2 00 00 49 [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 EA 8A 00 90 00 E8 [09:43:57]RAPDU: 90 00 [09:43:57]wFMCommunicate OK [09:43:57]wFMCommunicate request_size=10 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 0D 02 02 05 51 EC 5C EC C1 [09:43:57]Write to MH i2c: E2 0D 00 EB 8A 80 0D 02 02 05 00 51 EC 5C EC C1 00 00 3F [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 EB 8A 00 90 00 E9 [09:43:57]RAPDU: 90 00 [09:43:57]wFMCommunicate OK [09:43:57]wFMCommunicate request_size=4 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 0D 03 02 [09:43:58]Write to MH i2c: E2 08 00 EC 8A 80 0D 03 02 00 00 00 00 F1 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:58]Read from MH i2c: E2 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 0B 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 0B 00 EC 8A 00 9C 16 45 51 D6 31 8D 7A 90 00 48 [09:43:58]RAPDU: 9C 16 45 51 D6 31 8D 7A 90 00 [09:43:58]wFMCommunicate OK [09:43:58]SAM_PROTO_SignData done [09:43:58]FM_MakeSignedData done [09:43:58]CreateOFDProtocolMessage [09:43:58]wFMCommunicate request_size=4 [09:43:58]MH_SAM_APDU [09:43:58]CAPDU: 80 11 00 00 [09:43:58]Write to MH i2c: E2 08 00 ED 8A 80 11 00 00 00 00 00 00 F1 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:58]Read from MH i2c: E2 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 17 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 17 00 ED 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3E [09:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:43:58]wFMCommunicate OK [09:43:58]CreateOFDProtocolMessage done [09:43:58]OFDSenderStorePacket 75307 [09:43:58]StoreOFDPacket docnum=75307 [09:43:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 40 BD 07 01 6D AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 63 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 26 01 00 35 04 06 00 F2 51 EC 5C EC C1 9C 16 45 51 D6 31 8D 7A [09:43:58]CheckFolder [09:43:58]dirname=/storage/ofd_packets [09:43:58]CheckFolder done [09:43:58]ProducePacketName [09:43:58]name=ofd_packets/00075307 [09:43:58]NVStorageSaveData ofd_packets/00075307 [09:43:58]File name is /storage/ofd_packets/00075307 [09:43:58]Write 301 bytes [09:43:58]NVStorageSaveData done [09:43:58]OFDSenderStorePacket done [09:43:58]KKMCreateOFDPacket done [09:43:58]NVStorageSaveData kkm_last_timestamp [09:43:58]File name is /storage/kkm_last_timestamp [09:43:58]Write 4 bytes [09:43:58]NVStorageSaveData done [09:43:58]ExternCall_PrintAddStr [09:43:58]wPrintStart [09:43:58]Write to MH i2c: 01 00 00 EE 8A 78 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 07 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 07 00 EE 8A 00 00 00 00 00 FF 0F 8D [09:43:58]RasterBufferAndPrint [09:43:58]line Счет N : (1)1965274 [09:43:58]line ИНН: 02508201610067 [09:43:58]line Контрольно-Кассовый Чек [09:43:58]line ПРОДАЖА [09:43:58]line ТРК (МРК, ГНК) : 33 [09:43:58]line Товар: 2710124130 [09:43:58]line Аи-92-К-5 [09:43:58]line 14.950 * 0.00 [09:43:58]line = 0.00 [09:43:58]line НДС 12% НСП 1% [09:43:58]line > о реализуемом товаре [09:43:58]line ИТОГО: 0.00 [09:43:58]line НСП 1% : 0.00 [09:43:58]line НДС 12% : 0.00 [09:43:58]line Наличными: 0.00 [09:43:58]line Безнал.: 0.00 [09:43:58]line Место: АЗС № 133 "Партнер Нефть" [09:43:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:43:58]line СНО: Общий режим [09:43:58]line Чек 40 23.10.2024 09:44 [09:43:58]line Смена: 173 ФФД: 1.0 [09:43:58]line ЗНМ: 0300000020 [09:43:58]line РНМ: 0000000000161154 [09:43:58]line Версия ККМ: v1.0 [09:43:58]line Талоны: ТК ГПНА Online [09:43:58]line 30099305 [09:43:58]line ФМ: 0000000000963323 [09:43:58]line ФД: 75307 [09:43:58]line ФПД: 266433671785665 [09:43:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094403&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75307&fm=266433671785665&tin=02508201610067®Number=0000000000161154&sum=0 [09:43:58]OFD Sender: Processing packet 75307 [packets to send 15, broken 14] [09:43:58]ProducePacketName [09:43:58]name=ofd_packets/00075307 [09:43:58]OFD Sender: To server: pG, [09:43:58]CommunicateWithHost lk.salyk.kg:30040 [09:43:58]ConnectInit lk.salyk.kg [09:43:58]written 0, free lines is 4095 [09:43:58]Connected sock=11 [09:43:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 40 BD 07 01 6D AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 63 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2B 26 01 00 35 04 06 00 F2 51 EC 5C EC C1 9C 16 45 51 D6 31 8D 7A [09:43:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A3 98 47 00 55 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 39 36 33 33 32 33 10 04 04 00 2B 26 01 00 F4 03 04 00 3E 6E 18 67 B6 04 01 00 00 83 AD 0E BD 36 0E 67 35 [09:43:58]CommunicateWithHost err = 0 [09:43:58]CheckOFDResponse [09:43:58]1017 (14) - 77093643461234 [09:43:58]1041 (16) - 0000000000963323 [09:43:58]1040 (4) - 75307 [09:43:58]1012 (4) - 23.10.2024 03:32 [09:43:58]1206 (1) - 0 [09:43:58]OFD Sender: Remove packet 75307 [09:43:58]ProducePacketName [09:43:58]name=ofd_packets/00075307 [09:43:58]NVStorageDeleteData [09:43:58]Write to MH i2c: 01 00 00 17 8B A2 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 07 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 07 00 17 8B 00 00 00 00 00 CA 0C 7F [09:43:58]RasterBufferAndPrint [09:43:58]line [09:43:58]line [09:43:58]line [09:43:58]line [09:43:58]line [09:43:58]written 0, free lines is 3281 [09:43:58]MH_Cut [09:43:58]Write to MH i2c: D1 01 00 1E 8B 01 7B [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: D1 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: D1 01 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: D1 01 00 1E 8B 00 7A [09:43:58]Write to MH i2c: 01 00 00 1F 8B AA [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:59]OFD Sender: No OFD packet to send [09:43:59]*** Cut start [09:43:59]*** Partial cut [09:43:59]*** CUTSNS_PIN = 1 [09:43:59]*** CUTSNS_PIN = 0 [09:44:00]*** Brake cut motor [09:44:00]Read from MH i2c: 01 [09:44:00]MH_I2C_Read... [09:44:00]*** Stop cut motor [09:44:00]*** Cut end [09:44:00]Read from MH i2c: 01 07 00 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: 01 07 00 1F 8B 00 00 00 00 00 FF 0F BF [09:44:00]process_action close_receipt done [09:44:00]requested_data is exist [09:44:00]produce_requested_data [09:44:00]requested_item fm.sn is exist - process it [09:44:00]wFMCommunicate request_size=4 [09:44:00]MH_SAM_APDU [09:44:00]CAPDU: 80 11 00 00 [09:44:00]Write to MH i2c: E2 08 00 20 8B 80 11 00 00 00 00 00 00 25 [09:44:00]Write i2c OK [09:44:00]MH_I2C_Read... [09:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:00]Read from MH i2c: E2 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: E2 17 00 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: E2 17 00 20 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 72 [09:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:44:00]wFMCommunicate OK [09:44:00]requested_item fd.num is exist - process it [09:44:00]SAM_PROTO_GetFieldsCounters [09:44:00]wFMCommunicate request_size=4 [09:44:00]MH_SAM_APDU [09:44:00]CAPDU: 80 13 00 00 [09:44:00]Write to MH i2c: E2 08 00 21 8B 80 13 00 00 00 00 00 00 28 [09:44:00]Write i2c OK [09:44:00]MH_I2C_Read... [09:44:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:00]Read from MH i2c: E2 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: E2 62 00 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: E2 62 00 21 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2B 26 01 00 0E 04 04 00 AD 00 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 B3 [09:44:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2B 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:00]wFMCommunicate OK [09:44:00]SAM_PROTO_GetFieldsCounters done [09:44:00]requested_item shift.num is exist - process it [09:44:00]requested_item shift.opened is exist - process it [09:44:00]req_shift_opened [09:44:00]FM_GetShiftState [09:44:00]SAM_PROTO_GetShiftState [09:44:00]wFMCommunicate request_size=4 [09:44:00]MH_SAM_APDU [09:44:00]CAPDU: 80 13 01 00 [09:44:00]Write to MH i2c: E2 08 00 22 8B 80 13 01 00 00 00 00 00 2A [09:44:00]Write i2c OK [09:44:00]MH_I2C_Read... [09:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:00]Read from MH i2c: E2 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: E2 0E 00 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: E2 0E 00 22 8B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8F [09:44:00]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:44:00]wFMCommunicate OK [09:44:00]SAM_PROTO_GetShiftState done [09:44:00]FM_GetShiftState done [09:44:00]req_shift_opened done [09:44:00]requested_item shift.open_date is exist - process it [09:44:00]req_shift_open_date [09:44:00]req_shift_open_date done [09:44:00]produce_requested_data done [09:44:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75307,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:44:00]process_action_free close_receipt [09:44:00]json_value_free [09:44:00]json_value_free done [09:44:00]process_json_proto returns [09:44:00]Send response to host [09:44:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75307,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:44:00]free response buf [09:44:00]execute_script done [09:44:00]execute_script returns [09:44:00]free content buf [09:44:00]Sock 7.Close socket [09:44:00]Sock 7.Thread stoped [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:13]accept exits with 9 [09:44:13]New connection [09:44:13]New thread 3067321700 created [09:44:13]Thread 3067465060 joined [09:44:13]Waiting for new connection... [09:44:13] Sock 9.Parse request [09:44:13]Sock 9.Check first char [09:44:13]Sock 9.First char is OK [09:44:13]request: POST /json_proto HTTP/1.0 [09:44:13]Method: POST [09:44:13]URL: /json_proto [09:44:13]Method is POST - this is cgi request [09:44:13]url: /json_proto [09:44:13]query_string will be loaded in cgi processing [09:44:13]execute_cgi json_proto POST (null) [09:44:13]execute_cgi path=json_proto method=POST [09:44:13]POST find Content-Length [09:44:13]Host: 172.17.44.196:8080 [09:44:13]Content-Length: 675 [09:44:13]Content-Type: application/json [09:44:13] [09:44:13]POST finish read [09:44:13]Found Content-Length = 675 [09:44:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:44:13]execute_script... [09: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)1965276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:44:13]POST & json_proto [09:44:13]process_json_proto [09:44:13]json parsed OK: [09:44:13]protocol is kg_v1.0 [09:44:13]action value=close_receipt [09:44:13]process_action close_receipt [09:44:13]cmd_close_receipt [09:44:13]MH_GetDate [09:44:13]Write to MH i2c: F0 00 00 23 8B 9D [09:44:13]Write i2c OK [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: F0 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: F0 09 00 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: F0 09 00 23 8B 00 74 C5 18 67 E7 19 F8 65 BB [09:44:13]GetLastDocTimeStamp 1729676643 [09:44:13]current date 1729676660 [09:44:13]FM_GetShiftState [09:44:13]SAM_PROTO_GetShiftState [09:44:13]wFMCommunicate request_size=4 [09:44:13]MH_SAM_APDU [09:44:13]CAPDU: 80 13 01 00 [09:44:13]Write to MH i2c: E2 08 00 24 8B 80 13 01 00 00 00 00 00 2C [09:44:13]Write i2c OK [09:44:13]MH_I2C_Read... [09:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:13]Read from MH i2c: E2 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: E2 0E 00 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: E2 0E 00 24 8B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 91 [09:44:13]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:44:13]wFMCommunicate OK [09:44:13]SAM_PROTO_GetShiftState done [09:44:13]FM_GetShiftState done [09:44:13]opened in 1729642905 [09:44:13]opened+sec_in_day 1729729305 [09:44:13]quantity*price = 50063 [09:44:13]sum+1 = 50064 [09:44:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 41 23.10.2024 09:44 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75308 ФПД: 39388258581123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094420&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75308&fm=39388258581123&tin=02508201610067®Number=0000000000161154&sum=50000 [09:44:14]StoreToDocumentArchive [09:44:14]shift 173 fd 75308 [09:44:14]save to /storage/0173/doc_00075308 [09:44:14]save last doc name /storage/0173/doc_00075308 to /storage/kkm_last_doc_name [09:44:14]save OK [09:44:14]Clear old archive folders... [09:44:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:44:14]tlvbuf is 00E8D6C0 [09:44:14]SAM_PROTO_ClearQueue [09:44:14]wFMCommunicate request_size=4 [09:44:14]MH_SAM_APDU [09:44:14]CAPDU: 80 09 00 00 [09:44:14]Write to MH i2c: E2 08 00 31 8B 80 09 00 00 00 00 00 00 2E [09:44:14]Write i2c OK [09:44:14]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 31 8B 00 90 00 30 [09:44:15]RAPDU: 90 00 [09:44:15]wFMCommunicate OK [09:44:15]SAM_PROTO_ClearQueue done [09:44:15]KKMCreateOFDPacket [09:44:15]OFDProtocolAddRootSTLVToBuf [09:44:15]FM_MakeSignedData [09:44:15]FM_MakeSignedData [09:44:15]SAM_PROTO_SignData [09:44:15]wFMCommunicate request_size=4 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 0D 01 02 [09:44:15]Write to MH i2c: E2 08 00 32 8B 80 0D 01 02 00 00 00 00 36 [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 32 8B 00 90 00 31 [09:44:15]RAPDU: 90 00 [09:44:15]wFMCommunicate OK [09:44:15]wFMCommunicate request_size=255 [09:44:15]MH_SAM_APDU [09:44: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 29 00 00 00 F4 03 04 00 74 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 26 01 00 35 04 06 00 23 D2 CB 29 [09:44:15]Write to MH i2c: E2 02 01 33 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 29 00 00 00 F4 03 04 00 74 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 26 01 00 35 04 06 00 23 D2 CB 29 00 00 00 [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 33 8B 00 90 00 32 [09:44:15]RAPDU: 90 00 [09:44:15]wFMCommunicate OK [09:44:15]wFMCommunicate request_size=7 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 0D 02 02 02 3A 83 [09:44:15]Write to MH i2c: E2 0A 00 34 8B 80 0D 02 02 02 00 3A 83 00 00 FA [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 34 8B 00 90 00 33 [09:44:15]RAPDU: 90 00 [09:44:15]wFMCommunicate OK [09:44:15]wFMCommunicate request_size=4 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 0D 03 02 [09:44:15]Write to MH i2c: E2 08 00 35 8B 80 0D 03 02 00 00 00 00 3B [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 0B 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 0B 00 35 8B 00 D2 65 47 60 CA A5 1A F4 90 00 97 [09:44:15]RAPDU: D2 65 47 60 CA A5 1A F4 90 00 [09:44:15]wFMCommunicate OK [09:44:15]SAM_PROTO_SignData done [09:44:15]FM_MakeSignedData done [09:44:15]CreateOFDProtocolMessage [09:44:15]wFMCommunicate request_size=4 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 11 00 00 [09:44:15]Write to MH i2c: E2 08 00 36 8B 80 11 00 00 00 00 00 00 3B [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 17 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 17 00 36 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 88 [09:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:44:15]wFMCommunicate OK [09:44:15]CreateOFDProtocolMessage done [09:44:15]OFDSenderStorePacket 75308 [09:44:15]StoreOFDPacket docnum=75308 [09:44:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 C3 BF 04 01 27 18 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 29 00 00 00 F4 03 04 00 74 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 26 01 00 35 04 06 00 23 D2 CB 29 3A 83 D2 65 47 60 CA A5 1A F4 [09:44:15]CheckFolder [09:44:15]dirname=/storage/ofd_packets [09:44:15]CheckFolder done [09:44:15]ProducePacketName [09:44:15]name=ofd_packets/00075308 [09:44:15]NVStorageSaveData ofd_packets/00075308 [09:44:15]File name is /storage/ofd_packets/00075308 [09:44:15]Write 298 bytes [09:44:15]NVStorageSaveData done [09:44:15]OFDSenderStorePacket done [09:44:15]KKMCreateOFDPacket done [09:44:15]NVStorageSaveData kkm_last_timestamp [09:44:15]File name is /storage/kkm_last_timestamp [09:44:15]Write 4 bytes [09:44:15]NVStorageSaveData done [09:44:15]ExternCall_PrintAddStr [09:44:15]wPrintStart [09:44:15]Write to MH i2c: 01 00 00 37 8B C2 [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: 01 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: 01 07 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: 01 07 00 37 8B 00 00 00 00 00 FF 0F D7 [09:44:15]RasterBufferAndPrint [09:44:15]line Счет N : (1)1965276 [09:44:15]line ИНН: 02508201610067 [09:44:15]line Контрольно-Кассовый Чек [09:44:15]line ПРОДАЖА [09:44:15]line ТРК (МРК, ГНК) : 41 [09:44:15]line Товар: 2710194210 [09:44:15]line ДТ-К-5 [09:44:15]line 6.570 * 76.20 [09:44:15]line = 500.63 [09:44:15]line НДС 12% НСП 1% [09:44:15]line > о реализуемом товаре [09:44:15]line ОКРУГЛЕНИЕ: -0.63 [09:44:15]line ИТОГО: 500.00 [09:44:15]line Внесено: 500.00 [09:44:15]line СДАЧА: 0.00 [09:44:15]line НСП 1% : 4.43 [09:44:15]line НДС 12% : 53.16 [09:44:15]line Наличными: 500.00 [09:44:15]line Безнал.: 0.00 [09:44:15]line Место: АЗС № 133 "Партнер Нефть" [09:44:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:44:15]line СНО: Общий режим [09:44:15]line Чек 41 23.10.2024 09:44 [09:44:15]line Смена: 173 ФФД: 1.0 [09:44:15]line ЗНМ: 0300000020 [09:44:15]line РНМ: 0000000000161154 [09:44:15]line Версия ККМ: v1.0 [09:44:15]line ФМ: 0000000000963323 [09:44:15]line ФД: 75308 [09:44:15]line ФПД: 39388258581123 [09:44:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094420&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75308&fm=39388258581123&tin=02508201610067®Number=0000000000161154&sum=50000 [09:44:15]written 0, free lines is 4095 [09:44:15]OFD Sender: Processing packet 75308 [packets to send 15, broken 14] [09:44:15]ProducePacketName [09:44:15]name=ofd_packets/00075308 [09:44:15]OFD Sender: To server: pG, [09:44:15]CommunicateWithHost lk.salyk.kg:30040 [09:44:15]ConnectInit lk.salyk.kg [09:44:15]Connected sock=10 [09:44:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 C3 BF 04 01 27 18 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 29 00 00 00 F4 03 04 00 74 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 26 01 00 35 04 06 00 23 D2 CB 29 3A 83 D2 65 47 60 CA A5 1A F4 [09:44:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AA D0 47 00 AA FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2C 26 01 00 F4 03 04 00 4F 6E 18 67 B6 04 01 00 00 A3 6F 6B 0E 67 D6 42 65 [09:44:15]CommunicateWithHost err = 0 [09:44:15]CheckOFDResponse [09:44:15]1017 (14) - 77093643461234 [09:44:15]1041 (16) - 0000000000963323 [09:44:15]1040 (4) - 75308 [09:44:15]1012 (4) - 23.10.2024 03:32 [09:44:15]1206 (1) - 0 [09:44:15]OFD Sender: Remove packet 75308 [09:44:15]ProducePacketName [09:44:15]name=ofd_packets/00075308 [09:44:15]NVStorageDeleteData [09:44:15]Write to MH i2c: 01 00 00 61 8B EC [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: 01 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: 01 07 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: 01 07 00 61 8B 00 00 00 00 00 B0 0C AF [09:44:15]RasterBufferAndPrint [09:44:15]line [09:44:15]line [09:44:15]line [09:44:15]line [09:44:15]line [09:44:15]written 0, free lines is 3255 [09:44:15]MH_Cut [09:44:15]Write to MH i2c: D1 01 00 68 8B 01 C5 [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: D1 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: D1 01 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: D1 01 00 68 8B 00 C4 [09:44:15]Write to MH i2c: 01 00 00 69 8B F4 [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:16]OFD Sender: No OFD packet to send [09:44:16]*** Cut start [09:44:16]*** Partial cut [09:44:16]*** CUTSNS_PIN = 1 [09:44:16]*** CUTSNS_PIN = 0 [09:44:17]*** Brake cut motor [09:44:17]Read from MH i2c: 01 [09:44:17]MH_I2C_Read... [09:44:17]*** Stop cut motor [09:44:17]*** Cut end [09:44:17]Read from MH i2c: 01 07 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: 01 07 00 69 8B 00 00 00 00 00 FF 0F 09 [09:44:17]process_action close_receipt done [09:44:17]requested_data is exist [09:44:17]produce_requested_data [09:44:17]requested_item fm.sn is exist - process it [09:44:17]wFMCommunicate request_size=4 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 11 00 00 [09:44:17]Write to MH i2c: E2 08 00 6A 8B 80 11 00 00 00 00 00 00 6F [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 17 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 17 00 6A 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BC [09:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:44:17]wFMCommunicate OK [09:44:17]requested_item fd.num is exist - process it [09:44:17]SAM_PROTO_GetFieldsCounters [09:44:17]wFMCommunicate request_size=4 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 13 00 00 [09:44:17]Write to MH i2c: E2 08 00 6B 8B 80 13 00 00 00 00 00 00 72 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 62 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 62 00 6B 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2C 26 01 00 0E 04 04 00 AD 00 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 01 [09:44:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2C 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:17]wFMCommunicate OK [09:44:17]SAM_PROTO_GetFieldsCounters done [09:44:17]requested_item shift.num is exist - process it [09:44:17]requested_item shift.opened is exist - process it [09:44:17]req_shift_opened [09:44:17]FM_GetShiftState [09:44:17]SAM_PROTO_GetShiftState [09:44:17]wFMCommunicate request_size=4 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 13 01 00 [09:44:17]Write to MH i2c: E2 08 00 6C 8B 80 13 01 00 00 00 00 00 74 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 0E 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 0E 00 6C 8B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D9 [09:44:17]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:44:17]wFMCommunicate OK [09:44:17]SAM_PROTO_GetShiftState done [09:44:17]FM_GetShiftState done [09:44:17]req_shift_opened done [09:44:17]requested_item shift.open_date is exist - process it [09:44:17]req_shift_open_date [09:44:17]req_shift_open_date done [09:44:17]produce_requested_data done [09:44:17]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75308,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:44:17]process_action_free close_receipt [09:44:17]json_value_free [09:44:17]json_value_free done [09:44:17]process_json_proto returns [09:44:17]Send response to host [09:44:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75308,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:44:17]free response buf [09:44:17]execute_script done [09:44:17]execute_script returns [09:44:17]free content buf [09:44:17]Sock 9.Close socket [09:44:17]Sock 9.Thread stoped [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:54]accept exits with 7 [09:44:54]New connection [09:44:54]New thread 3067465060 created [09:44:54]Thread 3067321700 joined [09:44:54]Waiting for new connection... [09:44:54] Sock 7.Parse request [09:44:54]Sock 7.Check first char [09:44:54]Sock 7.First char is OK [09:44:54]request: POST /json_proto HTTP/1.0 [09:44:54]Method: POST [09:44:54]URL: /json_proto [09:44:54]Method is POST - this is cgi request [09:44:54]url: /json_proto [09:44:54]query_string will be loaded in cgi processing [09:44:54]execute_cgi json_proto POST (null) [09:44:54]execute_cgi path=json_proto method=POST [09:44:54]POST find Content-Length [09:44:54]Host: 172.17.44.196:8080 [09:44:54]Content-Length: 644 [09:44:54]Content-Type: application/json [09:44:54] [09:44:54]POST finish read [09:44:54]Found Content-Length = 644 [09:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273208", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 4.000, "sum" : 224.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 224.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:54]execute_script... [09:44:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273208", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 4.000, "sum" : 224.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 224.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:54]POST & json_proto [09:44:54]process_json_proto [09:44:54]json parsed OK: [09:44:54]protocol is kg_v1.0 [09:44:54]action value=close_receipt [09:44:54]process_action close_receipt [09:44:54]cmd_close_receipt [09:44:54]MH_GetDate [09:44:54]Write to MH i2c: F0 00 00 6D 8B E7 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: F0 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: F0 09 00 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: F0 09 00 6D 8B 00 9D C5 18 67 E7 19 F8 65 2E [09:44:54]GetLastDocTimeStamp 1729676660 [09:44:54]current date 1729676701 [09:44:54]FM_GetShiftState [09:44:54]SAM_PROTO_GetShiftState [09:44:54]wFMCommunicate request_size=4 [09:44:54]MH_SAM_APDU [09:44:54]CAPDU: 80 13 01 00 [09:44:54]Write to MH i2c: E2 08 00 6E 8B 80 13 01 00 00 00 00 00 76 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:54]Read from MH i2c: E2 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: E2 0E 00 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: E2 0E 00 6E 8B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 DB [09:44:54]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:44:54]wFMCommunicate OK [09:44:54]SAM_PROTO_GetShiftState done [09:44:54]FM_GetShiftState done [09:44:54]opened in 1729642905 [09:44:54]opened+sec_in_day 1729729305 [09:44:54]quantity*price = 22400 [09:44:54]sum+1 = 22401 [09:44:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 224.00 НСП 1% : 1.98 НДС 12% : 23.79 Наличными: 224.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 42 23.10.2024 09:45 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75309 ФПД: 181091244996050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094501&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75309&fm=181091244996050&tin=02508201610067®Number=0000000000161154&sum=22400 0 [09:44:55]StoreToDocumentArchive [09:44:55]shift 173 fd 75309 [09:44:55]save to /storage/0173/doc_00075309 [09:44:55]save last doc name /storage/0173/doc_00075309 to /storage/kkm_last_doc_name [09:44:55]save OK [09:44:55]Clear old archive folders... [09:44:55]ProcessDocumentItem done err = 0, tmpTLVsize=281 [09:44:55]tlvbuf is 00DBC1C0 [09:44:55]SAM_PROTO_ClearQueue [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 09 00 00 [09:44:55]Write to MH i2c: E2 08 00 7B 8B 80 09 00 00 00 00 00 00 78 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:55]Read from MH i2c: E2 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 03 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 03 00 7B 8B 00 90 00 7A [09:44:55]RAPDU: 90 00 [09:44:55]wFMCommunicate OK [09:44:55]SAM_PROTO_ClearQueue done [09:44:55]KKMCreateOFDPacket [09:44:55]OFDProtocolAddRootSTLVToBuf [09:44:55]FM_MakeSignedData [09:44:55]FM_MakeSignedData [09:44:55]SAM_PROTO_SignData [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 0D 01 02 [09:44:55]Write to MH i2c: E2 08 00 7C 8B 80 0D 01 02 00 00 00 00 80 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:55]Read from MH i2c: E2 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 03 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 03 00 7C 8B 00 90 00 7B [09:44:55]RAPDU: 90 00 [09:44:55]wFMCommunicate OK [09:44:55]wFMCommunicate request_size=255 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 80 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 09 00 00 00 00 07 04 06 00 80 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 9D C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 [09:44:55]Write to MH i2c: E2 02 01 7D 8B 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 80 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 09 00 00 00 00 07 04 06 00 80 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 9D C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 E2 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 7D 8B 00 90 00 7C [09:44:56]RAPDU: 90 00 [09:44:56]wFMCommunicate OK [09:44:56]wFMCommunicate request_size=40 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 26 01 00 35 04 06 00 A4 B3 97 54 75 D2 [09:44:56]Write to MH i2c: E2 2B 00 7E 8B 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 26 01 00 35 04 06 00 A4 B3 97 54 75 D2 00 00 17 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 7E 8B 00 90 00 7D [09:44:56]RAPDU: 90 00 [09:44:56]wFMCommunicate OK [09:44:56]wFMCommunicate request_size=4 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 0D 03 02 [09:44:56]Write to MH i2c: E2 08 00 7F 8B 80 0D 03 02 00 00 00 00 85 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 0B 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 0B 00 7F 8B 00 63 6C F1 82 D9 22 E8 7D 90 00 28 [09:44:56]RAPDU: 63 6C F1 82 D9 22 E8 7D 90 00 [09:44:56]wFMCommunicate OK [09:44:56]SAM_PROTO_SignData done [09:44:56]FM_MakeSignedData done [09:44:56]CreateOFDProtocolMessage [09:44:56]wFMCommunicate request_size=4 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 11 00 00 [09:44:56]Write to MH i2c: E2 08 00 80 8B 80 11 00 00 00 00 00 00 85 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 17 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 17 00 80 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D2 [09:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:44:56]wFMCommunicate OK [09:44:56]CreateOFDProtocolMessage done [09:44:56]OFDSenderStorePacket 75309 [09:44:56]StoreOFDPacket docnum=75309 [09:44:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2D 01 00 00 80 71 25 01 0B 81 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 80 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 09 00 00 00 00 07 04 06 00 80 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 9D C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 26 01 00 35 04 06 00 A4 B3 97 54 75 D2 63 6C F1 82 D9 22 E8 7D [09:44:56]CheckFolder [09:44:56]dirname=/storage/ofd_packets [09:44:56]CheckFolder done [09:44:56]ProducePacketName [09:44:56]name=ofd_packets/00075309 [09:44:56]NVStorageSaveData ofd_packets/00075309 [09:44:56]File name is /storage/ofd_packets/00075309 [09:44:56]Write 331 bytes [09:44:56]NVStorageSaveData done [09:44:56]OFDSenderStorePacket done [09:44:56]KKMCreateOFDPacket done [09:44:56]NVStorageSaveData kkm_last_timestamp [09:44:56]File name is /storage/kkm_last_timestamp [09:44:56]Write 4 bytes [09:44:56]NVStorageSaveData done [09:44:56]ExternCall_PrintAddStr [09:44:56]wPrintStart [09:44:56]Write to MH i2c: 01 00 00 81 8B 0C [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: 01 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: 01 07 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: 01 07 00 81 8B 00 00 00 00 00 FF 0F 21 [09:44:56]RasterBufferAndPrint [09:44:56]line Счет N : (3)273208 [09:44:56]line ИНН: 02508201610067 [09:44:56]line Контрольно-Кассовый Чек [09:44:56]line ПРОДАЖА [09:44:56]line Товар: 4607065001445 [09:44:56]line Шок батончик Snickers 50,5г [09:44:56]line 4.000 * 56.00 [09:44:56]line = 224.00 [09:44:56]line НДС 12% НСП 1% [09:44:56]line > о реализуемом товаре [09:44:56]line ИТОГО: 224.00 [09:44:56]line НСП 1% : 1.98 [09:44:56]line НДС 12% : 23.79 [09:44:56]line Наличными: 224.00 [09:44:56]line Безнал.: 0.00 [09:44:56]line Место: АЗС № 133 "Партнер Нефть" [09:44:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:44:56]line СНО: Общий режим [09:44:56]line Чек 42 23.10.2024 09:45 [09:44:56]line Смена: 173 ФФД: 1.0 [09:44:56]line ЗНМ: 0300000020 [09:44:56]line РНМ: 0000000000161154 [09:44:56]line Версия ККМ: v1.0 [09:44:56]line ФМ: 0000000000963323 [09:44:56]line ФД: 75309 [09:44:56]line ФПД: 181091244996050 [09:44:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094501&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75309&fm=181091244996050&tin=02508201610067®Number=0000000000161154&sum=22400 [09:44:56]line 0 [09:44:56]OFD Sender: Processing packet 75309 [packets to send 15, broken 14] [09:44:56]ProducePacketName [09:44:56]name=ofd_packets/00075309 [09:44:56]OFD Sender: To server: pG, [09:44:56]CommunicateWithHost lk.salyk.kg:30040 [09:44:56]ConnectInit lk.salyk.kg [09:44:56]written 0, free lines is 4095 [09:44:56]Connected sock=11 [09:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2D 01 00 00 80 71 25 01 0B 81 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 80 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 09 00 00 00 00 07 04 06 00 80 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 9D C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2D 26 01 00 35 04 06 00 A4 B3 97 54 75 D2 63 6C F1 82 D9 22 E8 7D [09:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F0 61 47 00 EA 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 39 36 33 33 32 33 10 04 04 00 2D 26 01 00 F4 03 04 00 78 6E 18 67 B6 04 01 00 00 81 C5 B8 7A EC 54 EB B1 [09:44:56]CommunicateWithHost err = 0 [09:44:56]CheckOFDResponse [09:44:56]1017 (14) - 77093643461234 [09:44:56]1041 (16) - 0000000000963323 [09:44:56]1040 (4) - 75309 [09:44:56]1012 (4) - 23.10.2024 03:33 [09:44:56]1206 (1) - 0 [09:44:56]OFD Sender: Remove packet 75309 [09:44:56]ProducePacketName [09:44:56]name=ofd_packets/00075309 [09:44:56]NVStorageDeleteData [09:44:57]Write to MH i2c: 01 00 00 A8 8B 33 [09:44:57]Write i2c OK [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: 01 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: 01 07 00 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: 01 07 00 A8 8B 00 00 00 00 00 E2 0C 28 [09:44:57]RasterBufferAndPrint [09:44:57]line [09:44:57]line [09:44:57]line [09:44:57]line [09:44:57]line [09:44:57]written 0, free lines is 3302 [09:44:57]MH_Cut [09:44:57]Write to MH i2c: D1 01 00 AF 8B 01 0C [09:44:57]Write i2c OK [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: D1 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: D1 01 00 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: D1 01 00 AF 8B 00 0B [09:44:57]Write to MH i2c: 01 00 00 B0 8B 3B [09:44:57]Write i2c OK [09:44:57]MH_I2C_Read... [09:44:57]OFD Sender: No OFD packet to send [09:44:57]*** Cut start [09:44:57]*** Partial cut [09:44:57]*** CUTSNS_PIN = 1 [09:44:57]*** CUTSNS_PIN = 0 [09:44:58]*** Brake cut motor [09:44:58]Read from MH i2c: 01 [09:44:58]MH_I2C_Read... [09:44:58]*** Stop cut motor [09:44:58]*** Cut end [09:44:58]Read from MH i2c: 01 07 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: 01 07 00 B0 8B 00 00 00 00 00 FF 0F 50 [09:44:58]process_action close_receipt done [09:44:58]requested_data is exist [09:44:58]produce_requested_data [09:44:58]requested_item fm.sn is exist - process it [09:44:58]wFMCommunicate request_size=4 [09:44:58]MH_SAM_APDU [09:44:58]CAPDU: 80 11 00 00 [09:44:58]Write to MH i2c: E2 08 00 B1 8B 80 11 00 00 00 00 00 00 B6 [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:58]Read from MH i2c: E2 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 17 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 17 00 B1 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 03 [09:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:44:58]wFMCommunicate OK [09:44:58]requested_item fd.num is exist - process it [09:44:58]SAM_PROTO_GetFieldsCounters [09:44:58]wFMCommunicate request_size=4 [09:44:58]MH_SAM_APDU [09:44:58]CAPDU: 80 13 00 00 [09:44:58]Write to MH i2c: E2 08 00 B2 8B 80 13 00 00 00 00 00 00 B9 [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:58]Read from MH i2c: E2 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 62 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 62 00 B2 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2D 26 01 00 0E 04 04 00 AD 00 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 4C [09:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2D 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:58]wFMCommunicate OK [09:44:58]SAM_PROTO_GetFieldsCounters done [09:44:58]requested_item shift.num is exist - process it [09:44:58]requested_item shift.opened is exist - process it [09:44:58]req_shift_opened [09:44:58]FM_GetShiftState [09:44:58]SAM_PROTO_GetShiftState [09:44:58]wFMCommunicate request_size=4 [09:44:58]MH_SAM_APDU [09:44:58]CAPDU: 80 13 01 00 [09:44:58]Write to MH i2c: E2 08 00 B3 8B 80 13 01 00 00 00 00 00 BB [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:58]Read from MH i2c: E2 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 0E 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 0E 00 B3 8B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 20 [09:44:58]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:44:58]wFMCommunicate OK [09:44:58]SAM_PROTO_GetShiftState done [09:44:58]FM_GetShiftState done [09:44:58]req_shift_opened done [09:44:58]requested_item shift.open_date is exist - process it [09:44:58]req_shift_open_date [09:44:58]req_shift_open_date done [09:44:58]produce_requested_data done [09:44:58]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75309,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:44:58]process_action_free close_receipt [09:44:58]json_value_free [09:44:58]json_value_free done [09:44:58]process_json_proto returns [09:44:58]Send response to host [09:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75309,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:44:58]free response buf [09:44:58]execute_script done [09:44:58]execute_script returns [09:44:58]free content buf [09:44:58]Sock 7.Close socket [09:44:58]Sock 7.Thread stoped [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:33]accept exits with 9 [09:45:33]New connection [09:45:33]New thread 3067321700 created [09:45:33]Thread 3067465060 joined [09:45:33]Waiting for new connection... [09:45:33] Sock 9.Parse request [09:45:33]Sock 9.Check first char [09:45:33]Sock 9.First char is OK [09:45:33]request: POST /json_proto HTTP/1.0 [09:45:33]Method: POST [09:45:33]URL: /json_proto [09:45:33]Method is POST - this is cgi request [09:45:33]url: /json_proto [09:45:33]query_string will be loaded in cgi processing [09:45:33]execute_cgi json_proto POST (null) [09:45:33]execute_cgi path=json_proto method=POST [09:45:33]POST find Content-Length [09:45:33]Host: 172.17.44.196:8080 [09:45:33]Content-Length: 673 [09:45:33]Content-Type: application/json [09:45:33] [09:45:33]POST finish read [09:45:33]Found Content-Length = 673 [09:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273209", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:33]execute_script... [09:45:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273209", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:33]POST & json_proto [09:45:33]process_json_proto [09:45:33]json parsed OK: [09:45:33]protocol is kg_v1.0 [09:45:33]action value=close_receipt [09:45:33]process_action close_receipt [09:45:33]cmd_close_receipt [09:45:33]MH_GetDate [09:45:33]Write to MH i2c: F0 00 00 B4 8B 2E [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 09 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 09 00 B4 8B 00 C4 C5 18 67 E7 19 F8 65 9C [09:45:33]GetLastDocTimeStamp 1729676701 [09:45:33]current date 1729676740 [09:45:33]FM_GetShiftState [09:45:33]SAM_PROTO_GetShiftState [09:45:33]wFMCommunicate request_size=4 [09:45:33]MH_SAM_APDU [09:45:33]CAPDU: 80 13 01 00 [09:45:33]Write to MH i2c: E2 08 00 B5 8B 80 13 01 00 00 00 00 00 BD [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:33]Read from MH i2c: E2 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 0E 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 0E 00 B5 8B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 22 [09:45:33]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:45:33]wFMCommunicate OK [09:45:33]SAM_PROTO_GetShiftState done [09:45:33]FM_GetShiftState done [09:45:33]opened in 1729642905 [09:45:33]opened+sec_in_day 1729729305 [09:45:33]quantity*price = 22500 [09:45:33]sum+1 = 22501 [09:45:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 43 23.10.2024 09:45 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75310 ФПД: 260973514492971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094540&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75310&fm=260973514492971&tin=02508201610067®Number=0000000000161154&sum=22500 0 [09:45:34]StoreToDocumentArchive [09:45:34]shift 173 fd 75310 [09:45:34]save to /storage/0173/doc_00075310 [09:45:34]save last doc name /storage/0173/doc_00075310 to /storage/kkm_last_doc_name [09:45:34]save OK [09:45:34]Clear old archive folders... [09:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=297 [09:45:34]tlvbuf is 00DBBD90 [09:45:34]SAM_PROTO_ClearQueue [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 09 00 00 [09:45:34]Write to MH i2c: E2 08 00 C2 8B 80 09 00 00 00 00 00 00 BF [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 C2 8B 00 90 00 C1 [09:45:34]RAPDU: 90 00 [09:45:34]wFMCommunicate OK [09:45:34]SAM_PROTO_ClearQueue done [09:45:34]KKMCreateOFDPacket [09:45:34]OFDProtocolAddRootSTLVToBuf [09:45:34]FM_MakeSignedData [09:45:34]FM_MakeSignedData [09:45:34]SAM_PROTO_SignData [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 0D 01 02 [09:45:34]Write to MH i2c: E2 08 00 C3 8B 80 0D 01 02 00 00 00 00 C7 [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 C3 8B 00 90 00 C2 [09:45:34]RAPDU: 90 00 [09:45:34]wFMCommunicate OK [09:45:34]wFMCommunicate request_size=255 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C4 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [09:45:34]Write to MH i2c: E2 02 01 C4 8B 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C4 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 E7 [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 C4 8B 00 90 00 C3 [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=56 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 26 01 00 35 04 06 00 ED 5A A1 A0 8C 2B [09:45:35]Write to MH i2c: E2 3B 00 C5 8B 80 0D 02 02 33 00 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 26 01 00 35 04 06 00 ED 5A A1 A0 8C 2B 00 00 DC [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 C5 8B 00 90 00 C4 [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 03 02 [09:45:35]Write to MH i2c: E2 08 00 C6 8B 80 0D 03 02 00 00 00 00 CC [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0B 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0B 00 C6 8B 00 07 20 D4 8F 61 52 F5 F7 90 00 F6 [09:45:35]RAPDU: 07 20 D4 8F 61 52 F5 F7 90 00 [09:45:35]wFMCommunicate OK [09:45:35]SAM_PROTO_SignData done [09:45:35]FM_MakeSignedData done [09:45:35]CreateOFDProtocolMessage [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 11 00 00 [09:45:35]Write to MH i2c: E2 08 00 C7 8B 80 11 00 00 00 00 00 00 CC [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 17 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 17 00 C7 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 19 [09:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:45:35]wFMCommunicate OK [09:45:35]CreateOFDProtocolMessage done [09:45:35]OFDSenderStorePacket 75310 [09:45:35]StoreOFDPacket docnum=75310 [09:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3D 01 00 00 B3 F8 35 01 17 B9 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C4 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 26 01 00 35 04 06 00 ED 5A A1 A0 8C 2B 07 20 D4 8F 61 52 F5 F7 [09:45:35]CheckFolder [09:45:35]dirname=/storage/ofd_packets [09:45:35]CheckFolder done [09:45:35]ProducePacketName [09:45:35]name=ofd_packets/00075310 [09:45:35]NVStorageSaveData ofd_packets/00075310 [09:45:35]File name is /storage/ofd_packets/00075310 [09:45:35]Write 347 bytes [09:45:35]NVStorageSaveData done [09:45:35]OFDSenderStorePacket done [09:45:35]KKMCreateOFDPacket done [09:45:35]NVStorageSaveData kkm_last_timestamp [09:45:35]File name is /storage/kkm_last_timestamp [09:45:35]Write 4 bytes [09:45:35]NVStorageSaveData done [09:45:35]ExternCall_PrintAddStr [09:45:35]wPrintStart [09:45:35]Write to MH i2c: 01 00 00 C8 8B 53 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 07 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 07 00 C8 8B 00 00 00 00 00 FF 0F 68 [09:45:35]RasterBufferAndPrint [09:45:35]line Счет N : (3)273209 [09:45:35]line ИНН: 02508201610067 [09:45:35]line Контрольно-Кассовый Чек [09:45:35]line ПРОДАЖА [09:45:35]line Товар: 4670003190051 [09:45:35]line Антифриз SIBIRIA ANTIFREEZE ОЖ40 крас 1л [09:45:35]line 1.000 * 225.00 [09:45:35]line = 225.00 [09:45:35]line НДС 12% НСП 1% [09:45:35]line > о реализуемом товаре [09:45:35]line ИТОГО: 225.00 [09:45:35]line НСП 1% : 1.99 [09:45:35]line НДС 12% : 23.89 [09:45:35]line Наличными: 225.00 [09:45:35]line Безнал.: 0.00 [09:45:35]line Место: АЗС № 133 "Партнер Нефть" [09:45:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:45:35]line СНО: Общий режим [09:45:35]line Чек 43 23.10.2024 09:45 [09:45:35]line Смена: 173 ФФД: 1.0 [09:45:35]line ЗНМ: 0300000020 [09:45:35]line РНМ: 0000000000161154 [09:45:35]line Версия ККМ: v1.0 [09:45:35]line ФМ: 0000000000963323 [09:45:35]line ФД: 75310 [09:45:35]line ФПД: 260973514492971 [09:45:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094540&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75310&fm=260973514492971&tin=02508201610067®Number=0000000000161154&sum=22500 [09:45:35]line 0 [09:45:35]OFD Sender: Processing packet 75310 [packets to send 15, broken 14] [09:45:35]ProducePacketName [09:45:35]name=ofd_packets/00075310 [09:45:35]OFD Sender: To server: pG, [09:45:35]CommunicateWithHost lk.salyk.kg:30040 [09:45:35]ConnectInit lk.salyk.kg [09:45:35]written 0, free lines is 4095 [09:45:35]Connected sock=10 [09:45:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3D 01 00 00 B3 F8 35 01 17 B9 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C4 C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 26 01 00 35 04 06 00 ED 5A A1 A0 8C 2B 07 20 D4 8F 61 52 F5 F7 [09:45:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3D 87 47 00 35 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2E 26 01 00 F4 03 04 00 9F 6E 18 67 B6 04 01 00 00 E3 08 97 FF AD 56 7E CE [09:45:35]CommunicateWithHost err = 0 [09:45:35]CheckOFDResponse [09:45:35]1017 (14) - 77093643461234 [09:45:35]1041 (16) - 0000000000963323 [09:45:35]1040 (4) - 75310 [09:45:35]1012 (4) - 23.10.2024 03:33 [09:45:35]1206 (1) - 0 [09:45:35]OFD Sender: Remove packet 75310 [09:45:35]ProducePacketName [09:45:35]name=ofd_packets/00075310 [09:45:35]NVStorageDeleteData [09:45:36]Write to MH i2c: 01 00 00 F0 8B 7B [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 07 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 07 00 F0 8B 00 00 00 00 00 D5 0C 63 [09:45:36]RasterBufferAndPrint [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]written 0, free lines is 3290 [09:45:36]MH_Cut [09:45:36]Write to MH i2c: D1 01 00 F7 8B 01 54 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 01 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 01 00 F7 8B 00 53 [09:45:36]Write to MH i2c: 01 00 00 F8 8B 83 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]OFD Sender: No OFD packet to send [09:45:36]*** Cut start [09:45:36]*** Partial cut [09:45:36]*** CUTSNS_PIN = 1 [09:45:37]*** CUTSNS_PIN = 0 [09:45:37]*** Brake cut motor [09:45:37]Read from MH i2c: 01 [09:45:37]MH_I2C_Read... [09:45:37]*** Stop cut motor [09:45:37]*** Cut end [09:45:37]Read from MH i2c: 01 07 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: 01 07 00 F8 8B 00 00 00 00 00 FF 0F 98 [09:45:37]process_action close_receipt done [09:45:37]requested_data is exist [09:45:37]produce_requested_data [09:45:37]requested_item fm.sn is exist - process it [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 11 00 00 [09:45:37]Write to MH i2c: E2 08 00 F9 8B 80 11 00 00 00 00 00 00 FE [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 17 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 17 00 F9 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4B [09:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:45:37]wFMCommunicate OK [09:45:37]requested_item fd.num is exist - process it [09:45:37]SAM_PROTO_GetFieldsCounters [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 13 00 00 [09:45:37]Write to MH i2c: E2 08 00 FA 8B 80 13 00 00 00 00 00 00 01 [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 62 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 62 00 FA 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2E 26 01 00 0E 04 04 00 AD 00 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 98 [09:45:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2E 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:37]wFMCommunicate OK [09:45:37]SAM_PROTO_GetFieldsCounters done [09:45:37]requested_item shift.num is exist - process it [09:45:37]requested_item shift.opened is exist - process it [09:45:37]req_shift_opened [09:45:37]FM_GetShiftState [09:45:37]SAM_PROTO_GetShiftState [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 13 01 00 [09:45:37]Write to MH i2c: E2 08 00 FB 8B 80 13 01 00 00 00 00 00 03 [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 0E 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 0E 00 FB 8B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 68 [09:45:37]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:45:37]wFMCommunicate OK [09:45:37]SAM_PROTO_GetShiftState done [09:45:37]FM_GetShiftState done [09:45:37]req_shift_opened done [09:45:37]requested_item shift.open_date is exist - process it [09:45:37]req_shift_open_date [09:45:37]req_shift_open_date done [09:45:37]produce_requested_data done [09:45:37]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75310,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:45:37]process_action_free close_receipt [09:45:37]json_value_free [09:45:37]json_value_free done [09:45:37]process_json_proto returns [09:45:37]Send response to host [09:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75310,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:45:37]free response buf [09:45:37]execute_script done [09:45:37]execute_script returns [09:45:37]free content buf [09:45:37]Sock 9.Close socket [09:45:37]Sock 9.Thread stoped [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:29]accept exits with 7 [09:46:29]New connection [09:46:29]New thread 3067465060 created [09:46:29]Thread 3067321700 joined [09:46:29]Waiting for new connection... [09:46:29] Sock 7.Parse request [09:46:29]Sock 7.Check first char [09:46:29]Sock 7.First char is OK [09:46:29]request: POST /json_proto HTTP/1.0 [09:46:29]Method: POST [09:46:29]URL: /json_proto [09:46:29]Method is POST - this is cgi request [09:46:29]url: /json_proto [09:46:29]query_string will be loaded in cgi processing [09:46:29]execute_cgi json_proto POST (null) [09:46:29]execute_cgi path=json_proto method=POST [09:46:29]POST find Content-Length [09:46:29]Host: 172.17.44.196:8080 [09:46:29]Content-Length: 977 [09:46:29]Content-Type: application/json [09:46:29] [09:46:29]POST finish read [09:46:29]Found Content-Length = 977 [09:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273210", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:29]execute_script... [09: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 : (3)273210", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:29]POST & json_proto [09:46:29]process_json_proto [09:46:29]json parsed OK: [09:46:29]protocol is kg_v1.0 [09:46:29]action value=close_receipt [09:46:29]process_action close_receipt [09:46:29]cmd_close_receipt [09:46:29]MH_GetDate [09:46:29]Write to MH i2c: F0 00 00 FC 8B 76 [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: F0 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: F0 09 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: F0 09 00 FC 8B 00 FC C5 18 67 E7 19 F8 65 1C [09:46:29]GetLastDocTimeStamp 1729676740 [09:46:29]current date 1729676796 [09:46:29]FM_GetShiftState [09:46:29]SAM_PROTO_GetShiftState [09:46:29]wFMCommunicate request_size=4 [09:46:29]MH_SAM_APDU [09:46:29]CAPDU: 80 13 01 00 [09:46:29]Write to MH i2c: E2 08 00 FD 8B 80 13 01 00 00 00 00 00 05 [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:29]Read from MH i2c: E2 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 0E 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 0E 00 FD 8B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6A [09:46:29]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:46:29]wFMCommunicate OK [09:46:29]SAM_PROTO_GetShiftState done [09:46:29]FM_GetShiftState done [09:46:29]opened in 1729642905 [09:46:29]opened+sec_in_day 1729729305 [09:46:29]quantity*price = 11000 [09:46:29]sum+1 = 11001 [09:46:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003312 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.94 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 44 23.10.2024 09:46 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75311 ФПД: 247650356601219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094636&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75311&fm=247650356601219&tin=02508201610067®Number=0000000000161154&sum=22000 0 [09:46:30]StoreToDocumentArchive [09:46:30]shift 173 fd 75311 [09:46:30]save to /storage/0173/doc_00075311 [09:46:30]save last doc name /storage/0173/doc_00075311 to /storage/kkm_last_doc_name [09:46:30]save OK [09:46:30]Clear old archive folders... [09:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=415 [09:46:30]tlvbuf is 00D60EB0 [09:46:30]SAM_PROTO_ClearQueue [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 09 00 00 [09:46:30]Write to MH i2c: E2 08 00 0A 8C 80 09 00 00 00 00 00 00 08 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 0A 8C 00 90 00 0A [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]SAM_PROTO_ClearQueue done [09:46:30]KKMCreateOFDPacket [09:46:30]OFDProtocolAddRootSTLVToBuf [09:46:30]FM_MakeSignedData [09:46:30]FM_MakeSignedData [09:46:30]SAM_PROTO_SignData [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 01 02 [09:46:30]Write to MH i2c: E2 08 00 0B 8C 80 0D 01 02 00 00 00 00 10 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 0B 8C 00 90 00 0B [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]wFMCommunicate request_size=255 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [09:46:30]Write to MH i2c: E2 02 01 0C 8C 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 1E [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:31]Read from MH i2c: E2 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: E2 03 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: E2 03 00 0C 8C 00 90 00 0C [09:46:31]RAPDU: 90 00 [09:46:31]wFMCommunicate OK [09:46:31]wFMCommunicate request_size=174 [09:46:31]MH_SAM_APDU [09:46:31]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FC C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 26 01 00 35 04 06 00 E1 3C 97 88 A1 83 [09:46:31]Write to MH i2c: E2 B1 00 0D 8C 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FC C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 26 01 00 35 04 06 00 E1 3C 97 88 A1 83 00 00 E4 [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:31]Read from MH i2c: E2 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: E2 03 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: E2 03 00 0D 8C 00 90 00 0D [09:46:31]RAPDU: 90 00 [09:46:31]wFMCommunicate OK [09:46:31]wFMCommunicate request_size=4 [09:46:31]MH_SAM_APDU [09:46:31]CAPDU: 80 0D 03 02 [09:46:31]Write to MH i2c: E2 08 00 0E 8C 80 0D 03 02 00 00 00 00 15 [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:31]Read from MH i2c: E2 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: E2 0B 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: E2 0B 00 0E 8C 00 E9 83 5D B1 04 F3 BB A9 90 00 EB [09:46:31]RAPDU: E9 83 5D B1 04 F3 BB A9 90 00 [09:46:31]wFMCommunicate OK [09:46:31]SAM_PROTO_SignData done [09:46:31]FM_MakeSignedData done [09:46:31]CreateOFDProtocolMessage [09:46:31]wFMCommunicate request_size=4 [09:46:31]MH_SAM_APDU [09:46:31]CAPDU: 80 11 00 00 [09:46:31]Write to MH i2c: E2 08 00 0F 8C 80 11 00 00 00 00 00 00 15 [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:31]Read from MH i2c: E2 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: E2 17 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: E2 17 00 0F 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 62 [09:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:46:31]wFMCommunicate OK [09:46:31]CreateOFDProtocolMessage done [09:46:31]OFDSenderStorePacket 75311 [09:46:31]StoreOFDPacket docnum=75311 [09:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B3 01 00 00 EB 65 AB 01 C8 4D 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FC C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 26 01 00 35 04 06 00 E1 3C 97 88 A1 83 E9 83 5D B1 04 F3 BB A9 [09:46:31]CheckFolder [09:46:31]dirname=/storage/ofd_packets [09:46:31]CheckFolder done [09:46:31]ProducePacketName [09:46:31]name=ofd_packets/00075311 [09:46:31]NVStorageSaveData ofd_packets/00075311 [09:46:31]File name is /storage/ofd_packets/00075311 [09:46:31]Write 465 bytes [09:46:31]NVStorageSaveData done [09:46:31]OFDSenderStorePacket done [09:46:31]KKMCreateOFDPacket done [09:46:31]NVStorageSaveData kkm_last_timestamp [09:46:31]File name is /storage/kkm_last_timestamp [09:46:31]Write 4 bytes [09:46:31]NVStorageSaveData done [09:46:31]ExternCall_PrintAddStr [09:46:31]wPrintStart [09:46:31]Write to MH i2c: 01 00 00 10 8C 9C [09:46:31]OFD Sender: Processing packet 75311 [packets to send 15, broken 14] [09:46:31]ProducePacketName [09:46:31]name=ofd_packets/00075311 [09:46:31]OFD Sender: To server: pG, [09:46:31]CommunicateWithHost lk.salyk.kg:30040 [09:46:31]ConnectInit lk.salyk.kg [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: 01 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: 01 07 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: 01 07 00 10 8C 00 00 00 00 00 FF 0F B1 [09:46:31]RasterBufferAndPrint [09:46:31]line Счет N : (3)273210 [09:46:31]line ИНН: 02508201610067 [09:46:31]line Контрольно-Кассовый Чек [09:46:31]line ПРОДАЖА [09:46:31]line Товар: 4870202522015 [09:46:31]line Напиток Maxi Чай Грушевый 1,2л [09:46:31]line 1.000 * 110.00 [09:46:31]line = 110.00 [09:46:31]line НДС 12% НСП 1% [09:46:31]line > о реализуемом товаре [09:46:31]line Товар: 4870022003312 [09:46:31]line Gorilla эн нап манго-кокос 0,45 ж/б [09:46:31]line 1.000 * 110.00 [09:46:31]line = 110.00 [09:46:31]line НДС 12% НСП 1% [09:46:31]line > о реализуемом товаре [09:46:31]line ИТОГО: 220.00 [09:46:31]line НСП 1% : 1.94 [09:46:31]line НДС 12% : 23.36 [09:46:31]line Наличными: 220.00 [09:46:31]line Безнал.: 0.00 [09:46:31]line Место: АЗС № 133 "Партнер Нефть" [09:46:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:46:31]line СНО: Общий режим [09:46:31]line Чек 44 23.10.2024 09:46 [09:46:31]line Смена: 173 ФФД: 1.0 [09:46:31]line ЗНМ: 0300000020 [09:46:31]line РНМ: 0000000000161154 [09:46:31]line Версия ККМ: v1.0 [09:46:31]line ФМ: 0000000000963323 [09:46:31]line ФД: 75311 [09:46:31]line ФПД: 247650356601219 [09:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094636&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75311&fm=247650356601219&tin=02508201610067®Number=0000000000161154&sum=22000 [09:46:31]line 0 [09:46:31]written 0, free lines is 4095 [09:46:31]Connected sock=10 [09:46:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B3 01 00 00 EB 65 AB 01 C8 4D 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FC C5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 26 01 00 35 04 06 00 E1 3C 97 88 A1 83 E9 83 5D B1 04 F3 BB A9 [09:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A6 D5 47 00 61 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 2F 26 01 00 F4 03 04 00 D8 6E 18 67 B6 04 01 00 00 C6 2D 87 8C 85 F7 71 88 [09:46:32]CommunicateWithHost err = 0 [09:46:32]CheckOFDResponse [09:46:32]1017 (14) - 77093643461234 [09:46:32]1041 (16) - 0000000000963323 [09:46:32]1040 (4) - 75311 [09:46:32]1012 (4) - 23.10.2024 03:34 [09:46:32]1206 (1) - 0 [09:46:32]OFD Sender: Remove packet 75311 [09:46:32]ProducePacketName [09:46:32]name=ofd_packets/00075311 [09:46:32]NVStorageDeleteData [09:46:32]Write to MH i2c: 01 00 00 3F 8C CB [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: 01 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: 01 07 00 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: 01 07 00 3F 8C 00 00 00 00 00 4B 0C 29 [09:46:32]RasterBufferAndPrint [09:46:32]line [09:46:32]line [09:46:32]line [09:46:32]line [09:46:32]line [09:46:32]written 0, free lines is 3153 [09:46:32]MH_Cut [09:46:32]Write to MH i2c: D1 01 00 46 8C 01 A4 [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: D1 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: D1 01 00 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: D1 01 00 46 8C 00 A3 [09:46:32]Write to MH i2c: 01 00 00 47 8C D3 [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:32]OFD Sender: No OFD packet to send [09:46:33]*** Cut start [09:46:33]*** Partial cut [09:46:33]*** CUTSNS_PIN = 1 [09:46:33]*** CUTSNS_PIN = 0 [09:46:33]*** Brake cut motor [09:46:33]Read from MH i2c: 01 [09:46:33]MH_I2C_Read... [09:46:33]*** Stop cut motor [09:46:33]*** Cut end [09:46:33]Read from MH i2c: 01 07 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: 01 07 00 47 8C 00 00 00 00 00 FF 0F E8 [09:46:33]process_action close_receipt done [09:46:33]requested_data is exist [09:46:33]produce_requested_data [09:46:33]requested_item fm.sn is exist - process it [09:46:33]wFMCommunicate request_size=4 [09:46:33]MH_SAM_APDU [09:46:33]CAPDU: 80 11 00 00 [09:46:33]Write to MH i2c: E2 08 00 48 8C 80 11 00 00 00 00 00 00 4E [09:46:33]Write i2c OK [09:46:33]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 17 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 17 00 48 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9B [09:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:46:33]wFMCommunicate OK [09:46:33]requested_item fd.num is exist - process it [09:46:33]SAM_PROTO_GetFieldsCounters [09:46:33]wFMCommunicate request_size=4 [09:46:33]MH_SAM_APDU [09:46:33]CAPDU: 80 13 00 00 [09:46:33]Write to MH i2c: E2 08 00 49 8C 80 13 00 00 00 00 00 00 51 [09:46:33]Write i2c OK [09:46:33]MH_I2C_Read... [09:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:34]Read from MH i2c: E2 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: E2 62 00 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: E2 62 00 49 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2F 26 01 00 0E 04 04 00 AD 00 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 EC [09:46:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 2F 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:34]wFMCommunicate OK [09:46:34]SAM_PROTO_GetFieldsCounters done [09:46:34]requested_item shift.num is exist - process it [09:46:34]requested_item shift.opened is exist - process it [09:46:34]req_shift_opened [09:46:34]FM_GetShiftState [09:46:34]SAM_PROTO_GetShiftState [09:46:34]wFMCommunicate request_size=4 [09:46:34]MH_SAM_APDU [09:46:34]CAPDU: 80 13 01 00 [09:46:34]Write to MH i2c: E2 08 00 4A 8C 80 13 01 00 00 00 00 00 53 [09:46:34]Write i2c OK [09:46:34]MH_I2C_Read... [09:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:34]Read from MH i2c: E2 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: E2 0E 00 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: E2 0E 00 4A 8C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B8 [09:46:34]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:46:34]wFMCommunicate OK [09:46:34]SAM_PROTO_GetShiftState done [09:46:34]FM_GetShiftState done [09:46:34]req_shift_opened done [09:46:34]requested_item shift.open_date is exist - process it [09:46:34]req_shift_open_date [09:46:34]req_shift_open_date done [09:46:34]produce_requested_data done [09:46:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75311,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:46:34]process_action_free close_receipt [09:46:34]json_value_free [09:46:34]json_value_free done [09:46:34]process_json_proto returns [09:46:34]Send response to host [09:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75311,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:46:34]free response buf [09:46:34]execute_script done [09:46:34]execute_script returns [09:46:34]free content buf [09:46:34]Sock 7.Close socket [09:46:34]Sock 7.Thread stoped [09:46:37]OFD Sender: No OFD packet to send [09:46:38]accept exits with 9 [09:46:38]New connection [09:46:38]New thread 3067321700 created [09:46:38]Thread 3067465060 joined [09:46:38]Waiting for new connection... [09:46:38] Sock 9.Parse request [09:46:38]Sock 9.Check first char [09:46:38]Sock 9.First char is OK [09:46:38]request: POST /json_proto HTTP/1.0 [09:46:38]Method: POST [09:46:38]URL: /json_proto [09:46:38]Method is POST - this is cgi request [09:46:38]url: /json_proto [09:46:38]query_string will be loaded in cgi processing [09:46:38]execute_cgi json_proto POST (null) [09:46:38]execute_cgi path=json_proto method=POST [09:46:38]POST find Content-Length [09:46:38]Host: 172.17.44.196:8080 [09:46:38]Content-Length: 648 [09:46:38]Content-Type: application/json [09:46:38] [09:46:38]POST finish read [09:46:38]Found Content-Length = 648 [09:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273211", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:38]execute_script... [09:46: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 : (3)273211", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:38]POST & json_proto [09:46:38]process_json_proto [09:46:38]json parsed OK: [09:46:38]protocol is kg_v1.0 [09:46:38]action value=close_receipt [09:46:38]process_action close_receipt [09:46:38]cmd_close_receipt [09:46:38]MH_GetDate [09:46:38]Write to MH i2c: F0 00 00 4B 8C C6 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 09 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 09 00 4B 8C 00 05 C6 18 67 E7 19 F8 65 76 [09:46:38]GetLastDocTimeStamp 1729676796 [09:46:38]current date 1729676805 [09:46:38]FM_GetShiftState [09:46:38]SAM_PROTO_GetShiftState [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 13 01 00 [09:46:38]Write to MH i2c: E2 08 00 4C 8C 80 13 01 00 00 00 00 00 55 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0E 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0E 00 4C 8C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 BA [09:46:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:46:38]wFMCommunicate OK [09:46:38]SAM_PROTO_GetShiftState done [09:46:38]FM_GetShiftState done [09:46:38]opened in 1729642905 [09:46:38]opened+sec_in_day 1729729305 [09:46:38]quantity*price = 6000 [09:46:38]sum+1 = 6001 [09:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 45 23.10.2024 09:46 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75312 ФПД: 72227085024096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094645&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75312&fm=72227085024096&tin=02508201610067®Number=0000000000161154&sum=6000 0 [09:46:39]StoreToDocumentArchive [09:46:39]shift 173 fd 75312 [09:46:39]save to /storage/0173/doc_00075312 [09:46:39]save last doc name /storage/0173/doc_00075312 to /storage/kkm_last_doc_name [09:46:39]save OK [09:46:39]Clear old archive folders... [09:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:46:39]tlvbuf is 0105D040 [09:46:39]SAM_PROTO_ClearQueue [09:46:39]wFMCommunicate request_size=4 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 09 00 00 [09:46:39]Write to MH i2c: E2 08 00 59 8C 80 09 00 00 00 00 00 00 57 [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 59 8C 00 90 00 59 [09:46:39]RAPDU: 90 00 [09:46:39]wFMCommunicate OK [09:46:39]SAM_PROTO_ClearQueue done [09:46:39]KKMCreateOFDPacket [09:46:39]OFDProtocolAddRootSTLVToBuf [09:46:39]FM_MakeSignedData [09:46:39]FM_MakeSignedData [09:46:39]SAM_PROTO_SignData [09:46:39]wFMCommunicate request_size=4 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 0D 01 02 [09:46:39]Write to MH i2c: E2 08 00 5A 8C 80 0D 01 02 00 00 00 00 5F [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 5A 8C 00 90 00 5A [09:46:39]RAPDU: 90 00 [09:46:39]wFMCommunicate OK [09:46:39]wFMCommunicate request_size=255 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 05 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 [09:46:39]Write to MH i2c: E2 02 01 5B 8C 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 05 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 00 00 43 [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 5B 8C 00 90 00 5B [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=38 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 26 01 00 35 04 06 00 41 B0 AD BE FB 60 [09:46:40]Write to MH i2c: E2 29 00 5C 8C 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 26 01 00 35 04 06 00 41 B0 AD BE FB 60 00 00 F3 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 5C 8C 00 90 00 5C [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 03 02 [09:46:40]Write to MH i2c: E2 08 00 5D 8C 80 0D 03 02 00 00 00 00 64 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0B 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0B 00 5D 8C 00 7F 06 E2 89 78 FA 02 9C 90 00 65 [09:46:40]RAPDU: 7F 06 E2 89 78 FA 02 9C 90 00 [09:46:40]wFMCommunicate OK [09:46:40]SAM_PROTO_SignData done [09:46:40]FM_MakeSignedData done [09:46:40]CreateOFDProtocolMessage [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 11 00 00 [09:46:40]Write to MH i2c: E2 08 00 5E 8C 80 11 00 00 00 00 00 00 64 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 17 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 17 00 5E 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B1 [09:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:46:40]wFMCommunicate OK [09:46:40]CreateOFDProtocolMessage done [09:46:40]OFDSenderStorePacket 75312 [09:46:40]StoreOFDPacket docnum=75312 [09:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2B 01 00 00 CB DB 23 01 73 45 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 05 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 26 01 00 35 04 06 00 41 B0 AD BE FB 60 7F 06 E2 89 78 FA 02 9C [09:46:40]CheckFolder [09:46:40]dirname=/storage/ofd_packets [09:46:40]CheckFolder done [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00075312 [09:46:40]NVStorageSaveData ofd_packets/00075312 [09:46:40]File name is /storage/ofd_packets/00075312 [09:46:40]Write 329 bytes [09:46:40]NVStorageSaveData done [09:46:40]OFDSenderStorePacket done [09:46:40]KKMCreateOFDPacket done [09:46:40]NVStorageSaveData kkm_last_timestamp [09:46:40]File name is /storage/kkm_last_timestamp [09:46:40]Write 4 bytes [09:46:40]OFD Sender: Processing packet 75312 [packets to send 15, broken 14] [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00075312 [09:46:40]OFD Sender: To server: pG, [09:46:40]CommunicateWithHost lk.salyk.kg:30040 [09:46:40]ConnectInit lk.salyk.kg [09:46:40]NVStorageSaveData done [09:46:40]ExternCall_PrintAddStr [09:46:40]wPrintStart [09:46:40]Write to MH i2c: 01 00 00 5F 8C EB [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 07 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 07 00 5F 8C 00 00 00 00 00 FF 0F 00 [09:46:40]RasterBufferAndPrint [09:46:40]line Счет N : (3)273211 [09:46:40]line ИНН: 02508201610067 [09:46:40]line Контрольно-Кассовый Чек [09:46:40]line ПРОДАЖА [09:46:40]line Товар: 2000032780025 [09:46:40]line Сосиска в тесте DC 110г [09:46:40]line 1.000 * 60.00 [09:46:40]line = 60.00 [09:46:40]line НДС 12% НСП 1% [09:46:40]line > о реализуемом товаре [09:46:40]line ИТОГО: 60.00 [09:46:40]line НСП 1% : 0.53 [09:46:40]line НДС 12% : 6.37 [09:46:40]line Наличными: 60.00 [09:46:40]line Безнал.: 0.00 [09:46:40]line Место: АЗС № 133 "Партнер Нефть" [09:46:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:46:40]line СНО: Общий режим [09:46:40]line Чек 45 23.10.2024 09:46 [09:46:40]line Смена: 173 ФФД: 1.0 [09:46:40]line ЗНМ: 0300000020 [09:46:40]line РНМ: 0000000000161154 [09:46:40]line Версия ККМ: v1.0 [09:46:40]line ФМ: 0000000000963323 [09:46:40]line ФД: 75312 [09:46:40]line ФПД: 72227085024096 [09:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094645&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75312&fm=72227085024096&tin=02508201610067®Number=0000000000161154&sum=6000 [09:46:40]line 0 [09:46:40]written 0, free lines is 4095 [09:46:40]Connected sock=11 [09:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2B 01 00 00 CB DB 23 01 73 45 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 05 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 26 01 00 35 04 06 00 41 B0 AD BE FB 60 7F 06 E2 89 78 FA 02 9C [09:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E0 F6 47 00 E4 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 30 26 01 00 F4 03 04 00 E0 6E 18 67 B6 04 01 00 00 D4 E3 D5 24 D2 85 56 00 [09:46:40]CommunicateWithHost err = 0 [09:46:40]CheckOFDResponse [09:46:40]1017 (14) - 77093643461234 [09:46:40]1041 (16) - 0000000000963323 [09:46:40]1040 (4) - 75312 [09:46:40]1012 (4) - 23.10.2024 03:34 [09:46:40]1206 (1) - 0 [09:46:40]OFD Sender: Remove packet 75312 [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00075312 [09:46:40]NVStorageDeleteData [09:46:40]Write to MH i2c: 01 00 00 86 8C 12 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 07 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 07 00 86 8C 00 00 00 00 00 E4 0C 09 [09:46:40]RasterBufferAndPrint [09:46:40]line [09:46:40]line [09:46:40]line [09:46:40]line [09:46:40]line [09:46:40]written 0, free lines is 3310 [09:46:40]MH_Cut [09:46:40]Write to MH i2c: D1 01 00 8D 8C 01 EB [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: D1 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: D1 01 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: D1 01 00 8D 8C 00 EA [09:46:40]Write to MH i2c: 01 00 00 8E 8C 1A [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:41]OFD Sender: No OFD packet to send [09:46:41]*** Cut start [09:46:41]*** Partial cut [09:46:41]*** CUTSNS_PIN = 1 [09:46:41]*** CUTSNS_PIN = 0 [09:46:41]*** Brake cut motor [09:46:42]Read from MH i2c: 01 [09:46:42]MH_I2C_Read... [09:46:42]*** Stop cut motor [09:46:42]*** Cut end [09:46:42]Read from MH i2c: 01 07 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 8E 8C 00 00 00 00 00 FF 0F 2F [09:46:42]process_action close_receipt done [09:46:42]requested_data is exist [09:46:42]produce_requested_data [09:46:42]requested_item fm.sn is exist - process it [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 11 00 00 [09:46:42]Write to MH i2c: E2 08 00 8F 8C 80 11 00 00 00 00 00 00 95 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 8F 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E2 [09:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:46:42]wFMCommunicate OK [09:46:42]requested_item fd.num is exist - process it [09:46:42]SAM_PROTO_GetFieldsCounters [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 13 00 00 [09:46:42]Write to MH i2c: E2 08 00 90 8C 80 13 00 00 00 00 00 00 98 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 62 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 62 00 90 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 30 26 01 00 0E 04 04 00 AD 00 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 37 [09:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 30 26 01 00 0E 04 04 00 AD 00 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 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_GetFieldsCounters done [09:46:42]requested_item shift.num is exist - process it [09:46:42]requested_item shift.opened is exist - process it [09:46:42]req_shift_opened [09:46:42]FM_GetShiftState [09:46:42]SAM_PROTO_GetShiftState [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 13 01 00 [09:46:42]Write to MH i2c: E2 08 00 91 8C 80 13 01 00 00 00 00 00 9A [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0E 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0E 00 91 8C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FF [09:46:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_GetShiftState done [09:46:42]FM_GetShiftState done [09:46:42]req_shift_opened done [09:46:42]requested_item shift.open_date is exist - process it [09:46:42]req_shift_open_date [09:46:42]req_shift_open_date done [09:46:42]produce_requested_data done [09:46:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75312,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:46:42]process_action_free close_receipt [09:46:42]json_value_free [09:46:42]json_value_free done [09:46:42]process_json_proto returns [09:46:42]Send response to host [09:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75312,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:46:42]free response buf [09:46:42]execute_script done [09:46:42]execute_script returns [09:46:42]free content buf [09:46:42]Sock 9.Close socket [09:46:42]Sock 9.Thread stoped [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:13]accept exits with 7 [09:47:13]New connection [09:47:13]New thread 3067465060 created [09:47:13]Thread 3067321700 joined [09:47:13]Waiting for new connection... [09:47:13] Sock 7.Parse request [09:47:13]Sock 7.Check first char [09:47:13]Sock 7.First char is OK [09:47:13]request: POST /json_proto HTTP/1.0 [09:47:13]Method: POST [09:47:13]URL: /json_proto [09:47:13]Method is POST - this is cgi request [09:47:13]url: /json_proto [09:47:13]query_string will be loaded in cgi processing [09:47:13]execute_cgi json_proto POST (null) [09:47:13]execute_cgi path=json_proto method=POST [09:47:13]POST find Content-Length [09:47:13]Host: 172.17.44.196:8080 [09:47:13]Content-Length: 683 [09:47:13]Content-Type: application/json [09:47:13] [09:47:13]POST finish read [09:47:13]Found Content-Length = 683 [09:47:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:13]execute_script... [09:47: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)1965278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:13]POST & json_proto [09:47:13]process_json_proto [09:47:13]json parsed OK: [09:47:13]protocol is kg_v1.0 [09:47:13]action value=close_receipt [09:47:13]process_action close_receipt [09:47:13]cmd_close_receipt [09:47:13]MH_GetDate [09:47:13]Write to MH i2c: F0 00 00 92 8C 0D [09:47:13]Write i2c OK [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: F0 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: F0 09 00 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: F0 09 00 92 8C 00 28 C6 18 67 E7 19 F8 65 E0 [09:47:13]GetLastDocTimeStamp 1729676805 [09:47:13]current date 1729676840 [09:47:13]FM_GetShiftState [09:47:13]SAM_PROTO_GetShiftState [09:47:13]wFMCommunicate request_size=4 [09:47:13]MH_SAM_APDU [09:47:13]CAPDU: 80 13 01 00 [09:47:13]Write to MH i2c: E2 08 00 93 8C 80 13 01 00 00 00 00 00 9C [09:47:13]Write i2c OK [09:47:13]MH_I2C_Read... [09:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:13]Read from MH i2c: E2 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: E2 0E 00 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: E2 0E 00 93 8C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 01 [09:47:13]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:47:13]wFMCommunicate OK [09:47:13]SAM_PROTO_GetShiftState done [09:47:13]FM_GetShiftState done [09:47:13]opened in 1729642905 [09:47:13]opened+sec_in_day 1729729305 [09:47:13]quantity*price = 250054 [09:47:13]sum+1 = 250055 [09:47:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 46 23.10.2024 09:47 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75313 ФПД: 99249875945169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094720&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75313&fm=99249875945169&tin=02508201610067®Number=0000000000161154&sum=250000 [09:47:14]StoreToDocumentArchive [09:47:14]shift 173 fd 75313 [09:47:14]save to /storage/0173/doc_00075313 [09:47:14]save last doc name /storage/0173/doc_00075313 to /storage/kkm_last_doc_name [09:47:14]save OK [09:47:14]Clear old archive folders... [09:47:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:14]tlvbuf is 00D6AB90 [09:47:14]SAM_PROTO_ClearQueue [09:47:14]wFMCommunicate request_size=4 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 09 00 00 [09:47:14]Write to MH i2c: E2 08 00 A0 8C 80 09 00 00 00 00 00 00 9E [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 A0 8C 00 90 00 A0 [09:47:14]RAPDU: 90 00 [09:47:14]wFMCommunicate OK [09:47:14]SAM_PROTO_ClearQueue done [09:47:14]KKMCreateOFDPacket [09:47:14]OFDProtocolAddRootSTLVToBuf [09:47:14]FM_MakeSignedData [09:47:14]FM_MakeSignedData [09:47:14]SAM_PROTO_SignData [09:47:14]wFMCommunicate request_size=4 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 0D 01 02 [09:47:14]Write to MH i2c: E2 08 00 A1 8C 80 0D 01 02 00 00 00 00 A6 [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 A1 8C 00 90 00 A1 [09:47:14]RAPDU: 90 00 [09:47:14]wFMCommunicate OK [09:47:14]wFMCommunicate request_size=255 [09:47:14]MH_SAM_APDU [09:47: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 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 28 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 26 01 00 35 04 06 00 5A [09:47:14]Write to MH i2c: E2 02 01 A2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 28 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 26 01 00 35 04 06 00 5A 00 00 0D [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:15]Read from MH i2c: E2 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 03 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 03 00 A2 8C 00 90 00 A2 [09:47:15]RAPDU: 90 00 [09:47:15]wFMCommunicate OK [09:47:15]wFMCommunicate request_size=10 [09:47:15]MH_SAM_APDU [09:47:15]CAPDU: 80 0D 02 02 05 44 69 99 86 D1 [09:47:15]Write to MH i2c: E2 0D 00 A3 8C 80 0D 02 02 05 00 44 69 99 86 D1 00 00 50 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:15]Read from MH i2c: E2 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 03 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 03 00 A3 8C 00 90 00 A3 [09:47:15]RAPDU: 90 00 [09:47:15]wFMCommunicate OK [09:47:15]wFMCommunicate request_size=4 [09:47:15]MH_SAM_APDU [09:47:15]CAPDU: 80 0D 03 02 [09:47:15]Write to MH i2c: E2 08 00 A4 8C 80 0D 03 02 00 00 00 00 AB [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:15]Read from MH i2c: E2 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 0B 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 0B 00 A4 8C 00 A4 B0 BF 83 0A 6A 66 9E 90 00 BA [09:47:15]RAPDU: A4 B0 BF 83 0A 6A 66 9E 90 00 [09:47:15]wFMCommunicate OK [09:47:15]SAM_PROTO_SignData done [09:47:15]FM_MakeSignedData done [09:47:15]CreateOFDProtocolMessage [09:47:15]wFMCommunicate request_size=4 [09:47:15]MH_SAM_APDU [09:47:15]CAPDU: 80 11 00 00 [09:47:15]Write to MH i2c: E2 08 00 A5 8C 80 11 00 00 00 00 00 00 AB [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:15]Read from MH i2c: E2 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 17 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 17 00 A5 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F8 [09:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:47:15]wFMCommunicate OK [09:47:15]CreateOFDProtocolMessage done [09:47:15]OFDSenderStorePacket 75313 [09:47:15]StoreOFDPacket docnum=75313 [09:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C1 F9 07 01 1E DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 28 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 26 01 00 35 04 06 00 5A 44 69 99 86 D1 A4 B0 BF 83 0A 6A 66 9E [09:47:15]CheckFolder [09:47:15]dirname=/storage/ofd_packets [09:47:15]CheckFolder done [09:47:15]ProducePacketName [09:47:15]name=ofd_packets/00075313 [09:47:15]NVStorageSaveData ofd_packets/00075313 [09:47:15]File name is /storage/ofd_packets/00075313 [09:47:15]Write 301 bytes [09:47:15]NVStorageSaveData done [09:47:15]OFDSenderStorePacket done [09:47:15]KKMCreateOFDPacket done [09:47:15]NVStorageSaveData kkm_last_timestamp [09:47:15]File name is /storage/kkm_last_timestamp [09:47:15]Write 4 bytes [09:47:15]NVStorageSaveData done [09:47:15]ExternCall_PrintAddStr [09:47:15]wPrintStart [09:47:15]Write to MH i2c: 01 00 00 A6 8C 32 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 07 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 07 00 A6 8C 00 00 00 00 00 FF 0F 47 [09:47:15]RasterBufferAndPrint [09:47:15]line Счет N : (1)1965278 [09:47:15]line ИНН: 02508201610067 [09:47:15]line Контрольно-Кассовый Чек [09:47:15]line ПРОДАЖА [09:47:15]line ТРК (МРК, ГНК) : 54 [09:47:15]line Товар: 2710124500 [09:47:15]line Аи-95-К-5 [09:47:15]line 33.700 * 74.20 [09:47:15]line = 2500.54 [09:47:15]line НДС 12% НСП 1% [09:47:15]line > о реализуемом товаре [09:47:15]line ОКРУГЛЕНИЕ: -0.54 [09:47:15]line ИТОГО: 2500.00 [09:47:15]line Внесено: 2500.00 [09:47:15]line СДАЧА: 0.00 [09:47:15]line НСП 1% : 22.13 [09:47:15]line НДС 12% : 265.54 [09:47:15]line Наличными: 2500.00 [09:47:15]line Безнал.: 0.00 [09:47:15]line Место: АЗС № 133 "Партнер Нефть" [09:47:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:47:15]line СНО: Общий режим [09:47:15]line Чек 46 23.10.2024 09:47 [09:47:15]line Смена: 173 ФФД: 1.0 [09:47:15]line ЗНМ: 0300000020 [09:47:15]line РНМ: 0000000000161154 [09:47:15]line Версия ККМ: v1.0 [09:47:15]line ФМ: 0000000000963323 [09:47:15]line ФД: 75313 [09:47:15]line ФПД: 99249875945169 [09:47:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094720&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75313&fm=99249875945169&tin=02508201610067®Number=0000000000161154&sum=250000 [09:47:15]OFD Sender: Processing packet 75313 [packets to send 15, broken 14] [09:47:15]ProducePacketName [09:47:15]name=ofd_packets/00075313 [09:47:15]OFD Sender: To server: pG, [09:47:15]CommunicateWithHost lk.salyk.kg:30040 [09:47:15]ConnectInit lk.salyk.kg [09:47:15]written 0, free lines is 4095 [09:47:15]Connected sock=10 [09:47:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C1 F9 07 01 1E DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 28 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 26 01 00 35 04 06 00 5A 44 69 99 86 D1 A4 B0 BF 83 0A 6A 66 9E [09:47:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 57 53 47 00 8A 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 31 26 01 00 F4 03 04 00 03 6F 18 67 B6 04 01 00 00 A7 DE DD 9B BB 8E 68 03 [09:47:15]CommunicateWithHost err = 0 [09:47:15]CheckOFDResponse [09:47:15]1017 (14) - 77093643461234 [09:47:15]1041 (16) - 0000000000963323 [09:47:15]1040 (4) - 75313 [09:47:15]1012 (4) - 23.10.2024 03:35 [09:47:15]1206 (1) - 0 [09:47:15]OFD Sender: Remove packet 75313 [09:47:15]ProducePacketName [09:47:15]name=ofd_packets/00075313 [09:47:15]NVStorageDeleteData [09:47:15]Write to MH i2c: 01 00 00 D0 8C 5C [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 07 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 07 00 D0 8C 00 00 00 00 00 B0 0C 1F [09:47:15]RasterBufferAndPrint [09:47:15]line [09:47:15]line [09:47:15]line [09:47:15]line [09:47:15]line [09:47:15]written 0, free lines is 3251 [09:47:15]MH_Cut [09:47:15]Write to MH i2c: D1 01 00 D7 8C 01 35 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: D1 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: D1 01 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: D1 01 00 D7 8C 00 34 [09:47:15]Write to MH i2c: 01 00 00 D8 8C 64 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:16]OFD Sender: No OFD packet to send [09:47:16]*** Cut start [09:47:16]*** Partial cut [09:47:16]*** CUTSNS_PIN = 1 [09:47:16]*** CUTSNS_PIN = 0 [09:47:17]*** Brake cut motor [09:47:17]Read from MH i2c: 01 [09:47:17]MH_I2C_Read... [09:47:17]*** Stop cut motor [09:47:17]*** Cut end [09:47:17]Read from MH i2c: 01 07 00 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: 01 07 00 D8 8C 00 00 00 00 00 FF 0F 79 [09:47:17]process_action close_receipt done [09:47:17]requested_data is exist [09:47:17]produce_requested_data [09:47:17]requested_item fm.sn is exist - process it [09:47:17]wFMCommunicate request_size=4 [09:47:17]MH_SAM_APDU [09:47:17]CAPDU: 80 11 00 00 [09:47:17]Write to MH i2c: E2 08 00 D9 8C 80 11 00 00 00 00 00 00 DF [09:47:17]Write i2c OK [09:47:17]MH_I2C_Read... [09:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:17]Read from MH i2c: E2 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 17 00 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 17 00 D9 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2C [09:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:47:17]wFMCommunicate OK [09:47:17]requested_item fd.num is exist - process it [09:47:17]SAM_PROTO_GetFieldsCounters [09:47:17]wFMCommunicate request_size=4 [09:47:17]MH_SAM_APDU [09:47:17]CAPDU: 80 13 00 00 [09:47:17]Write to MH i2c: E2 08 00 DA 8C 80 13 00 00 00 00 00 00 E2 [09:47:17]Write i2c OK [09:47:17]MH_I2C_Read... [09:47:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:17]Read from MH i2c: E2 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 62 00 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 62 00 DA 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 31 26 01 00 0E 04 04 00 AD 00 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 85 [09:47:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 31 26 01 00 0E 04 04 00 AD 00 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 [09:47:17]wFMCommunicate OK [09:47:17]SAM_PROTO_GetFieldsCounters done [09:47:17]requested_item shift.num is exist - process it [09:47:17]requested_item shift.opened is exist - process it [09:47:17]req_shift_opened [09:47:17]FM_GetShiftState [09:47:17]SAM_PROTO_GetShiftState [09:47:17]wFMCommunicate request_size=4 [09:47:17]MH_SAM_APDU [09:47:17]CAPDU: 80 13 01 00 [09:47:17]Write to MH i2c: E2 08 00 DB 8C 80 13 01 00 00 00 00 00 E4 [09:47:17]Write i2c OK [09:47:17]MH_I2C_Read... [09:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:17]Read from MH i2c: E2 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 0E 00 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 0E 00 DB 8C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 49 [09:47:17]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:47:17]wFMCommunicate OK [09:47:17]SAM_PROTO_GetShiftState done [09:47:17]FM_GetShiftState done [09:47:17]req_shift_opened done [09:47:17]requested_item shift.open_date is exist - process it [09:47:17]req_shift_open_date [09:47:17]req_shift_open_date done [09:47:17]produce_requested_data done [09:47:17]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75313,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:47:17]process_action_free close_receipt [09:47:17]json_value_free [09:47:17]json_value_free done [09:47:17]process_json_proto returns [09:47:17]Send response to host [09:47:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75313,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:47:17]free response buf [09:47:17]execute_script done [09:47:17]execute_script returns [09:47:17]free content buf [09:47:17]Sock 7.Close socket [09:47:17]Sock 7.Thread stoped [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:35]accept exits with 9 [09:47:35]New connection [09:47:35]New thread 3067321700 created [09:47:35]Thread 3067465060 joined [09:47:35]Waiting for new connection... [09:47:35] Sock 9.Parse request [09:47:35]Sock 9.Check first char [09:47:35]Sock 9.First char is OK [09:47:35]request: POST /json_proto HTTP/1.0 [09:47:35]Method: POST [09:47:35]URL: /json_proto [09:47:35]Method is POST - this is cgi request [09:47:35]url: /json_proto [09:47:35]query_string will be loaded in cgi processing [09:47:35]execute_cgi json_proto POST (null) [09:47:35]execute_cgi path=json_proto method=POST [09:47:35]POST find Content-Length [09:47:35]Host: 172.17.44.196:8080 [09:47:35]Content-Length: 678 [09:47:35]Content-Type: application/json [09:47:35] [09:47:35]POST finish read [09:47:35]Found Content-Length = 678 [09:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:47:35]execute_script... [09:47: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)1965279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:47:35]POST & json_proto [09:47:35]process_json_proto [09:47:35]json parsed OK: [09:47:35]protocol is kg_v1.0 [09:47:35]action value=close_receipt [09:47:35]process_action close_receipt [09:47:35]cmd_close_receipt [09:47:35]MH_GetDate [09:47:35]Write to MH i2c: F0 00 00 DC 8C 57 [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: F0 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: F0 09 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: F0 09 00 DC 8C 00 3E C6 18 67 E7 19 F8 65 40 [09:47:35]GetLastDocTimeStamp 1729676840 [09:47:35]current date 1729676862 [09:47:35]FM_GetShiftState [09:47:35]SAM_PROTO_GetShiftState [09:47:35]wFMCommunicate request_size=4 [09:47:35]MH_SAM_APDU [09:47:35]CAPDU: 80 13 01 00 [09:47:35]Write to MH i2c: E2 08 00 DD 8C 80 13 01 00 00 00 00 00 E6 [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:35]Read from MH i2c: E2 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 0E 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 0E 00 DD 8C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 4B [09:47:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:47:35]wFMCommunicate OK [09:47:35]SAM_PROTO_GetShiftState done [09:47:35]FM_GetShiftState done [09:47:35]opened in 1729642905 [09:47:35]opened+sec_in_day 1729729305 [09:47:35]quantity*price = 50041 [09:47:35]sum+1 = 50042 [09:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 47 23.10.2024 09:47 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75314 ФПД: 75660523878700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094742&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75314&fm=75660523878700&tin=02508201610067®Number=0000000000161154&sum=50000 [09:47:36]StoreToDocumentArchive [09:47:36]shift 173 fd 75314 [09:47:36]save to /storage/0173/doc_00075314 [09:47:36]save last doc name /storage/0173/doc_00075314 to /storage/kkm_last_doc_name [09:47:36]save OK [09:47:36]Clear old archive folders... [09:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:36]tlvbuf is 00CD1700 [09:47:36]SAM_PROTO_ClearQueue [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 09 00 00 [09:47:36]Write to MH i2c: E2 08 00 EA 8C 80 09 00 00 00 00 00 00 E8 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 03 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 03 00 EA 8C 00 90 00 EA [09:47:36]RAPDU: 90 00 [09:47:36]wFMCommunicate OK [09:47:36]SAM_PROTO_ClearQueue done [09:47:36]KKMCreateOFDPacket [09:47:36]OFDProtocolAddRootSTLVToBuf [09:47:36]FM_MakeSignedData [09:47:36]FM_MakeSignedData [09:47:36]SAM_PROTO_SignData [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 0D 01 02 [09:47:36]Write to MH i2c: E2 08 00 EB 8C 80 0D 01 02 00 00 00 00 F0 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 03 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 03 00 EB 8C 00 90 00 EB [09:47:36]RAPDU: 90 00 [09:47:36]wFMCommunicate OK [09:47:36]wFMCommunicate request_size=255 [09:47:36]MH_SAM_APDU [09:47: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2F 00 00 00 F4 03 04 00 3E C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 26 01 00 35 04 06 00 44 [09:47:36]Write to MH i2c: E2 02 01 EC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2F 00 00 00 F4 03 04 00 3E C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 26 01 00 35 04 06 00 44 00 00 6E [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 EC 8C 00 90 00 EC [09:47:37]RAPDU: 90 00 [09:47:37]wFMCommunicate OK [09:47:37]wFMCommunicate request_size=10 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 0D 02 02 05 D0 16 A6 39 2C [09:47:37]Write to MH i2c: E2 0D 00 ED 8C 80 0D 02 02 05 00 D0 16 A6 39 2C 00 00 EE [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 ED 8C 00 90 00 ED [09:47:37]RAPDU: 90 00 [09:47:37]wFMCommunicate OK [09:47:37]wFMCommunicate request_size=4 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 0D 03 02 [09:47:37]Write to MH i2c: E2 08 00 EE 8C 80 0D 03 02 00 00 00 00 F5 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 0B 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 0B 00 EE 8C 00 65 DF 56 E7 02 5C F4 83 90 00 4C [09:47:37]RAPDU: 65 DF 56 E7 02 5C F4 83 90 00 [09:47:37]wFMCommunicate OK [09:47:37]SAM_PROTO_SignData done [09:47:37]FM_MakeSignedData done [09:47:37]CreateOFDProtocolMessage [09:47:37]wFMCommunicate request_size=4 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 11 00 00 [09:47:37]Write to MH i2c: E2 08 00 EF 8C 80 11 00 00 00 00 00 00 F5 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 17 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 17 00 EF 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 42 [09:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:47:37]wFMCommunicate OK [09:47:37]CreateOFDProtocolMessage done [09:47:37]OFDSenderStorePacket 75314 [09:47:37]StoreOFDPacket docnum=75314 [09:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 00 0D 07 01 94 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2F 00 00 00 F4 03 04 00 3E C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 26 01 00 35 04 06 00 44 D0 16 A6 39 2C 65 DF 56 E7 02 5C F4 83 [09:47:37]CheckFolder [09:47:37]dirname=/storage/ofd_packets [09:47:37]CheckFolder done [09:47:37]ProducePacketName [09:47:37]name=ofd_packets/00075314 [09:47:37]NVStorageSaveData ofd_packets/00075314 [09:47:37]File name is /storage/ofd_packets/00075314 [09:47:37]Write 301 bytes [09:47:37]NVStorageSaveData done [09:47:37]OFDSenderStorePacket done [09:47:37]KKMCreateOFDPacket done [09:47:37]NVStorageSaveData kkm_last_timestamp [09:47:37]File name is /storage/kkm_last_timestamp [09:47:37]Write 4 bytes [09:47:37]NVStorageSaveData done [09:47:37]ExternCall_PrintAddStr [09:47:37]wPrintStart [09:47:37]Write to MH i2c: 01 00 00 F0 8C 7C [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: 01 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: 01 07 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: 01 07 00 F0 8C 00 00 00 00 00 FF 0F 91 [09:47:37]RasterBufferAndPrint [09:47:37]line Счет N : (1)1965279 [09:47:37]line ИНН: 02508201610067 [09:47:37]line Контрольно-Кассовый Чек [09:47:37]line ПРОДАЖА [09:47:37]line ТРК (МРК, ГНК) : 33 [09:47:37]line Товар: 2710124130 [09:47:37]line Аи-92-К-5 [09:47:37]line 7.480 * 66.90 [09:47:37]line = 500.41 [09:47:37]line НДС 12% НСП 1% [09:47:37]line > о реализуемом товаре [09:47:37]line ОКРУГЛЕНИЕ: -0.41 [09:47:37]line ИТОГО: 500.00 [09:47:37]line Внесено: 500.00 [09:47:37]line СДАЧА: 0.00 [09:47:37]line НСП 1% : 4.43 [09:47:37]line НДС 12% : 53.14 [09:47:37]line Наличными: 500.00 [09:47:37]line Безнал.: 0.00 [09:47:37]line Место: АЗС № 133 "Партнер Нефть" [09:47:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:47:37]line СНО: Общий режим [09:47:37]line Чек 47 23.10.2024 09:47 [09:47:37]line Смена: 173 ФФД: 1.0 [09:47:37]line ЗНМ: 0300000020 [09:47:37]line РНМ: 0000000000161154 [09:47:37]line Версия ККМ: v1.0 [09:47:37]line ФМ: 0000000000963323 [09:47:37]line ФД: 75314 [09:47:37]line ФПД: 75660523878700 [09:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094742&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75314&fm=75660523878700&tin=02508201610067®Number=0000000000161154&sum=50000 [09:47:37]OFD Sender: Processing packet 75314 [packets to send 15, broken 14] [09:47:37]ProducePacketName [09:47:37]name=ofd_packets/00075314 [09:47:37]OFD Sender: To server: pG, [09:47:37]CommunicateWithHost lk.salyk.kg:30040 [09:47:37]ConnectInit lk.salyk.kg [09:47:37]written 0, free lines is 4095 [09:47:37]Connected sock=7 [09:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 00 0D 07 01 94 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2F 00 00 00 F4 03 04 00 3E C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 32 26 01 00 35 04 06 00 44 D0 16 A6 39 2C 65 DF 56 E7 02 5C F4 83 [09:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AE D8 47 00 37 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 39 36 33 33 32 33 10 04 04 00 32 26 01 00 F4 03 04 00 19 6F 18 67 B6 04 01 00 00 67 8D 08 86 27 CA 9E 89 [09:47:38]CommunicateWithHost err = 0 [09:47:38]CheckOFDResponse [09:47:38]1017 (14) - 77093643461234 [09:47:38]1041 (16) - 0000000000963323 [09:47:38]1040 (4) - 75314 [09:47:38]1012 (4) - 23.10.2024 03:35 [09:47:38]1206 (1) - 0 [09:47:38]OFD Sender: Remove packet 75314 [09:47:38]ProducePacketName [09:47:38]name=ofd_packets/00075314 [09:47:38]NVStorageDeleteData [09:47:38]Write to MH i2c: 01 00 00 1A 8D A7 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 07 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 07 00 1A 8D 00 00 00 00 00 AF 0C 69 [09:47:38]RasterBufferAndPrint [09:47:38]line [09:47:38]line [09:47:38]line [09:47:38]line [09:47:38]line [09:47:38]written 0, free lines is 3253 [09:47:38]MH_Cut [09:47:38]Write to MH i2c: D1 01 00 21 8D 01 80 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: D1 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: D1 01 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: D1 01 00 21 8D 00 7F [09:47:38]Write to MH i2c: 01 00 00 22 8D AF [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]OFD Sender: No OFD packet to send [09:47:38]*** Cut start [09:47:38]*** Partial cut [09:47:38]*** CUTSNS_PIN = 1 [09:47:39]*** CUTSNS_PIN = 0 [09:47:39]*** Brake cut motor [09:47:39]Read from MH i2c: 01 [09:47:39]MH_I2C_Read... [09:47:39]*** Stop cut motor [09:47:39]*** Cut end [09:47:39]Read from MH i2c: 01 07 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: 01 07 00 22 8D 00 00 00 00 00 FF 0F C4 [09:47:39]process_action close_receipt done [09:47:39]requested_data is exist [09:47:39]produce_requested_data [09:47:39]requested_item fm.sn is exist - process it [09:47:39]wFMCommunicate request_size=4 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 11 00 00 [09:47:39]Write to MH i2c: E2 08 00 23 8D 80 11 00 00 00 00 00 00 2A [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 17 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 17 00 23 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 77 [09:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:47:39]wFMCommunicate OK [09:47:39]requested_item fd.num is exist - process it [09:47:39]SAM_PROTO_GetFieldsCounters [09:47:39]wFMCommunicate request_size=4 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 13 00 00 [09:47:39]Write to MH i2c: E2 08 00 24 8D 80 13 00 00 00 00 00 00 2D [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 62 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 62 00 24 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 32 26 01 00 0E 04 04 00 AD 00 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 D4 [09:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 32 26 01 00 0E 04 04 00 AD 00 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 [09:47:39]wFMCommunicate OK [09:47:39]SAM_PROTO_GetFieldsCounters done [09:47:39]requested_item shift.num is exist - process it [09:47:39]requested_item shift.opened is exist - process it [09:47:39]req_shift_opened [09:47:39]FM_GetShiftState [09:47:39]SAM_PROTO_GetShiftState [09:47:39]wFMCommunicate request_size=4 [09:47:39]MH_SAM_APDU [09:47:39]CAPDU: 80 13 01 00 [09:47:39]Write to MH i2c: E2 08 00 25 8D 80 13 01 00 00 00 00 00 2F [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:39]Read from MH i2c: E2 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 0E 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: E2 0E 00 25 8D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 94 [09:47:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:47:39]wFMCommunicate OK [09:47:39]SAM_PROTO_GetShiftState done [09:47:39]FM_GetShiftState done [09:47:39]req_shift_opened done [09:47:39]requested_item shift.open_date is exist - process it [09:47:39]req_shift_open_date [09:47:39]req_shift_open_date done [09:47:39]produce_requested_data done [09:47:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75314,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:47:39]process_action_free close_receipt [09:47:39]json_value_free [09:47:39]json_value_free done [09:47:39]process_json_proto returns [09:47:39]Send response to host [09:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75314,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:47:39]free response buf [09:47:39]execute_script done [09:47:39]execute_script returns [09:47:39]free content buf [09:47:39]Sock 9.Close socket [09:47:39]Sock 9.Thread stoped [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:04]accept exits with 10 [09:50:04]New connection [09:50:04]New thread 3067465060 created [09:50:04]Thread 3067321700 joined [09:50:04]Waiting for new connection... [09:50:04] Sock 10.Parse request [09:50:04]Sock 10.Check first char [09:50:04]Sock 10.First char is OK [09:50:04]request: POST /json_proto HTTP/1.0 [09:50:04]Method: POST [09:50:04]URL: /json_proto [09:50:04]Method is POST - this is cgi request [09:50:04]url: /json_proto [09:50:04]query_string will be loaded in cgi processing [09:50:04]execute_cgi json_proto POST (null) [09:50:04]execute_cgi path=json_proto method=POST [09:50:04]POST find Content-Length [09:50:04]Host: 172.17.44.196:8080 [09:50:04]Content-Length: 677 [09:50:04]Content-Type: application/json [09:50:04] [09:50:04]POST finish read [09:50:04]Found Content-Length = 677 [09:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:50:04]execute_script... [09:50: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)1965277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:50:04]POST & json_proto [09:50:04]process_json_proto [09:50:04]json parsed OK: [09:50:04]protocol is kg_v1.0 [09:50:04]action value=close_receipt [09:50:04]process_action close_receipt [09:50:04]cmd_close_receipt [09:50:04]MH_GetDate [09:50:04]Write to MH i2c: F0 00 00 26 8D A2 [09:50:04]Write i2c OK [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: F0 [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: F0 09 00 [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: F0 09 00 26 8D 00 D3 C6 18 67 E7 19 F8 65 20 [09:50:04]GetLastDocTimeStamp 1729676862 [09:50:04]current date 1729677011 [09:50:04]FM_GetShiftState [09:50:04]SAM_PROTO_GetShiftState [09:50:04]wFMCommunicate request_size=4 [09:50:04]MH_SAM_APDU [09:50:04]CAPDU: 80 13 01 00 [09:50:04]Write to MH i2c: E2 08 00 27 8D 80 13 01 00 00 00 00 00 31 [09:50:04]Write i2c OK [09:50:04]MH_I2C_Read... [09:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:04]Read from MH i2c: E2 [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: E2 0E 00 [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: E2 0E 00 27 8D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 96 [09:50:04]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:50:04]wFMCommunicate OK [09:50:04]SAM_PROTO_GetShiftState done [09:50:04]FM_GetShiftState done [09:50:04]opened in 1729642905 [09:50:04]opened+sec_in_day 1729729305 [09:50:04]quantity*price = 100011 [09:50:04]sum+1 = 100013 [09:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 48 23.10.2024 09:50 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75315 ФПД: 5872045095225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095011&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75315&fm=5872045095225&tin=02508201610067®Number=0000000000161154&sum=100000 [09:50:05]StoreToDocumentArchive [09:50:05]shift 173 fd 75315 [09:50:05]save to /storage/0173/doc_00075315 [09:50:05]save last doc name /storage/0173/doc_00075315 to /storage/kkm_last_doc_name [09:50:05]save OK [09:50:05]Clear old archive folders... [09:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=245 [09:50:05]tlvbuf is 00FAC030 [09:50:05]SAM_PROTO_ClearQueue [09:50:05]wFMCommunicate request_size=4 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 09 00 00 [09:50:05]Write to MH i2c: E2 08 00 34 8D 80 09 00 00 00 00 00 00 33 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 34 8D 00 90 00 35 [09:50:05]RAPDU: 90 00 [09:50:05]wFMCommunicate OK [09:50:05]SAM_PROTO_ClearQueue done [09:50:05]KKMCreateOFDPacket [09:50:05]OFDProtocolAddRootSTLVToBuf [09:50:05]FM_MakeSignedData [09:50:05]FM_MakeSignedData [09:50:05]SAM_PROTO_SignData [09:50:05]wFMCommunicate request_size=4 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 0D 01 02 [09:50:05]Write to MH i2c: E2 08 00 35 8D 80 0D 01 02 00 00 00 00 3B [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 35 8D 00 90 00 36 [09:50:05]RAPDU: 90 00 [09:50:05]wFMCommunicate OK [09:50:05]wFMCommunicate request_size=254 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 D3 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 33 26 01 00 35 04 06 00 05 57 31 29 79 39 [09:50:05]Write to MH i2c: E2 01 01 36 8D 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 D3 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 33 26 01 00 35 04 06 00 05 57 31 29 79 39 00 00 47 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 36 8D 00 90 00 37 [09:50:05]RAPDU: 90 00 [09:50:05]wFMCommunicate OK [09:50:05]wFMCommunicate request_size=4 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 0D 03 02 [09:50:05]Write to MH i2c: E2 08 00 37 8D 80 0D 03 02 00 00 00 00 3F [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:06]Read from MH i2c: E2 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: E2 0B 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: E2 0B 00 37 8D 00 E1 0D E7 D7 F4 CF BF 70 90 00 DE [09:50:06]RAPDU: E1 0D E7 D7 F4 CF BF 70 90 00 [09:50:06]wFMCommunicate OK [09:50:06]SAM_PROTO_SignData done [09:50:06]FM_MakeSignedData done [09:50:06]CreateOFDProtocolMessage [09:50:06]wFMCommunicate request_size=4 [09:50:06]MH_SAM_APDU [09:50:06]CAPDU: 80 11 00 00 [09:50:06]Write to MH i2c: E2 08 00 38 8D 80 11 00 00 00 00 00 00 3F [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:06]Read from MH i2c: E2 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: E2 17 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: E2 17 00 38 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8C [09:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:50:06]wFMCommunicate OK [09:50:06]CreateOFDProtocolMessage done [09:50:06]OFDSenderStorePacket 75315 [09:50:06]StoreOFDPacket docnum=75315 [09:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 25 3F 01 01 F1 DC 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 D3 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 33 26 01 00 35 04 06 00 05 57 31 29 79 39 E1 0D E7 D7 F4 CF BF 70 [09:50:06]CheckFolder [09:50:06]dirname=/storage/ofd_packets [09:50:06]CheckFolder done [09:50:06]ProducePacketName [09:50:06]name=ofd_packets/00075315 [09:50:06]NVStorageSaveData ofd_packets/00075315 [09:50:06]File name is /storage/ofd_packets/00075315 [09:50:06]Write 295 bytes [09:50:06]NVStorageSaveData done [09:50:06]OFDSenderStorePacket done [09:50:06]KKMCreateOFDPacket done [09:50:06]NVStorageSaveData kkm_last_timestamp [09:50:06]File name is /storage/kkm_last_timestamp [09:50:06]Write 4 bytes [09:50:06]NVStorageSaveData done [09:50:06]ExternCall_PrintAddStr [09:50:06]wPrintStart [09:50:06]Write to MH i2c: 01 00 00 39 8D C6 [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 39 8D 00 00 00 00 00 FF 0F DB [09:50:06]RasterBufferAndPrint [09:50:06]line Счет N : (1)1965277 [09:50:06]line ИНН: 02508201610067 [09:50:06]line Контрольно-Кассовый Чек [09:50:06]line ПРОДАЖА [09:50:06]line ТРК (МРК, ГНК) : 71 [09:50:06]line Товар: 2711129700 [09:50:06]line ГАЗ [09:50:06]line 25.710 * 38.90 [09:50:06]line = 1000.12 [09:50:06]line НДС 12% НСП 1% [09:50:06]line > о реализуемом товаре [09:50:06]line ОКРУГЛЕНИЕ: -0.12 [09:50:06]line ИТОГО: 1000.00 [09:50:06]line Внесено: 1000.00 [09:50:06]line СДАЧА: 0.00 [09:50:06]line НСП 1% : 8.85 [09:50:06]line НДС 12% : 106.21 [09:50:06]line Наличными: 1000.00 [09:50:06]line Безнал.: 0.00 [09:50:06]line Место: АЗС № 133 "Партнер Нефть" [09:50:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:50:06]line СНО: Общий режим [09:50:06]line Чек 48 23.10.2024 09:50 [09:50:06]line Смена: 173 ФФД: 1.0 [09:50:06]line ЗНМ: 0300000020 [09:50:06]line РНМ: 0000000000161154 [09:50:06]line Версия ККМ: v1.0 [09:50:06]line ФМ: 0000000000963323 [09:50:06]line ФД: 75315 [09:50:06]line ФПД: 5872045095225 [09:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095011&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75315&fm=5872045095225&tin=02508201610067®Number=0000000000161154&sum=100000 [09:50:06]OFD Sender: Processing packet 75315 [packets to send 15, broken 14] [09:50:06]ProducePacketName [09:50:06]name=ofd_packets/00075315 [09:50:06]OFD Sender: To server: pG, [09:50:06]CommunicateWithHost lk.salyk.kg:30040 [09:50:06]ConnectInit lk.salyk.kg [09:50:06]written 0, free lines is 4095 [09:50:06]Connected sock=9 [09:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 25 3F 01 01 F1 DC 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 D3 C6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 33 26 01 00 35 04 06 00 05 57 31 29 79 39 E1 0D E7 D7 F4 CF BF 70 [09:50:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 11 23 47 00 6C 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 39 36 33 33 32 33 10 04 04 00 33 26 01 00 F4 03 04 00 AE 6F 18 67 B6 04 01 00 00 90 71 1D 89 0B B4 BB 70 [09:50:06]CommunicateWithHost err = 0 [09:50:06]CheckOFDResponse [09:50:06]1017 (14) - 77093643461234 [09:50:06]1041 (16) - 0000000000963323 [09:50:06]1040 (4) - 75315 [09:50:06]1012 (4) - 23.10.2024 03:38 [09:50:06]1206 (1) - 0 [09:50:06]OFD Sender: Remove packet 75315 [09:50:06]ProducePacketName [09:50:06]name=ofd_packets/00075315 [09:50:06]NVStorageDeleteData [09:50:06]Write to MH i2c: 01 00 00 63 8D F0 [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 63 8D 00 00 00 00 00 9E 0C A1 [09:50:06]RasterBufferAndPrint [09:50:06]line [09:50:06]line [09:50:06]line [09:50:06]line [09:50:06]line [09:50:06]written 0, free lines is 3236 [09:50:06]MH_Cut [09:50:06]Write to MH i2c: D1 01 00 6A 8D 01 C9 [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: D1 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: D1 01 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: D1 01 00 6A 8D 00 C8 [09:50:06]Write to MH i2c: 01 00 00 6B 8D F8 [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:07]OFD Sender: No OFD packet to send [09:50:07]*** Cut start [09:50:07]*** Partial cut [09:50:07]*** CUTSNS_PIN = 1 [09:50:07]*** CUTSNS_PIN = 0 [09:50:08]*** Brake cut motor [09:50:08]Read from MH i2c: 01 [09:50:08]MH_I2C_Read... [09:50:08]*** Stop cut motor [09:50:08]*** Cut end [09:50:08]Read from MH i2c: 01 07 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: 01 07 00 6B 8D 00 00 00 00 00 FF 0F 0D [09:50:08]process_action close_receipt done [09:50:08]requested_data is exist [09:50:08]produce_requested_data [09:50:08]requested_item fm.sn is exist - process it [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 11 00 00 [09:50:08]Write to MH i2c: E2 08 00 6C 8D 80 11 00 00 00 00 00 00 73 [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 17 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 17 00 6C 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C0 [09:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:50:08]wFMCommunicate OK [09:50:08]requested_item fd.num is exist - process it [09:50:08]SAM_PROTO_GetFieldsCounters [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 13 00 00 [09:50:08]Write to MH i2c: E2 08 00 6D 8D 80 13 00 00 00 00 00 00 76 [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 62 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 62 00 6D 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 33 26 01 00 0E 04 04 00 AD 00 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 21 [09:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 33 26 01 00 0E 04 04 00 AD 00 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 [09:50:08]wFMCommunicate OK [09:50:08]SAM_PROTO_GetFieldsCounters done [09:50:08]requested_item shift.num is exist - process it [09:50:08]requested_item shift.opened is exist - process it [09:50:08]req_shift_opened [09:50:08]FM_GetShiftState [09:50:08]SAM_PROTO_GetShiftState [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 13 01 00 [09:50:08]Write to MH i2c: E2 08 00 6E 8D 80 13 01 00 00 00 00 00 78 [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 0E 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 0E 00 6E 8D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 DD [09:50:08]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:50:08]wFMCommunicate OK [09:50:08]SAM_PROTO_GetShiftState done [09:50:08]FM_GetShiftState done [09:50:08]req_shift_opened done [09:50:08]requested_item shift.open_date is exist - process it [09:50:08]req_shift_open_date [09:50:08]req_shift_open_date done [09:50:08]produce_requested_data done [09:50:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75315,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:50:08]process_action_free close_receipt [09:50:08]json_value_free [09:50:08]json_value_free done [09:50:08]process_json_proto returns [09:50:08]Send response to host [09:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75315,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:50:08]free response buf [09:50:08]execute_script done [09:50:08]execute_script returns [09:50:08]free content buf [09:50:08]Sock 10.Close socket [09:50:08]Sock 10.Thread stoped [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:36]accept exits with 7 [09:51:36]New connection [09:51:36]New thread 3067321700 created [09:51:36]Thread 3067465060 joined [09:51:36]Waiting for new connection... [09:51:36] Sock 7.Parse request [09:51:36]Sock 7.Check first char [09:51:36]Sock 7.First char is OK [09:51:36]request: POST /json_proto HTTP/1.0 [09:51:36]Method: POST [09:51:36]URL: /json_proto [09:51:36]Method is POST - this is cgi request [09:51:36]url: /json_proto [09:51:36]query_string will be loaded in cgi processing [09:51:36]execute_cgi json_proto POST (null) [09:51:36]execute_cgi path=json_proto method=POST [09:51:36]POST find Content-Length [09:51:36]Host: 172.17.44.196:8080 [09:51:36]Content-Length: 678 [09:51:36]Content-Type: application/json [09:51:36] [09:51:36]POST finish read [09:51:36]Found Content-Length = 678 [09:51:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.960, "sum" : 590.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:36]execute_script... [09:51: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)1965281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.960, "sum" : 590.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:36]POST & json_proto [09:51:36]process_json_proto [09:51:36]json parsed OK: [09:51:36]protocol is kg_v1.0 [09:51:36]action value=close_receipt [09:51:36]process_action close_receipt [09:51:36]cmd_close_receipt [09:51:36]MH_GetDate [09:51:36]Write to MH i2c: F0 00 00 6F 8D EB [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 09 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 09 00 6F 8D 00 2F C7 18 67 E7 19 F8 65 C6 [09:51:36]GetLastDocTimeStamp 1729677011 [09:51:36]current date 1729677103 [09:51:36]FM_GetShiftState [09:51:36]SAM_PROTO_GetShiftState [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 13 01 00 [09:51:36]Write to MH i2c: E2 08 00 70 8D 80 13 01 00 00 00 00 00 7A [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0E 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0E 00 70 8D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 DF [09:51:36]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_GetShiftState done [09:51:36]FM_GetShiftState done [09:51:36]opened in 1729642905 [09:51:36]opened+sec_in_day 1729729305 [09:51:36]quantity*price = 59063 [09:51:36]sum+1 = 59064 [09:51:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 590.00 Внесено: 590.00 СДАЧА: 0.00 НСП 1% : 5.23 НДС 12% : 62.72 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 49 23.10.2024 09:51 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75316 ФПД: 210424105636427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095143&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75316&fm=210424105636427&tin=02508201610067®Number=0000000000161154&sum=59000 [09:51:38]StoreToDocumentArchive [09:51:38]shift 173 fd 75316 [09:51:38]save to /storage/0173/doc_00075316 [09:51:38]save last doc name /storage/0173/doc_00075316 to /storage/kkm_last_doc_name [09:51:38]save OK [09:51:38]Clear old archive folders... [09:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:38]tlvbuf is 00D95EB0 [09:51:38]SAM_PROTO_ClearQueue [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 09 00 00 [09:51:38]Write to MH i2c: E2 08 00 7D 8D 80 09 00 00 00 00 00 00 7C [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 7D 8D 00 90 00 7E [09:51:38]RAPDU: 90 00 [09:51:38]wFMCommunicate OK [09:51:38]SAM_PROTO_ClearQueue done [09:51:38]KKMCreateOFDPacket [09:51:38]OFDProtocolAddRootSTLVToBuf [09:51:38]FM_MakeSignedData [09:51:38]FM_MakeSignedData [09:51:38]SAM_PROTO_SignData [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 0D 01 02 [09:51:38]Write to MH i2c: E2 08 00 7E 8D 80 0D 01 02 00 00 00 00 84 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 7E 8D 00 90 00 7F [09:51:38]RAPDU: 90 00 [09:51:38]wFMCommunicate OK [09:51:38]wFMCommunicate request_size=255 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B7 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 2F C7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 26 01 00 35 04 06 00 BF [09:51:38]Write to MH i2c: E2 02 01 7F 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 18 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B7 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 2F C7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 26 01 00 35 04 06 00 BF 00 00 3F [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 7F 8D 00 90 00 80 [09:51:38]RAPDU: 90 00 [09:51:38]wFMCommunicate OK [09:51:38]wFMCommunicate request_size=10 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 0D 02 02 05 61 2E 11 92 4B [09:51:38]Write to MH i2c: E2 0D 00 80 8D 80 0D 02 02 05 00 61 2E 11 92 4B 00 00 0E [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 80 8D 00 90 00 81 [09:51:38]RAPDU: 90 00 [09:51:38]wFMCommunicate OK [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 0D 03 02 [09:51:38]Write to MH i2c: E2 08 00 81 8D 80 0D 03 02 00 00 00 00 89 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 0B 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 0B 00 81 8D 00 87 57 AB 3C 8E C1 7F 21 90 00 3E [09:51:38]RAPDU: 87 57 AB 3C 8E C1 7F 21 90 00 [09:51:38]wFMCommunicate OK [09:51:38]SAM_PROTO_SignData done [09:51:38]FM_MakeSignedData done [09:51:38]CreateOFDProtocolMessage [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 11 00 00 [09:51:38]Write to MH i2c: E2 08 00 82 8D 80 11 00 00 00 00 00 00 89 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 17 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 17 00 82 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D6 [09:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:51:38]wFMCommunicate OK [09:51:38]CreateOFDProtocolMessage done [09:51:38]OFDSenderStorePacket 75316 [09:51:38]StoreOFDPacket docnum=75316 [09:51:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 25 50 07 01 8A 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B7 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 2F C7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 26 01 00 35 04 06 00 BF 61 2E 11 92 4B 87 57 AB 3C 8E C1 7F 21 [09:51:38]CheckFolder [09:51:38]dirname=/storage/ofd_packets [09:51:38]CheckFolder done [09:51:38]ProducePacketName [09:51:38]name=ofd_packets/00075316 [09:51:38]NVStorageSaveData ofd_packets/00075316 [09:51:38]File name is /storage/ofd_packets/00075316 [09:51:38]Write 301 bytes [09:51:38]NVStorageSaveData done [09:51:38]OFDSenderStorePacket done [09:51:38]KKMCreateOFDPacket done [09:51:38]NVStorageSaveData kkm_last_timestamp [09:51:38]File name is /storage/kkm_last_timestamp [09:51:38]Write 4 bytes [09:51:38]NVStorageSaveData done [09:51:38]ExternCall_PrintAddStr [09:51:38]wPrintStart [09:51:38]Write to MH i2c: 01 00 00 83 8D 10 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 83 8D 00 00 00 00 00 FF 0F 25 [09:51:38]RasterBufferAndPrint [09:51:38]line Счет N : (1)1965281 [09:51:38]line ИНН: 02508201610067 [09:51:38]line Контрольно-Кассовый Чек [09:51:38]line ПРОДАЖА [09:51:38]line ТРК (МРК, ГНК) : 54 [09:51:38]line Товар: 2710124500 [09:51:38]line Аи-95-К-5 [09:51:38]line 7.960 * 74.20 [09:51:38]line = 590.63 [09:51:38]line НДС 12% НСП 1% [09:51:38]line > о реализуемом товаре [09:51:38]line ОКРУГЛЕНИЕ: -0.63 [09:51:38]line ИТОГО: 590.00 [09:51:38]line Внесено: 590.00 [09:51:38]line СДАЧА: 0.00 [09:51:38]line НСП 1% : 5.23 [09:51:38]line НДС 12% : 62.72 [09:51:38]line Наличными: 590.00 [09:51:38]line Безнал.: 0.00 [09:51:38]line Место: АЗС № 133 "Партнер Нефть" [09:51:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:51:38]line СНО: Общий режим [09:51:38]line Чек 49 23.10.2024 09:51 [09:51:38]line Смена: 173 ФФД: 1.0 [09:51:38]line ЗНМ: 0300000020 [09:51:38]line РНМ: 0000000000161154 [09:51:38]line Версия ККМ: v1.0 [09:51:38]line ФМ: 0000000000963323 [09:51:38]line ФД: 75316 [09:51:38]line ФПД: 210424105636427 [09:51:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095143&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75316&fm=210424105636427&tin=02508201610067®Number=0000000000161154&sum=59000 [09:51:38]OFD Sender: Processing packet 75316 [packets to send 15, broken 14] [09:51:38]ProducePacketName [09:51:38]name=ofd_packets/00075316 [09:51:38]OFD Sender: To server: pG, [09:51:38]CommunicateWithHost lk.salyk.kg:30040 [09:51:38]ConnectInit lk.salyk.kg [09:51:38]written 0, free lines is 4095 [09:51:38]Connected sock=11 [09:51:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 25 50 07 01 8A 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B7 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 2F C7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 26 01 00 35 04 06 00 BF 61 2E 11 92 4B 87 57 AB 3C 8E C1 7F 21 [09:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EC 88 47 00 35 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 34 26 01 00 F4 03 04 00 0B 70 18 67 B6 04 01 00 00 D5 BF B0 F8 AE 86 2C 9F [09:51:39]CommunicateWithHost err = 0 [09:51:39]CheckOFDResponse [09:51:39]1017 (14) - 77093643461234 [09:51:39]1041 (16) - 0000000000963323 [09:51:39]1040 (4) - 75316 [09:51:39]1012 (4) - 23.10.2024 03:39 [09:51:39]1206 (1) - 0 [09:51:39]OFD Sender: Remove packet 75316 [09:51:39]ProducePacketName [09:51:39]name=ofd_packets/00075316 [09:51:39]NVStorageDeleteData [09:51:39]Write to MH i2c: 01 00 00 AD 8D 3A [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 AD 8D 00 00 00 00 00 AA 0C F7 [09:51:39]RasterBufferAndPrint [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]written 0, free lines is 3245 [09:51:39]MH_Cut [09:51:39]Write to MH i2c: D1 01 00 B4 8D 01 13 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: D1 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: D1 01 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: D1 01 00 B4 8D 00 12 [09:51:39]Write to MH i2c: 01 00 00 B5 8D 42 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]OFD Sender: No OFD packet to send [09:51:40]*** Cut start [09:51:40]*** Partial cut [09:51:40]*** CUTSNS_PIN = 1 [09:51:40]*** CUTSNS_PIN = 0 [09:51:40]*** Brake cut motor [09:51:40]Read from MH i2c: 01 [09:51:40]MH_I2C_Read... [09:51:40]*** Stop cut motor [09:51:40]*** Cut end [09:51:40]Read from MH i2c: 01 07 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: 01 07 00 B5 8D 00 00 00 00 00 FF 0F 57 [09:51:40]process_action close_receipt done [09:51:40]requested_data is exist [09:51:40]produce_requested_data [09:51:40]requested_item fm.sn is exist - process it [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 11 00 00 [09:51:40]Write to MH i2c: E2 08 00 B6 8D 80 11 00 00 00 00 00 00 BD [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 17 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 17 00 B6 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0A [09:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:51:40]wFMCommunicate OK [09:51:40]requested_item fd.num is exist - process it [09:51:40]SAM_PROTO_GetFieldsCounters [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 13 00 00 [09:51:40]Write to MH i2c: E2 08 00 B7 8D 80 13 00 00 00 00 00 00 C0 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 62 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 62 00 B7 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 34 26 01 00 0E 04 04 00 AD 00 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 6F [09:51:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 34 26 01 00 0E 04 04 00 AD 00 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 [09:51:41]wFMCommunicate OK [09:51:41]SAM_PROTO_GetFieldsCounters done [09:51:41]requested_item shift.num is exist - process it [09:51:41]requested_item shift.opened is exist - process it [09:51:41]req_shift_opened [09:51:41]FM_GetShiftState [09:51:41]SAM_PROTO_GetShiftState [09:51:41]wFMCommunicate request_size=4 [09:51:41]MH_SAM_APDU [09:51:41]CAPDU: 80 13 01 00 [09:51:41]Write to MH i2c: E2 08 00 B8 8D 80 13 01 00 00 00 00 00 C2 [09:51:41]Write i2c OK [09:51:41]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 0E 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 0E 00 B8 8D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 27 [09:51:41]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:51:41]wFMCommunicate OK [09:51:41]SAM_PROTO_GetShiftState done [09:51:41]FM_GetShiftState done [09:51:41]req_shift_opened done [09:51:41]requested_item shift.open_date is exist - process it [09:51:41]req_shift_open_date [09:51:41]req_shift_open_date done [09:51:41]produce_requested_data done [09:51:41]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75316,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:51:41]process_action_free close_receipt [09:51:41]json_value_free [09:51:41]json_value_free done [09:51:41]process_json_proto returns [09:51:41]Send response to host [09:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75316,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:51:41]free response buf [09:51:41]execute_script done [09:51:41]execute_script returns [09:51:41]free content buf [09:51:41]Sock 7.Close socket [09:51:41]Sock 7.Thread stoped [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]accept exits with 9 [09:56:24]New connection [09:56:24]New thread 3067465060 created [09:56:24]Thread 3067321700 joined [09:56:24]Waiting for new connection... [09:56:24] Sock 9.Parse request [09:56:24]Sock 9.Check first char [09:56:24]Sock 9.First char is OK [09:56:24]request: POST /json_proto HTTP/1.0 [09:56:24]Method: POST [09:56:24]URL: /json_proto [09:56:24]Method is POST - this is cgi request [09:56:24]url: /json_proto [09:56:24]query_string will be loaded in cgi processing [09:56:24]execute_cgi json_proto POST (null) [09:56:24]execute_cgi path=json_proto method=POST [09:56:24]POST find Content-Length [09:56:24]Host: 172.17.44.196:8080 [09:56:24]Content-Length: 630 [09:56:24]Content-Type: application/json [09:56:24] [09:56:24]POST finish read [09:56:24]Found Content-Length = 630 [09:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273212", "tax_sys" : 0, "items" : [ { "code": "46184016", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Plus Impulse", "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" ] } } [09:56:24]execute_script... [09:56:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273212", "tax_sys" : 0, "items" : [ { "code": "46184016", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Plus Impulse", "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" ] } } [09:56:24]POST & json_proto [09:56:24]process_json_proto [09:56:24]json parsed OK: [09:56:24]protocol is kg_v1.0 [09:56:24]action value=close_receipt [09:56:24]process_action close_receipt [09:56:24]cmd_close_receipt [09:56:24]MH_GetDate [09:56:24]Write to MH i2c: F0 00 00 B9 8D 35 [09:56:24]Write i2c OK [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: F0 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: F0 09 00 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: F0 09 00 B9 8D 00 4F C8 18 67 E7 19 F8 65 31 [09:56:24]GetLastDocTimeStamp 1729677103 [09:56:24]current date 1729677391 [09:56:24]FM_GetShiftState [09:56:24]SAM_PROTO_GetShiftState [09:56:24]wFMCommunicate request_size=4 [09:56:24]MH_SAM_APDU [09:56:24]CAPDU: 80 13 01 00 [09:56:24]Write to MH i2c: E2 08 00 BA 8D 80 13 01 00 00 00 00 00 C4 [09:56:24]Write i2c OK [09:56:24]MH_I2C_Read... [09:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:24]Read from MH i2c: E2 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: E2 0E 00 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: E2 0E 00 BA 8D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 29 [09:56:24]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:56:24]wFMCommunicate OK [09:56:24]SAM_PROTO_GetShiftState done [09:56:24]FM_GetShiftState done [09:56:24]opened in 1729642905 [09:56:24]opened+sec_in_day 1729729305 [09:56:24]quantity*price = 11100 [09:56:24]sum+1 = 11101 [09:56:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 50 23.10.2024 09:56 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75317 ФПД: 27391844348069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095631&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75317&fm=27391844348069&tin=02508201610067®Number=0000000000161154&sum=11100 0 [09:56:25]StoreToDocumentArchive [09:56:25]shift 173 fd 75317 [09:56:25]save to /storage/0173/doc_00075317 [09:56:25]save last doc name /storage/0173/doc_00075317 to /storage/kkm_last_doc_name [09:56:25]save OK [09:56:25]Clear old archive folders... [09:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:56:25]tlvbuf is 00FDA100 [09:56:25]SAM_PROTO_ClearQueue [09:56:25]wFMCommunicate request_size=4 [09:56:25]MH_SAM_APDU [09:56:25]CAPDU: 80 09 00 00 [09:56:25]Write to MH i2c: E2 08 00 C7 8D 80 09 00 00 00 00 00 00 C6 [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:25]Read from MH i2c: E2 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 03 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 03 00 C7 8D 00 90 00 C8 [09:56:25]RAPDU: 90 00 [09:56:25]wFMCommunicate OK [09:56:25]SAM_PROTO_ClearQueue done [09:56:25]KKMCreateOFDPacket [09:56:25]OFDProtocolAddRootSTLVToBuf [09:56:25]FM_MakeSignedData [09:56:25]FM_MakeSignedData [09:56:25]SAM_PROTO_SignData [09:56:25]wFMCommunicate request_size=4 [09:56:25]MH_SAM_APDU [09:56:25]CAPDU: 80 0D 01 02 [09:56:25]Write to MH i2c: E2 08 00 C8 8D 80 0D 01 02 00 00 00 00 CE [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:25]Read from MH i2c: E2 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 03 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 03 00 C8 8D 00 90 00 C9 [09:56:25]RAPDU: 90 00 [09:56:25]wFMCommunicate OK [09:56:25]wFMCommunicate request_size=255 [09:56:25]MH_SAM_APDU [09:56:25]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 08 00 34 36 31 38 34 30 31 36 06 04 2D 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 43 6F 6D 70 61 63 74 20 50 6C 75 73 20 49 6D 70 75 6C 73 65 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 32 00 00 00 F4 03 04 00 4F C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [09:56:25]Write to MH i2c: E2 02 01 C9 8D 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 08 00 34 36 31 38 34 30 31 36 06 04 2D 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 43 6F 6D 70 61 63 74 20 50 6C 75 73 20 49 6D 70 75 6C 73 65 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 32 00 00 00 F4 03 04 00 4F C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 92 [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:26]Read from MH i2c: E2 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 03 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 03 00 C9 8D 00 90 00 CA [09:56:26]RAPDU: 90 00 [09:56:26]wFMCommunicate OK [09:56:26]wFMCommunicate request_size=41 [09:56:26]MH_SAM_APDU [09:56:26]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 35 26 01 00 35 04 06 00 18 E9 A9 26 F0 A5 [09:56:26]Write to MH i2c: E2 2C 00 CA 8D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 35 26 01 00 35 04 06 00 18 E9 A9 26 F0 A5 00 00 5B [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:26]Read from MH i2c: E2 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 03 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 03 00 CA 8D 00 90 00 CB [09:56:26]RAPDU: 90 00 [09:56:26]wFMCommunicate OK [09:56:26]wFMCommunicate request_size=4 [09:56:26]MH_SAM_APDU [09:56:26]CAPDU: 80 0D 03 02 [09:56:26]Write to MH i2c: E2 08 00 CB 8D 80 0D 03 02 00 00 00 00 D3 [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:26]Read from MH i2c: E2 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 0B 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 0B 00 CB 8D 00 1B 9F 82 55 FD 46 DB 42 90 00 C5 [09:56:26]RAPDU: 1B 9F 82 55 FD 46 DB 42 90 00 [09:56:26]wFMCommunicate OK [09:56:26]SAM_PROTO_SignData done [09:56:26]FM_MakeSignedData done [09:56:26]CreateOFDProtocolMessage [09:56:26]wFMCommunicate request_size=4 [09:56:26]MH_SAM_APDU [09:56:26]CAPDU: 80 11 00 00 [09:56:26]Write to MH i2c: E2 08 00 CC 8D 80 11 00 00 00 00 00 00 D3 [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:26]Read from MH i2c: E2 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 17 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 17 00 CC 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 20 [09:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:56:26]wFMCommunicate OK [09:56:26]CreateOFDProtocolMessage done [09:56:26]OFDSenderStorePacket 75317 [09:56:26]StoreOFDPacket docnum=75317 [09:56:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 9A 19 26 01 9D B5 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 08 00 34 36 31 38 34 30 31 36 06 04 2D 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 43 6F 6D 70 61 63 74 20 50 6C 75 73 20 49 6D 70 75 6C 73 65 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 32 00 00 00 F4 03 04 00 4F C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 35 26 01 00 35 04 06 00 18 E9 A9 26 F0 A5 1B 9F 82 55 FD 46 DB 42 [09:56:26]CheckFolder [09:56:26]dirname=/storage/ofd_packets [09:56:26]CheckFolder done [09:56:26]ProducePacketName [09:56:26]name=ofd_packets/00075317 [09:56:26]NVStorageSaveData ofd_packets/00075317 [09:56:26]File name is /storage/ofd_packets/00075317 [09:56:26]Write 332 bytes [09:56:26]NVStorageSaveData done [09:56:26]OFDSenderStorePacket done [09:56:26]KKMCreateOFDPacket done [09:56:26]NVStorageSaveData kkm_last_timestamp [09:56:26]File name is /storage/kkm_last_timestamp [09:56:26]Write 4 bytes [09:56:26]NVStorageSaveData done [09:56:26]ExternCall_PrintAddStr [09:56:26]wPrintStart [09:56:26]Write to MH i2c: 01 00 00 CD 8D 5A [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: 01 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: 01 07 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: 01 07 00 CD 8D 00 00 00 00 00 FF 0F 6F [09:56:26]RasterBufferAndPrint [09:56:26]line Счет N : (3)273212 [09:56:26]line ИНН: 02508201610067 [09:56:26]line Контрольно-Кассовый Чек [09:56:26]line ПРОДАЖА [09:56:26]line Товар: 46184016 [09:56:26]line Сигареты Winston Compact Plus Impulse [09:56:26]line 1.000 * 111.00 [09:56:26]line = 111.00 [09:56:26]line НДС 12% НСП 1% [09:56:26]line > о реализуемом товаре [09:56:26]line ИТОГО: 111.00 [09:56:26]line НСП 1% : 0.98 [09:56:26]line НДС 12% : 11.79 [09:56:26]line Наличными: 111.00 [09:56:26]line Безнал.: 0.00 [09:56:26]line Место: АЗС № 133 "Партнер Нефть" [09:56:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:56:26]line СНО: Общий режим [09:56:26]line Чек 50 23.10.2024 09:56 [09:56:26]line Смена: 173 ФФД: 1.0 [09:56:26]line ЗНМ: 0300000020 [09:56:26]line РНМ: 0000000000161154 [09:56:26]line Версия ККМ: v1.0 [09:56:26]line ФМ: 0000000000963323 [09:56:26]line ФД: 75317 [09:56:26]line ФПД: 27391844348069 [09:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095631&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75317&fm=27391844348069&tin=02508201610067®Number=0000000000161154&sum=11100 [09:56:26]line 0 [09:56:26]OFD Sender: Processing packet 75317 [packets to send 15, broken 14] [09:56:26]ProducePacketName [09:56:26]name=ofd_packets/00075317 [09:56:26]OFD Sender: To server: pG, [09:56:26]CommunicateWithHost lk.salyk.kg:30040 [09:56:26]ConnectInit lk.salyk.kg [09:56:26]written 0, free lines is 4095 [09:56:26]Connected sock=10 [09:56:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 9A 19 26 01 9D B5 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 08 00 34 36 31 38 34 30 31 36 06 04 2D 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 43 6F 6D 70 61 63 74 20 50 6C 75 73 20 49 6D 70 75 6C 73 65 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 32 00 00 00 F4 03 04 00 4F C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 35 26 01 00 35 04 06 00 18 E9 A9 26 F0 A5 1B 9F 82 55 FD 46 DB 42 [09:56:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A5 7C 47 00 89 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 39 36 33 33 32 33 10 04 04 00 35 26 01 00 F4 03 04 00 2A 71 18 67 B6 04 01 00 00 79 97 6C 2F FA 29 7B 98 [09:56:26]CommunicateWithHost err = 0 [09:56:26]CheckOFDResponse [09:56:26]1017 (14) - 77093643461234 [09:56:26]1041 (16) - 0000000000963323 [09:56:26]1040 (4) - 75317 [09:56:26]1012 (4) - 23.10.2024 03:44 [09:56:26]1206 (1) - 0 [09:56:26]OFD Sender: Remove packet 75317 [09:56:26]ProducePacketName [09:56:26]name=ofd_packets/00075317 [09:56:26]NVStorageDeleteData [09:56:26]Write to MH i2c: 01 00 00 F5 8D 82 [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: 01 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: 01 07 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: 01 07 00 F5 8D 00 00 00 00 00 C0 0C 55 [09:56:26]RasterBufferAndPrint [09:56:26]line [09:56:26]line [09:56:26]line [09:56:26]line [09:56:26]line [09:56:26]written 0, free lines is 3270 [09:56:26]MH_Cut [09:56:26]Write to MH i2c: D1 01 00 FC 8D 01 5B [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: D1 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: D1 01 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: D1 01 00 FC 8D 00 5A [09:56:26]Write to MH i2c: 01 00 00 FD 8D 8A [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:27]OFD Sender: No OFD packet to send [09:56:27]*** Cut start [09:56:27]*** Partial cut [09:56:27]*** CUTSNS_PIN = 1 [09:56:27]*** CUTSNS_PIN = 0 [09:56:28]*** Brake cut motor [09:56:28]Read from MH i2c: 01 [09:56:28]MH_I2C_Read... [09:56:28]*** Stop cut motor [09:56:28]*** Cut end [09:56:28]Read from MH i2c: 01 07 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: 01 07 00 FD 8D 00 00 00 00 00 FF 0F 9F [09:56:28]process_action close_receipt done [09:56:28]requested_data is exist [09:56:28]produce_requested_data [09:56:28]requested_item fm.sn is exist - process it [09:56:28]wFMCommunicate request_size=4 [09:56:28]MH_SAM_APDU [09:56:28]CAPDU: 80 11 00 00 [09:56:28]Write to MH i2c: E2 08 00 FE 8D 80 11 00 00 00 00 00 00 05 [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 [09:56:28]MH_I2C_Read... [09:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:28]Read from MH i2c: E2 17 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 17 00 FE 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 52 [09:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:56:28]wFMCommunicate OK [09:56:28]requested_item fd.num is exist - process it [09:56:28]SAM_PROTO_GetFieldsCounters [09:56:28]wFMCommunicate request_size=4 [09:56:28]MH_SAM_APDU [09:56:28]CAPDU: 80 13 00 00 [09:56:28]Write to MH i2c: E2 08 00 FF 8D 80 13 00 00 00 00 00 00 08 [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:28]Read from MH i2c: E2 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 62 00 [09:56:28]MH_I2C_Read... [09:56:28]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 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 35 26 01 00 0E 04 04 00 AD 00 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 BB [09:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 35 26 01 00 0E 04 04 00 AD 00 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 [09:56:28]wFMCommunicate OK [09:56:28]SAM_PROTO_GetFieldsCounters done [09:56:28]requested_item shift.num is exist - process it [09:56:28]requested_item shift.opened is exist - process it [09:56:28]req_shift_opened [09:56:28]FM_GetShiftState [09:56:28]SAM_PROTO_GetShiftState [09:56:28]wFMCommunicate request_size=4 [09:56:28]MH_SAM_APDU [09:56:28]CAPDU: 80 13 01 00 [09:56:28]Write to MH i2c: E2 08 00 00 8E 80 13 01 00 00 00 00 00 0B [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:28]Read from MH i2c: E2 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 0E 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 0E 00 00 8E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 70 [09:56:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:56:28]wFMCommunicate OK [09:56:28]SAM_PROTO_GetShiftState done [09:56:28]FM_GetShiftState done [09:56:28]req_shift_opened done [09:56:28]requested_item shift.open_date is exist - process it [09:56:28]req_shift_open_date [09:56:28]req_shift_open_date done [09:56:28]produce_requested_data done [09:56:28]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75317,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:56:28]process_action_free close_receipt [09:56:28]json_value_free [09:56:28]json_value_free done [09:56:28]process_json_proto returns [09:56:28]Send response to host [09:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75317,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:56:28]free response buf [09:56:28]execute_script done [09:56:28]execute_script returns [09:56:28]free content buf [09:56:28]Sock 9.Close socket [09:56:28]Sock 9.Thread stoped [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:49]accept exits with 7 [09:56:49]New connection [09:56:49]New thread 3067321700 created [09:56:49]Thread 3067465060 joined [09:56:49]Waiting for new connection... [09:56:49] Sock 7.Parse request [09:56:49]Sock 7.Check first char [09:56:49]Sock 7.First char is OK [09:56:49]request: POST /json_proto HTTP/1.0 [09:56:49]Method: POST [09:56:49]URL: /json_proto [09:56:49]Method is POST - this is cgi request [09:56:49]url: /json_proto [09:56:49]query_string will be loaded in cgi processing [09:56:49]execute_cgi json_proto POST (null) [09:56:49]execute_cgi path=json_proto method=POST [09:56:49]POST find Content-Length [09:56:49]Host: 172.17.44.196:8080 [09:56:49]Content-Length: 886 [09:56:49]Content-Type: application/json [09:56:49] [09:56:49]POST finish read [09:56:49]Found Content-Length = 886 [09:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273213", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 301.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:49]execute_script... [09:56:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273213", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 301.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:49]POST & json_proto [09:56:49]process_json_proto [09:56:49]json parsed OK: [09:56:49]protocol is kg_v1.0 [09:56:49]action value=close_receipt [09:56:49]process_action close_receipt [09:56:49]cmd_close_receipt [09:56:49]MH_GetDate [09:56:49]Write to MH i2c: F0 00 00 01 8E 7E [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: F0 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: F0 09 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: F0 09 00 01 8E 00 68 C8 18 67 E7 19 F8 65 93 [09:56:49]GetLastDocTimeStamp 1729677391 [09:56:49]current date 1729677416 [09:56:49]FM_GetShiftState [09:56:49]SAM_PROTO_GetShiftState [09:56:49]wFMCommunicate request_size=4 [09:56:49]MH_SAM_APDU [09:56:49]CAPDU: 80 13 01 00 [09:56:49]Write to MH i2c: E2 08 00 02 8E 80 13 01 00 00 00 00 00 0D [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:49]Read from MH i2c: E2 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 0E 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 0E 00 02 8E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 72 [09:56:49]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:56:49]wFMCommunicate OK [09:56:49]SAM_PROTO_GetShiftState done [09:56:49]FM_GetShiftState done [09:56:49]opened in 1729642905 [09:56:49]opened+sec_in_day 1729729305 [09:56:49]quantity*price = 11100 [09:56:49]sum+1 = 11101 [09:56:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 301.00 НСП 1% : 2.66 НДС 12% : 31.97 Наличными: 301.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 51 23.10.2024 09:56 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75318 ФПД: 38759793699306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095656&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75318&fm=38759793699306&tin=02508201610067®Number=0000000000161154&sum=30100 0 [09:56:50]StoreToDocumentArchive [09:56:50]shift 173 fd 75318 [09:56:50]save to /storage/0173/doc_00075318 [09:56:50]save last doc name /storage/0173/doc_00075318 to /storage/kkm_last_doc_name [09:56:50]save OK [09:56:50]Clear old archive folders... [09:56:50]ProcessDocumentItem done err = 0, tmpTLVsize=389 [09:56:50]tlvbuf is 00CD1070 [09:56:50]SAM_PROTO_ClearQueue [09:56:50]wFMCommunicate request_size=4 [09:56:50]MH_SAM_APDU [09:56:50]CAPDU: 80 09 00 00 [09:56:50]Write to MH i2c: E2 08 00 0F 8E 80 09 00 00 00 00 00 00 0F [09:56:50]Write i2c OK [09:56:50]MH_I2C_Read... [09:56:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:50]Read from MH i2c: E2 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 03 00 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 03 00 0F 8E 00 90 00 11 [09:56:50]RAPDU: 90 00 [09:56:50]wFMCommunicate OK [09:56:50]SAM_PROTO_ClearQueue done [09:56:50]KKMCreateOFDPacket [09:56:50]OFDProtocolAddRootSTLVToBuf [09:56:50]FM_MakeSignedData [09:56:50]FM_MakeSignedData [09:56:50]SAM_PROTO_SignData [09:56:50]wFMCommunicate request_size=4 [09:56:50]MH_SAM_APDU [09:56:50]CAPDU: 80 0D 01 02 [09:56:50]Write to MH i2c: E2 08 00 10 8E 80 0D 01 02 00 00 00 00 17 [09:56:50]Write i2c OK [09:56:50]MH_I2C_Read... [09:56:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:50]Read from MH i2c: E2 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 03 00 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 03 00 10 8E 00 90 00 12 [09:56:50]RAPDU: 90 00 [09:56:50]wFMCommunicate OK [09:56:50]wFMCommunicate request_size=255 [09:56:50]MH_SAM_APDU [09:56:50]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [09:56:50]Write to MH i2c: E2 02 01 11 8E 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 16 [09:56:50]Write i2c OK [09:56:50]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 11 8E 00 90 00 13 [09:56:51]RAPDU: 90 00 [09:56:51]wFMCommunicate OK [09:56:51]wFMCommunicate request_size=148 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0C 00 00 00 00 07 04 06 00 94 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 33 00 00 00 F4 03 04 00 68 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 26 01 00 35 04 06 00 23 40 77 BC 29 EA [09:56:51]Write to MH i2c: E2 97 00 12 8E 80 0D 02 02 8F 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0C 00 00 00 00 07 04 06 00 94 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 33 00 00 00 F4 03 04 00 68 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 26 01 00 35 04 06 00 23 40 77 BC 29 EA 00 00 8B [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 03 00 12 8E 00 90 00 14 [09:56:51]RAPDU: 90 00 [09:56:51]wFMCommunicate OK [09:56:51]wFMCommunicate request_size=4 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 0D 03 02 [09:56:51]Write to MH i2c: E2 08 00 13 8E 80 0D 03 02 00 00 00 00 1C [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 0B 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 0B 00 13 8E 00 DB 03 B9 C3 D2 FD 8E D0 90 00 A4 [09:56:51]RAPDU: DB 03 B9 C3 D2 FD 8E D0 90 00 [09:56:51]wFMCommunicate OK [09:56:51]SAM_PROTO_SignData done [09:56:51]FM_MakeSignedData done [09:56:51]CreateOFDProtocolMessage [09:56:51]wFMCommunicate request_size=4 [09:56:51]MH_SAM_APDU [09:56:51]CAPDU: 80 11 00 00 [09:56:51]Write to MH i2c: E2 08 00 14 8E 80 11 00 00 00 00 00 00 1C [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:51]Read from MH i2c: E2 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 17 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: E2 17 00 14 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 69 [09:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:56:51]wFMCommunicate OK [09:56:51]CreateOFDProtocolMessage done [09:56:51]OFDSenderStorePacket 75318 [09:56:51]StoreOFDPacket docnum=75318 [09:56:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 99 01 00 00 12 EA 91 01 A3 28 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0C 00 00 00 00 07 04 06 00 94 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 33 00 00 00 F4 03 04 00 68 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 26 01 00 35 04 06 00 23 40 77 BC 29 EA DB 03 B9 C3 D2 FD 8E D0 [09:56:51]CheckFolder [09:56:51]dirname=/storage/ofd_packets [09:56:51]CheckFolder done [09:56:51]ProducePacketName [09:56:51]name=ofd_packets/00075318 [09:56:51]NVStorageSaveData ofd_packets/00075318 [09:56:51]File name is /storage/ofd_packets/00075318 [09:56:51]Write 439 bytes [09:56:51]NVStorageSaveData done [09:56:51]OFDSenderStorePacket done [09:56:51]KKMCreateOFDPacket done [09:56:51]NVStorageSaveData kkm_last_timestamp [09:56:51]File name is /storage/kkm_last_timestamp [09:56:51]Write 4 bytes [09:56:51]NVStorageSaveData done [09:56:51]ExternCall_PrintAddStr [09:56:51]wPrintStart [09:56:51]Write to MH i2c: 01 00 00 15 8E A3 [09:56:51]Write i2c OK [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: 01 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: 01 07 00 [09:56:51]MH_I2C_Read... [09:56:51]Read from MH i2c: 01 07 00 15 8E 00 00 00 00 00 FF 0F B8 [09:56:51]RasterBufferAndPrint [09:56:51]line Счет N : (3)273213 [09:56:51]line ИНН: 02508201610067 [09:56:51]line Контрольно-Кассовый Чек [09:56:51]line ПРОДАЖА [09:56:51]line Товар: 4870001570071 [09:56:51]line Напиток Pepsi 1л [09:56:51]line 1.000 * 111.00 [09:56:51]line = 111.00 [09:56:51]line НДС 12% НСП 1% [09:56:51]line > о реализуемом товаре [09:56:51]line Товар: 4700000480050 [09:56:51]line Напиток Nitro Energy эн green ж/б 0,45л [09:56:51]line 2.000 * 95.00 [09:56:51]line = 190.00 [09:56:51]line НДС 12% НСП 1% [09:56:51]line > о реализуемом товаре [09:56:51]line ИТОГО: 301.00 [09:56:51]line НСП 1% : 2.66 [09:56:51]line НДС 12% : 31.97 [09:56:51]line Наличными: 301.00 [09:56:51]line Безнал.: 0.00 [09:56:51]line Место: АЗС № 133 "Партнер Нефть" [09:56:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:56:51]line СНО: Общий режим [09:56:51]line Чек 51 23.10.2024 09:56 [09:56:51]line Смена: 173 ФФД: 1.0 [09:56:51]line ЗНМ: 0300000020 [09:56:51]line РНМ: 0000000000161154 [09:56:51]line Версия ККМ: v1.0 [09:56:51]line ФМ: 0000000000963323 [09:56:51]line ФД: 75318 [09:56:51]line ФПД: 38759793699306 [09:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095656&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75318&fm=38759793699306&tin=02508201610067®Number=0000000000161154&sum=30100 [09:56:51]line 0 [09:56:51]OFD Sender: Processing packet 75318 [packets to send 15, broken 14] [09:56:51]ProducePacketName [09:56:51]name=ofd_packets/00075318 [09:56:51]OFD Sender: To server: pG, [09:56:51]CommunicateWithHost lk.salyk.kg:30040 [09:56:51]ConnectInit lk.salyk.kg [09:56:51]written 0, free lines is 4095 [09:56:51]Connected sock=10 [09:56:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 99 01 00 00 12 EA 91 01 A3 28 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0C 00 00 00 00 07 04 06 00 94 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 33 00 00 00 F4 03 04 00 68 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 26 01 00 35 04 06 00 23 40 77 BC 29 EA DB 03 B9 C3 D2 FD 8E D0 [09:56:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 03 04 47 00 E9 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 36 26 01 00 F4 03 04 00 44 71 18 67 B6 04 01 00 00 E2 FD F8 F1 3D BB F6 8A [09:56:52]CommunicateWithHost err = 0 [09:56:52]CheckOFDResponse [09:56:52]1017 (14) - 77093643461234 [09:56:52]1041 (16) - 0000000000963323 [09:56:52]1040 (4) - 75318 [09:56:52]1012 (4) - 23.10.2024 03:45 [09:56:52]1206 (1) - 0 [09:56:52]OFD Sender: Remove packet 75318 [09:56:52]ProducePacketName [09:56:52]name=ofd_packets/00075318 [09:56:52]NVStorageDeleteData [09:56:52]Write to MH i2c: 01 00 00 43 8E D1 [09:56:52]Write i2c OK [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: 01 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: 01 07 00 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: 01 07 00 43 8E 00 00 00 00 00 4A 0C 2E [09:56:52]RasterBufferAndPrint [09:56:52]line [09:56:52]line [09:56:52]line [09:56:52]line [09:56:52]line [09:56:52]written 0, free lines is 3151 [09:56:52]MH_Cut [09:56:52]Write to MH i2c: D1 01 00 4A 8E 01 AA [09:56:52]Write i2c OK [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: D1 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: D1 01 00 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: D1 01 00 4A 8E 00 A9 [09:56:52]Write to MH i2c: 01 00 00 4B 8E D9 [09:56:52]Write i2c OK [09:56:52]MH_I2C_Read... [09:56:52]OFD Sender: No OFD packet to send [09:56:53]*** Cut start [09:56:53]*** Partial cut [09:56:53]*** CUTSNS_PIN = 1 [09:56:53]*** CUTSNS_PIN = 0 [09:56:53]*** Brake cut motor [09:56:53]Read from MH i2c: 01 [09:56:53]MH_I2C_Read... [09:56:53]*** Stop cut motor [09:56:53]*** Cut end [09:56:53]Read from MH i2c: 01 07 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: 01 07 00 4B 8E 00 00 00 00 00 FF 0F EE [09:56:53]process_action close_receipt done [09:56:53]requested_data is exist [09:56:53]produce_requested_data [09:56:53]requested_item fm.sn is exist - process it [09:56:53]wFMCommunicate request_size=4 [09:56:53]MH_SAM_APDU [09:56:53]CAPDU: 80 11 00 00 [09:56:53]Write to MH i2c: E2 08 00 4C 8E 80 11 00 00 00 00 00 00 54 [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 17 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 17 00 4C 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A1 [09:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:56:54]wFMCommunicate OK [09:56:54]requested_item fd.num is exist - process it [09:56:54]SAM_PROTO_GetFieldsCounters [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 13 00 00 [09:56:54]Write to MH i2c: E2 08 00 4D 8E 80 13 00 00 00 00 00 00 57 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 62 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 62 00 4D 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 26 01 00 0E 04 04 00 AD 00 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 0E [09:56:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 36 26 01 00 0E 04 04 00 AD 00 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 [09:56:54]wFMCommunicate OK [09:56:54]SAM_PROTO_GetFieldsCounters done [09:56:54]requested_item shift.num is exist - process it [09:56:54]requested_item shift.opened is exist - process it [09:56:54]req_shift_opened [09:56:54]FM_GetShiftState [09:56:54]SAM_PROTO_GetShiftState [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 13 01 00 [09:56:54]Write to MH i2c: E2 08 00 4E 8E 80 13 01 00 00 00 00 00 59 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 0E 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 0E 00 4E 8E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 BE [09:56:54]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:56:54]wFMCommunicate OK [09:56:54]SAM_PROTO_GetShiftState done [09:56:54]FM_GetShiftState done [09:56:54]req_shift_opened done [09:56:54]requested_item shift.open_date is exist - process it [09:56:54]req_shift_open_date [09:56:54]req_shift_open_date done [09:56:54]produce_requested_data done [09:56:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75318,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:56:54]process_action_free close_receipt [09:56:54]json_value_free [09:56:54]json_value_free done [09:56:54]process_json_proto returns [09:56:54]Send response to host [09:56:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75318,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:56:54]free response buf [09:56:54]execute_script done [09:56:54]execute_script returns [09:56:54]free content buf [09:56:54]Sock 7.Close socket [09:56:54]Sock 7.Thread stoped [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:03]accept exits with 9 [09:57:03]New connection [09:57:03]New thread 3067465060 created [09:57:03]Thread 3067321700 joined [09:57:03]Waiting for new connection... [09:57:03] Sock 9.Parse request [09:57:03]Sock 9.Check first char [09:57:03]Sock 9.First char is OK [09:57:03]request: POST /json_proto HTTP/1.0 [09:57:03]Method: POST [09:57:03]URL: /json_proto [09:57:03]Method is POST - this is cgi request [09:57:03]url: /json_proto [09:57:03]query_string will be loaded in cgi processing [09:57:03]execute_cgi json_proto POST (null) [09:57:03]execute_cgi path=json_proto method=POST [09:57:03]POST find Content-Length [09:57:03]Host: 172.17.44.196:8080 [09:57:03]Content-Length: 621 [09:57:03]Content-Type: application/json [09:57:03] [09:57:03]POST finish read [09:57:03]Found Content-Length = 621 [09:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273214", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:03]execute_script... [09:57: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)273214", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:03]POST & json_proto [09:57:03]process_json_proto [09:57:03]json parsed OK: [09:57:03]protocol is kg_v1.0 [09:57:03]action value=close_receipt [09:57:03]process_action close_receipt [09:57:03]cmd_close_receipt [09:57:03]MH_GetDate [09:57:03]Write to MH i2c: F0 00 00 4F 8E CC [09:57:03]Write i2c OK [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: F0 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: F0 09 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: F0 09 00 4F 8E 00 76 C8 18 67 E7 19 F8 65 EF [09:57:03]GetLastDocTimeStamp 1729677416 [09:57:03]current date 1729677430 [09:57:03]FM_GetShiftState [09:57:03]SAM_PROTO_GetShiftState [09:57:03]wFMCommunicate request_size=4 [09:57:03]MH_SAM_APDU [09:57:03]CAPDU: 80 13 01 00 [09:57:03]Write to MH i2c: E2 08 00 50 8E 80 13 01 00 00 00 00 00 5B [09:57:03]Write i2c OK [09:57:03]MH_I2C_Read... [09:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:03]Read from MH i2c: E2 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 0E 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 0E 00 50 8E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C0 [09:57:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:57:03]wFMCommunicate OK [09:57:03]SAM_PROTO_GetShiftState done [09:57:03]FM_GetShiftState done [09:57:03]opened in 1729642905 [09:57:03]opened+sec_in_day 1729729305 [09:57:03]quantity*price = 14000 [09:57:03]sum+1 = 14001 [09:57:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 52 23.10.2024 09:57 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75319 ФПД: 106778487299867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095710&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75319&fm=106778487299867&tin=02508201610067®Number=0000000000161154&sum=14000 0 [09:57:04]StoreToDocumentArchive [09:57:04]shift 173 fd 75319 [09:57:04]save to /storage/0173/doc_00075319 [09:57:04]save last doc name /storage/0173/doc_00075319 to /storage/kkm_last_doc_name [09:57:04]save OK [09:57:04]Clear old archive folders... [09:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:57:04]tlvbuf is 01077DC0 [09:57:04]SAM_PROTO_ClearQueue [09:57:04]wFMCommunicate request_size=4 [09:57:04]MH_SAM_APDU [09:57:04]CAPDU: 80 09 00 00 [09:57:04]Write to MH i2c: E2 08 00 5D 8E 80 09 00 00 00 00 00 00 5D [09:57:04]Write i2c OK [09:57:04]MH_I2C_Read... [09:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:04]Read from MH i2c: E2 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: E2 03 00 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: E2 03 00 5D 8E 00 90 00 5F [09:57:04]RAPDU: 90 00 [09:57:04]wFMCommunicate OK [09:57:04]SAM_PROTO_ClearQueue done [09:57:04]KKMCreateOFDPacket [09:57:04]OFDProtocolAddRootSTLVToBuf [09:57:04]FM_MakeSignedData [09:57:04]FM_MakeSignedData [09:57:04]SAM_PROTO_SignData [09:57:04]wFMCommunicate request_size=4 [09:57:04]MH_SAM_APDU [09:57:04]CAPDU: 80 0D 01 02 [09:57:04]Write to MH i2c: E2 08 00 5E 8E 80 0D 01 02 00 00 00 00 65 [09:57:04]Write i2c OK [09:57:04]MH_I2C_Read... [09:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:04]Read from MH i2c: E2 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: E2 03 00 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: E2 03 00 5E 8E 00 90 00 60 [09:57:04]RAPDU: 90 00 [09:57:04]wFMCommunicate OK [09:57:04]wFMCommunicate request_size=255 [09:57:04]MH_SAM_APDU [09:57:04]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 76 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [09:57:04]Write to MH i2c: E2 02 01 5F 8E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 76 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 F1 [09:57:04]Write i2c OK [09:57:04]MH_I2C_Read... [09:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:05]Read from MH i2c: E2 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 03 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 03 00 5F 8E 00 90 00 61 [09:57:05]RAPDU: 90 00 [09:57:05]wFMCommunicate OK [09:57:05]wFMCommunicate request_size=32 [09:57:05]MH_SAM_APDU [09:57:05]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 37 26 01 00 35 04 06 00 61 1D 4D CE 1F 1B [09:57:05]Write to MH i2c: E2 23 00 60 8E 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 37 26 01 00 35 04 06 00 61 1D 4D CE 1F 1B 00 00 F0 [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:05]Read from MH i2c: E2 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 03 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 03 00 60 8E 00 90 00 62 [09:57:05]RAPDU: 90 00 [09:57:05]wFMCommunicate OK [09:57:05]wFMCommunicate request_size=4 [09:57:05]MH_SAM_APDU [09:57:05]CAPDU: 80 0D 03 02 [09:57:05]Write to MH i2c: E2 08 00 61 8E 80 0D 03 02 00 00 00 00 6A [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:05]Read from MH i2c: E2 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 0B 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 0B 00 61 8E 00 6E 0D BD 93 F8 9B B2 8F 90 00 0A [09:57:05]RAPDU: 6E 0D BD 93 F8 9B B2 8F 90 00 [09:57:05]wFMCommunicate OK [09:57:05]SAM_PROTO_SignData done [09:57:05]FM_MakeSignedData done [09:57:05]CreateOFDProtocolMessage [09:57:05]wFMCommunicate request_size=4 [09:57:05]MH_SAM_APDU [09:57:05]CAPDU: 80 11 00 00 [09:57:05]Write to MH i2c: E2 08 00 62 8E 80 11 00 00 00 00 00 00 6A [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:05]Read from MH i2c: E2 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 17 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 17 00 62 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B7 [09:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:57:05]wFMCommunicate OK [09:57:05]CreateOFDProtocolMessage done [09:57:05]OFDSenderStorePacket 75319 [09:57:05]StoreOFDPacket docnum=75319 [09:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 B2 F0 1D 01 2D F3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 76 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 37 26 01 00 35 04 06 00 61 1D 4D CE 1F 1B 6E 0D BD 93 F8 9B B2 8F [09:57:05]CheckFolder [09:57:05]dirname=/storage/ofd_packets [09:57:05]CheckFolder done [09:57:05]ProducePacketName [09:57:05]name=ofd_packets/00075319 [09:57:05]NVStorageSaveData ofd_packets/00075319 [09:57:05]File name is /storage/ofd_packets/00075319 [09:57:05]Write 323 bytes [09:57:05]NVStorageSaveData done [09:57:05]OFDSenderStorePacket done [09:57:05]KKMCreateOFDPacket done [09:57:05]NVStorageSaveData kkm_last_timestamp [09:57:05]File name is /storage/kkm_last_timestamp [09:57:05]Write 4 bytes [09:57:05]NVStorageSaveData done [09:57:05]ExternCall_PrintAddStr [09:57:05]wPrintStart [09:57:05]Write to MH i2c: 01 00 00 63 8E F1 [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 07 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 07 00 63 8E 00 00 00 00 00 FF 0F 06 [09:57:05]RasterBufferAndPrint [09:57:05]line Счет N : (3)273214 [09:57:05]line ИНН: 02508201610067 [09:57:05]line Контрольно-Кассовый Чек [09:57:05]line ПРОДАЖА [09:57:05]line Товар: 48743570 [09:57:05]line Сигареты Winston XStyle Blue [09:57:05]line 1.000 * 140.00 [09:57:05]line = 140.00 [09:57:05]line НДС 12% НСП 1% [09:57:05]line > о реализуемом товаре [09:57:05]line ИТОГО: 140.00 [09:57:05]line НСП 1% : 1.24 [09:57:05]line НДС 12% : 14.87 [09:57:05]line Наличными: 140.00 [09:57:05]line Безнал.: 0.00 [09:57:05]line Место: АЗС № 133 "Партнер Нефть" [09:57:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:57:05]line СНО: Общий режим [09:57:05]line Чек 52 23.10.2024 09:57 [09:57:05]line Смена: 173 ФФД: 1.0 [09:57:05]line ЗНМ: 0300000020 [09:57:05]line РНМ: 0000000000161154 [09:57:05]line Версия ККМ: v1.0 [09:57:05]line ФМ: 0000000000963323 [09:57:05]line ФД: 75319 [09:57:05]line ФПД: 106778487299867 [09:57:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095710&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75319&fm=106778487299867&tin=02508201610067®Number=0000000000161154&sum=14000 [09:57:05]line 0 [09:57:05]written 0, free lines is 4095 [09:57:05]OFD Sender: Processing packet 75319 [packets to send 15, broken 14] [09:57:05]ProducePacketName [09:57:05]name=ofd_packets/00075319 [09:57:05]OFD Sender: To server: pG, [09:57:05]CommunicateWithHost lk.salyk.kg:30040 [09:57:05]ConnectInit lk.salyk.kg [09:57:05]Write to MH i2c: 01 00 00 8A 8E 18 [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 07 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 07 00 8A 8E 00 00 00 00 00 DA 0C 05 [09:57:05]RasterBufferAndPrint [09:57:05]line [09:57:05]line [09:57:05]line [09:57:05]line [09:57:05]line [09:57:05]written 0, free lines is 3297 [09:57:05]MH_Cut [09:57:05]Write to MH i2c: D1 01 00 91 8E 01 F1 [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: D1 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: D1 01 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: D1 01 00 91 8E 00 F0 [09:57:05]Write to MH i2c: 01 00 00 92 8E 20 [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]Connected sock=10 [09:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 B2 F0 1D 01 2D F3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 76 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 37 26 01 00 35 04 06 00 61 1D 4D CE 1F 1B 6E 0D BD 93 F8 9B B2 8F [09:57:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2E CD 47 00 26 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 39 36 33 33 32 33 10 04 04 00 37 26 01 00 F4 03 04 00 51 71 18 67 B6 04 01 00 00 12 E2 C0 60 7C E3 61 8B [09:57:05]CommunicateWithHost err = 0 [09:57:05]CheckOFDResponse [09:57:05]1017 (14) - 77093643461234 [09:57:05]1041 (16) - 0000000000963323 [09:57:05]1040 (4) - 75319 [09:57:05]1012 (4) - 23.10.2024 03:45 [09:57:05]1206 (1) - 0 [09:57:05]OFD Sender: Remove packet 75319 [09:57:05]ProducePacketName [09:57:05]name=ofd_packets/00075319 [09:57:05]NVStorageDeleteData [09:57:06]OFD Sender: No OFD packet to send [09:57:06]*** Cut start [09:57:06]*** Partial cut [09:57:06]*** CUTSNS_PIN = 1 [09:57:06]*** CUTSNS_PIN = 0 [09:57:06]*** Brake cut motor [09:57:07]Read from MH i2c: 01 [09:57:07]MH_I2C_Read... [09:57:07]*** Stop cut motor [09:57:07]*** Cut end [09:57:07]Read from MH i2c: 01 07 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: 01 07 00 92 8E 00 00 00 00 00 FF 0F 35 [09:57:07]process_action close_receipt done [09:57:07]requested_data is exist [09:57:07]produce_requested_data [09:57:07]requested_item fm.sn is exist - process it [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 11 00 00 [09:57:07]Write to MH i2c: E2 08 00 93 8E 80 11 00 00 00 00 00 00 9B [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 17 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 17 00 93 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E8 [09:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:57:07]wFMCommunicate OK [09:57:07]requested_item fd.num is exist - process it [09:57:07]SAM_PROTO_GetFieldsCounters [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 13 00 00 [09:57:07]Write to MH i2c: E2 08 00 94 8E 80 13 00 00 00 00 00 00 9E [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 62 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 62 00 94 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 37 26 01 00 0E 04 04 00 AD 00 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 59 [09:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 37 26 01 00 0E 04 04 00 AD 00 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 [09:57:07]wFMCommunicate OK [09:57:07]SAM_PROTO_GetFieldsCounters done [09:57:07]requested_item shift.num is exist - process it [09:57:07]requested_item shift.opened is exist - process it [09:57:07]req_shift_opened [09:57:07]FM_GetShiftState [09:57:07]SAM_PROTO_GetShiftState [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 13 01 00 [09:57:07]Write to MH i2c: E2 08 00 95 8E 80 13 01 00 00 00 00 00 A0 [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 0E 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 0E 00 95 8E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 05 [09:57:07]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:57:07]wFMCommunicate OK [09:57:07]SAM_PROTO_GetShiftState done [09:57:07]FM_GetShiftState done [09:57:07]req_shift_opened done [09:57:07]requested_item shift.open_date is exist - process it [09:57:07]req_shift_open_date [09:57:07]req_shift_open_date done [09:57:07]produce_requested_data done [09:57:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75319,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:57:07]process_action_free close_receipt [09:57:07]json_value_free [09:57:07]json_value_free done [09:57:07]process_json_proto returns [09:57:07]Send response to host [09:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75319,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:57:07]free response buf [09:57:07]execute_script done [09:57:07]execute_script returns [09:57:07]free content buf [09:57:07]Sock 9.Close socket [09:57:07]Sock 9.Thread stoped [09:57:08]int [09:57:08]Write to MH i2c: 01 00 00 96 8E 24 [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]*** FLAG_PRN_PAP1 set [09:57:08]*** FLAG_PRN_PAP1 reset [09:57:08]Read from MH i2c: 01 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 96 8E 00 00 00 00 00 FF 0F 39 [09:57:08]state=0 [09:57:08]int [09:57:08]Write to MH i2c: 01 00 00 97 8E 25 [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]*** FLAG_PRN_PAP1 set [09:57:08]*** FLAG_PRN_PAP1 reset [09:57:08]Read from MH i2c: 01 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 97 8E 00 00 00 00 00 FF 0F 3A [09:57:08]state=0 [09:57:08]int [09:57:08]Write to MH i2c: 01 00 00 98 8E 26 [09:57:08]*** FLAG_PRN_PAP1 set [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 98 8E 00 01 00 00 00 FF 0F 3C [09:57:08]state=0 [09:57:08]No paper [09:57:08]int [09:57:08]Write to MH i2c: 01 00 00 99 8E 27 [09:57:08]*** FLAG_PRN_PAP2 set [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 99 8E 00 03 00 00 00 FF 0F 3F [09:57:08]state=0 [09:57:08]No paper [09:57:08]Cover opened [09:57:11]OFD Sender: No OFD packet to send [09:57:13]Write to MH i2c: 01 00 00 9A 8E 28 [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 07 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 07 00 9A 8E 00 03 00 00 00 FF 0F 40 [09:57:13]state=3 [09:57:13]No paper [09:57:13]Cover opened [09:57:14]int [09:57:14]Write to MH i2c: 01 00 00 9B 8E 29 [09:57:14]*** FLAG_PRN_PAP1 reset [09:57:14]*** FLAG_PRN_PAP2 reset [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: 01 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: 01 07 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: 01 07 00 9B 8E 00 00 00 00 00 FF 0F 3E [09:57:14]state=3 [09:57:14]Cover closed [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:38]accept exits with 7 [09:58:38]New connection [09:58:38]New thread 3067321700 created [09:58:38]Thread 3067465060 joined [09:58:38]Waiting for new connection... [09:58:38] Sock 7.Parse request [09:58:38]Sock 7.Check first char [09:58:38]Sock 7.First char is OK [09:58:38]request: POST /json_proto HTTP/1.0 [09:58:38]Method: POST [09:58:38]URL: /json_proto [09:58:38]Method is POST - this is cgi request [09:58:38]url: /json_proto [09:58:38]query_string will be loaded in cgi processing [09:58:38]execute_cgi json_proto POST (null) [09:58:38]execute_cgi path=json_proto method=POST [09:58:38]POST find Content-Length [09:58:38]Host: 172.17.44.196:8080 [09:58:38]Content-Length: 632 [09:58:38]Content-Type: application/json [09:58:38] [09:58:38]POST finish read [09:58:38]Found Content-Length = 632 [09:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273215", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:38]execute_script... [09:58:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273215", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:38]POST & json_proto [09:58:38]process_json_proto [09:58:38]json parsed OK: [09:58:38]protocol is kg_v1.0 [09:58:38]action value=close_receipt [09:58:38]process_action close_receipt [09:58:38]cmd_close_receipt [09:58:38]MH_GetDate [09:58:38]Write to MH i2c: F0 00 00 9C 8E 19 [09:58:38]Write i2c OK [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: F0 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: F0 09 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: F0 09 00 9C 8E 00 D5 C8 18 67 E7 19 F8 65 9B [09:58:38]GetLastDocTimeStamp 1729677430 [09:58:38]current date 1729677525 [09:58:38]FM_GetShiftState [09:58:38]SAM_PROTO_GetShiftState [09:58:38]wFMCommunicate request_size=4 [09:58:38]MH_SAM_APDU [09:58:38]CAPDU: 80 13 01 00 [09:58:38]Write to MH i2c: E2 08 00 9D 8E 80 13 01 00 00 00 00 00 A8 [09:58:38]Write i2c OK [09:58:38]MH_I2C_Read... [09:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:38]Read from MH i2c: E2 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: E2 0E 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: E2 0E 00 9D 8E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 0D [09:58:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:58:38]wFMCommunicate OK [09:58:38]SAM_PROTO_GetShiftState done [09:58:38]FM_GetShiftState done [09:58:38]opened in 1729642905 [09:58:38]opened+sec_in_day 1729729305 [09:58:38]quantity*price = 6000 [09:58:38]sum+1 = 6001 [09:58:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 53 23.10.2024 09:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75320 ФПД: 58095287606646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095845&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75320&fm=58095287606646&tin=02508201610067®Number=0000000000161154&sum=6000 0 [09:58:39]StoreToDocumentArchive [09:58:39]shift 173 fd 75320 [09:58:39]save to /storage/0173/doc_00075320 [09:58:39]save last doc name /storage/0173/doc_00075320 to /storage/kkm_last_doc_name [09:58:39]save OK [09:58:39]Clear old archive folders... [09:58:39]ProcessDocumentItem done err = 0, tmpTLVsize=271 [09:58:39]tlvbuf is 00DC56F0 [09:58:39]SAM_PROTO_ClearQueue [09:58:39]wFMCommunicate request_size=4 [09:58:39]MH_SAM_APDU [09:58:39]CAPDU: 80 09 00 00 [09:58:39]Write to MH i2c: E2 08 00 AA 8E 80 09 00 00 00 00 00 00 AA [09:58:39]Write i2c OK [09:58:39]MH_I2C_Read... [09:58:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:39]Read from MH i2c: E2 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: E2 03 00 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: E2 03 00 AA 8E 00 90 00 AC [09:58:39]RAPDU: 90 00 [09:58:39]wFMCommunicate OK [09:58:39]SAM_PROTO_ClearQueue done [09:58:39]KKMCreateOFDPacket [09:58:39]OFDProtocolAddRootSTLVToBuf [09:58:39]FM_MakeSignedData [09:58:39]FM_MakeSignedData [09:58:39]SAM_PROTO_SignData [09:58:39]wFMCommunicate request_size=4 [09:58:39]MH_SAM_APDU [09:58:39]CAPDU: 80 0D 01 02 [09:58:39]Write to MH i2c: E2 08 00 AB 8E 80 0D 01 02 00 00 00 00 B2 [09:58:39]Write i2c OK [09:58:39]MH_I2C_Read... [09:58:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:39]Read from MH i2c: E2 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: E2 03 00 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: E2 03 00 AB 8E 00 90 00 AD [09:58:39]RAPDU: 90 00 [09:58:39]wFMCommunicate OK [09:58:39]wFMCommunicate request_size=255 [09:58:39]MH_SAM_APDU [09:58:39]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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D5 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [09:58:39]Write to MH i2c: E2 02 01 AC 8E 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D5 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 FF [09:58:39]Write i2c OK [09:58:39]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 03 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 03 00 AC 8E 00 90 00 AE [09:58:40]RAPDU: 90 00 [09:58:40]wFMCommunicate OK [09:58:40]wFMCommunicate request_size=30 [09:58:40]MH_SAM_APDU [09:58:40]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 38 26 01 00 35 04 06 00 34 D6 5C FB 1D 76 [09:58:40]Write to MH i2c: E2 21 00 AD 8E 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 38 26 01 00 35 04 06 00 34 D6 5C FB 1D 76 00 00 FB [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 03 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 03 00 AD 8E 00 90 00 AF [09:58:40]RAPDU: 90 00 [09:58:40]wFMCommunicate OK [09:58:40]wFMCommunicate request_size=4 [09:58:40]MH_SAM_APDU [09:58:40]CAPDU: 80 0D 03 02 [09:58:40]Write to MH i2c: E2 08 00 AE 8E 80 0D 03 02 00 00 00 00 B7 [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 0B 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 0B 00 AE 8E 00 7B 49 24 70 9A F8 37 FB 90 00 D4 [09:58:40]RAPDU: 7B 49 24 70 9A F8 37 FB 90 00 [09:58:40]wFMCommunicate OK [09:58:40]SAM_PROTO_SignData done [09:58:40]FM_MakeSignedData done [09:58:40]CreateOFDProtocolMessage [09:58:40]wFMCommunicate request_size=4 [09:58:40]MH_SAM_APDU [09:58:40]CAPDU: 80 11 00 00 [09:58:40]Write to MH i2c: E2 08 00 AF 8E 80 11 00 00 00 00 00 00 B7 [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 17 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 17 00 AF 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 04 [09:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:58:40]wFMCommunicate OK [09:58:40]CreateOFDProtocolMessage done [09:58:40]OFDSenderStorePacket 75320 [09:58:40]StoreOFDPacket docnum=75320 [09:58:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 A1 79 1B 01 97 4F 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D5 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 38 26 01 00 35 04 06 00 34 D6 5C FB 1D 76 7B 49 24 70 9A F8 37 FB [09:58:40]CheckFolder [09:58:40]dirname=/storage/ofd_packets [09:58:40]CheckFolder done [09:58:40]ProducePacketName [09:58:40]name=ofd_packets/00075320 [09:58:40]NVStorageSaveData ofd_packets/00075320 [09:58:40]File name is /storage/ofd_packets/00075320 [09:58:40]Write 321 bytes [09:58:40]NVStorageSaveData done [09:58:40]OFDSenderStorePacket done [09:58:40]KKMCreateOFDPacket done [09:58:40]NVStorageSaveData kkm_last_timestamp [09:58:40]File name is /storage/kkm_last_timestamp [09:58:40]Write 4 bytes [09:58:40]NVStorageSaveData done [09:58:40]ExternCall_PrintAddStr [09:58:40]wPrintStart [09:58:40]Write to MH i2c: 01 00 00 B0 8E 3E [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: 01 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: 01 07 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: 01 07 00 B0 8E 00 00 00 00 00 FF 0F 53 [09:58:40]RasterBufferAndPrint [09:58:40]line Счет N : (3)273215 [09:58:40]line ИНН: 02508201610067 [09:58:40]line Контрольно-Кассовый Чек [09:58:40]line ПРОДАЖА [09:58:40]line Товар: 4700025313937 [09:58:40]line ВОДКА МЯГКАЯ 0,1л [09:58:40]line 1.000 * 60.00 [09:58:40]line = 60.00 [09:58:40]line НДС 12% НСП 1% [09:58:40]line > о реализуемом товаре [09:58:40]line ИТОГО: 60.00 [09:58:40]line НСП 1% : 0.53 [09:58:40]line НДС 12% : 6.37 [09:58:40]line Наличными: 60.00 [09:58:40]line Безнал.: 0.00 [09:58:40]line Место: АЗС № 133 "Партнер Нефть" [09:58:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [09:58:40]line СНО: Общий режим [09:58:40]line Чек 53 23.10.2024 09:58 [09:58:40]line Смена: 173 ФФД: 1.0 [09:58:40]line ЗНМ: 0300000020 [09:58:40]line РНМ: 0000000000161154 [09:58:40]line Версия ККМ: v1.0 [09:58:40]line ФМ: 0000000000963323 [09:58:40]line ФД: 75320 [09:58:40]line ФПД: 58095287606646 [09:58:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095845&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75320&fm=58095287606646&tin=02508201610067®Number=0000000000161154&sum=6000 [09:58:40]line 0 [09:58:40]written 0, free lines is 4095 [09:58:40]OFD Sender: Processing packet 75320 [packets to send 15, broken 14] [09:58:40]ProducePacketName [09:58:40]name=ofd_packets/00075320 [09:58:40]OFD Sender: To server: pG, [09:58:40]CommunicateWithHost lk.salyk.kg:30040 [09:58:40]ConnectInit lk.salyk.kg [09:58:40]Connected sock=10 [09:58:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 A1 79 1B 01 97 4F 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D5 C8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 38 26 01 00 35 04 06 00 34 D6 5C FB 1D 76 7B 49 24 70 9A F8 37 FB [09:58:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 24 DA 47 00 43 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 39 36 33 33 32 33 10 04 04 00 38 26 01 00 F4 03 04 00 B0 71 18 67 B6 04 01 00 00 A4 98 D5 F4 0F FA D7 41 [09:58:40]CommunicateWithHost err = 0 [09:58:40]CheckOFDResponse [09:58:40]1017 (14) - 77093643461234 [09:58:40]1041 (16) - 0000000000963323 [09:58:40]1040 (4) - 75320 [09:58:40]1012 (4) - 23.10.2024 03:46 [09:58:40]1206 (1) - 0 [09:58:40]OFD Sender: Remove packet 75320 [09:58:40]ProducePacketName [09:58:40]name=ofd_packets/00075320 [09:58:40]NVStorageDeleteData [09:58:40]Write to MH i2c: 01 00 00 D7 8E 65 [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: 01 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: 01 07 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: 01 07 00 D7 8E 00 00 00 00 00 DD 0C 55 [09:58:40]RasterBufferAndPrint [09:58:40]line [09:58:40]line [09:58:40]line [09:58:40]line [09:58:40]line [09:58:40]written 0, free lines is 3298 [09:58:40]MH_Cut [09:58:40]Write to MH i2c: D1 01 00 DE 8E 01 3E [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: D1 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: D1 01 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: D1 01 00 DE 8E 00 3D [09:58:40]Write to MH i2c: 01 00 00 DF 8E 6D [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:41]OFD Sender: No OFD packet to send [09:58:41]*** Cut start [09:58:41]*** Partial cut [09:58:41]*** CUTSNS_PIN = 1 [09:58:41]*** CUTSNS_PIN = 0 [09:58:41]*** Brake cut motor [09:58:42]Read from MH i2c: 01 [09:58:42]MH_I2C_Read... [09:58:42]*** Stop cut motor [09:58:42]*** Cut end [09:58:42]Read from MH i2c: 01 07 00 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: 01 07 00 DF 8E 00 00 00 00 00 FF 0F 82 [09:58:42]process_action close_receipt done [09:58:42]requested_data is exist [09:58:42]produce_requested_data [09:58:42]requested_item fm.sn is exist - process it [09:58:42]wFMCommunicate request_size=4 [09:58:42]MH_SAM_APDU [09:58:42]CAPDU: 80 11 00 00 [09:58:42]Write to MH i2c: E2 08 00 E0 8E 80 11 00 00 00 00 00 00 E8 [09:58:42]Write i2c OK [09:58:42]MH_I2C_Read... [09:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:42]Read from MH i2c: E2 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: E2 17 00 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: E2 17 00 E0 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 35 [09:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [09:58:42]wFMCommunicate OK [09:58:42]requested_item fd.num is exist - process it [09:58:42]SAM_PROTO_GetFieldsCounters [09:58:42]wFMCommunicate request_size=4 [09:58:42]MH_SAM_APDU [09:58:42]CAPDU: 80 13 00 00 [09:58:42]Write to MH i2c: E2 08 00 E1 8E 80 13 00 00 00 00 00 00 EB [09:58:42]Write i2c OK [09:58:42]MH_I2C_Read... [09:58:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:42]Read from MH i2c: E2 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: E2 62 00 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: E2 62 00 E1 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 38 26 01 00 0E 04 04 00 AD 00 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 AA [09:58:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 38 26 01 00 0E 04 04 00 AD 00 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 [09:58:42]wFMCommunicate OK [09:58:42]SAM_PROTO_GetFieldsCounters done [09:58:42]requested_item shift.num is exist - process it [09:58:42]requested_item shift.opened is exist - process it [09:58:42]req_shift_opened [09:58:42]FM_GetShiftState [09:58:42]SAM_PROTO_GetShiftState [09:58:42]wFMCommunicate request_size=4 [09:58:42]MH_SAM_APDU [09:58:42]CAPDU: 80 13 01 00 [09:58:42]Write to MH i2c: E2 08 00 E2 8E 80 13 01 00 00 00 00 00 ED [09:58:42]Write i2c OK [09:58:42]MH_I2C_Read... [09:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:42]Read from MH i2c: E2 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: E2 0E 00 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: E2 0E 00 E2 8E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 52 [09:58:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [09:58:42]wFMCommunicate OK [09:58:42]SAM_PROTO_GetShiftState done [09:58:42]FM_GetShiftState done [09:58:42]req_shift_opened done [09:58:42]requested_item shift.open_date is exist - process it [09:58:42]req_shift_open_date [09:58:42]req_shift_open_date done [09:58:42]produce_requested_data done [09:58:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75320,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [09:58:42]process_action_free close_receipt [09:58:42]json_value_free [09:58:42]json_value_free done [09:58:42]process_json_proto returns [09:58:42]Send response to host [09:58:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75320,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [09:58:42]free response buf [09:58:42]execute_script done [09:58:42]execute_script returns [09:58:42]free content buf [09:58:42]Sock 7.Close socket [09:58:42]Sock 7.Thread stoped [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:28]accept exits with 9 [10:00:28]New connection [10:00:28]New thread 3067465060 created [10:00:28]Thread 3067321700 joined [10:00:28]Waiting for new connection... [10:00:28] Sock 9.Parse request [10:00:28]Sock 9.Check first char [10:00:28]Sock 9.First char is OK [10:00:28]request: POST /json_proto HTTP/1.0 [10:00:28]Method: POST [10:00:28]URL: /json_proto [10:00:28]Method is POST - this is cgi request [10:00:28]url: /json_proto [10:00:28]query_string will be loaded in cgi processing [10:00:28]execute_cgi json_proto POST (null) [10:00:28]execute_cgi path=json_proto method=POST [10:00:28]POST find Content-Length [10:00:28]Host: 172.17.44.196:8080 [10:00:28]Content-Length: 668 [10:00:28]Content-Type: application/json [10:00:28] [10:00:28]POST finish read [10:00:28]Found Content-Length = 668 [10:00:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273216", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:28]execute_script... [10:00: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 : (3)273216", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:28]POST & json_proto [10:00:28]process_json_proto [10:00:28]json parsed OK: [10:00:28]protocol is kg_v1.0 [10:00:28]action value=close_receipt [10:00:28]process_action close_receipt [10:00:28]cmd_close_receipt [10:00:28]MH_GetDate [10:00:28]Write to MH i2c: F0 00 00 E3 8E 60 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: F0 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: F0 09 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: F0 09 00 E3 8E 00 43 C9 18 67 E7 19 F8 65 51 [10:00:28]GetLastDocTimeStamp 1729677525 [10:00:28]current date 1729677635 [10:00:28]FM_GetShiftState [10:00:28]SAM_PROTO_GetShiftState [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 13 01 00 [10:00:28]Write to MH i2c: E2 08 00 E4 8E 80 13 01 00 00 00 00 00 EF [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 0E 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 0E 00 E4 8E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 54 [10:00:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:00:28]wFMCommunicate OK [10:00:28]SAM_PROTO_GetShiftState done [10:00:28]FM_GetShiftState done [10:00:28]opened in 1729642905 [10:00:28]opened+sec_in_day 1729729305 [10:00:28]quantity*price = 13000 [10:00:28]sum+1 = 13001 [10:00:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 54 23.10.2024 10:00 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75321 ФПД: 140246790874702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100035&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75321&fm=140246790874702&tin=02508201610067®Number=0000000000161154&sum=13000 0 [10:00:29]StoreToDocumentArchive [10:00:29]shift 173 fd 75321 [10:00:29]save to /storage/0173/doc_00075321 [10:00:29]save last doc name /storage/0173/doc_00075321 to /storage/kkm_last_doc_name [10:00:29]save OK [10:00:29]Clear old archive folders... [10:00:29]ProcessDocumentItem done err = 0, tmpTLVsize=296 [10:00:29]tlvbuf is 00D61320 [10:00:29]SAM_PROTO_ClearQueue [10:00:29]wFMCommunicate request_size=4 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 09 00 00 [10:00:29]Write to MH i2c: E2 08 00 F1 8E 80 09 00 00 00 00 00 00 F1 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 F1 8E 00 90 00 F3 [10:00:29]RAPDU: 90 00 [10:00:29]wFMCommunicate OK [10:00:29]SAM_PROTO_ClearQueue done [10:00:29]KKMCreateOFDPacket [10:00:29]OFDProtocolAddRootSTLVToBuf [10:00:29]FM_MakeSignedData [10:00:29]FM_MakeSignedData [10:00:29]SAM_PROTO_SignData [10:00:29]wFMCommunicate request_size=4 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 0D 01 02 [10:00:29]Write to MH i2c: E2 08 00 F2 8E 80 0D 01 02 00 00 00 00 F9 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 03 00 F2 8E 00 90 00 F4 [10:00:29]RAPDU: 90 00 [10:00:29]wFMCommunicate OK [10:00:29]wFMCommunicate request_size=255 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 43 C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [10:00:29]Write to MH i2c: E2 02 01 F3 8E 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 43 C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 3D [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 F3 8E 00 90 00 F5 [10:00:30]RAPDU: 90 00 [10:00:30]wFMCommunicate OK [10:00:30]wFMCommunicate request_size=55 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 26 01 00 35 04 06 00 7F 8D C0 26 A6 4E [10:00:30]Write to MH i2c: E2 3A 00 F4 8E 80 0D 02 02 32 00 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 26 01 00 35 04 06 00 7F 8D C0 26 A6 4E 00 00 8E [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 F4 8E 00 90 00 F6 [10:00:30]RAPDU: 90 00 [10:00:30]wFMCommunicate OK [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 0D 03 02 [10:00:30]Write to MH i2c: E2 08 00 F5 8E 80 0D 03 02 00 00 00 00 FE [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 0B 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 0B 00 F5 8E 00 9D F9 1E 82 9D B2 63 DC 90 00 C3 [10:00:30]RAPDU: 9D F9 1E 82 9D B2 63 DC 90 00 [10:00:30]wFMCommunicate OK [10:00:30]SAM_PROTO_SignData done [10:00:30]FM_MakeSignedData done [10:00:30]CreateOFDProtocolMessage [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 11 00 00 [10:00:30]Write to MH i2c: E2 08 00 F6 8E 80 11 00 00 00 00 00 00 FE [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 17 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 17 00 F6 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4B [10:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:00:30]wFMCommunicate OK [10:00:30]CreateOFDProtocolMessage done [10:00:30]OFDSenderStorePacket 75321 [10:00:30]StoreOFDPacket docnum=75321 [10:00:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3C 01 00 00 E5 B7 34 01 52 34 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 43 C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 26 01 00 35 04 06 00 7F 8D C0 26 A6 4E 9D F9 1E 82 9D B2 63 DC [10:00:30]CheckFolder [10:00:30]dirname=/storage/ofd_packets [10:00:30]CheckFolder done [10:00:30]ProducePacketName [10:00:30]name=ofd_packets/00075321 [10:00:30]NVStorageSaveData ofd_packets/00075321 [10:00:30]File name is /storage/ofd_packets/00075321 [10:00:30]Write 346 bytes [10:00:30]NVStorageSaveData done [10:00:30]OFDSenderStorePacket done [10:00:30]KKMCreateOFDPacket done [10:00:30]NVStorageSaveData kkm_last_timestamp [10:00:30]File name is /storage/kkm_last_timestamp [10:00:30]Write 4 bytes [10:00:30]NVStorageSaveData done [10:00:30]ExternCall_PrintAddStr [10:00:30]wPrintStart [10:00:30]Write to MH i2c: 01 00 00 F7 8E 85 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 07 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 07 00 F7 8E 00 00 00 00 00 FF 0F 9A [10:00:30]RasterBufferAndPrint [10:00:30]line Счет N : (3)273216 [10:00:30]line ИНН: 02508201610067 [10:00:30]line Контрольно-Кассовый Чек [10:00:30]line ПРОДАЖА [10:00:30]line Товар: 4870002329951 [10:00:30]line Напиток Lipton IceTea 1л зел чай Regular [10:00:30]line 1.000 * 130.00 [10:00:30]line = 130.00 [10:00:30]line НДС 12% НСП 1% [10:00:30]line > о реализуемом товаре [10:00:30]line ИТОГО: 130.00 [10:00:30]line НСП 1% : 1.15 [10:00:30]line НДС 12% : 13.80 [10:00:30]line Наличными: 130.00 [10:00:30]line Безнал.: 0.00 [10:00:30]line Место: АЗС № 133 "Партнер Нефть" [10:00:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:00:30]line СНО: Общий режим [10:00:30]line Чек 54 23.10.2024 10:00 [10:00:30]line Смена: 173 ФФД: 1.0 [10:00:30]line ЗНМ: 0300000020 [10:00:30]line РНМ: 0000000000161154 [10:00:30]line Версия ККМ: v1.0 [10:00:30]line ФМ: 0000000000963323 [10:00:30]line ФД: 75321 [10:00:30]line ФПД: 140246790874702 [10:00:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100035&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75321&fm=140246790874702&tin=02508201610067®Number=0000000000161154&sum=13000 [10:00:30]line 0 [10:00:30]OFD Sender: Processing packet 75321 [packets to send 15, broken 14] [10:00:30]ProducePacketName [10:00:30]name=ofd_packets/00075321 [10:00:30]OFD Sender: To server: pG, [10:00:30]CommunicateWithHost lk.salyk.kg:30040 [10:00:30]ConnectInit lk.salyk.kg [10:00:30]written 0, free lines is 4095 [10:00:30]Connected sock=7 [10:00:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3C 01 00 00 E5 B7 34 01 52 34 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 43 C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 26 01 00 35 04 06 00 7F 8D C0 26 A6 4E 9D F9 1E 82 9D B2 63 DC [10:00:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 70 A6 47 00 AD F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 39 26 01 00 F4 03 04 00 1E 72 18 67 B6 04 01 00 00 06 B7 C0 91 55 26 5C 58 [10:00:30]CommunicateWithHost err = 0 [10:00:30]CheckOFDResponse [10:00:30]1017 (14) - 77093643461234 [10:00:30]1041 (16) - 0000000000963323 [10:00:30]1040 (4) - 75321 [10:00:30]1012 (4) - 23.10.2024 03:48 [10:00:30]1206 (1) - 0 [10:00:30]OFD Sender: Remove packet 75321 [10:00:30]ProducePacketName [10:00:30]name=ofd_packets/00075321 [10:00:30]NVStorageDeleteData [10:00:31]Write to MH i2c: 01 00 00 1F 8F AE [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 07 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 07 00 1F 8F 00 00 00 00 00 BA 0C 7B [10:00:31]RasterBufferAndPrint [10:00:31]line [10:00:31]line [10:00:31]line [10:00:31]line [10:00:31]line [10:00:31]written 0, free lines is 3263 [10:00:31]MH_Cut [10:00:31]Write to MH i2c: D1 01 00 26 8F 01 87 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: D1 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: D1 01 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: D1 01 00 26 8F 00 86 [10:00:31]Write to MH i2c: 01 00 00 27 8F B6 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]OFD Sender: No OFD packet to send [10:00:31]*** Cut start [10:00:31]*** Partial cut [10:00:31]*** CUTSNS_PIN = 1 [10:00:31]*** CUTSNS_PIN = 0 [10:00:32]*** Brake cut motor [10:00:32]Read from MH i2c: 01 [10:00:32]MH_I2C_Read... [10:00:32]*** Stop cut motor [10:00:32]*** Cut end [10:00:32]Read from MH i2c: 01 07 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: 01 07 00 27 8F 00 00 00 00 00 FF 0F CB [10:00:32]process_action close_receipt done [10:00:32]requested_data is exist [10:00:32]produce_requested_data [10:00:32]requested_item fm.sn is exist - process it [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 11 00 00 [10:00:32]Write to MH i2c: E2 08 00 28 8F 80 11 00 00 00 00 00 00 31 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 17 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 17 00 28 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7E [10:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:00:32]wFMCommunicate OK [10:00:32]requested_item fd.num is exist - process it [10:00:32]SAM_PROTO_GetFieldsCounters [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 13 00 00 [10:00:32]Write to MH i2c: E2 08 00 29 8F 80 13 00 00 00 00 00 00 34 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 62 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 62 00 29 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 39 26 01 00 0E 04 04 00 AD 00 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 F7 [10:00:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 39 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:32]wFMCommunicate OK [10:00:32]SAM_PROTO_GetFieldsCounters done [10:00:32]requested_item shift.num is exist - process it [10:00:32]requested_item shift.opened is exist - process it [10:00:32]req_shift_opened [10:00:32]FM_GetShiftState [10:00:32]SAM_PROTO_GetShiftState [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 13 01 00 [10:00:32]Write to MH i2c: E2 08 00 2A 8F 80 13 01 00 00 00 00 00 36 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 0E 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 0E 00 2A 8F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 9B [10:00:32]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:00:32]wFMCommunicate OK [10:00:32]SAM_PROTO_GetShiftState done [10:00:32]FM_GetShiftState done [10:00:32]req_shift_opened done [10:00:32]requested_item shift.open_date is exist - process it [10:00:32]req_shift_open_date [10:00:32]req_shift_open_date done [10:00:32]produce_requested_data done [10:00:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75321,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:00:32]process_action_free close_receipt [10:00:32]json_value_free [10:00:32]json_value_free done [10:00:32]process_json_proto returns [10:00:32]Send response to host [10:00:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75321,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:00:32]free response buf [10:00:32]execute_script done [10:00:32]execute_script returns [10:00:32]free content buf [10:00:32]Sock 9.Close socket [10:00:32]Sock 9.Thread stoped [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]accept exits with 10 [10:01:11]New connection [10:01:11]New thread 3067321700 created [10:01:11]Thread 3067465060 joined [10:01:11]Waiting for new connection... [10:01:11] Sock 10.Parse request [10:01:11]Sock 10.Check first char [10:01:11]Sock 10.First char is OK [10:01:11]request: POST /json_proto HTTP/1.0 [10:01:11]Method: POST [10:01:11]URL: /json_proto [10:01:11]Method is POST - this is cgi request [10:01:11]url: /json_proto [10:01:11]query_string will be loaded in cgi processing [10:01:11]execute_cgi json_proto POST (null) [10:01:11]execute_cgi path=json_proto method=POST [10:01:11]POST find Content-Length [10:01:11]Host: 172.17.44.196:8080 [10:01:11]Content-Length: 678 [10:01:11]Content-Type: application/json [10:01:11] [10:01:11]POST finish read [10:01:11]Found Content-Length = 678 [10:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:01:11]execute_script... [10:01: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)1965292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:01:11]POST & json_proto [10:01:11]process_json_proto [10:01:11]json parsed OK: [10:01:11]protocol is kg_v1.0 [10:01:11]action value=close_receipt [10:01:11]process_action close_receipt [10:01:11]cmd_close_receipt [10:01:11]MH_GetDate [10:01:11]Write to MH i2c: F0 00 00 2B 8F A9 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 09 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 09 00 2B 8F 00 6E C9 18 67 E7 19 F8 65 C5 [10:01:11]GetLastDocTimeStamp 1729677635 [10:01:11]current date 1729677678 [10:01:11]FM_GetShiftState [10:01:11]SAM_PROTO_GetShiftState [10:01:11]wFMCommunicate request_size=4 [10:01:11]MH_SAM_APDU [10:01:11]CAPDU: 80 13 01 00 [10:01:11]Write to MH i2c: E2 08 00 2C 8F 80 13 01 00 00 00 00 00 38 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:11]Read from MH i2c: E2 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 2C 8F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 9D [10:01:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:01:11]wFMCommunicate OK [10:01:11]SAM_PROTO_GetShiftState done [10:01:11]FM_GetShiftState done [10:01:11]opened in 1729642905 [10:01:11]opened+sec_in_day 1729729305 [10:01:11]quantity*price = 50041 [10:01:11]sum+1 = 50042 [10:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 55 23.10.2024 10:01 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75322 ФПД: 32317820709058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100118&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75322&fm=32317820709058&tin=02508201610067®Number=0000000000161154&sum=50000 [10:01:12]StoreToDocumentArchive [10:01:12]shift 173 fd 75322 [10:01:12]save to /storage/0173/doc_00075322 [10:01:12]save last doc name /storage/0173/doc_00075322 to /storage/kkm_last_doc_name [10:01:12]save OK [10:01:12]Clear old archive folders... [10:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:12]tlvbuf is 00D610F0 [10:01:12]SAM_PROTO_ClearQueue [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 09 00 00 [10:01:12]Write to MH i2c: E2 08 00 39 8F 80 09 00 00 00 00 00 00 3A [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 39 8F 00 90 00 3C [10:01:12]RAPDU: 90 00 [10:01:12]wFMCommunicate OK [10:01:12]SAM_PROTO_ClearQueue done [10:01:12]KKMCreateOFDPacket [10:01:12]OFDProtocolAddRootSTLVToBuf [10:01:12]FM_MakeSignedData [10:01:12]FM_MakeSignedData [10:01:12]SAM_PROTO_SignData [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 0D 01 02 [10:01:12]Write to MH i2c: E2 08 00 3A 8F 80 0D 01 02 00 00 00 00 42 [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 3A 8F 00 90 00 3D [10:01:12]RAPDU: 90 00 [10:01:12]wFMCommunicate OK [10:01:12]wFMCommunicate request_size=255 [10:01:12]MH_SAM_APDU [10:01: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 37 00 00 00 F4 03 04 00 6E C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 26 01 00 35 04 06 00 1D [10:01:12]Write to MH i2c: E2 02 01 3B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 37 00 00 00 F4 03 04 00 6E C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 26 01 00 35 04 06 00 1D 00 00 DC [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 3B 8F 00 90 00 3E [10:01:12]RAPDU: 90 00 [10:01:12]wFMCommunicate OK [10:01:12]wFMCommunicate request_size=10 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 0D 02 02 05 64 94 39 28 C2 [10:01:12]Write to MH i2c: E2 0D 00 3C 8F 80 0D 02 02 05 00 64 94 39 28 C2 00 00 6A [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 3C 8F 00 90 00 3F [10:01:12]RAPDU: 90 00 [10:01:12]wFMCommunicate OK [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 0D 03 02 [10:01:12]Write to MH i2c: E2 08 00 3D 8F 80 0D 03 02 00 00 00 00 47 [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 0B 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 0B 00 3D 8F 00 94 F4 29 CA B9 EA 0B DD 90 00 4E [10:01:12]RAPDU: 94 F4 29 CA B9 EA 0B DD 90 00 [10:01:12]wFMCommunicate OK [10:01:12]SAM_PROTO_SignData done [10:01:12]FM_MakeSignedData done [10:01:12]CreateOFDProtocolMessage [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 11 00 00 [10:01:12]Write to MH i2c: E2 08 00 3E 8F 80 11 00 00 00 00 00 00 47 [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 17 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 17 00 3E 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 94 [10:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:01:12]wFMCommunicate OK [10:01:12]CreateOFDProtocolMessage done [10:01:12]OFDSenderStorePacket 75322 [10:01:12]StoreOFDPacket docnum=75322 [10:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 72 EF 07 01 CE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 37 00 00 00 F4 03 04 00 6E C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 26 01 00 35 04 06 00 1D 64 94 39 28 C2 94 F4 29 CA B9 EA 0B DD [10:01:12]CheckFolder [10:01:12]dirname=/storage/ofd_packets [10:01:12]CheckFolder done [10:01:12]ProducePacketName [10:01:12]name=ofd_packets/00075322 [10:01:12]NVStorageSaveData ofd_packets/00075322 [10:01:12]File name is /storage/ofd_packets/00075322 [10:01:12]Write 301 bytes [10:01:12]NVStorageSaveData done [10:01:12]OFDSenderStorePacket done [10:01:12]KKMCreateOFDPacket done [10:01:12]NVStorageSaveData kkm_last_timestamp [10:01:12]File name is /storage/kkm_last_timestamp [10:01:12]Write 4 bytes [10:01:12]NVStorageSaveData done [10:01:12]ExternCall_PrintAddStr [10:01:12]wPrintStart [10:01:12]Write to MH i2c: 01 00 00 3F 8F CE [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: 01 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: 01 07 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: 01 07 00 3F 8F 00 00 00 00 00 FF 0F E3 [10:01:12]RasterBufferAndPrint [10:01:12]line Счет N : (1)1965292 [10:01:12]line ИНН: 02508201610067 [10:01:12]line Контрольно-Кассовый Чек [10:01:12]line ПРОДАЖА [10:01:12]line ТРК (МРК, ГНК) : 53 [10:01:12]line Товар: 2710124130 [10:01:12]line Аи-92-К-5 [10:01:12]line 7.480 * 66.90 [10:01:12]line = 500.41 [10:01:12]line НДС 12% НСП 1% [10:01:12]line > о реализуемом товаре [10:01:12]line ОКРУГЛЕНИЕ: -0.41 [10:01:12]line ИТОГО: 500.00 [10:01:12]line Внесено: 500.00 [10:01:12]line СДАЧА: 0.00 [10:01:12]line НСП 1% : 4.43 [10:01:12]line НДС 12% : 53.14 [10:01:12]line Наличными: 500.00 [10:01:12]line Безнал.: 0.00 [10:01:12]line Место: АЗС № 133 "Партнер Нефть" [10:01:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:01:12]line СНО: Общий режим [10:01:12]line Чек 55 23.10.2024 10:01 [10:01:12]line Смена: 173 ФФД: 1.0 [10:01:12]line ЗНМ: 0300000020 [10:01:12]line РНМ: 0000000000161154 [10:01:12]line Версия ККМ: v1.0 [10:01:12]line ФМ: 0000000000963323 [10:01:12]line ФД: 75322 [10:01:12]line ФПД: 32317820709058 [10:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100118&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75322&fm=32317820709058&tin=02508201610067®Number=0000000000161154&sum=50000 [10:01:13]OFD Sender: Processing packet 75322 [packets to send 15, broken 14] [10:01:13]ProducePacketName [10:01:13]name=ofd_packets/00075322 [10:01:13]OFD Sender: To server: pG, [10:01:13]CommunicateWithHost lk.salyk.kg:30040 [10:01:13]ConnectInit lk.salyk.kg [10:01:13]written 0, free lines is 4095 [10:01:13]Connected sock=9 [10:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 72 EF 07 01 CE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 37 00 00 00 F4 03 04 00 6E C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3A 26 01 00 35 04 06 00 1D 64 94 39 28 C2 94 F4 29 CA B9 EA 0B DD [10:01:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6E 7D 47 00 5D 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 39 36 33 33 32 33 10 04 04 00 3A 26 01 00 F4 03 04 00 49 72 18 67 B6 04 01 00 00 27 41 3B BE 6F 8A 15 40 [10:01:13]CommunicateWithHost err = 0 [10:01:13]CheckOFDResponse [10:01:13]1017 (14) - 77093643461234 [10:01:13]1041 (16) - 0000000000963323 [10:01:13]1040 (4) - 75322 [10:01:13]1012 (4) - 23.10.2024 03:49 [10:01:13]1206 (1) - 0 [10:01:13]OFD Sender: Remove packet 75322 [10:01:13]ProducePacketName [10:01:13]name=ofd_packets/00075322 [10:01:13]NVStorageDeleteData [10:01:13]Write to MH i2c: 01 00 00 69 8F F8 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 07 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 07 00 69 8F 00 00 00 00 00 A4 0C AF [10:01:13]RasterBufferAndPrint [10:01:13]line [10:01:13]line [10:01:13]line [10:01:13]line [10:01:13]line [10:01:13]written 0, free lines is 3242 [10:01:13]MH_Cut [10:01:13]Write to MH i2c: D1 01 00 70 8F 01 D1 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: D1 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: D1 01 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: D1 01 00 70 8F 00 D0 [10:01:13]Write to MH i2c: 01 00 00 71 8F 00 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:14]OFD Sender: No OFD packet to send [10:01:14]*** Cut start [10:01:14]*** Partial cut [10:01:14]*** CUTSNS_PIN = 1 [10:01:14]*** CUTSNS_PIN = 0 [10:01:14]*** Brake cut motor [10:01:15]Read from MH i2c: 01 [10:01:15]MH_I2C_Read... [10:01:15]*** Stop cut motor [10:01:15]*** Cut end [10:01:15]Read from MH i2c: 01 07 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 71 8F 00 00 00 00 00 FF 0F 15 [10:01:15]process_action close_receipt done [10:01:15]requested_data is exist [10:01:15]produce_requested_data [10:01:15]requested_item fm.sn is exist - process it [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 11 00 00 [10:01:15]Write to MH i2c: E2 08 00 72 8F 80 11 00 00 00 00 00 00 7B [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 72 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C8 [10:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:01:15]wFMCommunicate OK [10:01:15]requested_item fd.num is exist - process it [10:01:15]SAM_PROTO_GetFieldsCounters [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 13 00 00 [10:01:15]Write to MH i2c: E2 08 00 73 8F 80 13 00 00 00 00 00 00 7E [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 62 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 62 00 73 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3A 26 01 00 0E 04 04 00 AD 00 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 45 [10:01:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3A 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_GetFieldsCounters done [10:01:15]requested_item shift.num is exist - process it [10:01:15]requested_item shift.opened is exist - process it [10:01:15]req_shift_opened [10:01:15]FM_GetShiftState [10:01:15]SAM_PROTO_GetShiftState [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 13 01 00 [10:01:15]Write to MH i2c: E2 08 00 74 8F 80 13 01 00 00 00 00 00 80 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0E 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0E 00 74 8F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E5 [10:01:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_GetShiftState done [10:01:15]FM_GetShiftState done [10:01:15]req_shift_opened done [10:01:15]requested_item shift.open_date is exist - process it [10:01:15]req_shift_open_date [10:01:15]req_shift_open_date done [10:01:15]produce_requested_data done [10:01:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75322,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:01:15]process_action_free close_receipt [10:01:15]json_value_free [10:01:15]json_value_free done [10:01:15]process_json_proto returns [10:01:15]Send response to host [10:01:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75322,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:01:15]free response buf [10:01:15]execute_script done [10:01:15]execute_script returns [10:01:15]free content buf [10:01:15]Sock 10.Close socket [10:01:15]Sock 10.Thread stoped [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:28]accept exits with 7 [10:01:28]New connection [10:01:28]New thread 3067465060 created [10:01:28]Thread 3067321700 joined [10:01:28]Waiting for new connection... [10:01:28] Sock 7.Parse request [10:01:28]Sock 7.Check first char [10:01:28]Sock 7.First char is OK [10:01:28]request: POST /json_proto HTTP/1.0 [10:01:28]Method: POST [10:01:28]URL: /json_proto [10:01:28]Method is POST - this is cgi request [10:01:28]url: /json_proto [10:01:28]query_string will be loaded in cgi processing [10:01:28]execute_cgi json_proto POST (null) [10:01:28]execute_cgi path=json_proto method=POST [10:01:28]POST find Content-Length [10:01:28]Host: 172.17.44.196:8080 [10:01:28]Content-Length: 678 [10:01:28]Content-Type: application/json [10:01:28] [10:01:28]POST finish read [10:01:28]Found Content-Length = 678 [10:01:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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:01:28]execute_script... [10:01: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)1965291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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:01:28]POST & json_proto [10:01:28]process_json_proto [10:01:28]json parsed OK: [10:01:28]protocol is kg_v1.0 [10:01:28]action value=close_receipt [10:01:28]process_action close_receipt [10:01:28]cmd_close_receipt [10:01:28]MH_GetDate [10:01:28]Write to MH i2c: F0 00 00 75 8F F3 [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: F0 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: F0 09 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: F0 09 00 75 8F 00 7F C9 18 67 E7 19 F8 65 20 [10:01:28]GetLastDocTimeStamp 1729677678 [10:01:28]current date 1729677695 [10:01:28]FM_GetShiftState [10:01:28]SAM_PROTO_GetShiftState [10:01:28]wFMCommunicate request_size=4 [10:01:28]MH_SAM_APDU [10:01:28]CAPDU: 80 13 01 00 [10:01:28]Write to MH i2c: E2 08 00 76 8F 80 13 01 00 00 00 00 00 82 [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:28]Read from MH i2c: E2 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 0E 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 0E 00 76 8F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E7 [10:01:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:01:28]wFMCommunicate OK [10:01:28]SAM_PROTO_GetShiftState done [10:01:28]FM_GetShiftState done [10:01:28]opened in 1729642905 [10:01:28]opened+sec_in_day 1729729305 [10:01:28]quantity*price = 70044 [10:01:28]sum+1 = 70046 [10:01:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 56 23.10.2024 10:01 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75323 ФПД: 230231769593418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100135&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75323&fm=230231769593418&tin=02508201610067®Number=0000000000161154&sum=70000 [10:01:29]StoreToDocumentArchive [10:01:29]shift 173 fd 75323 [10:01:29]save to /storage/0173/doc_00075323 [10:01:29]save last doc name /storage/0173/doc_00075323 to /storage/kkm_last_doc_name [10:01:29]save OK [10:01:29]Clear old archive folders... [10:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:29]tlvbuf is 00E9B660 [10:01:29]SAM_PROTO_ClearQueue [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 09 00 00 [10:01:29]Write to MH i2c: E2 08 00 83 8F 80 09 00 00 00 00 00 00 84 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 83 8F 00 90 00 86 [10:01:29]RAPDU: 90 00 [10:01:29]wFMCommunicate OK [10:01:29]SAM_PROTO_ClearQueue done [10:01:29]KKMCreateOFDPacket [10:01:29]OFDProtocolAddRootSTLVToBuf [10:01:29]FM_MakeSignedData [10:01:29]FM_MakeSignedData [10:01:29]SAM_PROTO_SignData [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 0D 01 02 [10:01:29]Write to MH i2c: E2 08 00 84 8F 80 0D 01 02 00 00 00 00 8C [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 84 8F 00 90 00 87 [10:01:29]RAPDU: 90 00 [10:01:29]wFMCommunicate OK [10:01:29]wFMCommunicate request_size=255 [10:01:29]MH_SAM_APDU [10:01: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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 38 00 00 00 F4 03 04 00 7F C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 26 01 00 35 04 06 00 D1 [10:01:29]Write to MH i2c: E2 02 01 85 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 38 00 00 00 F4 03 04 00 7F C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 26 01 00 35 04 06 00 D1 00 00 D4 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 85 8F 00 90 00 88 [10:01:29]RAPDU: 90 00 [10:01:29]wFMCommunicate OK [10:01:29]wFMCommunicate request_size=10 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 0D 02 02 05 65 02 D7 B6 4A [10:01:29]Write to MH i2c: E2 0D 00 86 8F 80 0D 02 02 05 00 65 02 D7 B6 4A 00 00 D7 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 86 8F 00 90 00 89 [10:01:29]RAPDU: 90 00 [10:01:29]wFMCommunicate OK [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 0D 03 02 [10:01:29]Write to MH i2c: E2 08 00 87 8F 80 0D 03 02 00 00 00 00 91 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 0B 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 0B 00 87 8F 00 7D 14 DF 45 00 59 58 73 90 00 6B [10:01:29]RAPDU: 7D 14 DF 45 00 59 58 73 90 00 [10:01:29]wFMCommunicate OK [10:01:29]SAM_PROTO_SignData done [10:01:29]FM_MakeSignedData done [10:01:29]CreateOFDProtocolMessage [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 11 00 00 [10:01:29]Write to MH i2c: E2 08 00 88 8F 80 11 00 00 00 00 00 00 91 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 17 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 17 00 88 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DE [10:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:01:29]wFMCommunicate OK [10:01:29]CreateOFDProtocolMessage done [10:01:29]OFDSenderStorePacket 75323 [10:01:29]StoreOFDPacket docnum=75323 [10:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4C 06 07 01 5F 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 38 00 00 00 F4 03 04 00 7F C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 26 01 00 35 04 06 00 D1 65 02 D7 B6 4A 7D 14 DF 45 00 59 58 73 [10:01:29]CheckFolder [10:01:29]dirname=/storage/ofd_packets [10:01:29]CheckFolder done [10:01:29]ProducePacketName [10:01:29]name=ofd_packets/00075323 [10:01:29]NVStorageSaveData ofd_packets/00075323 [10:01:29]File name is /storage/ofd_packets/00075323 [10:01:29]Write 301 bytes [10:01:29]NVStorageSaveData done [10:01:29]OFDSenderStorePacket done [10:01:29]KKMCreateOFDPacket done [10:01:29]NVStorageSaveData kkm_last_timestamp [10:01:29]File name is /storage/kkm_last_timestamp [10:01:29]Write 4 bytes [10:01:29]NVStorageSaveData done [10:01:29]ExternCall_PrintAddStr [10:01:29]wPrintStart [10:01:29]Write to MH i2c: 01 00 00 89 8F 18 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 07 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 07 00 89 8F 00 00 00 00 00 FF 0F 2D [10:01:29]RasterBufferAndPrint [10:01:29]line Счет N : (1)1965291 [10:01:29]line ИНН: 02508201610067 [10:01:29]line Контрольно-Кассовый Чек [10:01:29]line ПРОДАЖА [10:01:29]line ТРК (МРК, ГНК) : 34 [10:01:29]line Товар: 2710124500 [10:01:29]line Аи-95-К-5 [10:01:29]line 9.440 * 74.20 [10:01:29]line = 700.45 [10:01:29]line НДС 12% НСП 1% [10:01:29]line > о реализуемом товаре [10:01:29]line ОКРУГЛЕНИЕ: -0.45 [10:01:29]line ИТОГО: 700.00 [10:01:29]line Внесено: 700.00 [10:01:29]line СДАЧА: 0.00 [10:01:29]line НСП 1% : 6.20 [10:01:29]line НДС 12% : 74.38 [10:01:29]line Наличными: 700.00 [10:01:29]line Безнал.: 0.00 [10:01:29]line Место: АЗС № 133 "Партнер Нефть" [10:01:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:01:29]line СНО: Общий режим [10:01:29]line Чек 56 23.10.2024 10:01 [10:01:29]line Смена: 173 ФФД: 1.0 [10:01:29]line ЗНМ: 0300000020 [10:01:29]line РНМ: 0000000000161154 [10:01:29]line Версия ККМ: v1.0 [10:01:29]line ФМ: 0000000000963323 [10:01:29]line ФД: 75323 [10:01:29]line ФПД: 230231769593418 [10:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100135&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75323&fm=230231769593418&tin=02508201610067®Number=0000000000161154&sum=70000 [10:01:30]OFD Sender: Processing packet 75323 [packets to send 15, broken 14] [10:01:30]ProducePacketName [10:01:30]name=ofd_packets/00075323 [10:01:30]OFD Sender: To server: pG, [10:01:30]CommunicateWithHost lk.salyk.kg:30040 [10:01:30]ConnectInit lk.salyk.kg [10:01:30]written 0, free lines is 4095 [10:01:30]Connected sock=10 [10:01:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4C 06 07 01 5F 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 38 00 00 00 F4 03 04 00 7F C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3B 26 01 00 35 04 06 00 D1 65 02 D7 B6 4A 7D 14 DF 45 00 59 58 73 [10:01:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9E 3F 47 00 6C 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 39 36 33 33 32 33 10 04 04 00 3B 26 01 00 F4 03 04 00 5A 72 18 67 B6 04 01 00 00 14 F5 26 B1 70 E1 D8 91 [10:01:30]CommunicateWithHost err = 0 [10:01:30]CheckOFDResponse [10:01:30]1017 (14) - 77093643461234 [10:01:30]1041 (16) - 0000000000963323 [10:01:30]1040 (4) - 75323 [10:01:30]1012 (4) - 23.10.2024 03:49 [10:01:30]1206 (1) - 0 [10:01:30]OFD Sender: Remove packet 75323 [10:01:30]ProducePacketName [10:01:30]name=ofd_packets/00075323 [10:01:30]NVStorageDeleteData [10:01:30]Write to MH i2c: 01 00 00 B3 8F 42 [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: 01 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: 01 07 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: 01 07 00 B3 8F 00 00 00 00 00 B0 0C 05 [10:01:30]RasterBufferAndPrint [10:01:30]line [10:01:30]line [10:01:30]line [10:01:30]line [10:01:30]line [10:01:30]written 0, free lines is 3254 [10:01:30]MH_Cut [10:01:30]Write to MH i2c: D1 01 00 BA 8F 01 1B [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: D1 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: D1 01 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: D1 01 00 BA 8F 00 1A [10:01:30]Write to MH i2c: 01 00 00 BB 8F 4A [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:31]OFD Sender: No OFD packet to send [10:01:31]*** Cut start [10:01:31]*** Partial cut [10:01:31]*** CUTSNS_PIN = 1 [10:01:31]*** CUTSNS_PIN = 0 [10:01:31]*** Brake cut motor [10:01:32]Read from MH i2c: 01 [10:01:32]MH_I2C_Read... [10:01:32]*** Stop cut motor [10:01:32]*** Cut end [10:01:32]Read from MH i2c: 01 07 00 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: 01 07 00 BB 8F 00 00 00 00 00 FF 0F 5F [10:01:32]process_action close_receipt done [10:01:32]requested_data is exist [10:01:32]produce_requested_data [10:01:32]requested_item fm.sn is exist - process it [10:01:32]wFMCommunicate request_size=4 [10:01:32]MH_SAM_APDU [10:01:32]CAPDU: 80 11 00 00 [10:01:32]Write to MH i2c: E2 08 00 BC 8F 80 11 00 00 00 00 00 00 C5 [10:01:32]Write i2c OK [10:01:32]MH_I2C_Read... [10:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:32]Read from MH i2c: E2 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: E2 17 00 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: E2 17 00 BC 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 12 [10:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:01:32]wFMCommunicate OK [10:01:32]requested_item fd.num is exist - process it [10:01:32]SAM_PROTO_GetFieldsCounters [10:01:32]wFMCommunicate request_size=4 [10:01:32]MH_SAM_APDU [10:01:32]CAPDU: 80 13 00 00 [10:01:32]Write to MH i2c: E2 08 00 BD 8F 80 13 00 00 00 00 00 00 C8 [10:01:32]Write i2c OK [10:01:32]MH_I2C_Read... [10:01:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:32]Read from MH i2c: E2 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: E2 62 00 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: E2 62 00 BD 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3B 26 01 00 0E 04 04 00 AD 00 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 93 [10:01:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3B 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:32]wFMCommunicate OK [10:01:32]SAM_PROTO_GetFieldsCounters done [10:01:32]requested_item shift.num is exist - process it [10:01:32]requested_item shift.opened is exist - process it [10:01:32]req_shift_opened [10:01:32]FM_GetShiftState [10:01:32]SAM_PROTO_GetShiftState [10:01:32]wFMCommunicate request_size=4 [10:01:32]MH_SAM_APDU [10:01:32]CAPDU: 80 13 01 00 [10:01:32]Write to MH i2c: E2 08 00 BE 8F 80 13 01 00 00 00 00 00 CA [10:01:32]Write i2c OK [10:01:32]MH_I2C_Read... [10:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:32]Read from MH i2c: E2 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: E2 0E 00 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: E2 0E 00 BE 8F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 2F [10:01:32]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:01:32]wFMCommunicate OK [10:01:32]SAM_PROTO_GetShiftState done [10:01:32]FM_GetShiftState done [10:01:32]req_shift_opened done [10:01:32]requested_item shift.open_date is exist - process it [10:01:32]req_shift_open_date [10:01:32]req_shift_open_date done [10:01:32]produce_requested_data done [10:01:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75323,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:01:32]process_action_free close_receipt [10:01:32]json_value_free [10:01:32]json_value_free done [10:01:32]process_json_proto returns [10:01:32]Send response to host [10:01:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75323,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:01:32]free response buf [10:01:32]execute_script done [10:01:32]execute_script returns [10:01:32]free content buf [10:01:32]Sock 7.Close socket [10:01:32]Sock 7.Thread stoped [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:15]accept exits with 9 [10:02:15]New connection [10:02:15]New thread 3067321700 created [10:02:15]Thread 3067465060 joined [10:02:15]Waiting for new connection... [10:02:15] Sock 9.Parse request [10:02:15]Sock 9.Check first char [10:02:15]Sock 9.First char is OK [10:02:15]request: POST /json_proto HTTP/1.0 [10:02:15]Method: POST [10:02:15]URL: /json_proto [10:02:15]Method is POST - this is cgi request [10:02:15]url: /json_proto [10:02:15]query_string will be loaded in cgi processing [10:02:15]execute_cgi json_proto POST (null) [10:02:15]execute_cgi path=json_proto method=POST [10:02:15]POST find Content-Length [10:02:15]Host: 172.17.44.196:8080 [10:02:15]Content-Length: 678 [10:02:15]Content-Type: application/json [10:02:15] [10:02:15]POST finish read [10:02:15]Found Content-Length = 678 [10:02:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "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" ] } } [10:02:15]execute_script... [10:02: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)1965293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "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" ] } } [10:02:15]POST & json_proto [10:02:15]process_json_proto [10:02:15]json parsed OK: [10:02:15]protocol is kg_v1.0 [10:02:15]action value=close_receipt [10:02:15]process_action close_receipt [10:02:15]cmd_close_receipt [10:02:15]MH_GetDate [10:02:15]Write to MH i2c: F0 00 00 BF 8F 3D [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: F0 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: F0 09 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: F0 09 00 BF 8F 00 AE C9 18 67 E7 19 F8 65 99 [10:02:15]GetLastDocTimeStamp 1729677695 [10:02:15]current date 1729677742 [10:02:15]FM_GetShiftState [10:02:15]SAM_PROTO_GetShiftState [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 13 01 00 [10:02:15]Write to MH i2c: E2 08 00 C0 8F 80 13 01 00 00 00 00 00 CC [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 C0 8F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 31 [10:02:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_GetShiftState done [10:02:15]FM_GetShiftState done [10:02:15]opened in 1729642905 [10:02:15]opened+sec_in_day 1729729305 [10:02:15]quantity*price = 65026 [10:02:15]sum+1 = 65028 [10:02:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 57 23.10.2024 10:02 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75324 ФПД: 49834047082188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100222&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75324&fm=49834047082188&tin=02508201610067®Number=0000000000161154&sum=65000 [10:02:16]StoreToDocumentArchive [10:02:16]shift 173 fd 75324 [10:02:16]save to /storage/0173/doc_00075324 [10:02:16]save last doc name /storage/0173/doc_00075324 to /storage/kkm_last_doc_name [10:02:16]save OK [10:02:16]Clear old archive folders... [10:02:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:16]tlvbuf is 00E9B920 [10:02:16]SAM_PROTO_ClearQueue [10:02:16]wFMCommunicate request_size=4 [10:02:16]MH_SAM_APDU [10:02:16]CAPDU: 80 09 00 00 [10:02:16]Write to MH i2c: E2 08 00 CD 8F 80 09 00 00 00 00 00 00 CE [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 CD 8F 00 90 00 D0 [10:02:16]RAPDU: 90 00 [10:02:16]wFMCommunicate OK [10:02:16]SAM_PROTO_ClearQueue done [10:02:16]KKMCreateOFDPacket [10:02:16]OFDProtocolAddRootSTLVToBuf [10:02:16]FM_MakeSignedData [10:02:16]FM_MakeSignedData [10:02:16]SAM_PROTO_SignData [10:02:16]wFMCommunicate request_size=4 [10:02:16]MH_SAM_APDU [10:02:16]CAPDU: 80 0D 01 02 [10:02:16]Write to MH i2c: E2 08 00 CE 8F 80 0D 01 02 00 00 00 00 D6 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 CE 8F 00 90 00 D1 [10:02:16]RAPDU: 90 00 [10:02:16]wFMCommunicate OK [10:02:16]wFMCommunicate request_size=255 [10:02:16]MH_SAM_APDU [10:02: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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 39 00 00 00 F4 03 04 00 AE C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3C 26 01 00 35 04 06 00 2D [10:02:16]Write to MH i2c: E2 02 01 CF 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 39 00 00 00 F4 03 04 00 AE C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3C 26 01 00 35 04 06 00 2D 00 00 B7 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 CF 8F 00 90 00 D2 [10:02:17]RAPDU: 90 00 [10:02:17]wFMCommunicate OK [10:02:17]wFMCommunicate request_size=10 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 0D 02 02 05 52 E4 AC 8E CC [10:02:17]Write to MH i2c: E2 0D 00 D0 8F 80 0D 02 02 05 00 52 E4 AC 8E CC 00 00 1F [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 D0 8F 00 90 00 D3 [10:02:17]RAPDU: 90 00 [10:02:17]wFMCommunicate OK [10:02:17]wFMCommunicate request_size=4 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 0D 03 02 [10:02:17]Write to MH i2c: E2 08 00 D1 8F 80 0D 03 02 00 00 00 00 DB [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 0B 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 0B 00 D1 8F 00 A8 D0 DE 8F FF C6 32 81 90 00 39 [10:02:17]RAPDU: A8 D0 DE 8F FF C6 32 81 90 00 [10:02:17]wFMCommunicate OK [10:02:17]SAM_PROTO_SignData done [10:02:17]FM_MakeSignedData done [10:02:17]CreateOFDProtocolMessage [10:02:17]wFMCommunicate request_size=4 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 11 00 00 [10:02:17]Write to MH i2c: E2 08 00 D2 8F 80 11 00 00 00 00 00 00 DB [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 17 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 17 00 D2 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 28 [10:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:02:17]wFMCommunicate OK [10:02:17]CreateOFDProtocolMessage done [10:02:17]OFDSenderStorePacket 75324 [10:02:17]StoreOFDPacket docnum=75324 [10:02:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 6A 10 07 01 B6 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 39 00 00 00 F4 03 04 00 AE C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3C 26 01 00 35 04 06 00 2D 52 E4 AC 8E CC A8 D0 DE 8F FF C6 32 81 [10:02:17]CheckFolder [10:02:17]dirname=/storage/ofd_packets [10:02:17]CheckFolder done [10:02:17]ProducePacketName [10:02:17]name=ofd_packets/00075324 [10:02:17]NVStorageSaveData ofd_packets/00075324 [10:02:17]File name is /storage/ofd_packets/00075324 [10:02:17]Write 301 bytes [10:02:17]NVStorageSaveData done [10:02:17]OFDSenderStorePacket done [10:02:17]KKMCreateOFDPacket done [10:02:17]NVStorageSaveData kkm_last_timestamp [10:02:17]File name is /storage/kkm_last_timestamp [10:02:17]Write 4 bytes [10:02:17]NVStorageSaveData done [10:02:17]ExternCall_PrintAddStr [10:02:17]wPrintStart [10:02:17]Write to MH i2c: 01 00 00 D3 8F 62 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 07 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 07 00 D3 8F 00 00 00 00 00 FF 0F 77 [10:02:17]RasterBufferAndPrint [10:02:17]line Счет N : (1)1965293 [10:02:17]line ИНН: 02508201610067 [10:02:17]line Контрольно-Кассовый Чек [10:02:17]line ПРОДАЖА [10:02:17]line ТРК (МРК, ГНК) : 43 [10:02:17]line Товар: 2710124130 [10:02:17]line Аи-92-К-5 [10:02:17]line 9.720 * 66.90 [10:02:17]line = 650.27 [10:02:17]line НДС 12% НСП 1% [10:02:17]line > о реализуемом товаре [10:02:17]line ОКРУГЛЕНИЕ: -0.27 [10:02:17]line ИТОГО: 650.00 [10:02:17]line Внесено: 650.00 [10:02:17]line СДАЧА: 0.00 [10:02:17]line НСП 1% : 5.75 [10:02:17]line НДС 12% : 69.05 [10:02:17]line Наличными: 650.00 [10:02:17]line Безнал.: 0.00 [10:02:17]line Место: АЗС № 133 "Партнер Нефть" [10:02:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:02:17]line СНО: Общий режим [10:02:17]line Чек 57 23.10.2024 10:02 [10:02:17]line Смена: 173 ФФД: 1.0 [10:02:17]line ЗНМ: 0300000020 [10:02:17]line РНМ: 0000000000161154 [10:02:17]line Версия ККМ: v1.0 [10:02:17]line ФМ: 0000000000963323 [10:02:17]line ФД: 75324 [10:02:17]line ФПД: 49834047082188 [10:02:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100222&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75324&fm=49834047082188&tin=02508201610067®Number=0000000000161154&sum=65000 [10:02:17]written 0, free lines is 4095 [10:02:17]OFD Sender: Processing packet 75324 [packets to send 15, broken 14] [10:02:17]ProducePacketName [10:02:17]name=ofd_packets/00075324 [10:02:17]OFD Sender: To server: pG, [10:02:17]CommunicateWithHost lk.salyk.kg:30040 [10:02:17]ConnectInit lk.salyk.kg [10:02:17]Connected sock=10 [10:02:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 6A 10 07 01 B6 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 39 00 00 00 F4 03 04 00 AE C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3C 26 01 00 35 04 06 00 2D 52 E4 AC 8E CC A8 D0 DE 8F FF C6 32 81 [10:02:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C6 B0 47 00 5E 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 39 36 33 33 32 33 10 04 04 00 3C 26 01 00 F4 03 04 00 89 72 18 67 B6 04 01 00 00 82 B9 1C B7 A2 0A 4F 2B [10:02:17]CommunicateWithHost err = 0 [10:02:17]CheckOFDResponse [10:02:17]1017 (14) - 77093643461234 [10:02:17]1041 (16) - 0000000000963323 [10:02:17]1040 (4) - 75324 [10:02:17]1012 (4) - 23.10.2024 03:50 [10:02:17]1206 (1) - 0 [10:02:17]OFD Sender: Remove packet 75324 [10:02:17]ProducePacketName [10:02:17]name=ofd_packets/00075324 [10:02:17]NVStorageDeleteData [10:02:18]Write to MH i2c: 01 00 00 FD 8F 8C [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 07 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 07 00 FD 8F 00 00 00 00 00 A9 0C 48 [10:02:18]RasterBufferAndPrint [10:02:18]line [10:02:18]line [10:02:18]line [10:02:18]line [10:02:18]line [10:02:18]written 0, free lines is 3246 [10:02:18]MH_Cut [10:02:18]Write to MH i2c: D1 01 00 04 90 01 66 [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: D1 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: D1 01 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: D1 01 00 04 90 00 65 [10:02:18]Write to MH i2c: 01 00 00 05 90 95 [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]OFD Sender: No OFD packet to send [10:02:19]*** Cut start [10:02:19]*** Partial cut [10:02:19]*** CUTSNS_PIN = 1 [10:02:19]*** CUTSNS_PIN = 0 [10:02:19]*** Brake cut motor [10:02:19]Read from MH i2c: 01 [10:02:19]MH_I2C_Read... [10:02:19]*** Stop cut motor [10:02:19]*** Cut end [10:02:19]Read from MH i2c: 01 07 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: 01 07 00 05 90 00 00 00 00 00 FF 0F AA [10:02:19]process_action close_receipt done [10:02:19]requested_data is exist [10:02:19]produce_requested_data [10:02:19]requested_item fm.sn is exist - process it [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 11 00 00 [10:02:19]Write to MH i2c: E2 08 00 06 90 80 11 00 00 00 00 00 00 10 [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 17 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 17 00 06 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [10:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:02:19]wFMCommunicate OK [10:02:19]requested_item fd.num is exist - process it [10:02:19]SAM_PROTO_GetFieldsCounters [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 13 00 00 [10:02:19]Write to MH i2c: E2 08 00 07 90 80 13 00 00 00 00 00 00 13 [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 62 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 62 00 07 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3C 26 01 00 0E 04 04 00 AD 00 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 E2 [10:02:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3C 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:19]wFMCommunicate OK [10:02:19]SAM_PROTO_GetFieldsCounters done [10:02:19]requested_item shift.num is exist - process it [10:02:19]requested_item shift.opened is exist - process it [10:02:19]req_shift_opened [10:02:19]FM_GetShiftState [10:02:19]SAM_PROTO_GetShiftState [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 13 01 00 [10:02:19]Write to MH i2c: E2 08 00 08 90 80 13 01 00 00 00 00 00 15 [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 0E 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 0E 00 08 90 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7A [10:02:19]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:02:19]wFMCommunicate OK [10:02:19]SAM_PROTO_GetShiftState done [10:02:19]FM_GetShiftState done [10:02:19]req_shift_opened done [10:02:19]requested_item shift.open_date is exist - process it [10:02:19]req_shift_open_date [10:02:19]req_shift_open_date done [10:02:19]produce_requested_data done [10:02:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75324,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:02:19]process_action_free close_receipt [10:02:19]json_value_free [10:02:19]json_value_free done [10:02:19]process_json_proto returns [10:02:19]Send response to host [10:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75324,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:02:19]free response buf [10:02:19]execute_script done [10:02:19]execute_script returns [10:02:19]free content buf [10:02:19]Sock 9.Close socket [10:02:19]Sock 9.Thread stoped [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:39]accept exits with 7 [10:02:39]New connection [10:02:39]New thread 3067465060 created [10:02:39]Thread 3067321700 joined [10:02:39]Waiting for new connection... [10:02:39] Sock 7.Parse request [10:02:39]Sock 7.Check first char [10:02:39]Sock 7.First char is OK [10:02:39]request: POST /json_proto HTTP/1.0 [10:02:39]Method: POST [10:02:39]URL: /json_proto [10:02:39]Method is POST - this is cgi request [10:02:39]url: /json_proto [10:02:39]query_string will be loaded in cgi processing [10:02:39]execute_cgi json_proto POST (null) [10:02:39]execute_cgi path=json_proto method=POST [10:02:39]POST find Content-Length [10:02:39]Host: 172.17.44.196:8080 [10:02:39]Content-Length: 680 [10:02:39]Content-Type: application/json [10:02:39] [10:02:39]POST finish read [10:02:39]Found Content-Length = 680 [10:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965294", "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" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:39]execute_script... [10:02:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965294", "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" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:39]POST & json_proto [10:02:39]process_json_proto [10:02:39]json parsed OK: [10:02:39]protocol is kg_v1.0 [10:02:39]action value=close_receipt [10:02:39]process_action close_receipt [10:02:39]cmd_close_receipt [10:02:39]MH_GetDate [10:02:39]Write to MH i2c: F0 00 00 09 90 88 [10:02:39]Write i2c OK [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: F0 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: F0 09 00 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: F0 09 00 09 90 00 C6 C9 18 67 E7 19 F8 65 FC [10:02:39]GetLastDocTimeStamp 1729677742 [10:02:39]current date 1729677766 [10:02:39]FM_GetShiftState [10:02:39]SAM_PROTO_GetShiftState [10:02:39]wFMCommunicate request_size=4 [10:02:39]MH_SAM_APDU [10:02:39]CAPDU: 80 13 01 00 [10:02:39]Write to MH i2c: E2 08 00 0A 90 80 13 01 00 00 00 00 00 17 [10:02:39]Write i2c OK [10:02:39]MH_I2C_Read... [10:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:39]Read from MH i2c: E2 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: E2 0E 00 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: E2 0E 00 0A 90 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7C [10:02:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:02:39]wFMCommunicate OK [10:02:39]SAM_PROTO_GetShiftState done [10:02:39]FM_GetShiftState done [10:02:39]opened in 1729642905 [10:02:39]opened+sec_in_day 1729729305 [10:02:39]quantity*price = 160020 [10:02:39]sum+1 = 160021 [10:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 58 23.10.2024 10:02 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75325 ФПД: 154314184821113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100246&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75325&fm=154314184821113&tin=02508201610067®Number=0000000000161154&sum=160000 [10:02:40]StoreToDocumentArchive [10:02:40]shift 173 fd 75325 [10:02:40]save to /storage/0173/doc_00075325 [10:02:40]save last doc name /storage/0173/doc_00075325 to /storage/kkm_last_doc_name [10:02:40]save OK [10:02:40]Clear old archive folders... [10:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:02:40]tlvbuf is 01001F60 [10:02:40]SAM_PROTO_ClearQueue [10:02:40]wFMCommunicate request_size=4 [10:02:40]MH_SAM_APDU [10:02:40]CAPDU: 80 09 00 00 [10:02:40]Write to MH i2c: E2 08 00 17 90 80 09 00 00 00 00 00 00 19 [10:02:40]Write i2c OK [10:02:40]MH_I2C_Read... [10:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:40]Read from MH i2c: E2 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 03 00 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 03 00 17 90 00 90 00 1B [10:02:40]RAPDU: 90 00 [10:02:40]wFMCommunicate OK [10:02:40]SAM_PROTO_ClearQueue done [10:02:40]KKMCreateOFDPacket [10:02:40]OFDProtocolAddRootSTLVToBuf [10:02:40]FM_MakeSignedData [10:02:40]FM_MakeSignedData [10:02:40]SAM_PROTO_SignData [10:02:40]wFMCommunicate request_size=4 [10:02:40]MH_SAM_APDU [10:02:40]CAPDU: 80 0D 01 02 [10:02:40]Write to MH i2c: E2 08 00 18 90 80 0D 01 02 00 00 00 00 21 [10:02:40]Write i2c OK [10:02:40]MH_I2C_Read... [10:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:40]Read from MH i2c: E2 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 03 00 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 03 00 18 90 00 90 00 1C [10:02:40]RAPDU: 90 00 [10:02:40]wFMCommunicate OK [10:02:40]wFMCommunicate request_size=255 [10:02:40]MH_SAM_APDU [10:02:40]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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 71 02 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 C6 C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 26 01 00 35 04 06 00 8C 59 12 2B [10:02:40]Write to MH i2c: E2 02 01 19 90 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 71 02 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 C6 C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 26 01 00 35 04 06 00 8C 59 12 2B 00 00 C4 [10:02:40]Write i2c OK [10:02:40]MH_I2C_Read... [10:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:41]Read from MH i2c: E2 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 03 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 03 00 19 90 00 90 00 1D [10:02:41]RAPDU: 90 00 [10:02:41]wFMCommunicate OK [10:02:41]wFMCommunicate request_size=7 [10:02:41]MH_SAM_APDU [10:02:41]CAPDU: 80 0D 02 02 02 89 79 [10:02:41]Write to MH i2c: E2 0A 00 1A 90 80 0D 02 02 02 00 89 79 00 00 2A [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:41]Read from MH i2c: E2 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 03 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 03 00 1A 90 00 90 00 1E [10:02:41]RAPDU: 90 00 [10:02:41]wFMCommunicate OK [10:02:41]wFMCommunicate request_size=4 [10:02:41]MH_SAM_APDU [10:02:41]CAPDU: 80 0D 03 02 [10:02:41]Write to MH i2c: E2 08 00 1B 90 80 0D 03 02 00 00 00 00 26 [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:41]Read from MH i2c: E2 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 0B 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 0B 00 1B 90 00 9B 5A EC F2 8E 9A 30 0A 90 00 5C [10:02:41]RAPDU: 9B 5A EC F2 8E 9A 30 0A 90 00 [10:02:41]wFMCommunicate OK [10:02:41]SAM_PROTO_SignData done [10:02:41]FM_MakeSignedData done [10:02:41]CreateOFDProtocolMessage [10:02:41]wFMCommunicate request_size=4 [10:02:41]MH_SAM_APDU [10:02:41]CAPDU: 80 11 00 00 [10:02:41]Write to MH i2c: E2 08 00 1C 90 80 11 00 00 00 00 00 00 26 [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:41]Read from MH i2c: E2 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 17 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 17 00 1C 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 73 [10:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:02:41]wFMCommunicate OK [10:02:41]CreateOFDProtocolMessage done [10:02:41]OFDSenderStorePacket 75325 [10:02:41]StoreOFDPacket docnum=75325 [10:02:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 4F FC 04 01 F2 56 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 71 02 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 C6 C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 26 01 00 35 04 06 00 8C 59 12 2B 89 79 9B 5A EC F2 8E 9A 30 0A [10:02:41]CheckFolder [10:02:41]dirname=/storage/ofd_packets [10:02:41]CheckFolder done [10:02:41]ProducePacketName [10:02:41]name=ofd_packets/00075325 [10:02:41]NVStorageSaveData ofd_packets/00075325 [10:02:41]File name is /storage/ofd_packets/00075325 [10:02:41]Write 298 bytes [10:02:41]NVStorageSaveData done [10:02:41]OFDSenderStorePacket done [10:02:41]KKMCreateOFDPacket done [10:02:41]NVStorageSaveData kkm_last_timestamp [10:02:41]File name is /storage/kkm_last_timestamp [10:02:41]Write 4 bytes [10:02:41]NVStorageSaveData done [10:02:41]ExternCall_PrintAddStr [10:02:41]wPrintStart [10:02:41]Write to MH i2c: 01 00 00 1D 90 AD [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: 01 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: 01 07 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: 01 07 00 1D 90 00 00 00 00 00 FF 0F C2 [10:02:41]RasterBufferAndPrint [10:02:41]line Счет N : (1)1965294 [10:02:41]line ИНН: 02508201610067 [10:02:41]line Контрольно-Кассовый Чек [10:02:41]line ПРОДАЖА [10:02:41]line ТРК (МРК, ГНК) : 61 [10:02:41]line Товар: 2710194210 [10:02:41]line ДТ-К-5 [10:02:41]line 21.000 * 76.20 [10:02:41]line = 1600.20 [10:02:41]line НДС 12% НСП 1% [10:02:41]line > о реализуемом товаре [10:02:41]line ОКРУГЛЕНИЕ: -0.20 [10:02:41]line ИТОГО: 1600.00 [10:02:41]line Внесено: 1600.00 [10:02:41]line СДАЧА: 0.00 [10:02:41]line НСП 1% : 14.16 [10:02:41]line НДС 12% : 169.93 [10:02:41]line Наличными: 1600.00 [10:02:41]line Безнал.: 0.00 [10:02:41]line Место: АЗС № 133 "Партнер Нефть" [10:02:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:02:41]line СНО: Общий режим [10:02:41]line Чек 58 23.10.2024 10:02 [10:02:41]line Смена: 173 ФФД: 1.0 [10:02:41]line ЗНМ: 0300000020 [10:02:41]line РНМ: 0000000000161154 [10:02:41]line Версия ККМ: v1.0 [10:02:41]line ФМ: 0000000000963323 [10:02:41]line ФД: 75325 [10:02:41]line ФПД: 154314184821113 [10:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100246&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75325&fm=154314184821113&tin=02508201610067®Number=0000000000161154&sum=160000 [10:02:41]OFD Sender: Processing packet 75325 [packets to send 15, broken 14] [10:02:41]ProducePacketName [10:02:41]name=ofd_packets/00075325 [10:02:41]OFD Sender: To server: pG, [10:02:41]CommunicateWithHost lk.salyk.kg:30040 [10:02:41]ConnectInit lk.salyk.kg [10:02:41]written 0, free lines is 4095 [10:02:41]Connected sock=10 [10:02:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 4F FC 04 01 F2 56 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 71 02 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 C6 C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 26 01 00 35 04 06 00 8C 59 12 2B 89 79 9B 5A EC F2 8E 9A 30 0A [10:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AC B6 47 00 B7 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3D 26 01 00 F4 03 04 00 A1 72 18 67 B6 04 01 00 00 B7 90 6E 56 E8 A3 C8 E4 [10:02:41]CommunicateWithHost err = 0 [10:02:41]CheckOFDResponse [10:02:41]1017 (14) - 77093643461234 [10:02:41]1041 (16) - 0000000000963323 [10:02:41]1040 (4) - 75325 [10:02:41]1012 (4) - 23.10.2024 03:50 [10:02:41]1206 (1) - 0 [10:02:41]OFD Sender: Remove packet 75325 [10:02:41]ProducePacketName [10:02:41]name=ofd_packets/00075325 [10:02:41]NVStorageDeleteData [10:02:42]Write to MH i2c: 01 00 00 47 90 D7 [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: 01 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: 01 07 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: 01 07 00 47 90 00 00 00 00 00 A9 0C 93 [10:02:42]RasterBufferAndPrint [10:02:42]line [10:02:42]line [10:02:42]line [10:02:42]line [10:02:42]line [10:02:42]written 0, free lines is 3245 [10:02:42]MH_Cut [10:02:42]Write to MH i2c: D1 01 00 4E 90 01 B0 [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: D1 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: D1 01 00 [10:02:42]MH_I2C_Read... [10:02:42]Read from MH i2c: D1 01 00 4E 90 00 AF [10:02:42]Write to MH i2c: 01 00 00 4F 90 DF [10:02:42]Write i2c OK [10:02:42]MH_I2C_Read... [10:02:42]OFD Sender: No OFD packet to send [10:02:43]*** Cut start [10:02:43]*** Partial cut [10:02:43]*** CUTSNS_PIN = 1 [10:02:43]*** CUTSNS_PIN = 0 [10:02:43]*** Brake cut motor [10:02:43]Read from MH i2c: 01 [10:02:43]MH_I2C_Read... [10:02:43]*** Stop cut motor [10:02:43]*** Cut end [10:02:43]Read from MH i2c: 01 07 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: 01 07 00 4F 90 00 00 00 00 00 FF 0F F4 [10:02:43]process_action close_receipt done [10:02:43]requested_data is exist [10:02:43]produce_requested_data [10:02:43]requested_item fm.sn is exist - process it [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 11 00 00 [10:02:43]Write to MH i2c: E2 08 00 50 90 80 11 00 00 00 00 00 00 5A [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 17 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 17 00 50 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A7 [10:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:02:43]wFMCommunicate OK [10:02:43]requested_item fd.num is exist - process it [10:02:43]SAM_PROTO_GetFieldsCounters [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 13 00 00 [10:02:43]Write to MH i2c: E2 08 00 51 90 80 13 00 00 00 00 00 00 5D [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 62 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 62 00 51 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3D 26 01 00 0E 04 04 00 AD 00 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 30 [10:02:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3D 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:43]wFMCommunicate OK [10:02:43]SAM_PROTO_GetFieldsCounters done [10:02:43]requested_item shift.num is exist - process it [10:02:43]requested_item shift.opened is exist - process it [10:02:43]req_shift_opened [10:02:43]FM_GetShiftState [10:02:43]SAM_PROTO_GetShiftState [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 13 01 00 [10:02:43]Write to MH i2c: E2 08 00 52 90 80 13 01 00 00 00 00 00 5F [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 0E 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 0E 00 52 90 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C4 [10:02:43]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:02:43]wFMCommunicate OK [10:02:43]SAM_PROTO_GetShiftState done [10:02:43]FM_GetShiftState done [10:02:43]req_shift_opened done [10:02:43]requested_item shift.open_date is exist - process it [10:02:43]req_shift_open_date [10:02:43]req_shift_open_date done [10:02:43]produce_requested_data done [10:02:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75325,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:02:43]process_action_free close_receipt [10:02:43]json_value_free [10:02:43]json_value_free done [10:02:43]process_json_proto returns [10:02:43]Send response to host [10:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75325,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:02:43]free response buf [10:02:43]execute_script done [10:02:43]execute_script returns [10:02:43]free content buf [10:02:43]Sock 7.Close socket [10:02:43]Sock 7.Thread stoped [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:01]accept exits with 9 [10:03:01]New connection [10:03:01]New thread 3067321700 created [10:03:01]Thread 3067465060 joined [10:03:01]Waiting for new connection... [10:03:01] Sock 9.Parse request [10:03:01]Sock 9.Check first char [10:03:01]Sock 9.First char is OK [10:03:01]request: POST /json_proto HTTP/1.0 [10:03:01]Method: POST [10:03:01]URL: /json_proto [10:03:01]Method is POST - this is cgi request [10:03:01]url: /json_proto [10:03:01]query_string will be loaded in cgi processing [10:03:01]execute_cgi json_proto POST (null) [10:03:01]execute_cgi path=json_proto method=POST [10:03:01]POST find Content-Length [10:03:01]Host: 172.17.44.196:8080 [10:03:01]Content-Length: 678 [10:03:01]Content-Type: application/json [10:03:01] [10:03:01]POST finish read [10:03:01]Found Content-Length = 678 [10:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:03:01]execute_script... [10:03:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:03:01]POST & json_proto [10:03:01]process_json_proto [10:03:01]json parsed OK: [10:03:01]protocol is kg_v1.0 [10:03:01]action value=close_receipt [10:03:01]process_action close_receipt [10:03:01]cmd_close_receipt [10:03:01]MH_GetDate [10:03:01]Write to MH i2c: F0 00 00 53 90 D2 [10:03:01]Write i2c OK [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: F0 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: F0 09 00 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: F0 09 00 53 90 00 DC C9 18 67 E7 19 F8 65 5C [10:03:01]GetLastDocTimeStamp 1729677766 [10:03:01]current date 1729677788 [10:03:01]FM_GetShiftState [10:03:01]SAM_PROTO_GetShiftState [10:03:01]wFMCommunicate request_size=4 [10:03:01]MH_SAM_APDU [10:03:01]CAPDU: 80 13 01 00 [10:03:01]Write to MH i2c: E2 08 00 54 90 80 13 01 00 00 00 00 00 61 [10:03:01]Write i2c OK [10:03:01]MH_I2C_Read... [10:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:01]Read from MH i2c: E2 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: E2 0E 00 [10:03:01]MH_I2C_Read... [10:03:01]Read from MH i2c: E2 0E 00 54 90 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C6 [10:03:01]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:03:01]wFMCommunicate OK [10:03:01]SAM_PROTO_GetShiftState done [10:03:01]FM_GetShiftState done [10:03:01]opened in 1729642905 [10:03:01]opened+sec_in_day 1729729305 [10:03:01]quantity*price = 50041 [10:03:01]sum+1 = 50042 [10:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 59 23.10.2024 10:03 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75326 ФПД: 187742772033666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100308&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75326&fm=187742772033666&tin=02508201610067®Number=0000000000161154&sum=50000 [10:03:02]StoreToDocumentArchive [10:03:02]shift 173 fd 75326 [10:03:02]save to /storage/0173/doc_00075326 [10:03:02]save last doc name /storage/0173/doc_00075326 to /storage/kkm_last_doc_name [10:03:02]save OK [10:03:02]Clear old archive folders... [10:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:02]tlvbuf is 00FDA3C0 [10:03:02]SAM_PROTO_ClearQueue [10:03:02]wFMCommunicate request_size=4 [10:03:02]MH_SAM_APDU [10:03:02]CAPDU: 80 09 00 00 [10:03:02]Write to MH i2c: E2 08 00 61 90 80 09 00 00 00 00 00 00 63 [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:02]Read from MH i2c: E2 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 03 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 03 00 61 90 00 90 00 65 [10:03:02]RAPDU: 90 00 [10:03:02]wFMCommunicate OK [10:03:02]SAM_PROTO_ClearQueue done [10:03:02]KKMCreateOFDPacket [10:03:02]OFDProtocolAddRootSTLVToBuf [10:03:02]FM_MakeSignedData [10:03:02]FM_MakeSignedData [10:03:02]SAM_PROTO_SignData [10:03:02]wFMCommunicate request_size=4 [10:03:02]MH_SAM_APDU [10:03:02]CAPDU: 80 0D 01 02 [10:03:02]Write to MH i2c: E2 08 00 62 90 80 0D 01 02 00 00 00 00 6B [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:03]Read from MH i2c: E2 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 03 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 03 00 62 90 00 90 00 66 [10:03:03]RAPDU: 90 00 [10:03:03]wFMCommunicate OK [10:03:03]wFMCommunicate request_size=255 [10:03:03]MH_SAM_APDU [10:03: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3B 00 00 00 F4 03 04 00 DC C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 26 01 00 35 04 06 00 AA [10:03:03]Write to MH i2c: E2 02 01 63 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3B 00 00 00 F4 03 04 00 DC C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 26 01 00 35 04 06 00 AA 00 00 08 [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:03]Read from MH i2c: E2 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 03 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 03 00 63 90 00 90 00 67 [10:03:03]RAPDU: 90 00 [10:03:03]wFMCommunicate OK [10:03:03]wFMCommunicate request_size=10 [10:03:03]MH_SAM_APDU [10:03:03]CAPDU: 80 0D 02 02 05 C0 45 3C 78 82 [10:03:03]Write to MH i2c: E2 0D 00 64 90 80 0D 02 02 05 00 C0 45 3C 78 82 00 00 B3 [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:03]Read from MH i2c: E2 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 03 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 03 00 64 90 00 90 00 68 [10:03:03]RAPDU: 90 00 [10:03:03]wFMCommunicate OK [10:03:03]wFMCommunicate request_size=4 [10:03:03]MH_SAM_APDU [10:03:03]CAPDU: 80 0D 03 02 [10:03:03]Write to MH i2c: E2 08 00 65 90 80 0D 03 02 00 00 00 00 70 [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:03]Read from MH i2c: E2 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 0B 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 0B 00 65 90 00 83 EA C8 1C D8 B9 AC 88 90 00 87 [10:03:03]RAPDU: 83 EA C8 1C D8 B9 AC 88 90 00 [10:03:03]wFMCommunicate OK [10:03:03]SAM_PROTO_SignData done [10:03:03]FM_MakeSignedData done [10:03:03]CreateOFDProtocolMessage [10:03:03]wFMCommunicate request_size=4 [10:03:03]MH_SAM_APDU [10:03:03]CAPDU: 80 11 00 00 [10:03:03]Write to MH i2c: E2 08 00 66 90 80 11 00 00 00 00 00 00 70 [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:03]Read from MH i2c: E2 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 17 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 17 00 66 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BD [10:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:03:03]wFMCommunicate OK [10:03:03]CreateOFDProtocolMessage done [10:03:03]OFDSenderStorePacket 75326 [10:03:03]StoreOFDPacket docnum=75326 [10:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 6A 20 07 01 C4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3B 00 00 00 F4 03 04 00 DC C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 26 01 00 35 04 06 00 AA C0 45 3C 78 82 83 EA C8 1C D8 B9 AC 88 [10:03:03]CheckFolder [10:03:03]dirname=/storage/ofd_packets [10:03:03]CheckFolder done [10:03:03]ProducePacketName [10:03:03]name=ofd_packets/00075326 [10:03:03]NVStorageSaveData ofd_packets/00075326 [10:03:03]File name is /storage/ofd_packets/00075326 [10:03:03]Write 301 bytes [10:03:03]NVStorageSaveData done [10:03:03]OFDSenderStorePacket done [10:03:03]KKMCreateOFDPacket done [10:03:03]NVStorageSaveData kkm_last_timestamp [10:03:03]File name is /storage/kkm_last_timestamp [10:03:03]Write 4 bytes [10:03:03]NVStorageSaveData done [10:03:03]ExternCall_PrintAddStr [10:03:03]wPrintStart [10:03:03]Write to MH i2c: 01 00 00 67 90 F7 [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: 01 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: 01 07 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: 01 07 00 67 90 00 00 00 00 00 FF 0F 0C [10:03:03]RasterBufferAndPrint [10:03:03]line Счет N : (1)1965295 [10:03:03]line ИНН: 02508201610067 [10:03:03]line Контрольно-Кассовый Чек [10:03:03]line ПРОДАЖА [10:03:03]line ТРК (МРК, ГНК) : 53 [10:03:03]line Товар: 2710124130 [10:03:03]line Аи-92-К-5 [10:03:03]line 7.480 * 66.90 [10:03:03]line = 500.41 [10:03:03]line НДС 12% НСП 1% [10:03:03]line > о реализуемом товаре [10:03:03]line ОКРУГЛЕНИЕ: -0.41 [10:03:03]line ИТОГО: 500.00 [10:03:03]line Внесено: 500.00 [10:03:03]line СДАЧА: 0.00 [10:03:03]line НСП 1% : 4.43 [10:03:03]line НДС 12% : 53.14 [10:03:03]line Наличными: 500.00 [10:03:03]line Безнал.: 0.00 [10:03:03]line Место: АЗС № 133 "Партнер Нефть" [10:03:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:03:03]line СНО: Общий режим [10:03:03]line Чек 59 23.10.2024 10:03 [10:03:03]line Смена: 173 ФФД: 1.0 [10:03:03]line ЗНМ: 0300000020 [10:03:03]line РНМ: 0000000000161154 [10:03:03]line Версия ККМ: v1.0 [10:03:03]line ФМ: 0000000000963323 [10:03:03]line ФД: 75326 [10:03:03]line ФПД: 187742772033666 [10:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100308&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75326&fm=187742772033666&tin=02508201610067®Number=0000000000161154&sum=50000 [10:03:03]OFD Sender: Processing packet 75326 [packets to send 15, broken 14] [10:03:03]ProducePacketName [10:03:03]name=ofd_packets/00075326 [10:03:03]OFD Sender: To server: pG, [10:03:03]CommunicateWithHost lk.salyk.kg:30040 [10:03:03]ConnectInit lk.salyk.kg [10:03:03]written 0, free lines is 4095 [10:03:03]Connected sock=10 [10:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 6A 20 07 01 C4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3B 00 00 00 F4 03 04 00 DC C9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 26 01 00 35 04 06 00 AA C0 45 3C 78 82 83 EA C8 1C D8 B9 AC 88 [10:03:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B3 2B 47 00 5C 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3E 26 01 00 F4 03 04 00 B8 72 18 67 B6 04 01 00 00 EC 2E FE B7 9D C0 50 C5 [10:03:04]CommunicateWithHost err = 0 [10:03:04]CheckOFDResponse [10:03:04]1017 (14) - 77093643461234 [10:03:04]1041 (16) - 0000000000963323 [10:03:04]1040 (4) - 75326 [10:03:04]1012 (4) - 23.10.2024 03:51 [10:03:04]1206 (1) - 0 [10:03:04]OFD Sender: Remove packet 75326 [10:03:04]ProducePacketName [10:03:04]name=ofd_packets/00075326 [10:03:04]NVStorageDeleteData [10:03:04]Write to MH i2c: 01 00 00 91 90 21 [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: 01 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: 01 07 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: 01 07 00 91 90 00 00 00 00 00 A9 0C DD [10:03:04]RasterBufferAndPrint [10:03:04]line [10:03:04]line [10:03:04]line [10:03:04]line [10:03:04]line [10:03:04]written 0, free lines is 3245 [10:03:04]MH_Cut [10:03:04]Write to MH i2c: D1 01 00 98 90 01 FA [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: D1 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: D1 01 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: D1 01 00 98 90 00 F9 [10:03:04]Write to MH i2c: 01 00 00 99 90 29 [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]OFD Sender: No OFD packet to send [10:03:05]*** Cut start [10:03:05]*** Partial cut [10:03:05]*** CUTSNS_PIN = 1 [10:03:05]*** CUTSNS_PIN = 0 [10:03:05]*** Brake cut motor [10:03:05]Read from MH i2c: 01 [10:03:05]MH_I2C_Read... [10:03:05]*** Stop cut motor [10:03:05]*** Cut end [10:03:05]Read from MH i2c: 01 07 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: 01 07 00 99 90 00 00 00 00 00 FF 0F 3E [10:03:05]process_action close_receipt done [10:03:05]requested_data is exist [10:03:05]produce_requested_data [10:03:05]requested_item fm.sn is exist - process it [10:03:05]wFMCommunicate request_size=4 [10:03:05]MH_SAM_APDU [10:03:05]CAPDU: 80 11 00 00 [10:03:05]Write to MH i2c: E2 08 00 9A 90 80 11 00 00 00 00 00 00 A4 [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:05]Read from MH i2c: E2 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 17 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 17 00 9A 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F1 [10:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:03:05]wFMCommunicate OK [10:03:05]requested_item fd.num is exist - process it [10:03:05]SAM_PROTO_GetFieldsCounters [10:03:05]wFMCommunicate request_size=4 [10:03:05]MH_SAM_APDU [10:03:05]CAPDU: 80 13 00 00 [10:03:05]Write to MH i2c: E2 08 00 9B 90 80 13 00 00 00 00 00 00 A7 [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:05]Read from MH i2c: E2 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 62 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 62 00 9B 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3E 26 01 00 0E 04 04 00 AD 00 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 7E [10:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3E 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:05]wFMCommunicate OK [10:03:05]SAM_PROTO_GetFieldsCounters done [10:03:05]requested_item shift.num is exist - process it [10:03:05]requested_item shift.opened is exist - process it [10:03:05]req_shift_opened [10:03:05]FM_GetShiftState [10:03:05]SAM_PROTO_GetShiftState [10:03:05]wFMCommunicate request_size=4 [10:03:05]MH_SAM_APDU [10:03:05]CAPDU: 80 13 01 00 [10:03:05]Write to MH i2c: E2 08 00 9C 90 80 13 01 00 00 00 00 00 A9 [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0E 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0E 00 9C 90 00 09 00 01 99 41 18 67 00 00 00 00 90 00 0E [10:03:06]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:03:06]wFMCommunicate OK [10:03:06]SAM_PROTO_GetShiftState done [10:03:06]FM_GetShiftState done [10:03:06]req_shift_opened done [10:03:06]requested_item shift.open_date is exist - process it [10:03:06]req_shift_open_date [10:03:06]req_shift_open_date done [10:03:06]produce_requested_data done [10:03:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75326,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:03:06]process_action_free close_receipt [10:03:06]json_value_free [10:03:06]json_value_free done [10:03:06]process_json_proto returns [10:03:06]Send response to host [10:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75326,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:03:06]free response buf [10:03:06]execute_script done [10:03:06]execute_script returns [10:03:06]free content buf [10:03:06]Sock 9.Close socket [10:03:06]Sock 9.Thread stoped [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:47]accept exits with 7 [10:04:47]New connection [10:04:47]New thread 3067465060 created [10:04:47]Thread 3067321700 joined [10:04:47]Waiting for new connection... [10:04:47] Sock 7.Parse request [10:04:47]Sock 7.Check first char [10:04:47]Sock 7.First char is OK [10:04:47]request: POST /json_proto HTTP/1.0 [10:04:47]Method: POST [10:04:47]URL: /json_proto [10:04:47]Method is POST - this is cgi request [10:04:47]url: /json_proto [10:04:47]query_string will be loaded in cgi processing [10:04:47]execute_cgi json_proto POST (null) [10:04:47]execute_cgi path=json_proto method=POST [10:04:47]POST find Content-Length [10:04:47]Host: 172.17.44.196:8080 [10:04:47]Content-Length: 678 [10:04:47]Content-Type: application/json [10:04:47] [10:04:47]POST finish read [10:04:47]Found Content-Length = 678 [10:04:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:04:47]execute_script... [10:04: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)1965298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:04:47]POST & json_proto [10:04:47]process_json_proto [10:04:47]json parsed OK: [10:04:47]protocol is kg_v1.0 [10:04:47]action value=close_receipt [10:04:47]process_action close_receipt [10:04:47]cmd_close_receipt [10:04:47]MH_GetDate [10:04:47]Write to MH i2c: F0 00 00 9D 90 1C [10:04:47]Write i2c OK [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: F0 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: F0 09 00 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: F0 09 00 9D 90 00 46 CA 18 67 E7 19 F8 65 11 [10:04:47]GetLastDocTimeStamp 1729677788 [10:04:47]current date 1729677894 [10:04:47]FM_GetShiftState [10:04:47]SAM_PROTO_GetShiftState [10:04:47]wFMCommunicate request_size=4 [10:04:47]MH_SAM_APDU [10:04:47]CAPDU: 80 13 01 00 [10:04:47]Write to MH i2c: E2 08 00 9E 90 80 13 01 00 00 00 00 00 AB [10:04:47]Write i2c OK [10:04:47]MH_I2C_Read... [10:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:47]Read from MH i2c: E2 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 0E 00 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 0E 00 9E 90 00 09 00 01 99 41 18 67 00 00 00 00 90 00 10 [10:04:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:04:47]wFMCommunicate OK [10:04:47]SAM_PROTO_GetShiftState done [10:04:47]FM_GetShiftState done [10:04:47]opened in 1729642905 [10:04:47]opened+sec_in_day 1729729305 [10:04:47]quantity*price = 50041 [10:04:47]sum+1 = 50042 [10:04:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 60 23.10.2024 10:04 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75327 ФПД: 236718376545752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100454&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75327&fm=236718376545752&tin=02508201610067®Number=0000000000161154&sum=50000 [10:04:48]StoreToDocumentArchive [10:04:48]shift 173 fd 75327 [10:04:48]save to /storage/0173/doc_00075327 [10:04:48]save last doc name /storage/0173/doc_00075327 to /storage/kkm_last_doc_name [10:04:48]save OK [10:04:48]Clear old archive folders... [10:04:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:48]tlvbuf is 00DC9420 [10:04:48]SAM_PROTO_ClearQueue [10:04:48]wFMCommunicate request_size=4 [10:04:48]MH_SAM_APDU [10:04:48]CAPDU: 80 09 00 00 [10:04:48]Write to MH i2c: E2 08 00 AB 90 80 09 00 00 00 00 00 00 AD [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:48]Read from MH i2c: E2 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 03 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 03 00 AB 90 00 90 00 AF [10:04:48]RAPDU: 90 00 [10:04:48]wFMCommunicate OK [10:04:48]SAM_PROTO_ClearQueue done [10:04:48]KKMCreateOFDPacket [10:04:48]OFDProtocolAddRootSTLVToBuf [10:04:48]FM_MakeSignedData [10:04:48]FM_MakeSignedData [10:04:48]SAM_PROTO_SignData [10:04:48]wFMCommunicate request_size=4 [10:04:48]MH_SAM_APDU [10:04:48]CAPDU: 80 0D 01 02 [10:04:48]Write to MH i2c: E2 08 00 AC 90 80 0D 01 02 00 00 00 00 B5 [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:48]Read from MH i2c: E2 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 03 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 03 00 AC 90 00 90 00 B0 [10:04:48]RAPDU: 90 00 [10:04:48]wFMCommunicate OK [10:04:48]wFMCommunicate request_size=255 [10:04:48]MH_SAM_APDU [10:04: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3C 00 00 00 F4 03 04 00 46 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 26 01 00 35 04 06 00 D7 [10:04:48]Write to MH i2c: E2 02 01 AD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3C 00 00 00 F4 03 04 00 46 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 26 01 00 35 04 06 00 D7 00 00 EC [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:48]Read from MH i2c: E2 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 03 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 03 00 AD 90 00 90 00 B1 [10:04:48]RAPDU: 90 00 [10:04:48]wFMCommunicate OK [10:04:48]wFMCommunicate request_size=10 [10:04:48]MH_SAM_APDU [10:04:48]CAPDU: 80 0D 02 02 05 4B 4A BE ED D8 [10:04:48]Write to MH i2c: E2 0D 00 AE 90 80 0D 02 02 05 00 4B 4A BE ED D8 00 00 DA [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:48]Read from MH i2c: E2 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 03 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 03 00 AE 90 00 90 00 B2 [10:04:48]RAPDU: 90 00 [10:04:48]wFMCommunicate OK [10:04:48]wFMCommunicate request_size=4 [10:04:48]MH_SAM_APDU [10:04:48]CAPDU: 80 0D 03 02 [10:04:48]Write to MH i2c: E2 08 00 AF 90 80 0D 03 02 00 00 00 00 BA [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 0B 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 0B 00 AF 90 00 99 D1 2D 9A BB 3E 5C 1A 90 00 5B [10:04:49]RAPDU: 99 D1 2D 9A BB 3E 5C 1A 90 00 [10:04:49]wFMCommunicate OK [10:04:49]SAM_PROTO_SignData done [10:04:49]FM_MakeSignedData done [10:04:49]CreateOFDProtocolMessage [10:04:49]wFMCommunicate request_size=4 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 11 00 00 [10:04:49]Write to MH i2c: E2 08 00 B0 90 80 11 00 00 00 00 00 00 BA [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 17 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 17 00 B0 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 07 [10:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:04:49]wFMCommunicate OK [10:04:49]CreateOFDProtocolMessage done [10:04:49]OFDSenderStorePacket 75327 [10:04:49]StoreOFDPacket docnum=75327 [10:04:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 44 A2 07 01 47 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3C 00 00 00 F4 03 04 00 46 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 26 01 00 35 04 06 00 D7 4B 4A BE ED D8 99 D1 2D 9A BB 3E 5C 1A [10:04:49]CheckFolder [10:04:49]dirname=/storage/ofd_packets [10:04:49]CheckFolder done [10:04:49]ProducePacketName [10:04:49]name=ofd_packets/00075327 [10:04:49]NVStorageSaveData ofd_packets/00075327 [10:04:49]File name is /storage/ofd_packets/00075327 [10:04:49]Write 301 bytes [10:04:49]NVStorageSaveData done [10:04:49]OFDSenderStorePacket done [10:04:49]KKMCreateOFDPacket done [10:04:49]NVStorageSaveData kkm_last_timestamp [10:04:49]File name is /storage/kkm_last_timestamp [10:04:49]Write 4 bytes [10:04:49]NVStorageSaveData done [10:04:49]ExternCall_PrintAddStr [10:04:49]wPrintStart [10:04:49]Write to MH i2c: 01 00 00 B1 90 41 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: 01 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: 01 07 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: 01 07 00 B1 90 00 00 00 00 00 FF 0F 56 [10:04:49]RasterBufferAndPrint [10:04:49]line Счет N : (1)1965298 [10:04:49]line ИНН: 02508201610067 [10:04:49]line Контрольно-Кассовый Чек [10:04:49]line ПРОДАЖА [10:04:49]line ТРК (МРК, ГНК) : 33 [10:04:49]line Товар: 2710124130 [10:04:49]line Аи-92-К-5 [10:04:49]line 7.480 * 66.90 [10:04:49]line = 500.41 [10:04:49]line НДС 12% НСП 1% [10:04:49]line > о реализуемом товаре [10:04:49]line ОКРУГЛЕНИЕ: -0.41 [10:04:49]line ИТОГО: 500.00 [10:04:49]line Внесено: 500.00 [10:04:49]line СДАЧА: 0.00 [10:04:49]line НСП 1% : 4.43 [10:04:49]line НДС 12% : 53.14 [10:04:49]line Наличными: 500.00 [10:04:49]line Безнал.: 0.00 [10:04:49]line Место: АЗС № 133 "Партнер Нефть" [10:04:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:04:49]line СНО: Общий режим [10:04:49]line Чек 60 23.10.2024 10:04 [10:04:49]line Смена: 173 ФФД: 1.0 [10:04:49]line ЗНМ: 0300000020 [10:04:49]line РНМ: 0000000000161154 [10:04:49]line Версия ККМ: v1.0 [10:04:49]line ФМ: 0000000000963323 [10:04:49]line ФД: 75327 [10:04:49]line ФПД: 236718376545752 [10:04:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100454&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75327&fm=236718376545752&tin=02508201610067®Number=0000000000161154&sum=50000 [10:04:49]OFD Sender: Processing packet 75327 [packets to send 15, broken 14] [10:04:49]ProducePacketName [10:04:49]name=ofd_packets/00075327 [10:04:49]OFD Sender: To server: pG, [10:04:49]CommunicateWithHost lk.salyk.kg:30040 [10:04:49]ConnectInit lk.salyk.kg [10:04:49]written 0, free lines is 4095 [10:04:49]Connected sock=10 [10:04:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 44 A2 07 01 47 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3C 00 00 00 F4 03 04 00 46 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 26 01 00 35 04 06 00 D7 4B 4A BE ED D8 99 D1 2D 9A BB 3E 5C 1A [10:04:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 98 1E 47 00 79 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 3F 26 01 00 F4 03 04 00 21 73 18 67 B6 04 01 00 00 B1 24 0F 73 C8 21 4D 7C [10:04:49]CommunicateWithHost err = 0 [10:04:49]CheckOFDResponse [10:04:49]1017 (14) - 77093643461234 [10:04:49]1041 (16) - 0000000000963323 [10:04:49]1040 (4) - 75327 [10:04:49]1012 (4) - 23.10.2024 03:53 [10:04:49]1206 (1) - 0 [10:04:49]OFD Sender: Remove packet 75327 [10:04:49]ProducePacketName [10:04:49]name=ofd_packets/00075327 [10:04:49]NVStorageDeleteData [10:04:49]Write to MH i2c: 01 00 00 DB 90 6B [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: 01 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: 01 07 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: 01 07 00 DB 90 00 00 00 00 00 AA 0C 28 [10:04:49]RasterBufferAndPrint [10:04:49]line [10:04:49]line [10:04:49]line [10:04:49]line [10:04:49]line [10:04:49]written 0, free lines is 3247 [10:04:49]MH_Cut [10:04:49]Write to MH i2c: D1 01 00 E2 90 01 44 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: D1 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: D1 01 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: D1 01 00 E2 90 00 43 [10:04:49]Write to MH i2c: 01 00 00 E3 90 73 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:50]OFD Sender: No OFD packet to send [10:04:50]*** Cut start [10:04:50]*** Partial cut [10:04:50]*** CUTSNS_PIN = 1 [10:04:50]*** CUTSNS_PIN = 0 [10:04:51]*** Brake cut motor [10:04:51]Read from MH i2c: 01 [10:04:51]MH_I2C_Read... [10:04:51]*** Stop cut motor [10:04:51]*** Cut end [10:04:51]Read from MH i2c: 01 07 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 E3 90 00 00 00 00 00 FF 0F 88 [10:04:51]process_action close_receipt done [10:04:51]requested_data is exist [10:04:51]produce_requested_data [10:04:51]requested_item fm.sn is exist - process it [10:04:51]wFMCommunicate request_size=4 [10:04:51]MH_SAM_APDU [10:04:51]CAPDU: 80 11 00 00 [10:04:51]Write to MH i2c: E2 08 00 E4 90 80 11 00 00 00 00 00 00 EE [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:51]Read from MH i2c: E2 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 17 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 17 00 E4 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [10:04:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:04:51]wFMCommunicate OK [10:04:51]requested_item fd.num is exist - process it [10:04:51]SAM_PROTO_GetFieldsCounters [10:04:51]wFMCommunicate request_size=4 [10:04:51]MH_SAM_APDU [10:04:51]CAPDU: 80 13 00 00 [10:04:51]Write to MH i2c: E2 08 00 E5 90 80 13 00 00 00 00 00 00 F1 [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:51]Read from MH i2c: E2 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 62 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 62 00 E5 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3F 26 01 00 0E 04 04 00 AD 00 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 CC [10:04:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 3F 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:51]wFMCommunicate OK [10:04:51]SAM_PROTO_GetFieldsCounters done [10:04:51]requested_item shift.num is exist - process it [10:04:51]requested_item shift.opened is exist - process it [10:04:51]req_shift_opened [10:04:51]FM_GetShiftState [10:04:51]SAM_PROTO_GetShiftState [10:04:51]wFMCommunicate request_size=4 [10:04:51]MH_SAM_APDU [10:04:51]CAPDU: 80 13 01 00 [10:04:51]Write to MH i2c: E2 08 00 E6 90 80 13 01 00 00 00 00 00 F3 [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:51]Read from MH i2c: E2 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 0E 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: E2 0E 00 E6 90 00 09 00 01 99 41 18 67 00 00 00 00 90 00 58 [10:04:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:04:51]wFMCommunicate OK [10:04:51]SAM_PROTO_GetShiftState done [10:04:51]FM_GetShiftState done [10:04:51]req_shift_opened done [10:04:51]requested_item shift.open_date is exist - process it [10:04:51]req_shift_open_date [10:04:51]req_shift_open_date done [10:04:51]produce_requested_data done [10:04:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75327,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:04:51]process_action_free close_receipt [10:04:51]json_value_free [10:04:51]json_value_free done [10:04:51]process_json_proto returns [10:04:51]Send response to host [10:04:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75327,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:04:51]free response buf [10:04:51]execute_script done [10:04:51]execute_script returns [10:04:51]free content buf [10:04:51]Sock 7.Close socket [10:04:51]Sock 7.Thread stoped [10:04:55]OFD Sender: No OFD packet to send [10:04:56]accept exits with 9 [10:04:56]New connection [10:04:56]New thread 3067321700 created [10:04:56]Thread 3067465060 joined [10:04:56]Waiting for new connection... [10:04:56] Sock 9.Parse request [10:04:56]Sock 9.Check first char [10:04:56]Sock 9.First char is OK [10:04:56]request: POST /json_proto HTTP/1.0 [10:04:56]Method: POST [10:04:56]URL: /json_proto [10:04:56]Method is POST - this is cgi request [10:04:56]url: /json_proto [10:04:56]query_string will be loaded in cgi processing [10:04:56]execute_cgi json_proto POST (null) [10:04:56]execute_cgi path=json_proto method=POST [10:04:56]POST find Content-Length [10:04:56]Host: 172.17.44.196:8080 [10:04:56]Content-Length: 678 [10:04:56]Content-Type: application/json [10:04:56] [10:04:56]POST finish read [10:04:56]Found Content-Length = 678 [10:04:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:04:56]execute_script... [10:04: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)1965296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:04:56]POST & json_proto [10:04:56]process_json_proto [10:04:56]json parsed OK: [10:04:56]protocol is kg_v1.0 [10:04:56]action value=close_receipt [10:04:56]process_action close_receipt [10:04:56]cmd_close_receipt [10:04:56]MH_GetDate [10:04:56]Write to MH i2c: F0 00 00 E7 90 66 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: F0 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: F0 09 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: F0 09 00 E7 90 00 4F CA 18 67 E7 19 F8 65 64 [10:04:56]GetLastDocTimeStamp 1729677894 [10:04:56]current date 1729677903 [10:04:56]FM_GetShiftState [10:04:56]SAM_PROTO_GetShiftState [10:04:56]wFMCommunicate request_size=4 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 13 01 00 [10:04:56]Write to MH i2c: E2 08 00 E8 90 80 13 01 00 00 00 00 00 F5 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 0E 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 0E 00 E8 90 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5A [10:04:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:04:56]wFMCommunicate OK [10:04:56]SAM_PROTO_GetShiftState done [10:04:56]FM_GetShiftState done [10:04:56]opened in 1729642905 [10:04:56]opened+sec_in_day 1729729305 [10:04:56]quantity*price = 50041 [10:04:56]sum+1 = 50042 [10:04:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 61 23.10.2024 10:05 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75328 ФПД: 182251808217992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100503&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75328&fm=182251808217992&tin=02508201610067®Number=0000000000161154&sum=50000 [10:04:57]StoreToDocumentArchive [10:04:57]shift 173 fd 75328 [10:04:57]save to /storage/0173/doc_00075328 [10:04:57]save last doc name /storage/0173/doc_00075328 to /storage/kkm_last_doc_name [10:04:57]save OK [10:04:57]Clear old archive folders... [10:04:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:57]tlvbuf is 00E6CC60 [10:04:57]SAM_PROTO_ClearQueue [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 09 00 00 [10:04:57]Write to MH i2c: E2 08 00 F5 90 80 09 00 00 00 00 00 00 F7 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 F5 90 00 90 00 F9 [10:04:57]RAPDU: 90 00 [10:04:57]wFMCommunicate OK [10:04:57]SAM_PROTO_ClearQueue done [10:04:57]KKMCreateOFDPacket [10:04:57]OFDProtocolAddRootSTLVToBuf [10:04:57]FM_MakeSignedData [10:04:57]FM_MakeSignedData [10:04:57]SAM_PROTO_SignData [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 0D 01 02 [10:04:57]Write to MH i2c: E2 08 00 F6 90 80 0D 01 02 00 00 00 00 FF [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 F6 90 00 90 00 FA [10:04:57]RAPDU: 90 00 [10:04:57]wFMCommunicate OK [10:04:57]wFMCommunicate request_size=255 [10:04:57]MH_SAM_APDU [10:04: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 4F CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 26 01 00 35 04 06 00 A5 [10:04:57]Write to MH i2c: E2 02 01 F7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 4F CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 26 01 00 35 04 06 00 A5 00 00 0F [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 F7 90 00 90 00 FB [10:04:57]RAPDU: 90 00 [10:04:57]wFMCommunicate OK [10:04:57]wFMCommunicate request_size=10 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 0D 02 02 05 C1 CE 49 DB 88 [10:04:57]Write to MH i2c: E2 0D 00 F8 90 80 0D 02 02 05 00 C1 CE 49 DB 88 00 00 47 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 F8 90 00 90 00 FC [10:04:57]RAPDU: 90 00 [10:04:57]wFMCommunicate OK [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 0D 03 02 [10:04:57]Write to MH i2c: E2 08 00 F9 90 80 0D 03 02 00 00 00 00 04 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 0B 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 0B 00 F9 90 00 9E 28 2D E6 99 14 B2 40 90 00 7D [10:04:57]RAPDU: 9E 28 2D E6 99 14 B2 40 90 00 [10:04:57]wFMCommunicate OK [10:04:57]SAM_PROTO_SignData done [10:04:57]FM_MakeSignedData done [10:04:57]CreateOFDProtocolMessage [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 11 00 00 [10:04:57]Write to MH i2c: E2 08 00 FA 90 80 11 00 00 00 00 00 00 04 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 17 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 17 00 FA 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 51 [10:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:04:57]wFMCommunicate OK [10:04:57]CreateOFDProtocolMessage done [10:04:57]OFDSenderStorePacket 75328 [10:04:57]StoreOFDPacket docnum=75328 [10:04:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8B 73 07 01 7C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 4F CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 26 01 00 35 04 06 00 A5 C1 CE 49 DB 88 9E 28 2D E6 99 14 B2 40 [10:04:57]CheckFolder [10:04:57]dirname=/storage/ofd_packets [10:04:57]CheckFolder done [10:04:57]ProducePacketName [10:04:57]name=ofd_packets/00075328 [10:04:57]NVStorageSaveData ofd_packets/00075328 [10:04:57]File name is /storage/ofd_packets/00075328 [10:04:57]Write 301 bytes [10:04:57]NVStorageSaveData done [10:04:57]OFDSenderStorePacket done [10:04:57]KKMCreateOFDPacket done [10:04:57]NVStorageSaveData kkm_last_timestamp [10:04:57]File name is /storage/kkm_last_timestamp [10:04:57]Write 4 bytes [10:04:57]NVStorageSaveData done [10:04:57]ExternCall_PrintAddStr [10:04:57]wPrintStart [10:04:57]Write to MH i2c: 01 00 00 FB 90 8B [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 07 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 07 00 FB 90 00 00 00 00 00 FF 0F A0 [10:04:57]RasterBufferAndPrint [10:04:57]line Счет N : (1)1965296 [10:04:57]line ИНН: 02508201610067 [10:04:57]line Контрольно-Кассовый Чек [10:04:57]line ПРОДАЖА [10:04:57]line ТРК (МРК, ГНК) : 43 [10:04:57]line Товар: 2710124130 [10:04:57]line Аи-92-К-5 [10:04:57]line 7.480 * 66.90 [10:04:57]line = 500.41 [10:04:57]line НДС 12% НСП 1% [10:04:57]line > о реализуемом товаре [10:04:57]line ОКРУГЛЕНИЕ: -0.41 [10:04:57]line ИТОГО: 500.00 [10:04:57]line Внесено: 500.00 [10:04:57]line СДАЧА: 0.00 [10:04:57]line НСП 1% : 4.43 [10:04:57]line НДС 12% : 53.14 [10:04:57]line Наличными: 500.00 [10:04:57]line Безнал.: 0.00 [10:04:57]line Место: АЗС № 133 "Партнер Нефть" [10:04:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:04:57]line СНО: Общий режим [10:04:57]line Чек 61 23.10.2024 10:05 [10:04:57]line Смена: 173 ФФД: 1.0 [10:04:57]line ЗНМ: 0300000020 [10:04:57]line РНМ: 0000000000161154 [10:04:57]line Версия ККМ: v1.0 [10:04:57]line ФМ: 0000000000963323 [10:04:57]line ФД: 75328 [10:04:57]line ФПД: 182251808217992 [10:04:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100503&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75328&fm=182251808217992&tin=02508201610067®Number=0000000000161154&sum=50000 [10:04:58]OFD Sender: Processing packet 75328 [packets to send 15, broken 14] [10:04:58]ProducePacketName [10:04:58]name=ofd_packets/00075328 [10:04:58]OFD Sender: To server: pG, [10:04:58]CommunicateWithHost lk.salyk.kg:30040 [10:04:58]ConnectInit lk.salyk.kg [10:04:58]written 0, free lines is 4095 [10:04:58]Connected sock=10 [10:04:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8B 73 07 01 7C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 4F CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 26 01 00 35 04 06 00 A5 C1 CE 49 DB 88 9E 28 2D E6 99 14 B2 40 [10:04:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 86 BD 47 00 21 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 40 26 01 00 F4 03 04 00 2A 73 18 67 B6 04 01 00 00 70 BB 5A 10 5F 90 4E F5 [10:04:58]CommunicateWithHost err = 0 [10:04:58]CheckOFDResponse [10:04:58]1017 (14) - 77093643461234 [10:04:58]1041 (16) - 0000000000963323 [10:04:58]1040 (4) - 75328 [10:04:58]1012 (4) - 23.10.2024 03:53 [10:04:58]1206 (1) - 0 [10:04:58]OFD Sender: Remove packet 75328 [10:04:58]ProducePacketName [10:04:58]name=ofd_packets/00075328 [10:04:58]NVStorageDeleteData [10:04:58]Write to MH i2c: 01 00 00 25 91 B6 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 07 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 07 00 25 91 00 00 00 00 00 B1 0C 7A [10:04:58]RasterBufferAndPrint [10:04:58]line [10:04:58]line [10:04:58]line [10:04:58]line [10:04:58]line [10:04:58]written 0, free lines is 3257 [10:04:58]MH_Cut [10:04:58]Write to MH i2c: D1 01 00 2C 91 01 8F [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: D1 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: D1 01 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: D1 01 00 2C 91 00 8E [10:04:58]Write to MH i2c: 01 00 00 2D 91 BE [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]OFD Sender: No OFD packet to send [10:04:59]*** Cut start [10:04:59]*** Partial cut [10:04:59]*** CUTSNS_PIN = 1 [10:04:59]*** CUTSNS_PIN = 0 [10:04:59]*** Brake cut motor [10:04:59]Read from MH i2c: 01 [10:04:59]MH_I2C_Read... [10:04:59]*** Stop cut motor [10:04:59]*** Cut end [10:04:59]Read from MH i2c: 01 07 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: 01 07 00 2D 91 00 00 00 00 00 FF 0F D3 [10:04:59]process_action close_receipt done [10:04:59]requested_data is exist [10:04:59]produce_requested_data [10:04:59]requested_item fm.sn is exist - process it [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 11 00 00 [10:04:59]Write to MH i2c: E2 08 00 2E 91 80 11 00 00 00 00 00 00 39 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 17 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 17 00 2E 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [10:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:05:00]wFMCommunicate OK [10:05:00]requested_item fd.num is exist - process it [10:05:00]SAM_PROTO_GetFieldsCounters [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 13 00 00 [10:05:00]Write to MH i2c: E2 08 00 2F 91 80 13 00 00 00 00 00 00 3C [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 62 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 62 00 2F 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 40 26 01 00 0E 04 04 00 AD 00 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 1B [10:05:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 40 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:00]wFMCommunicate OK [10:05:00]SAM_PROTO_GetFieldsCounters done [10:05:00]requested_item shift.num is exist - process it [10:05:00]requested_item shift.opened is exist - process it [10:05:00]req_shift_opened [10:05:00]FM_GetShiftState [10:05:00]SAM_PROTO_GetShiftState [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 13 01 00 [10:05:00]Write to MH i2c: E2 08 00 30 91 80 13 01 00 00 00 00 00 3E [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0E 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0E 00 30 91 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A3 [10:05:00]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:05:00]wFMCommunicate OK [10:05:00]SAM_PROTO_GetShiftState done [10:05:00]FM_GetShiftState done [10:05:00]req_shift_opened done [10:05:00]requested_item shift.open_date is exist - process it [10:05:00]req_shift_open_date [10:05:00]req_shift_open_date done [10:05:00]produce_requested_data done [10:05:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75328,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:05:00]process_action_free close_receipt [10:05:00]json_value_free [10:05:00]json_value_free done [10:05:00]process_json_proto returns [10:05:00]Send response to host [10:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75328,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:05:00]free response buf [10:05:00]execute_script done [10:05:00]execute_script returns [10:05:00]free content buf [10:05:00]Sock 9.Close socket [10:05:00]Sock 9.Thread stoped [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]accept exits with 7 [10:05:48]New connection [10:05:48]New thread 3067465060 created [10:05:48]Thread 3067321700 joined [10:05:48]Waiting for new connection... [10:05:48] Sock 7.Parse request [10:05:48]Sock 7.Check first char [10:05:48]Sock 7.First char is OK [10:05:48]request: POST /json_proto HTTP/1.0 [10:05:48]Method: POST [10:05:48]URL: /json_proto [10:05:48]Method is POST - this is cgi request [10:05:48]url: /json_proto [10:05:48]query_string will be loaded in cgi processing [10:05:48]execute_cgi json_proto POST (null) [10:05:48]execute_cgi path=json_proto method=POST [10:05:48]POST find Content-Length [10:05:48]Host: 172.17.44.196:8080 [10:05:48]Content-Length: 680 [10:05:48]Content-Type: application/json [10:05:48] [10:05:48]POST finish read [10:05:48]Found Content-Length = 680 [10:05:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965297", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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:05:48]execute_script... [10:05: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)1965297", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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:05:48]POST & json_proto [10:05:48]process_json_proto [10:05:48]json parsed OK: [10:05:48]protocol is kg_v1.0 [10:05:48]action value=close_receipt [10:05:48]process_action close_receipt [10:05:48]cmd_close_receipt [10:05:48]MH_GetDate [10:05:48]Write to MH i2c: F0 00 00 31 91 B1 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: F0 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: F0 09 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: F0 09 00 31 91 00 83 CA 18 67 E7 19 F8 65 E3 [10:05:48]GetLastDocTimeStamp 1729677903 [10:05:48]current date 1729677955 [10:05:48]FM_GetShiftState [10:05:48]SAM_PROTO_GetShiftState [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 13 01 00 [10:05:48]Write to MH i2c: E2 08 00 32 91 80 13 01 00 00 00 00 00 40 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0E 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0E 00 32 91 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A5 [10:05:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_GetShiftState done [10:05:48]FM_GetShiftState done [10:05:48]opened in 1729642905 [10:05:48]opened+sec_in_day 1729729305 [10:05:48]quantity*price = 150037 [10:05:48]sum+1 = 150039 [10:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 62 23.10.2024 10:05 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75329 ФПД: 270278483755644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100555&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75329&fm=270278483755644&tin=02508201610067®Number=0000000000161154&sum=150000 [10:05:49]StoreToDocumentArchive [10:05:49]shift 173 fd 75329 [10:05:49]save to /storage/0173/doc_00075329 [10:05:49]save last doc name /storage/0173/doc_00075329 to /storage/kkm_last_doc_name [10:05:49]save OK [10:05:49]Clear old archive folders... [10:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:05:49]tlvbuf is 00FABE50 [10:05:49]SAM_PROTO_ClearQueue [10:05:49]wFMCommunicate request_size=4 [10:05:49]MH_SAM_APDU [10:05:49]CAPDU: 80 09 00 00 [10:05:49]Write to MH i2c: E2 08 00 3F 91 80 09 00 00 00 00 00 00 42 [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:49]Read from MH i2c: E2 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 03 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 03 00 3F 91 00 90 00 44 [10:05:49]RAPDU: 90 00 [10:05:49]wFMCommunicate OK [10:05:49]SAM_PROTO_ClearQueue done [10:05:49]KKMCreateOFDPacket [10:05:49]OFDProtocolAddRootSTLVToBuf [10:05:49]FM_MakeSignedData [10:05:49]FM_MakeSignedData [10:05:49]SAM_PROTO_SignData [10:05:49]wFMCommunicate request_size=4 [10:05:49]MH_SAM_APDU [10:05:49]CAPDU: 80 0D 01 02 [10:05:49]Write to MH i2c: E2 08 00 40 91 80 0D 01 02 00 00 00 00 4A [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:49]Read from MH i2c: E2 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 03 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 03 00 40 91 00 90 00 45 [10:05:49]RAPDU: 90 00 [10:05:49]wFMCommunicate OK [10:05:49]wFMCommunicate request_size=255 [10:05:49]MH_SAM_APDU [10:05:49]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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 83 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 26 01 00 35 04 06 00 F5 D1 1D 03 [10:05:49]Write to MH i2c: E2 02 01 41 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 83 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 26 01 00 35 04 06 00 F5 D1 1D 03 00 00 3E [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:49]Read from MH i2c: E2 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 03 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 03 00 41 91 00 90 00 46 [10:05:49]RAPDU: 90 00 [10:05:49]wFMCommunicate OK [10:05:49]wFMCommunicate request_size=7 [10:05:49]MH_SAM_APDU [10:05:49]CAPDU: 80 0D 02 02 02 C2 7C [10:05:49]Write to MH i2c: E2 0A 00 42 91 80 0D 02 02 02 00 C2 7C 00 00 8F [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:49]Read from MH i2c: E2 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 03 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 03 00 42 91 00 90 00 47 [10:05:49]RAPDU: 90 00 [10:05:49]wFMCommunicate OK [10:05:49]wFMCommunicate request_size=4 [10:05:49]MH_SAM_APDU [10:05:49]CAPDU: 80 0D 03 02 [10:05:49]Write to MH i2c: E2 08 00 43 91 80 0D 03 02 00 00 00 00 4F [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:49]Read from MH i2c: E2 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 0B 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 0B 00 43 91 00 F2 76 2C E1 51 DE 3F 29 90 00 5C [10:05:49]RAPDU: F2 76 2C E1 51 DE 3F 29 90 00 [10:05:49]wFMCommunicate OK [10:05:49]SAM_PROTO_SignData done [10:05:49]FM_MakeSignedData done [10:05:49]CreateOFDProtocolMessage [10:05:49]wFMCommunicate request_size=4 [10:05:49]MH_SAM_APDU [10:05:49]CAPDU: 80 11 00 00 [10:05:49]Write to MH i2c: E2 08 00 44 91 80 11 00 00 00 00 00 00 4F [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:49]Read from MH i2c: E2 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 17 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: E2 17 00 44 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9C [10:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:05:49]wFMCommunicate OK [10:05:49]CreateOFDProtocolMessage done [10:05:49]OFDSenderStorePacket 75329 [10:05:49]StoreOFDPacket docnum=75329 [10:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 75 65 04 01 0A C9 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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 83 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 26 01 00 35 04 06 00 F5 D1 1D 03 C2 7C F2 76 2C E1 51 DE 3F 29 [10:05:49]CheckFolder [10:05:49]dirname=/storage/ofd_packets [10:05:49]CheckFolder done [10:05:49]ProducePacketName [10:05:49]name=ofd_packets/00075329 [10:05:49]NVStorageSaveData ofd_packets/00075329 [10:05:49]File name is /storage/ofd_packets/00075329 [10:05:49]Write 298 bytes [10:05:49]NVStorageSaveData done [10:05:49]OFDSenderStorePacket done [10:05:49]KKMCreateOFDPacket done [10:05:49]NVStorageSaveData kkm_last_timestamp [10:05:49]File name is /storage/kkm_last_timestamp [10:05:49]Write 4 bytes [10:05:49]NVStorageSaveData done [10:05:49]ExternCall_PrintAddStr [10:05:49]wPrintStart [10:05:49]Write to MH i2c: 01 00 00 45 91 D6 [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: 01 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: 01 07 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: 01 07 00 45 91 00 00 00 00 00 FF 0F EB [10:05:49]RasterBufferAndPrint [10:05:49]line Счет N : (1)1965297 [10:05:49]line ИНН: 02508201610067 [10:05:49]line Контрольно-Кассовый Чек [10:05:49]line ПРОДАЖА [10:05:49]line ТРК (МРК, ГНК) : 61 [10:05:49]line Товар: 2710194210 [10:05:49]line ДТ-К-5 [10:05:49]line 19.690 * 76.20 [10:05:49]line = 1500.38 [10:05:49]line НДС 12% НСП 1% [10:05:49]line > о реализуемом товаре [10:05:49]line ОКРУГЛЕНИЕ: -0.38 [10:05:49]line ИТОГО: 1500.00 [10:05:49]line Внесено: 1500.00 [10:05:49]line СДАЧА: 0.00 [10:05:49]line НСП 1% : 13.28 [10:05:49]line НДС 12% : 159.33 [10:05:49]line Наличными: 1500.00 [10:05:49]line Безнал.: 0.00 [10:05:49]line Место: АЗС № 133 "Партнер Нефть" [10:05:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:05:49]line СНО: Общий режим [10:05:49]line Чек 62 23.10.2024 10:05 [10:05:49]line Смена: 173 ФФД: 1.0 [10:05:49]line ЗНМ: 0300000020 [10:05:49]line РНМ: 0000000000161154 [10:05:49]line Версия ККМ: v1.0 [10:05:49]line ФМ: 0000000000963323 [10:05:49]line ФД: 75329 [10:05:49]line ФПД: 270278483755644 [10:05:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100555&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75329&fm=270278483755644&tin=02508201610067®Number=0000000000161154&sum=150000 [10:05:50]OFD Sender: Processing packet 75329 [packets to send 15, broken 14] [10:05:50]ProducePacketName [10:05:50]name=ofd_packets/00075329 [10:05:50]OFD Sender: To server: pG, [10:05:50]CommunicateWithHost lk.salyk.kg:30040 [10:05:50]ConnectInit lk.salyk.kg [10:05:50]written 0, free lines is 4095 [10:05:50]Connected sock=10 [10:05:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 75 65 04 01 0A C9 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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 83 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 41 26 01 00 35 04 06 00 F5 D1 1D 03 C2 7C F2 76 2C E1 51 DE 3F 29 [10:05:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B7 40 47 00 AB 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 39 36 33 33 32 33 10 04 04 00 41 26 01 00 F4 03 04 00 5E 73 18 67 B6 04 01 00 00 6E 31 DD D5 5C 5A 70 07 [10:05:50]CommunicateWithHost err = 0 [10:05:50]CheckOFDResponse [10:05:50]1017 (14) - 77093643461234 [10:05:50]1041 (16) - 0000000000963323 [10:05:50]1040 (4) - 75329 [10:05:50]1012 (4) - 23.10.2024 03:54 [10:05:50]1206 (1) - 0 [10:05:50]OFD Sender: Remove packet 75329 [10:05:50]ProducePacketName [10:05:50]name=ofd_packets/00075329 [10:05:50]NVStorageDeleteData [10:05:50]Write to MH i2c: 01 00 00 6F 91 00 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: 01 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: 01 07 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: 01 07 00 6F 91 00 00 00 00 00 B1 0C C4 [10:05:50]RasterBufferAndPrint [10:05:50]line [10:05:50]line [10:05:50]line [10:05:50]line [10:05:50]line [10:05:50]written 0, free lines is 3254 [10:05:50]MH_Cut [10:05:50]Write to MH i2c: D1 01 00 76 91 01 D9 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: D1 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: D1 01 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: D1 01 00 76 91 00 D8 [10:05:50]Write to MH i2c: 01 00 00 77 91 08 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]OFD Sender: No OFD packet to send [10:05:51]*** Cut start [10:05:51]*** Partial cut [10:05:51]*** CUTSNS_PIN = 1 [10:05:51]*** CUTSNS_PIN = 0 [10:05:51]*** Brake cut motor [10:05:52]Read from MH i2c: 01 [10:05:52]MH_I2C_Read... [10:05:52]*** Stop cut motor [10:05:52]*** Cut end [10:05:52]Read from MH i2c: 01 07 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: 01 07 00 77 91 00 00 00 00 00 FF 0F 1D [10:05:52]process_action close_receipt done [10:05:52]requested_data is exist [10:05:52]produce_requested_data [10:05:52]requested_item fm.sn is exist - process it [10:05:52]wFMCommunicate request_size=4 [10:05:52]MH_SAM_APDU [10:05:52]CAPDU: 80 11 00 00 [10:05:52]Write to MH i2c: E2 08 00 78 91 80 11 00 00 00 00 00 00 83 [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:52]Read from MH i2c: E2 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 17 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 17 00 78 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D0 [10:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:05:52]wFMCommunicate OK [10:05:52]requested_item fd.num is exist - process it [10:05:52]SAM_PROTO_GetFieldsCounters [10:05:52]wFMCommunicate request_size=4 [10:05:52]MH_SAM_APDU [10:05:52]CAPDU: 80 13 00 00 [10:05:52]Write to MH i2c: E2 08 00 79 91 80 13 00 00 00 00 00 00 86 [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:52]Read from MH i2c: E2 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 62 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 62 00 79 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 41 26 01 00 0E 04 04 00 AD 00 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 69 [10:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 41 26 01 00 0E 04 04 00 AD 00 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 [10:05:52]wFMCommunicate OK [10:05:52]SAM_PROTO_GetFieldsCounters done [10:05:52]requested_item shift.num is exist - process it [10:05:52]requested_item shift.opened is exist - process it [10:05:52]req_shift_opened [10:05:52]FM_GetShiftState [10:05:52]SAM_PROTO_GetShiftState [10:05:52]wFMCommunicate request_size=4 [10:05:52]MH_SAM_APDU [10:05:52]CAPDU: 80 13 01 00 [10:05:52]Write to MH i2c: E2 08 00 7A 91 80 13 01 00 00 00 00 00 88 [10:05:52]Write i2c OK [10:05:52]MH_I2C_Read... [10:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:52]Read from MH i2c: E2 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 0E 00 [10:05:52]MH_I2C_Read... [10:05:52]Read from MH i2c: E2 0E 00 7A 91 00 09 00 01 99 41 18 67 00 00 00 00 90 00 ED [10:05:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:05:52]wFMCommunicate OK [10:05:52]SAM_PROTO_GetShiftState done [10:05:52]FM_GetShiftState done [10:05:52]req_shift_opened done [10:05:52]requested_item shift.open_date is exist - process it [10:05:52]req_shift_open_date [10:05:52]req_shift_open_date done [10:05:52]produce_requested_data done [10:05:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75329,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:05:52]process_action_free close_receipt [10:05:52]json_value_free [10:05:52]json_value_free done [10:05:52]process_json_proto returns [10:05:52]Send response to host [10:05:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75329,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:05:52]free response buf [10:05:52]execute_script done [10:05:52]execute_script returns [10:05:52]free content buf [10:05:52]Sock 7.Close socket [10:05:52]Sock 7.Thread stoped [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:06:56]accept exits with 9 [10:06:56]New connection [10:06:56]New thread 3067321700 created [10:06:56]Thread 3067465060 joined [10:06:56]Waiting for new connection... [10:06:56] Sock 9.Parse request [10:06:56]Sock 9.Check first char [10:06:56]Sock 9.First char is OK [10:06:56]request: POST /json_proto HTTP/1.0 [10:06:56]Method: POST [10:06:56]URL: /json_proto [10:06:56]Method is POST - this is cgi request [10:06:56]url: /json_proto [10:06:56]query_string will be loaded in cgi processing [10:06:56]execute_cgi json_proto POST (null) [10:06:56]execute_cgi path=json_proto method=POST [10:06:56]POST find Content-Length [10:06:56]Host: 172.17.44.196:8080 [10:06:56]Content-Length: 678 [10:06:56]Content-Type: application/json [10:06:56] [10:06:56]POST finish read [10:06:56]Found Content-Length = 678 [10:06:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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:06:56]execute_script... [10:06: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)1965302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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:06:56]POST & json_proto [10:06:56]process_json_proto [10:06:56]json parsed OK: [10:06:56]protocol is kg_v1.0 [10:06:56]action value=close_receipt [10:06:56]process_action close_receipt [10:06:56]cmd_close_receipt [10:06:56]MH_GetDate [10:06:56]Write to MH i2c: F0 00 00 7B 91 FB [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: F0 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: F0 09 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: F0 09 00 7B 91 00 C7 CA 18 67 E7 19 F8 65 71 [10:06:56]GetLastDocTimeStamp 1729677955 [10:06:56]current date 1729678023 [10:06:56]FM_GetShiftState [10:06:56]SAM_PROTO_GetShiftState [10:06:56]wFMCommunicate request_size=4 [10:06:56]MH_SAM_APDU [10:06:56]CAPDU: 80 13 01 00 [10:06:56]Write to MH i2c: E2 08 00 7C 91 80 13 01 00 00 00 00 00 8A [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 0E 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 0E 00 7C 91 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EF [10:06:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:06:56]wFMCommunicate OK [10:06:56]SAM_PROTO_GetShiftState done [10:06:56]FM_GetShiftState done [10:06:56]opened in 1729642905 [10:06:56]opened+sec_in_day 1729729305 [10:06:56]quantity*price = 20003 [10:06:56]sum+1 = 20004 [10:06:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 63 23.10.2024 10:07 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75330 ФПД: 38176266114926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100703&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75330&fm=38176266114926&tin=02508201610067®Number=0000000000161154&sum=20000 [10:06:57]StoreToDocumentArchive [10:06:57]shift 173 fd 75330 [10:06:57]save to /storage/0173/doc_00075330 [10:06:57]save last doc name /storage/0173/doc_00075330 to /storage/kkm_last_doc_name [10:06:57]save OK [10:06:57]Clear old archive folders... [10:06:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:57]tlvbuf is 00D95DB0 [10:06:57]SAM_PROTO_ClearQueue [10:06:57]wFMCommunicate request_size=4 [10:06:57]MH_SAM_APDU [10:06:57]CAPDU: 80 09 00 00 [10:06:57]Write to MH i2c: E2 08 00 89 91 80 09 00 00 00 00 00 00 8C [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:57]Read from MH i2c: E2 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 03 00 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 03 00 89 91 00 90 00 8E [10:06:57]RAPDU: 90 00 [10:06:57]wFMCommunicate OK [10:06:57]SAM_PROTO_ClearQueue done [10:06:57]KKMCreateOFDPacket [10:06:57]OFDProtocolAddRootSTLVToBuf [10:06:57]FM_MakeSignedData [10:06:57]FM_MakeSignedData [10:06:57]SAM_PROTO_SignData [10:06:57]wFMCommunicate request_size=4 [10:06:57]MH_SAM_APDU [10:06:57]CAPDU: 80 0D 01 02 [10:06:57]Write to MH i2c: E2 08 00 8A 91 80 0D 01 02 00 00 00 00 94 [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:57]Read from MH i2c: E2 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 03 00 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 03 00 8A 91 00 90 00 8F [10:06:57]RAPDU: 90 00 [10:06:57]wFMCommunicate OK [10:06:57]wFMCommunicate request_size=255 [10:06:57]MH_SAM_APDU [10:06: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 3F 00 00 00 F4 03 04 00 C7 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 26 01 00 35 04 06 00 22 [10:06:57]Write to MH i2c: E2 02 01 8B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 3F 00 00 00 F4 03 04 00 C7 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 26 01 00 35 04 06 00 22 00 00 5F [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:57]Read from MH i2c: E2 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 03 00 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 03 00 8B 91 00 90 00 90 [10:06:57]RAPDU: 90 00 [10:06:57]wFMCommunicate OK [10:06:57]wFMCommunicate request_size=10 [10:06:57]MH_SAM_APDU [10:06:57]CAPDU: 80 0D 02 02 05 B8 9A C7 D7 6E [10:06:57]Write to MH i2c: E2 0D 00 8C 91 80 0D 02 02 05 00 B8 9A C7 D7 6E 00 00 FF [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:57]Read from MH i2c: E2 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 03 00 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 03 00 8C 91 00 90 00 91 [10:06:57]RAPDU: 90 00 [10:06:57]wFMCommunicate OK [10:06:57]wFMCommunicate request_size=4 [10:06:57]MH_SAM_APDU [10:06:57]CAPDU: 80 0D 03 02 [10:06:57]Write to MH i2c: E2 08 00 8D 91 80 0D 03 02 00 00 00 00 99 [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:57]Read from MH i2c: E2 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 0B 00 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 0B 00 8D 91 00 E7 92 D4 3B 82 D1 F2 9E 90 00 05 [10:06:57]RAPDU: E7 92 D4 3B 82 D1 F2 9E 90 00 [10:06:57]wFMCommunicate OK [10:06:57]SAM_PROTO_SignData done [10:06:57]FM_MakeSignedData done [10:06:57]CreateOFDProtocolMessage [10:06:57]wFMCommunicate request_size=4 [10:06:57]MH_SAM_APDU [10:06:57]CAPDU: 80 11 00 00 [10:06:57]Write to MH i2c: E2 08 00 8E 91 80 11 00 00 00 00 00 00 99 [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:57]Read from MH i2c: E2 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 17 00 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: E2 17 00 8E 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E6 [10:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:06:57]wFMCommunicate OK [10:06:57]CreateOFDProtocolMessage done [10:06:57]OFDSenderStorePacket 75330 [10:06:57]StoreOFDPacket docnum=75330 [10:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 30 37 07 01 48 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 3F 00 00 00 F4 03 04 00 C7 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 26 01 00 35 04 06 00 22 B8 9A C7 D7 6E E7 92 D4 3B 82 D1 F2 9E [10:06:57]CheckFolder [10:06:57]dirname=/storage/ofd_packets [10:06:57]CheckFolder done [10:06:57]ProducePacketName [10:06:57]name=ofd_packets/00075330 [10:06:57]NVStorageSaveData ofd_packets/00075330 [10:06:57]File name is /storage/ofd_packets/00075330 [10:06:57]Write 301 bytes [10:06:57]NVStorageSaveData done [10:06:57]OFDSenderStorePacket done [10:06:57]KKMCreateOFDPacket done [10:06:57]NVStorageSaveData kkm_last_timestamp [10:06:57]File name is /storage/kkm_last_timestamp [10:06:57]Write 4 bytes [10:06:57]NVStorageSaveData done [10:06:57]ExternCall_PrintAddStr [10:06:57]wPrintStart [10:06:57]Write to MH i2c: 01 00 00 8F 91 20 [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: 01 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: 01 07 00 [10:06:57]MH_I2C_Read... [10:06:57]Read from MH i2c: 01 07 00 8F 91 00 00 00 00 00 FF 0F 35 [10:06:57]RasterBufferAndPrint [10:06:57]line Счет N : (1)1965302 [10:06:57]line ИНН: 02508201610067 [10:06:57]line Контрольно-Кассовый Чек [10:06:57]line ПРОДАЖА [10:06:57]line ТРК (МРК, ГНК) : 53 [10:06:57]line Товар: 2710124130 [10:06:57]line Аи-92-К-5 [10:06:57]line 2.990 * 66.90 [10:06:57]line = 200.03 [10:06:57]line НДС 12% НСП 1% [10:06:57]line > о реализуемом товаре [10:06:57]line ОКРУГЛЕНИЕ: -0.03 [10:06:57]line ИТОГО: 200.00 [10:06:57]line Внесено: 200.00 [10:06:57]line СДАЧА: 0.00 [10:06:57]line НСП 1% : 1.77 [10:06:57]line НДС 12% : 21.24 [10:06:57]line Наличными: 200.00 [10:06:57]line Безнал.: 0.00 [10:06:57]line Место: АЗС № 133 "Партнер Нефть" [10:06:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:06:57]line СНО: Общий режим [10:06:57]line Чек 63 23.10.2024 10:07 [10:06:57]line Смена: 173 ФФД: 1.0 [10:06:57]line ЗНМ: 0300000020 [10:06:57]line РНМ: 0000000000161154 [10:06:57]line Версия ККМ: v1.0 [10:06:57]line ФМ: 0000000000963323 [10:06:57]line ФД: 75330 [10:06:57]line ФПД: 38176266114926 [10:06:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100703&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75330&fm=38176266114926&tin=02508201610067®Number=0000000000161154&sum=20000 [10:06:58]OFD Sender: Processing packet 75330 [packets to send 15, broken 14] [10:06:58]ProducePacketName [10:06:58]name=ofd_packets/00075330 [10:06:58]OFD Sender: To server: pG, [10:06:58]CommunicateWithHost lk.salyk.kg:30040 [10:06:58]ConnectInit lk.salyk.kg [10:06:58]written 0, free lines is 4095 [10:06:58]Connected sock=10 [10:06:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 30 37 07 01 48 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 3F 00 00 00 F4 03 04 00 C7 CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 26 01 00 35 04 06 00 22 B8 9A C7 D7 6E E7 92 D4 3B 82 D1 F2 9E [10:06:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5E 6F 47 00 E5 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 42 26 01 00 F4 03 04 00 A2 73 18 67 B6 04 01 00 00 85 E8 10 60 8D CB 13 6D [10:06:58]CommunicateWithHost err = 0 [10:06:58]CheckOFDResponse [10:06:58]1017 (14) - 77093643461234 [10:06:58]1041 (16) - 0000000000963323 [10:06:58]1040 (4) - 75330 [10:06:58]1012 (4) - 23.10.2024 03:55 [10:06:58]1206 (1) - 0 [10:06:58]OFD Sender: Remove packet 75330 [10:06:58]ProducePacketName [10:06:58]name=ofd_packets/00075330 [10:06:58]NVStorageDeleteData [10:06:58]Write to MH i2c: 01 00 00 B9 91 4A [10:06:58]Write i2c OK [10:06:58]MH_I2C_Read... [10:06:58]Read from MH i2c: 01 [10:06:58]MH_I2C_Read... [10:06:58]Read from MH i2c: 01 07 00 [10:06:58]MH_I2C_Read... [10:06:58]Read from MH i2c: 01 07 00 B9 91 00 00 00 00 00 B3 0C 10 [10:06:58]RasterBufferAndPrint [10:06:58]line [10:06:58]line [10:06:58]line [10:06:58]line [10:06:58]line [10:06:58]written 0, free lines is 3256 [10:06:58]MH_Cut [10:06:58]Write to MH i2c: D1 01 00 C0 91 01 23 [10:06:58]Write i2c OK [10:06:58]MH_I2C_Read... [10:06:58]Read from MH i2c: D1 [10:06:58]MH_I2C_Read... [10:06:58]Read from MH i2c: D1 01 00 [10:06:58]MH_I2C_Read... [10:06:58]Read from MH i2c: D1 01 00 C0 91 00 22 [10:06:58]Write to MH i2c: 01 00 00 C1 91 52 [10:06:58]Write i2c OK [10:06:58]MH_I2C_Read... [10:06:58]OFD Sender: No OFD packet to send [10:06:59]*** Cut start [10:06:59]*** Partial cut [10:06:59]*** CUTSNS_PIN = 1 [10:06:59]*** CUTSNS_PIN = 0 [10:06:59]*** Brake cut motor [10:07:00]Read from MH i2c: 01 [10:07:00]MH_I2C_Read... [10:07:00]*** Stop cut motor [10:07:00]*** Cut end [10:07:00]Read from MH i2c: 01 07 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: 01 07 00 C1 91 00 00 00 00 00 FF 0F 67 [10:07:00]process_action close_receipt done [10:07:00]requested_data is exist [10:07:00]produce_requested_data [10:07:00]requested_item fm.sn is exist - process it [10:07:00]wFMCommunicate request_size=4 [10:07:00]MH_SAM_APDU [10:07:00]CAPDU: 80 11 00 00 [10:07:00]Write to MH i2c: E2 08 00 C2 91 80 11 00 00 00 00 00 00 CD [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:00]Read from MH i2c: E2 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 17 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 17 00 C2 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1A [10:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:07:00]wFMCommunicate OK [10:07:00]requested_item fd.num is exist - process it [10:07:00]SAM_PROTO_GetFieldsCounters [10:07:00]wFMCommunicate request_size=4 [10:07:00]MH_SAM_APDU [10:07:00]CAPDU: 80 13 00 00 [10:07:00]Write to MH i2c: E2 08 00 C3 91 80 13 00 00 00 00 00 00 D0 [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:00]Read from MH i2c: E2 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 62 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 62 00 C3 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 42 26 01 00 0E 04 04 00 AD 00 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 B7 [10:07:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 42 26 01 00 0E 04 04 00 AD 00 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 [10:07:00]wFMCommunicate OK [10:07:00]SAM_PROTO_GetFieldsCounters done [10:07:00]requested_item shift.num is exist - process it [10:07:00]requested_item shift.opened is exist - process it [10:07:00]req_shift_opened [10:07:00]FM_GetShiftState [10:07:00]SAM_PROTO_GetShiftState [10:07:00]wFMCommunicate request_size=4 [10:07:00]MH_SAM_APDU [10:07:00]CAPDU: 80 13 01 00 [10:07:00]Write to MH i2c: E2 08 00 C4 91 80 13 01 00 00 00 00 00 D2 [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:00]Read from MH i2c: E2 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 0E 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 0E 00 C4 91 00 09 00 01 99 41 18 67 00 00 00 00 90 00 37 [10:07:00]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:07:00]wFMCommunicate OK [10:07:00]SAM_PROTO_GetShiftState done [10:07:00]FM_GetShiftState done [10:07:00]req_shift_opened done [10:07:00]requested_item shift.open_date is exist - process it [10:07:00]req_shift_open_date [10:07:00]req_shift_open_date done [10:07:00]produce_requested_data done [10:07:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75330,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:07:00]process_action_free close_receipt [10:07:00]json_value_free [10:07:00]json_value_free done [10:07:00]process_json_proto returns [10:07:00]Send response to host [10:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75330,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:07:00]free response buf [10:07:00]execute_script done [10:07:00]execute_script returns [10:07:00]free content buf [10:07:00]Sock 9.Close socket [10:07:00]Sock 9.Thread stoped [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:50]accept exits with 7 [10:07:50]New connection [10:07:50]New thread 3067465060 created [10:07:50]Thread 3067321700 joined [10:07:50]Waiting for new connection... [10:07:50] Sock 7.Parse request [10:07:50]Sock 7.Check first char [10:07:50]Sock 7.First char is OK [10:07:50]request: POST /json_proto HTTP/1.0 [10:07:50]Method: POST [10:07:50]URL: /json_proto [10:07:50]Method is POST - this is cgi request [10:07:50]url: /json_proto [10:07:50]query_string will be loaded in cgi processing [10:07:50]execute_cgi json_proto POST (null) [10:07:50]execute_cgi path=json_proto method=POST [10:07:50]POST find Content-Length [10:07:50]Host: 172.17.44.196:8080 [10:07:50]Content-Length: 678 [10:07:50]Content-Type: application/json [10:07:50] [10:07:50]POST finish read [10:07:50]Found Content-Length = 678 [10:07:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:50]execute_script... [10:07: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)1965303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:50]POST & json_proto [10:07:50]process_json_proto [10:07:50]json parsed OK: [10:07:50]protocol is kg_v1.0 [10:07:50]action value=close_receipt [10:07:50]process_action close_receipt [10:07:50]cmd_close_receipt [10:07:50]MH_GetDate [10:07:50]Write to MH i2c: F0 00 00 C5 91 45 [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: F0 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: F0 09 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: F0 09 00 C5 91 00 FD CA 18 67 E7 19 F8 65 F1 [10:07:50]GetLastDocTimeStamp 1729678023 [10:07:50]current date 1729678077 [10:07:50]FM_GetShiftState [10:07:50]SAM_PROTO_GetShiftState [10:07:50]wFMCommunicate request_size=4 [10:07:50]MH_SAM_APDU [10:07:50]CAPDU: 80 13 01 00 [10:07:50]Write to MH i2c: E2 08 00 C6 91 80 13 01 00 00 00 00 00 D4 [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:50]Read from MH i2c: E2 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 0E 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 0E 00 C6 91 00 09 00 01 99 41 18 67 00 00 00 00 90 00 39 [10:07:50]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:07:50]wFMCommunicate OK [10:07:50]SAM_PROTO_GetShiftState done [10:07:50]FM_GetShiftState done [10:07:50]opened in 1729642905 [10:07:50]opened+sec_in_day 1729729305 [10:07:50]quantity*price = 30038 [10:07:50]sum+1 = 30039 [10:07:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 64 23.10.2024 10:07 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75331 ФПД: 78779361641231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100757&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75331&fm=78779361641231&tin=02508201610067®Number=0000000000161154&sum=30000 [10:07:51]StoreToDocumentArchive [10:07:51]shift 173 fd 75331 [10:07:51]save to /storage/0173/doc_00075331 [10:07:51]save last doc name /storage/0173/doc_00075331 to /storage/kkm_last_doc_name [10:07:51]save OK [10:07:51]Clear old archive folders... [10:07:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:51]tlvbuf is 00FAC1A0 [10:07:51]SAM_PROTO_ClearQueue [10:07:51]wFMCommunicate request_size=4 [10:07:51]MH_SAM_APDU [10:07:51]CAPDU: 80 09 00 00 [10:07:51]Write to MH i2c: E2 08 00 D3 91 80 09 00 00 00 00 00 00 D6 [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:51]Read from MH i2c: E2 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 03 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 03 00 D3 91 00 90 00 D8 [10:07:51]RAPDU: 90 00 [10:07:51]wFMCommunicate OK [10:07:51]SAM_PROTO_ClearQueue done [10:07:51]KKMCreateOFDPacket [10:07:51]OFDProtocolAddRootSTLVToBuf [10:07:51]FM_MakeSignedData [10:07:51]FM_MakeSignedData [10:07:51]SAM_PROTO_SignData [10:07:51]wFMCommunicate request_size=4 [10:07:51]MH_SAM_APDU [10:07:51]CAPDU: 80 0D 01 02 [10:07:51]Write to MH i2c: E2 08 00 D4 91 80 0D 01 02 00 00 00 00 DE [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:51]Read from MH i2c: E2 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 03 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 03 00 D4 91 00 90 00 D9 [10:07:51]RAPDU: 90 00 [10:07:51]wFMCommunicate OK [10:07:51]wFMCommunicate request_size=255 [10:07:51]MH_SAM_APDU [10:07:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FD CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 26 01 00 35 04 06 00 47 [10:07:51]Write to MH i2c: E2 02 01 D5 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FD CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 26 01 00 35 04 06 00 47 00 00 38 [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:52]Read from MH i2c: E2 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: E2 03 00 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: E2 03 00 D5 91 00 90 00 DA [10:07:52]RAPDU: 90 00 [10:07:52]wFMCommunicate OK [10:07:52]wFMCommunicate request_size=10 [10:07:52]MH_SAM_APDU [10:07:52]CAPDU: 80 0D 02 02 05 A6 3F DD C3 0F [10:07:52]Write to MH i2c: E2 0D 00 D6 91 80 0D 02 02 05 00 A6 3F DD C3 0F 00 00 7F [10:07:52]Write i2c OK [10:07:52]MH_I2C_Read... [10:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:52]Read from MH i2c: E2 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: E2 03 00 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: E2 03 00 D6 91 00 90 00 DB [10:07:52]RAPDU: 90 00 [10:07:52]wFMCommunicate OK [10:07:52]wFMCommunicate request_size=4 [10:07:52]MH_SAM_APDU [10:07:52]CAPDU: 80 0D 03 02 [10:07:52]Write to MH i2c: E2 08 00 D7 91 80 0D 03 02 00 00 00 00 E3 [10:07:52]Write i2c OK [10:07:52]MH_I2C_Read... [10:07:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:52]Read from MH i2c: E2 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: E2 0B 00 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: E2 0B 00 D7 91 00 BE 6D 07 0E 55 C8 65 C2 90 00 68 [10:07:52]RAPDU: BE 6D 07 0E 55 C8 65 C2 90 00 [10:07:52]wFMCommunicate OK [10:07:52]SAM_PROTO_SignData done [10:07:52]FM_MakeSignedData done [10:07:52]CreateOFDProtocolMessage [10:07:52]wFMCommunicate request_size=4 [10:07:52]MH_SAM_APDU [10:07:52]CAPDU: 80 11 00 00 [10:07:52]Write to MH i2c: E2 08 00 D8 91 80 11 00 00 00 00 00 00 E3 [10:07:52]Write i2c OK [10:07:52]MH_I2C_Read... [10:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:52]Read from MH i2c: E2 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: E2 17 00 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: E2 17 00 D8 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 30 [10:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:07:52]wFMCommunicate OK [10:07:52]CreateOFDProtocolMessage done [10:07:52]OFDSenderStorePacket 75331 [10:07:52]StoreOFDPacket docnum=75331 [10:07:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C7 DE 07 01 F1 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FD CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 26 01 00 35 04 06 00 47 A6 3F DD C3 0F BE 6D 07 0E 55 C8 65 C2 [10:07:52]CheckFolder [10:07:52]dirname=/storage/ofd_packets [10:07:52]CheckFolder done [10:07:52]ProducePacketName [10:07:52]name=ofd_packets/00075331 [10:07:52]NVStorageSaveData ofd_packets/00075331 [10:07:52]File name is /storage/ofd_packets/00075331 [10:07:52]Write 301 bytes [10:07:52]NVStorageSaveData done [10:07:52]OFDSenderStorePacket done [10:07:52]KKMCreateOFDPacket done [10:07:52]NVStorageSaveData kkm_last_timestamp [10:07:52]File name is /storage/kkm_last_timestamp [10:07:52]Write 4 bytes [10:07:52]NVStorageSaveData done [10:07:52]ExternCall_PrintAddStr [10:07:52]wPrintStart [10:07:52]Write to MH i2c: 01 00 00 D9 91 6A [10:07:52]Write i2c OK [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: 01 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: 01 07 00 [10:07:52]MH_I2C_Read... [10:07:52]Read from MH i2c: 01 07 00 D9 91 00 00 00 00 00 FF 0F 7F [10:07:52]RasterBufferAndPrint [10:07:52]line Счет N : (1)1965303 [10:07:52]line ИНН: 02508201610067 [10:07:52]line Контрольно-Кассовый Чек [10:07:52]line ПРОДАЖА [10:07:52]line ТРК (МРК, ГНК) : 63 [10:07:52]line Товар: 2710124130 [10:07:52]line Аи-92-К-5 [10:07:52]line 4.490 * 66.90 [10:07:52]line = 300.38 [10:07:52]line НДС 12% НСП 1% [10:07:52]line > о реализуемом товаре [10:07:52]line ОКРУГЛЕНИЕ: -0.38 [10:07:52]line ИТОГО: 300.00 [10:07:52]line Внесено: 300.00 [10:07:52]line СДАЧА: 0.00 [10:07:52]line НСП 1% : 2.66 [10:07:52]line НДС 12% : 31.90 [10:07:52]line Наличными: 300.00 [10:07:52]line Безнал.: 0.00 [10:07:52]line Место: АЗС № 133 "Партнер Нефть" [10:07:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:07:52]line СНО: Общий режим [10:07:52]line Чек 64 23.10.2024 10:07 [10:07:52]line Смена: 173 ФФД: 1.0 [10:07:52]line ЗНМ: 0300000020 [10:07:52]line РНМ: 0000000000161154 [10:07:52]line Версия ККМ: v1.0 [10:07:52]line ФМ: 0000000000963323 [10:07:52]line ФД: 75331 [10:07:52]line ФПД: 78779361641231 [10:07:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100757&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75331&fm=78779361641231&tin=02508201610067®Number=0000000000161154&sum=30000 [10:07:52]OFD Sender: Processing packet 75331 [packets to send 15, broken 14] [10:07:52]ProducePacketName [10:07:52]name=ofd_packets/00075331 [10:07:52]OFD Sender: To server: pG, [10:07:52]CommunicateWithHost lk.salyk.kg:30040 [10:07:52]ConnectInit lk.salyk.kg [10:07:52]written 0, free lines is 4095 [10:07:52]Connected sock=10 [10:07:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C7 DE 07 01 F1 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 FD CA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 26 01 00 35 04 06 00 47 A6 3F DD C3 0F BE 6D 07 0E 55 C8 65 C2 [10:07:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A7 E7 47 00 8F 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 43 26 01 00 F4 03 04 00 D8 73 18 67 B6 04 01 00 00 17 09 77 89 92 BD B5 E9 [10:07:52]CommunicateWithHost err = 0 [10:07:52]CheckOFDResponse [10:07:52]1017 (14) - 77093643461234 [10:07:52]1041 (16) - 0000000000963323 [10:07:52]1040 (4) - 75331 [10:07:52]1012 (4) - 23.10.2024 03:56 [10:07:52]1206 (1) - 0 [10:07:52]OFD Sender: Remove packet 75331 [10:07:52]ProducePacketName [10:07:52]name=ofd_packets/00075331 [10:07:52]NVStorageDeleteData [10:07:53]Write to MH i2c: 01 00 00 03 92 95 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: 01 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: 01 07 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: 01 07 00 03 92 00 00 00 00 00 B6 0C 5E [10:07:53]RasterBufferAndPrint [10:07:53]line [10:07:53]line [10:07:53]line [10:07:53]line [10:07:53]line [10:07:53]written 0, free lines is 3258 [10:07:53]MH_Cut [10:07:53]Write to MH i2c: D1 01 00 0A 92 01 6E [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: D1 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: D1 01 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: D1 01 00 0A 92 00 6D [10:07:53]Write to MH i2c: 01 00 00 0B 92 9D [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]OFD Sender: No OFD packet to send [10:07:53]*** Cut start [10:07:53]*** Partial cut [10:07:53]*** CUTSNS_PIN = 1 [10:07:53]*** CUTSNS_PIN = 0 [10:07:54]*** Brake cut motor [10:07:54]Read from MH i2c: 01 [10:07:54]MH_I2C_Read... [10:07:54]*** Stop cut motor [10:07:54]*** Cut end [10:07:54]Read from MH i2c: 01 07 00 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: 01 07 00 0B 92 00 00 00 00 00 FF 0F B2 [10:07:54]process_action close_receipt done [10:07:54]requested_data is exist [10:07:54]produce_requested_data [10:07:54]requested_item fm.sn is exist - process it [10:07:54]wFMCommunicate request_size=4 [10:07:54]MH_SAM_APDU [10:07:54]CAPDU: 80 11 00 00 [10:07:54]Write to MH i2c: E2 08 00 0C 92 80 11 00 00 00 00 00 00 18 [10:07:54]Write i2c OK [10:07:54]MH_I2C_Read... [10:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:54]Read from MH i2c: E2 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: E2 17 00 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: E2 17 00 0C 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 65 [10:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:07:54]wFMCommunicate OK [10:07:54]requested_item fd.num is exist - process it [10:07:54]SAM_PROTO_GetFieldsCounters [10:07:54]wFMCommunicate request_size=4 [10:07:54]MH_SAM_APDU [10:07:54]CAPDU: 80 13 00 00 [10:07:54]Write to MH i2c: E2 08 00 0D 92 80 13 00 00 00 00 00 00 1B [10:07:54]Write i2c OK [10:07:54]MH_I2C_Read... [10:07:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:54]Read from MH i2c: E2 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: E2 62 00 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: E2 62 00 0D 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 43 26 01 00 0E 04 04 00 AD 00 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 06 [10:07:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 43 26 01 00 0E 04 04 00 AD 00 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 [10:07:54]wFMCommunicate OK [10:07:54]SAM_PROTO_GetFieldsCounters done [10:07:54]requested_item shift.num is exist - process it [10:07:54]requested_item shift.opened is exist - process it [10:07:54]req_shift_opened [10:07:54]FM_GetShiftState [10:07:54]SAM_PROTO_GetShiftState [10:07:54]wFMCommunicate request_size=4 [10:07:54]MH_SAM_APDU [10:07:54]CAPDU: 80 13 01 00 [10:07:54]Write to MH i2c: E2 08 00 0E 92 80 13 01 00 00 00 00 00 1D [10:07:54]Write i2c OK [10:07:54]MH_I2C_Read... [10:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:54]Read from MH i2c: E2 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: E2 0E 00 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: E2 0E 00 0E 92 00 09 00 01 99 41 18 67 00 00 00 00 90 00 82 [10:07:54]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:07:54]wFMCommunicate OK [10:07:54]SAM_PROTO_GetShiftState done [10:07:54]FM_GetShiftState done [10:07:54]req_shift_opened done [10:07:54]requested_item shift.open_date is exist - process it [10:07:54]req_shift_open_date [10:07:54]req_shift_open_date done [10:07:54]produce_requested_data done [10:07:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75331,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:07:54]process_action_free close_receipt [10:07:54]json_value_free [10:07:54]json_value_free done [10:07:54]process_json_proto returns [10:07:54]Send response to host [10:07:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75331,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:07:54]free response buf [10:07:54]execute_script done [10:07:54]execute_script returns [10:07:54]free content buf [10:07:54]Sock 7.Close socket [10:07:54]Sock 7.Thread stoped [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:53]accept exits with 9 [10:08:53]New connection [10:08:53]New thread 3067321700 created [10:08:53]Thread 3067465060 joined [10:08:53]Waiting for new connection... [10:08:53] Sock 9.Parse request [10:08:53]Sock 9.Check first char [10:08:53]Sock 9.First char is OK [10:08:53]request: POST /json_proto HTTP/1.0 [10:08:53]Method: POST [10:08:53]URL: /json_proto [10:08:53]Method is POST - this is cgi request [10:08:53]url: /json_proto [10:08:53]query_string will be loaded in cgi processing [10:08:53]execute_cgi json_proto POST (null) [10:08:53]execute_cgi path=json_proto method=POST [10:08:53]POST find Content-Length [10:08:53]Host: 172.17.44.196:8080 [10:08:53]Content-Length: 678 [10:08:53]Content-Type: application/json [10:08:53] [10:08:53]POST finish read [10:08:53]Found Content-Length = 678 [10:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:08:53]execute_script... [10:08:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:08:53]POST & json_proto [10:08:53]process_json_proto [10:08:53]json parsed OK: [10:08:53]protocol is kg_v1.0 [10:08:53]action value=close_receipt [10:08:53]process_action close_receipt [10:08:53]cmd_close_receipt [10:08:53]MH_GetDate [10:08:53]Write to MH i2c: F0 00 00 0F 92 90 [10:08:53]Write i2c OK [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: F0 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: F0 09 00 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: F0 09 00 0F 92 00 3C CB 18 67 E7 19 F8 65 7C [10:08:53]GetLastDocTimeStamp 1729678077 [10:08:53]current date 1729678140 [10:08:53]FM_GetShiftState [10:08:53]SAM_PROTO_GetShiftState [10:08:53]wFMCommunicate request_size=4 [10:08:53]MH_SAM_APDU [10:08:53]CAPDU: 80 13 01 00 [10:08:53]Write to MH i2c: E2 08 00 10 92 80 13 01 00 00 00 00 00 1F [10:08:53]Write i2c OK [10:08:53]MH_I2C_Read... [10:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:53]Read from MH i2c: E2 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: E2 0E 00 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: E2 0E 00 10 92 00 09 00 01 99 41 18 67 00 00 00 00 90 00 84 [10:08:53]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:08:53]wFMCommunicate OK [10:08:53]SAM_PROTO_GetShiftState done [10:08:53]FM_GetShiftState done [10:08:53]opened in 1729642905 [10:08:53]opened+sec_in_day 1729729305 [10:08:53]quantity*price = 50041 [10:08:53]sum+1 = 50042 [10:08:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 65 23.10.2024 10:09 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75332 ФПД: 200777045422954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100900&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75332&fm=200777045422954&tin=02508201610067®Number=0000000000161154&sum=50000 [10:08:54]StoreToDocumentArchive [10:08:54]shift 173 fd 75332 [10:08:54]save to /storage/0173/doc_00075332 [10:08:54]save last doc name /storage/0173/doc_00075332 to /storage/kkm_last_doc_name [10:08:54]save OK [10:08:54]Clear old archive folders... [10:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:54]tlvbuf is 00E8D6C0 [10:08:54]SAM_PROTO_ClearQueue [10:08:54]wFMCommunicate request_size=4 [10:08:54]MH_SAM_APDU [10:08:54]CAPDU: 80 09 00 00 [10:08:54]Write to MH i2c: E2 08 00 1D 92 80 09 00 00 00 00 00 00 21 [10:08:54]Write i2c OK [10:08:54]MH_I2C_Read... [10:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:54]Read from MH i2c: E2 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: E2 03 00 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: E2 03 00 1D 92 00 90 00 23 [10:08:54]RAPDU: 90 00 [10:08:54]wFMCommunicate OK [10:08:54]SAM_PROTO_ClearQueue done [10:08:54]KKMCreateOFDPacket [10:08:54]OFDProtocolAddRootSTLVToBuf [10:08:54]FM_MakeSignedData [10:08:54]FM_MakeSignedData [10:08:54]SAM_PROTO_SignData [10:08:54]wFMCommunicate request_size=4 [10:08:54]MH_SAM_APDU [10:08:54]CAPDU: 80 0D 01 02 [10:08:54]Write to MH i2c: E2 08 00 1E 92 80 0D 01 02 00 00 00 00 29 [10:08:54]Write i2c OK [10:08:54]MH_I2C_Read... [10:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:54]Read from MH i2c: E2 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: E2 03 00 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: E2 03 00 1E 92 00 90 00 24 [10:08:54]RAPDU: 90 00 [10:08:54]wFMCommunicate OK [10:08:54]wFMCommunicate request_size=255 [10:08:54]MH_SAM_APDU [10:08:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 41 00 00 00 F4 03 04 00 3C CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 26 01 00 35 04 06 00 B6 [10:08:54]Write to MH i2c: E2 02 01 1F 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 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 41 00 00 00 F4 03 04 00 3C CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 26 01 00 35 04 06 00 B6 00 00 40 [10:08:54]Write i2c OK [10:08:54]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 03 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 03 00 1F 92 00 90 00 25 [10:08:55]RAPDU: 90 00 [10:08:55]wFMCommunicate OK [10:08:55]wFMCommunicate request_size=10 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 0D 02 02 05 9B 0C 78 B3 6A [10:08:55]Write to MH i2c: E2 0D 00 20 92 80 0D 02 02 05 00 9B 0C 78 B3 6A 00 00 72 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 03 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 03 00 20 92 00 90 00 26 [10:08:55]RAPDU: 90 00 [10:08:55]wFMCommunicate OK [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 0D 03 02 [10:08:55]Write to MH i2c: E2 08 00 21 92 80 0D 03 02 00 00 00 00 2E [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 0B 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 0B 00 21 92 00 5E EE 3A BE 94 8A 78 ED 90 00 F6 [10:08:55]RAPDU: 5E EE 3A BE 94 8A 78 ED 90 00 [10:08:55]wFMCommunicate OK [10:08:55]SAM_PROTO_SignData done [10:08:55]FM_MakeSignedData done [10:08:55]CreateOFDProtocolMessage [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 11 00 00 [10:08:55]Write to MH i2c: E2 08 00 22 92 80 11 00 00 00 00 00 00 2E [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 17 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 17 00 22 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7B [10:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:08:55]wFMCommunicate OK [10:08:55]CreateOFDProtocolMessage done [10:08:55]OFDSenderStorePacket 75332 [10:08:55]StoreOFDPacket docnum=75332 [10:08:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 36 57 07 01 78 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 41 00 00 00 F4 03 04 00 3C CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 26 01 00 35 04 06 00 B6 9B 0C 78 B3 6A 5E EE 3A BE 94 8A 78 ED [10:08:55]CheckFolder [10:08:55]dirname=/storage/ofd_packets [10:08:55]CheckFolder done [10:08:55]ProducePacketName [10:08:55]name=ofd_packets/00075332 [10:08:55]NVStorageSaveData ofd_packets/00075332 [10:08:55]File name is /storage/ofd_packets/00075332 [10:08:55]Write 301 bytes [10:08:55]NVStorageSaveData done [10:08:55]OFDSenderStorePacket done [10:08:55]KKMCreateOFDPacket done [10:08:55]NVStorageSaveData kkm_last_timestamp [10:08:55]File name is /storage/kkm_last_timestamp [10:08:55]Write 4 bytes [10:08:55]NVStorageSaveData done [10:08:55]ExternCall_PrintAddStr [10:08:55]wPrintStart [10:08:55]Write to MH i2c: 01 00 00 23 92 B5 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: 01 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: 01 07 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: 01 07 00 23 92 00 00 00 00 00 FF 0F CA [10:08:55]RasterBufferAndPrint [10:08:55]line Счет N : (1)1965305 [10:08:55]line ИНН: 02508201610067 [10:08:55]line Контрольно-Кассовый Чек [10:08:55]line ПРОДАЖА [10:08:55]line ТРК (МРК, ГНК) : 53 [10:08:55]line Товар: 2710124130 [10:08:55]line Аи-92-К-5 [10:08:55]line 7.480 * 66.90 [10:08:55]line = 500.41 [10:08:55]line НДС 12% НСП 1% [10:08:55]line > о реализуемом товаре [10:08:55]line ОКРУГЛЕНИЕ: -0.41 [10:08:55]line ИТОГО: 500.00 [10:08:55]line Внесено: 500.00 [10:08:55]line СДАЧА: 0.00 [10:08:55]line НСП 1% : 4.43 [10:08:55]line НДС 12% : 53.14 [10:08:55]line Наличными: 500.00 [10:08:55]line Безнал.: 0.00 [10:08:55]line Место: АЗС № 133 "Партнер Нефть" [10:08:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:08:55]line СНО: Общий режим [10:08:55]line Чек 65 23.10.2024 10:09 [10:08:55]line Смена: 173 ФФД: 1.0 [10:08:55]line ЗНМ: 0300000020 [10:08:55]line РНМ: 0000000000161154 [10:08:55]line Версия ККМ: v1.0 [10:08:55]line ФМ: 0000000000963323 [10:08:55]line ФД: 75332 [10:08:55]line ФПД: 200777045422954 [10:08:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100900&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75332&fm=200777045422954&tin=02508201610067®Number=0000000000161154&sum=50000 [10:08:55]OFD Sender: Processing packet 75332 [packets to send 15, broken 14] [10:08:55]ProducePacketName [10:08:55]name=ofd_packets/00075332 [10:08:55]OFD Sender: To server: pG, [10:08:55]CommunicateWithHost lk.salyk.kg:30040 [10:08:55]ConnectInit lk.salyk.kg [10:08:55]written 0, free lines is 4095 [10:08:55]Connected sock=10 [10:08:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 36 57 07 01 78 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 41 00 00 00 F4 03 04 00 3C CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 26 01 00 35 04 06 00 B6 9B 0C 78 B3 6A 5E EE 3A BE 94 8A 78 ED [10:08:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F0 2A 47 00 BF 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 44 26 01 00 F4 03 04 00 17 74 18 67 B6 04 01 00 00 8A FA A7 19 12 72 C5 41 [10:08:55]CommunicateWithHost err = 0 [10:08:55]CheckOFDResponse [10:08:55]1017 (14) - 77093643461234 [10:08:55]1041 (16) - 0000000000963323 [10:08:55]1040 (4) - 75332 [10:08:55]1012 (4) - 23.10.2024 03:57 [10:08:55]1206 (1) - 0 [10:08:55]OFD Sender: Remove packet 75332 [10:08:55]ProducePacketName [10:08:55]name=ofd_packets/00075332 [10:08:55]NVStorageDeleteData [10:08:55]Write to MH i2c: 01 00 00 4D 92 DF [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: 01 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: 01 07 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: 01 07 00 4D 92 00 00 00 00 00 AE 0C A0 [10:08:55]RasterBufferAndPrint [10:08:55]line [10:08:55]line [10:08:55]line [10:08:55]line [10:08:55]line [10:08:55]written 0, free lines is 3250 [10:08:55]MH_Cut [10:08:55]Write to MH i2c: D1 01 00 54 92 01 B8 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: D1 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: D1 01 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: D1 01 00 54 92 00 B7 [10:08:55]Write to MH i2c: 01 00 00 55 92 E7 [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]OFD Sender: No OFD packet to send [10:08:56]*** Cut start [10:08:56]*** Partial cut [10:08:56]*** CUTSNS_PIN = 1 [10:08:56]*** CUTSNS_PIN = 0 [10:08:57]*** Brake cut motor [10:08:57]Read from MH i2c: 01 [10:08:57]MH_I2C_Read... [10:08:57]*** Stop cut motor [10:08:57]*** Cut end [10:08:57]Read from MH i2c: 01 07 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: 01 07 00 55 92 00 00 00 00 00 FF 0F FC [10:08:57]process_action close_receipt done [10:08:57]requested_data is exist [10:08:57]produce_requested_data [10:08:57]requested_item fm.sn is exist - process it [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 11 00 00 [10:08:57]Write to MH i2c: E2 08 00 56 92 80 11 00 00 00 00 00 00 62 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 17 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 17 00 56 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AF [10:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:08:57]wFMCommunicate OK [10:08:57]requested_item fd.num is exist - process it [10:08:57]SAM_PROTO_GetFieldsCounters [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 13 00 00 [10:08:57]Write to MH i2c: E2 08 00 57 92 80 13 00 00 00 00 00 00 65 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 62 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 62 00 57 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 44 26 01 00 0E 04 04 00 AD 00 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 54 [10:08:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 44 26 01 00 0E 04 04 00 AD 00 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 [10:08:57]wFMCommunicate OK [10:08:57]SAM_PROTO_GetFieldsCounters done [10:08:57]requested_item shift.num is exist - process it [10:08:57]requested_item shift.opened is exist - process it [10:08:57]req_shift_opened [10:08:57]FM_GetShiftState [10:08:57]SAM_PROTO_GetShiftState [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 13 01 00 [10:08:57]Write to MH i2c: E2 08 00 58 92 80 13 01 00 00 00 00 00 67 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 0E 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 0E 00 58 92 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CC [10:08:57]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:08:57]wFMCommunicate OK [10:08:57]SAM_PROTO_GetShiftState done [10:08:57]FM_GetShiftState done [10:08:57]req_shift_opened done [10:08:57]requested_item shift.open_date is exist - process it [10:08:57]req_shift_open_date [10:08:57]req_shift_open_date done [10:08:57]produce_requested_data done [10:08:57]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75332,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:08:57]process_action_free close_receipt [10:08:57]json_value_free [10:08:57]json_value_free done [10:08:57]process_json_proto returns [10:08:57]Send response to host [10:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75332,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:08:57]free response buf [10:08:57]execute_script done [10:08:57]execute_script returns [10:08:57]free content buf [10:08:57]Sock 9.Close socket [10:08:57]Sock 9.Thread stoped [10:08:58]accept exits with 7 [10:08:58]New connection [10:08:58]New thread 3067465060 created [10:08:58]Thread 3067321700 joined [10:08:58]Waiting for new connection... [10:08:58] Sock 7.Parse request [10:08:58]Sock 7.Check first char [10:08:58]Sock 7.First char is OK [10:08:58]request: POST /json_proto HTTP/1.0 [10:08:58]Method: POST [10:08:58]URL: /json_proto [10:08:58]Method is POST - this is cgi request [10:08:58]url: /json_proto [10:08:58]query_string will be loaded in cgi processing [10:08:58]execute_cgi json_proto POST (null) [10:08:58]execute_cgi path=json_proto method=POST [10:08:58]POST find Content-Length [10:08:58]Host: 172.17.44.196:8080 [10:08:58]Content-Length: 683 [10:08:58]Content-Type: application/json [10:08:58] [10:08:58]POST finish read [10:08:58]Found Content-Length = 683 [10:08:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:58]execute_script... [10:08:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:58]POST & json_proto [10:08:58]process_json_proto [10:08:58]json parsed OK: [10:08:58]protocol is kg_v1.0 [10:08:58]action value=close_receipt [10:08:58]process_action close_receipt [10:08:58]cmd_close_receipt [10:08:58]MH_GetDate [10:08:58]Write to MH i2c: F0 00 00 59 92 DA [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: F0 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: F0 09 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: F0 09 00 59 92 00 41 CB 18 67 E7 19 F8 65 CB [10:08:58]GetLastDocTimeStamp 1729678140 [10:08:58]current date 1729678145 [10:08:58]FM_GetShiftState [10:08:58]SAM_PROTO_GetShiftState [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 13 01 00 [10:08:58]Write to MH i2c: E2 08 00 5A 92 80 13 01 00 00 00 00 00 69 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 0E 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 0E 00 5A 92 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CE [10:08:58]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:08:58]wFMCommunicate OK [10:08:58]SAM_PROTO_GetShiftState done [10:08:58]FM_GetShiftState done [10:08:58]opened in 1729642905 [10:08:58]opened+sec_in_day 1729729305 [10:08:58]quantity*price = 100015 [10:08:58]sum+1 = 100017 [10:08:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 66 23.10.2024 10:09 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75333 ФПД: 10572405442951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100905&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75333&fm=10572405442951&tin=02508201610067®Number=0000000000161154&sum=100000 [10:08:59]StoreToDocumentArchive [10:08:59]shift 173 fd 75333 [10:08:59]save to /storage/0173/doc_00075333 [10:08:59]save last doc name /storage/0173/doc_00075333 to /storage/kkm_last_doc_name [10:08:59]save OK [10:08:59]Clear old archive folders... [10:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:59]tlvbuf is 01073E90 [10:08:59]SAM_PROTO_ClearQueue [10:08:59]wFMCommunicate request_size=4 [10:08:59]MH_SAM_APDU [10:08:59]CAPDU: 80 09 00 00 [10:08:59]Write to MH i2c: E2 08 00 67 92 80 09 00 00 00 00 00 00 6B [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:59]Read from MH i2c: E2 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 03 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 03 00 67 92 00 90 00 6D [10:08:59]RAPDU: 90 00 [10:08:59]wFMCommunicate OK [10:08:59]SAM_PROTO_ClearQueue done [10:08:59]KKMCreateOFDPacket [10:08:59]OFDProtocolAddRootSTLVToBuf [10:08:59]FM_MakeSignedData [10:08:59]FM_MakeSignedData [10:08:59]SAM_PROTO_SignData [10:08:59]wFMCommunicate request_size=4 [10:08:59]MH_SAM_APDU [10:08:59]CAPDU: 80 0D 01 02 [10:08:59]Write to MH i2c: E2 08 00 68 92 80 0D 01 02 00 00 00 00 73 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:59]Read from MH i2c: E2 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 03 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 03 00 68 92 00 90 00 6E [10:08:59]RAPDU: 90 00 [10:08:59]wFMCommunicate OK [10:08:59]wFMCommunicate request_size=255 [10:08:59]MH_SAM_APDU [10:08:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 41 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 45 26 01 00 35 04 06 00 09 [10:08:59]Write to MH i2c: E2 02 01 69 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 41 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 45 26 01 00 35 04 06 00 09 00 00 DE [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:00]Read from MH i2c: E2 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 03 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 03 00 69 92 00 90 00 6F [10:09:00]RAPDU: 90 00 [10:09:00]wFMCommunicate OK [10:09:00]wFMCommunicate request_size=10 [10:09:00]MH_SAM_APDU [10:09:00]CAPDU: 80 0D 02 02 05 9D 94 78 89 87 [10:09:00]Write to MH i2c: E2 0D 00 6A 92 80 0D 02 02 05 00 9D 94 78 89 87 00 00 39 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:00]Read from MH i2c: E2 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 03 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 03 00 6A 92 00 90 00 70 [10:09:00]RAPDU: 90 00 [10:09:00]wFMCommunicate OK [10:09:00]wFMCommunicate request_size=4 [10:09:00]MH_SAM_APDU [10:09:00]CAPDU: 80 0D 03 02 [10:09:00]Write to MH i2c: E2 08 00 6B 92 80 0D 03 02 00 00 00 00 78 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:00]Read from MH i2c: E2 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 0B 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 0B 00 6B 92 00 2C 71 37 6B 4B 58 FB 05 90 00 5B [10:09:00]RAPDU: 2C 71 37 6B 4B 58 FB 05 90 00 [10:09:00]wFMCommunicate OK [10:09:00]SAM_PROTO_SignData done [10:09:00]FM_MakeSignedData done [10:09:00]CreateOFDProtocolMessage [10:09:00]wFMCommunicate request_size=4 [10:09:00]MH_SAM_APDU [10:09:00]CAPDU: 80 11 00 00 [10:09:00]Write to MH i2c: E2 08 00 6C 92 80 11 00 00 00 00 00 00 78 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:00]Read from MH i2c: E2 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 17 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 17 00 6C 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C5 [10:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:09:00]wFMCommunicate OK [10:09:00]CreateOFDProtocolMessage done [10:09:00]OFDSenderStorePacket 75333 [10:09:00]StoreOFDPacket docnum=75333 [10:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D4 EF 07 01 CA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 41 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 45 26 01 00 35 04 06 00 09 9D 94 78 89 87 2C 71 37 6B 4B 58 FB 05 [10:09:00]CheckFolder [10:09:00]dirname=/storage/ofd_packets [10:09:00]CheckFolder done [10:09:00]ProducePacketName [10:09:00]name=ofd_packets/00075333 [10:09:00]NVStorageSaveData ofd_packets/00075333 [10:09:00]File name is /storage/ofd_packets/00075333 [10:09:00]Write 301 bytes [10:09:00]NVStorageSaveData done [10:09:00]OFDSenderStorePacket done [10:09:00]KKMCreateOFDPacket done [10:09:00]NVStorageSaveData kkm_last_timestamp [10:09:00]File name is /storage/kkm_last_timestamp [10:09:00]Write 4 bytes [10:09:00]NVStorageSaveData done [10:09:00]ExternCall_PrintAddStr [10:09:00]wPrintStart [10:09:00]Write to MH i2c: 01 00 00 6D 92 FF [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: 01 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: 01 07 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: 01 07 00 6D 92 00 00 00 00 00 FF 0F 14 [10:09:00]RasterBufferAndPrint [10:09:00]line Счет N : (1)1965304 [10:09:00]line ИНН: 02508201610067 [10:09:00]line Контрольно-Кассовый Чек [10:09:00]line ПРОДАЖА [10:09:00]line ТРК (МРК, ГНК) : 33 [10:09:00]line Товар: 2710124130 [10:09:00]line Аи-92-К-5 [10:09:00]line 14.950 * 66.90 [10:09:00]line = 1000.16 [10:09:00]line НДС 12% НСП 1% [10:09:00]line > о реализуемом товаре [10:09:00]line ОКРУГЛЕНИЕ: -0.16 [10:09:00]line ИТОГО: 1000.00 [10:09:00]line Внесено: 1000.00 [10:09:00]line СДАЧА: 0.00 [10:09:00]line НСП 1% : 8.85 [10:09:00]line НДС 12% : 106.21 [10:09:00]line Наличными: 1000.00 [10:09:00]line Безнал.: 0.00 [10:09:00]line Место: АЗС № 133 "Партнер Нефть" [10:09:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:09:00]line СНО: Общий режим [10:09:00]line Чек 66 23.10.2024 10:09 [10:09:00]line Смена: 173 ФФД: 1.0 [10:09:00]line ЗНМ: 0300000020 [10:09:00]line РНМ: 0000000000161154 [10:09:00]line Версия ККМ: v1.0 [10:09:00]line ФМ: 0000000000963323 [10:09:00]line ФД: 75333 [10:09:00]line ФПД: 10572405442951 [10:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100905&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75333&fm=10572405442951&tin=02508201610067®Number=0000000000161154&sum=100000 [10:09:00]OFD Sender: Processing packet 75333 [packets to send 15, broken 14] [10:09:00]ProducePacketName [10:09:00]name=ofd_packets/00075333 [10:09:00]OFD Sender: To server: pG, [10:09:00]CommunicateWithHost lk.salyk.kg:30040 [10:09:00]ConnectInit lk.salyk.kg [10:09:00]written 0, free lines is 4095 [10:09:00]Connected sock=10 [10:09:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D4 EF 07 01 CA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 41 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 45 26 01 00 35 04 06 00 09 9D 94 78 89 87 2C 71 37 6B 4B 58 FB 05 [10:09:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0D 9A 47 00 24 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 39 36 33 33 32 33 10 04 04 00 45 26 01 00 F4 03 04 00 1C 74 18 67 B6 04 01 00 00 CA F5 7D F5 1A 03 22 C6 [10:09:00]CommunicateWithHost err = 0 [10:09:00]CheckOFDResponse [10:09:00]1017 (14) - 77093643461234 [10:09:00]1041 (16) - 0000000000963323 [10:09:00]1040 (4) - 75333 [10:09:00]1012 (4) - 23.10.2024 03:57 [10:09:00]1206 (1) - 0 [10:09:00]OFD Sender: Remove packet 75333 [10:09:00]ProducePacketName [10:09:00]name=ofd_packets/00075333 [10:09:00]NVStorageDeleteData [10:09:01]Write to MH i2c: 01 00 00 97 92 29 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: 01 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: 01 07 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: 01 07 00 97 92 00 00 00 00 00 B8 0C F4 [10:09:01]RasterBufferAndPrint [10:09:01]line [10:09:01]line [10:09:01]line [10:09:01]line [10:09:01]line [10:09:01]written 0, free lines is 3269 [10:09:01]MH_Cut [10:09:01]Write to MH i2c: D1 01 00 9E 92 01 02 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: D1 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: D1 01 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: D1 01 00 9E 92 00 01 [10:09:01]Write to MH i2c: 01 00 00 9F 92 31 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]OFD Sender: No OFD packet to send [10:09:01]*** Cut start [10:09:01]*** Partial cut [10:09:01]*** CUTSNS_PIN = 1 [10:09:01]*** CUTSNS_PIN = 0 [10:09:02]*** Brake cut motor [10:09:02]Read from MH i2c: 01 [10:09:02]MH_I2C_Read... [10:09:02]*** Stop cut motor [10:09:02]*** Cut end [10:09:02]Read from MH i2c: 01 07 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 9F 92 00 00 00 00 00 FF 0F 46 [10:09:02]process_action close_receipt done [10:09:02]requested_data is exist [10:09:02]produce_requested_data [10:09:02]requested_item fm.sn is exist - process it [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 11 00 00 [10:09:02]Write to MH i2c: E2 08 00 A0 92 80 11 00 00 00 00 00 00 AC [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 17 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 17 00 A0 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F9 [10:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:09:02]wFMCommunicate OK [10:09:02]requested_item fd.num is exist - process it [10:09:02]SAM_PROTO_GetFieldsCounters [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 13 00 00 [10:09:02]Write to MH i2c: E2 08 00 A1 92 80 13 00 00 00 00 00 00 AF [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 62 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 62 00 A1 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 45 26 01 00 0E 04 04 00 AD 00 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 A2 [10:09:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 45 26 01 00 0E 04 04 00 AD 00 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 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_GetFieldsCounters done [10:09:02]requested_item shift.num is exist - process it [10:09:02]requested_item shift.opened is exist - process it [10:09:02]req_shift_opened [10:09:02]FM_GetShiftState [10:09:02]SAM_PROTO_GetShiftState [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 13 01 00 [10:09:02]Write to MH i2c: E2 08 00 A2 92 80 13 01 00 00 00 00 00 B1 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0E 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0E 00 A2 92 00 09 00 01 99 41 18 67 00 00 00 00 90 00 16 [10:09:02]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_GetShiftState done [10:09:02]FM_GetShiftState done [10:09:02]req_shift_opened done [10:09:02]requested_item shift.open_date is exist - process it [10:09:02]req_shift_open_date [10:09:02]req_shift_open_date done [10:09:02]produce_requested_data done [10:09:02]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75333,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:09:02]process_action_free close_receipt [10:09:02]json_value_free [10:09:02]json_value_free done [10:09:02]process_json_proto returns [10:09:02]Send response to host [10:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75333,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:09:02]free response buf [10:09:02]execute_script done [10:09:02]execute_script returns [10:09:02]free content buf [10:09:02]Sock 7.Close socket [10:09:02]Sock 7.Thread stoped [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:42]accept exits with 9 [10:10:42]New connection [10:10:42]New thread 3067321700 created [10:10:42]Thread 3067465060 joined [10:10:42]Waiting for new connection... [10:10:42] Sock 9.Parse request [10:10:42]Sock 9.Check first char [10:10:42]Sock 9.First char is OK [10:10:42]request: POST /json_proto HTTP/1.0 [10:10:42]Method: POST [10:10:42]URL: /json_proto [10:10:42]Method is POST - this is cgi request [10:10:42]url: /json_proto [10:10:42]query_string will be loaded in cgi processing [10:10:42]execute_cgi json_proto POST (null) [10:10:42]execute_cgi path=json_proto method=POST [10:10:42]POST find Content-Length [10:10:42]Host: 172.17.44.196:8080 [10:10:42]Content-Length: 683 [10:10:42]Content-Type: application/json [10:10:42] [10:10:42]POST finish read [10:10:42]Found Content-Length = 683 [10:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:42]execute_script... [10:10: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)1965307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:42]POST & json_proto [10:10:42]process_json_proto [10:10:42]json parsed OK: [10:10:42]protocol is kg_v1.0 [10:10:42]action value=close_receipt [10:10:42]process_action close_receipt [10:10:42]cmd_close_receipt [10:10:42]MH_GetDate [10:10:42]Write to MH i2c: F0 00 00 A3 92 24 [10:10:42]Write i2c OK [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: F0 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: F0 09 00 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: F0 09 00 A3 92 00 A9 CB 18 67 E7 19 F8 65 7D [10:10:42]GetLastDocTimeStamp 1729678145 [10:10:42]current date 1729678249 [10:10:42]FM_GetShiftState [10:10:42]SAM_PROTO_GetShiftState [10:10:42]wFMCommunicate request_size=4 [10:10:42]MH_SAM_APDU [10:10:42]CAPDU: 80 13 01 00 [10:10:42]Write to MH i2c: E2 08 00 A4 92 80 13 01 00 00 00 00 00 B3 [10:10:42]Write i2c OK [10:10:42]MH_I2C_Read... [10:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:42]Read from MH i2c: E2 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: E2 0E 00 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: E2 0E 00 A4 92 00 09 00 01 99 41 18 67 00 00 00 00 90 00 18 [10:10:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:10:42]wFMCommunicate OK [10:10:42]SAM_PROTO_GetShiftState done [10:10:42]FM_GetShiftState done [10:10:42]opened in 1729642905 [10:10:42]opened+sec_in_day 1729729305 [10:10:42]quantity*price = 100015 [10:10:42]sum+1 = 100017 [10:10:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 67 23.10.2024 10:10 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75334 ФПД: 188734305636172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101049&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75334&fm=188734305636172&tin=02508201610067®Number=0000000000161154&sum=100000 [10:10:44]StoreToDocumentArchive [10:10:44]shift 173 fd 75334 [10:10:44]save to /storage/0173/doc_00075334 [10:10:44]save last doc name /storage/0173/doc_00075334 to /storage/kkm_last_doc_name [10:10:44]save OK [10:10:44]Clear old archive folders... [10:10:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:44]tlvbuf is 00CA80B0 [10:10:44]SAM_PROTO_ClearQueue [10:10:44]wFMCommunicate request_size=4 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 09 00 00 [10:10:44]Write to MH i2c: E2 08 00 B1 92 80 09 00 00 00 00 00 00 B5 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 B1 92 00 90 00 B7 [10:10:44]RAPDU: 90 00 [10:10:44]wFMCommunicate OK [10:10:44]SAM_PROTO_ClearQueue done [10:10:44]KKMCreateOFDPacket [10:10:44]OFDProtocolAddRootSTLVToBuf [10:10:44]FM_MakeSignedData [10:10:44]FM_MakeSignedData [10:10:44]SAM_PROTO_SignData [10:10:44]wFMCommunicate request_size=4 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 0D 01 02 [10:10:44]Write to MH i2c: E2 08 00 B2 92 80 0D 01 02 00 00 00 00 BD [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 B2 92 00 90 00 B8 [10:10:44]RAPDU: 90 00 [10:10:44]wFMCommunicate OK [10:10:44]wFMCommunicate request_size=255 [10:10:44]MH_SAM_APDU [10:10: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A9 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 46 26 01 00 35 04 06 00 AB [10:10:44]Write to MH i2c: E2 02 01 B3 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A9 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 46 26 01 00 35 04 06 00 AB 00 00 34 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 B3 92 00 90 00 B9 [10:10:44]RAPDU: 90 00 [10:10:44]wFMCommunicate OK [10:10:44]wFMCommunicate request_size=10 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 0D 02 02 05 A7 21 3E 8F 4C [10:10:44]Write to MH i2c: E2 0D 00 B4 92 80 0D 02 02 05 00 A7 21 3E 8F 4C 00 00 AB [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 03 00 B4 92 00 90 00 BA [10:10:44]RAPDU: 90 00 [10:10:44]wFMCommunicate OK [10:10:44]wFMCommunicate request_size=4 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 0D 03 02 [10:10:44]Write to MH i2c: E2 08 00 B5 92 80 0D 03 02 00 00 00 00 C2 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 0B 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 0B 00 B5 92 00 FE 87 63 C7 5E B6 1F 6A 90 00 0F [10:10:44]RAPDU: FE 87 63 C7 5E B6 1F 6A 90 00 [10:10:44]wFMCommunicate OK [10:10:44]SAM_PROTO_SignData done [10:10:44]FM_MakeSignedData done [10:10:44]CreateOFDProtocolMessage [10:10:44]wFMCommunicate request_size=4 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 11 00 00 [10:10:44]Write to MH i2c: E2 08 00 B6 92 80 11 00 00 00 00 00 00 C2 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 17 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 17 00 B6 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0F [10:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:10:44]wFMCommunicate OK [10:10:44]CreateOFDProtocolMessage done [10:10:44]OFDSenderStorePacket 75334 [10:10:44]StoreOFDPacket docnum=75334 [10:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 ED F4 07 01 47 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A9 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 46 26 01 00 35 04 06 00 AB A7 21 3E 8F 4C FE 87 63 C7 5E B6 1F 6A [10:10:44]CheckFolder [10:10:44]dirname=/storage/ofd_packets [10:10:44]CheckFolder done [10:10:44]ProducePacketName [10:10:44]name=ofd_packets/00075334 [10:10:44]NVStorageSaveData ofd_packets/00075334 [10:10:44]File name is /storage/ofd_packets/00075334 [10:10:44]Write 301 bytes [10:10:44]NVStorageSaveData done [10:10:44]OFDSenderStorePacket done [10:10:44]KKMCreateOFDPacket done [10:10:44]NVStorageSaveData kkm_last_timestamp [10:10:44]File name is /storage/kkm_last_timestamp [10:10:44]Write 4 bytes [10:10:44]NVStorageSaveData done [10:10:44]ExternCall_PrintAddStr [10:10:44]wPrintStart [10:10:44]Write to MH i2c: 01 00 00 B7 92 49 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: 01 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: 01 07 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: 01 07 00 B7 92 00 00 00 00 00 FF 0F 5E [10:10:44]RasterBufferAndPrint [10:10:44]line Счет N : (1)1965307 [10:10:44]line ИНН: 02508201610067 [10:10:44]line Контрольно-Кассовый Чек [10:10:44]line ПРОДАЖА [10:10:44]line ТРК (МРК, ГНК) : 33 [10:10:44]line Товар: 2710124130 [10:10:44]line Аи-92-К-5 [10:10:44]line 14.950 * 66.90 [10:10:44]line = 1000.16 [10:10:44]line НДС 12% НСП 1% [10:10:44]line > о реализуемом товаре [10:10:44]line ОКРУГЛЕНИЕ: -0.16 [10:10:44]line ИТОГО: 1000.00 [10:10:44]line Внесено: 1000.00 [10:10:44]line СДАЧА: 0.00 [10:10:44]line НСП 1% : 8.85 [10:10:44]line НДС 12% : 106.21 [10:10:44]line Наличными: 1000.00 [10:10:44]line Безнал.: 0.00 [10:10:44]line Место: АЗС № 133 "Партнер Нефть" [10:10:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:10:44]line СНО: Общий режим [10:10:44]line Чек 67 23.10.2024 10:10 [10:10:44]line Смена: 173 ФФД: 1.0 [10:10:44]line ЗНМ: 0300000020 [10:10:44]line РНМ: 0000000000161154 [10:10:44]line Версия ККМ: v1.0 [10:10:44]line ФМ: 0000000000963323 [10:10:44]line ФД: 75334 [10:10:44]line ФПД: 188734305636172 [10:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101049&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75334&fm=188734305636172&tin=02508201610067®Number=0000000000161154&sum=100000 [10:10:44]OFD Sender: Processing packet 75334 [packets to send 15, broken 14] [10:10:44]ProducePacketName [10:10:44]name=ofd_packets/00075334 [10:10:44]OFD Sender: To server: pG, [10:10:44]CommunicateWithHost lk.salyk.kg:30040 [10:10:44]ConnectInit lk.salyk.kg [10:10:44]written 0, free lines is 4095 [10:10:45]Connected sock=7 [10:10:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 ED F4 07 01 47 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 A9 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 46 26 01 00 35 04 06 00 AB A7 21 3E 8F 4C FE 87 63 C7 5E B6 1F 6A [10:10:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F5 B5 47 00 9B 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 39 36 33 33 32 33 10 04 04 00 46 26 01 00 F4 03 04 00 85 74 18 67 B6 04 01 00 00 93 8E 76 8C 07 B8 42 E2 [10:10:45]CommunicateWithHost err = 0 [10:10:45]CheckOFDResponse [10:10:45]1017 (14) - 77093643461234 [10:10:45]1041 (16) - 0000000000963323 [10:10:45]1040 (4) - 75334 [10:10:45]1012 (4) - 23.10.2024 03:59 [10:10:45]1206 (1) - 0 [10:10:45]OFD Sender: Remove packet 75334 [10:10:45]ProducePacketName [10:10:45]name=ofd_packets/00075334 [10:10:45]NVStorageDeleteData [10:10:45]Write to MH i2c: 01 00 00 E1 92 73 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 07 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 07 00 E1 92 00 00 00 00 00 B2 0C 38 [10:10:45]RasterBufferAndPrint [10:10:45]line [10:10:45]line [10:10:45]line [10:10:45]line [10:10:45]line [10:10:45]written 0, free lines is 3256 [10:10:45]MH_Cut [10:10:45]Write to MH i2c: D1 01 00 E8 92 01 4C [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: D1 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: D1 01 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: D1 01 00 E8 92 00 4B [10:10:45]Write to MH i2c: 01 00 00 E9 92 7B [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]OFD Sender: No OFD packet to send [10:10:46]*** Cut start [10:10:46]*** Partial cut [10:10:46]*** CUTSNS_PIN = 1 [10:10:46]*** CUTSNS_PIN = 0 [10:10:46]*** Brake cut motor [10:10:46]Read from MH i2c: 01 [10:10:46]MH_I2C_Read... [10:10:46]*** Stop cut motor [10:10:46]*** Cut end [10:10:46]Read from MH i2c: 01 07 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 07 00 E9 92 00 00 00 00 00 FF 0F 90 [10:10:46]process_action close_receipt done [10:10:46]requested_data is exist [10:10:46]produce_requested_data [10:10:46]requested_item fm.sn is exist - process it [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 11 00 00 [10:10:46]Write to MH i2c: E2 08 00 EA 92 80 11 00 00 00 00 00 00 F6 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 17 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 17 00 EA 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 43 [10:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:10:46]wFMCommunicate OK [10:10:46]requested_item fd.num is exist - process it [10:10:46]SAM_PROTO_GetFieldsCounters [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 13 00 00 [10:10:46]Write to MH i2c: E2 08 00 EB 92 80 13 00 00 00 00 00 00 F9 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 62 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 62 00 EB 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 46 26 01 00 0E 04 04 00 AD 00 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 F0 [10:10:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 46 26 01 00 0E 04 04 00 AD 00 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 [10:10:47]wFMCommunicate OK [10:10:47]SAM_PROTO_GetFieldsCounters done [10:10:47]requested_item shift.num is exist - process it [10:10:47]requested_item shift.opened is exist - process it [10:10:47]req_shift_opened [10:10:47]FM_GetShiftState [10:10:47]SAM_PROTO_GetShiftState [10:10:47]wFMCommunicate request_size=4 [10:10:47]MH_SAM_APDU [10:10:47]CAPDU: 80 13 01 00 [10:10:47]Write to MH i2c: E2 08 00 EC 92 80 13 01 00 00 00 00 00 FB [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 0E 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 0E 00 EC 92 00 09 00 01 99 41 18 67 00 00 00 00 90 00 60 [10:10:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:10:47]wFMCommunicate OK [10:10:47]SAM_PROTO_GetShiftState done [10:10:47]FM_GetShiftState done [10:10:47]req_shift_opened done [10:10:47]requested_item shift.open_date is exist - process it [10:10:47]req_shift_open_date [10:10:47]req_shift_open_date done [10:10:47]produce_requested_data done [10:10:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75334,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:10:47]process_action_free close_receipt [10:10:47]json_value_free [10:10:47]json_value_free done [10:10:47]process_json_proto returns [10:10:47]Send response to host [10:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75334,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:10:47]free response buf [10:10:47]execute_script done [10:10:47]execute_script returns [10:10:47]free content buf [10:10:47]Sock 9.Close socket [10:10:47]Sock 9.Thread stoped [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:04]accept exits with 10 [10:11:04]New connection [10:11:04]New thread 3067465060 created [10:11:04]Thread 3067321700 joined [10:11:04]Waiting for new connection... [10:11:04] Sock 10.Parse request [10:11:04]Sock 10.Check first char [10:11:04]Sock 10.First char is OK [10:11:04]request: POST /json_proto HTTP/1.0 [10:11:04]Method: POST [10:11:04]URL: /json_proto [10:11:04]Method is POST - this is cgi request [10:11:04]url: /json_proto [10:11:04]query_string will be loaded in cgi processing [10:11:04]execute_cgi json_proto POST (null) [10:11:04]execute_cgi path=json_proto method=POST [10:11:04]POST find Content-Length [10:11:04]Host: 172.17.44.196:8080 [10:11:04]Content-Length: 680 [10:11:04]Content-Type: application/json [10:11:04] [10:11:04]POST finish read [10:11:04]Found Content-Length = 680 [10:11:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965309", "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" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [10:11:04]execute_script... [10:11: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)1965309", "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" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [10:11:04]POST & json_proto [10:11:04]process_json_proto [10:11:04]json parsed OK: [10:11:04]protocol is kg_v1.0 [10:11:04]action value=close_receipt [10:11:04]process_action close_receipt [10:11:04]cmd_close_receipt [10:11:04]MH_GetDate [10:11:04]Write to MH i2c: F0 00 00 ED 92 6E [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: F0 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: F0 09 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: F0 09 00 ED 92 00 BF CB 18 67 E7 19 F8 65 DD [10:11:04]GetLastDocTimeStamp 1729678249 [10:11:04]current date 1729678271 [10:11:04]FM_GetShiftState [10:11:04]SAM_PROTO_GetShiftState [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 13 01 00 [10:11:04]Write to MH i2c: E2 08 00 EE 92 80 13 01 00 00 00 00 00 FD [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 0E 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 0E 00 EE 92 00 09 00 01 99 41 18 67 00 00 00 00 90 00 62 [10:11:04]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:11:04]wFMCommunicate OK [10:11:04]SAM_PROTO_GetShiftState done [10:11:04]FM_GetShiftState done [10:11:04]opened in 1729642905 [10:11:04]opened+sec_in_day 1729729305 [10:11:04]quantity*price = 120015 [10:11:04]sum+1 = 120016 [10:11:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 68 23.10.2024 10:11 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75335 ФПД: 121500125229492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101111&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75335&fm=121500125229492&tin=02508201610067®Number=0000000000161154&sum=120000 [10:11:05]StoreToDocumentArchive [10:11:05]shift 173 fd 75335 [10:11:05]save to /storage/0173/doc_00075335 [10:11:05]save last doc name /storage/0173/doc_00075335 to /storage/kkm_last_doc_name [10:11:05]save OK [10:11:05]Clear old archive folders... [10:11:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:11:05]tlvbuf is 00CD1120 [10:11:05]SAM_PROTO_ClearQueue [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 09 00 00 [10:11:05]Write to MH i2c: E2 08 00 FB 92 80 09 00 00 00 00 00 00 FF [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 FB 92 00 90 00 01 [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]SAM_PROTO_ClearQueue done [10:11:05]KKMCreateOFDPacket [10:11:05]OFDProtocolAddRootSTLVToBuf [10:11:05]FM_MakeSignedData [10:11:05]FM_MakeSignedData [10:11:05]SAM_PROTO_SignData [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 0D 01 02 [10:11:05]Write to MH i2c: E2 08 00 FC 92 80 0D 01 02 00 00 00 00 07 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 FC 92 00 90 00 02 [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]wFMCommunicate request_size=255 [10:11:05]MH_SAM_APDU [10:11:05]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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 44 00 00 00 F4 03 04 00 BF CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 47 26 01 00 35 04 06 00 6E 80 F3 CD [10:11:06]Write to MH i2c: E2 02 01 FD 92 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 44 00 00 00 F4 03 04 00 BF CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 47 26 01 00 35 04 06 00 6E 80 F3 CD 00 00 03 [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:06]Read from MH i2c: E2 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: E2 03 00 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: E2 03 00 FD 92 00 90 00 03 [10:11:06]RAPDU: 90 00 [10:11:06]wFMCommunicate OK [10:11:06]wFMCommunicate request_size=7 [10:11:06]MH_SAM_APDU [10:11:06]CAPDU: 80 0D 02 02 02 F1 B4 [10:11:06]Write to MH i2c: E2 0A 00 FE 92 80 0D 02 02 02 00 F1 B4 00 00 B3 [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:06]Read from MH i2c: E2 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: E2 03 00 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: E2 03 00 FE 92 00 90 00 04 [10:11:06]RAPDU: 90 00 [10:11:06]wFMCommunicate OK [10:11:06]wFMCommunicate request_size=4 [10:11:06]MH_SAM_APDU [10:11:06]CAPDU: 80 0D 03 02 [10:11:06]Write to MH i2c: E2 08 00 FF 92 80 0D 03 02 00 00 00 00 0C [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:06]Read from MH i2c: E2 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: E2 0B 00 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: E2 0B 00 FF 92 00 97 5B C8 20 0F 46 8C 31 90 00 F9 [10:11:06]RAPDU: 97 5B C8 20 0F 46 8C 31 90 00 [10:11:06]wFMCommunicate OK [10:11:06]SAM_PROTO_SignData done [10:11:06]FM_MakeSignedData done [10:11:06]CreateOFDProtocolMessage [10:11:06]wFMCommunicate request_size=4 [10:11:06]MH_SAM_APDU [10:11:06]CAPDU: 80 11 00 00 [10:11:06]Write to MH i2c: E2 08 00 00 93 80 11 00 00 00 00 00 00 0D [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:06]Read from MH i2c: E2 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: E2 17 00 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: E2 17 00 00 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5A [10:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:11:06]wFMCommunicate OK [10:11:06]CreateOFDProtocolMessage done [10:11:06]OFDSenderStorePacket 75335 [10:11:06]StoreOFDPacket docnum=75335 [10:11:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 85 3F 04 01 F9 46 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 44 00 00 00 F4 03 04 00 BF CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 47 26 01 00 35 04 06 00 6E 80 F3 CD F1 B4 97 5B C8 20 0F 46 8C 31 [10:11:06]CheckFolder [10:11:06]dirname=/storage/ofd_packets [10:11:06]CheckFolder done [10:11:06]ProducePacketName [10:11:06]name=ofd_packets/00075335 [10:11:06]NVStorageSaveData ofd_packets/00075335 [10:11:06]File name is /storage/ofd_packets/00075335 [10:11:06]Write 298 bytes [10:11:06]NVStorageSaveData done [10:11:06]OFDSenderStorePacket done [10:11:06]KKMCreateOFDPacket done [10:11:06]NVStorageSaveData kkm_last_timestamp [10:11:06]File name is /storage/kkm_last_timestamp [10:11:06]Write 4 bytes [10:11:06]NVStorageSaveData done [10:11:06]ExternCall_PrintAddStr [10:11:06]wPrintStart [10:11:06]Write to MH i2c: 01 00 00 01 93 94 [10:11:06]OFD Sender: Processing packet 75335 [packets to send 15, broken 14] [10:11:06]ProducePacketName [10:11:06]name=ofd_packets/00075335 [10:11:06]OFD Sender: To server: pG, [10:11:06]CommunicateWithHost lk.salyk.kg:30040 [10:11:06]ConnectInit lk.salyk.kg [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: 01 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: 01 07 00 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: 01 07 00 01 93 00 00 00 00 00 FF 0F A9 [10:11:06]RasterBufferAndPrint [10:11:06]line Счет N : (1)1965309 [10:11:06]line ИНН: 02508201610067 [10:11:06]line Контрольно-Кассовый Чек [10:11:06]line ПРОДАЖА [10:11:06]line ТРК (МРК, ГНК) : 61 [10:11:06]line Товар: 2710194210 [10:11:06]line ДТ-К-5 [10:11:06]line 15.750 * 76.20 [10:11:06]line = 1200.15 [10:11:06]line НДС 12% НСП 1% [10:11:06]line > о реализуемом товаре [10:11:06]line ОКРУГЛЕНИЕ: -0.15 [10:11:06]line ИТОГО: 1200.00 [10:11:06]line Внесено: 1200.00 [10:11:06]line СДАЧА: 0.00 [10:11:06]line НСП 1% : 10.62 [10:11:06]line НДС 12% : 127.45 [10:11:06]line Наличными: 1200.00 [10:11:06]line Безнал.: 0.00 [10:11:06]line Место: АЗС № 133 "Партнер Нефть" [10:11:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:11:06]line СНО: Общий режим [10:11:06]line Чек 68 23.10.2024 10:11 [10:11:06]line Смена: 173 ФФД: 1.0 [10:11:06]line ЗНМ: 0300000020 [10:11:06]line РНМ: 0000000000161154 [10:11:06]line Версия ККМ: v1.0 [10:11:06]line ФМ: 0000000000963323 [10:11:06]line ФД: 75335 [10:11:06]line ФПД: 121500125229492 [10:11:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101111&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75335&fm=121500125229492&tin=02508201610067®Number=0000000000161154&sum=120000 [10:11:06]Connected sock=9 [10:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 85 3F 04 01 F9 46 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 44 00 00 00 F4 03 04 00 BF CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 47 26 01 00 35 04 06 00 6E 80 written 0, free lines is 4095 [10:11:06]F3 CD F1 B4 97 5B C8 20 0F 46 8C 31 [10:11:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8B 9E 47 00 6F 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 47 26 01 00 F4 03 04 00 9A 74 18 67 B6 04 01 00 00 7E AD 5A 5D EB 6F 0C 58 [10:11:07]CommunicateWithHost err = 0 [10:11:07]CheckOFDResponse [10:11:07]1017 (14) - 77093643461234 [10:11:07]1041 (16) - 0000000000963323 [10:11:07]1040 (4) - 75335 [10:11:07]1012 (4) - 23.10.2024 03:59 [10:11:07]1206 (1) - 0 [10:11:07]OFD Sender: Remove packet 75335 [10:11:07]ProducePacketName [10:11:07]name=ofd_packets/00075335 [10:11:07]NVStorageDeleteData [10:11:07]Write to MH i2c: 01 00 00 2B 93 BE [10:11:07]Write i2c OK [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: 01 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: 01 07 00 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: 01 07 00 2B 93 00 00 00 00 00 A9 0C 7A [10:11:07]RasterBufferAndPrint [10:11:07]line [10:11:07]line [10:11:07]line [10:11:07]line [10:11:07]line [10:11:07]written 0, free lines is 3246 [10:11:07]MH_Cut [10:11:07]Write to MH i2c: D1 01 00 32 93 01 97 [10:11:07]Write i2c OK [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: D1 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: D1 01 00 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: D1 01 00 32 93 00 96 [10:11:07]Write to MH i2c: 01 00 00 33 93 C6 [10:11:07]Write i2c OK [10:11:07]MH_I2C_Read... [10:11:07]OFD Sender: No OFD packet to send [10:11:08]*** Cut start [10:11:08]*** Partial cut [10:11:08]*** CUTSNS_PIN = 1 [10:11:08]*** CUTSNS_PIN = 0 [10:11:08]*** Brake cut motor [10:11:08]Read from MH i2c: 01 [10:11:08]MH_I2C_Read... [10:11:08]*** Stop cut motor [10:11:08]*** Cut end [10:11:08]Read from MH i2c: 01 07 00 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: 01 07 00 33 93 00 00 00 00 00 FF 0F DB [10:11:08]process_action close_receipt done [10:11:08]requested_data is exist [10:11:08]produce_requested_data [10:11:08]requested_item fm.sn is exist - process it [10:11:08]wFMCommunicate request_size=4 [10:11:08]MH_SAM_APDU [10:11:08]CAPDU: 80 11 00 00 [10:11:08]Write to MH i2c: E2 08 00 34 93 80 11 00 00 00 00 00 00 41 [10:11:08]Write i2c OK [10:11:08]MH_I2C_Read... [10:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:08]Read from MH i2c: E2 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 17 00 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 17 00 34 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8E [10:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:11:08]wFMCommunicate OK [10:11:08]requested_item fd.num is exist - process it [10:11:08]SAM_PROTO_GetFieldsCounters [10:11:08]wFMCommunicate request_size=4 [10:11:08]MH_SAM_APDU [10:11:08]CAPDU: 80 13 00 00 [10:11:08]Write to MH i2c: E2 08 00 35 93 80 13 00 00 00 00 00 00 44 [10:11:08]Write i2c OK [10:11:08]MH_I2C_Read... [10:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:08]Read from MH i2c: E2 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 62 00 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 62 00 35 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 47 26 01 00 0E 04 04 00 AD 00 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 3F [10:11:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 47 26 01 00 0E 04 04 00 AD 00 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 [10:11:08]wFMCommunicate OK [10:11:08]SAM_PROTO_GetFieldsCounters done [10:11:08]requested_item shift.num is exist - process it [10:11:08]requested_item shift.opened is exist - process it [10:11:08]req_shift_opened [10:11:08]FM_GetShiftState [10:11:08]SAM_PROTO_GetShiftState [10:11:08]wFMCommunicate request_size=4 [10:11:08]MH_SAM_APDU [10:11:08]CAPDU: 80 13 01 00 [10:11:08]Write to MH i2c: E2 08 00 36 93 80 13 01 00 00 00 00 00 46 [10:11:08]Write i2c OK [10:11:08]MH_I2C_Read... [10:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:09]Read from MH i2c: E2 [10:11:09]MH_I2C_Read... [10:11:09]Read from MH i2c: E2 0E 00 [10:11:09]MH_I2C_Read... [10:11:09]Read from MH i2c: E2 0E 00 36 93 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AB [10:11:09]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:11:09]wFMCommunicate OK [10:11:09]SAM_PROTO_GetShiftState done [10:11:09]FM_GetShiftState done [10:11:09]req_shift_opened done [10:11:09]requested_item shift.open_date is exist - process it [10:11:09]req_shift_open_date [10:11:09]req_shift_open_date done [10:11:09]produce_requested_data done [10:11:09]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75335,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:11:09]process_action_free close_receipt [10:11:09]json_value_free [10:11:09]json_value_free done [10:11:09]process_json_proto returns [10:11:09]Send response to host [10:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75335,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:11:09]free response buf [10:11:09]execute_script done [10:11:09]execute_script returns [10:11:09]free content buf [10:11:09]Sock 10.Close socket [10:11:09]Sock 10.Thread stoped [10:11:09]accept exits with 7 [10:11:09]New connection [10:11:09]New thread 3067321700 created [10:11:09]Thread 3067465060 joined [10:11:09]Waiting for new connection... [10:11:09] Sock 7.Parse request [10:11:09]Sock 7.Check first char [10:11:09]Sock 7.First char is OK [10:11:09]request: POST /json_proto HTTP/1.0 [10:11:09]Method: POST [10:11:09]URL: /json_proto [10:11:09]Method is POST - this is cgi request [10:11:09]url: /json_proto [10:11:09]query_string will be loaded in cgi processing [10:11:09]execute_cgi json_proto POST (null) [10:11:09]execute_cgi path=json_proto method=POST [10:11:09]POST find Content-Length [10:11:09]Host: 172.17.44.196:8080 [10:11:09]Content-Length: 755 [10:11:09]Content-Type: application/json [10:11:09] [10:11:09]POST finish read [10:11:09]Found Content-Length = 755 [10:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30138210", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:09]execute_script... [10:11: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)1965306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30138210", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:09]POST & json_proto [10:11:09]process_json_proto [10:11:09]json parsed OK: [10:11:09]protocol is kg_v1.0 [10:11:09]action value=close_receipt [10:11:09]process_action close_receipt [10:11:09]cmd_close_receipt [10:11:09]MH_GetDate [10:11:09]Write to MH i2c: F0 00 00 37 93 B9 [10:11:09]Write i2c OK [10:11:09]MH_I2C_Read... [10:11:09]Read from MH i2c: F0 [10:11:09]MH_I2C_Read... [10:11:09]Read from MH i2c: F0 09 00 [10:11:09]MH_I2C_Read... [10:11:09]Read from MH i2c: F0 09 00 37 93 00 C4 CB 18 67 E7 19 F8 65 2D [10:11:09]GetLastDocTimeStamp 1729678271 [10:11:09]current date 1729678276 [10:11:09]FM_GetShiftState [10:11:09]SAM_PROTO_GetShiftState [10:11:09]wFMCommunicate request_size=4 [10:11:09]MH_SAM_APDU [10:11:09]CAPDU: 80 13 01 00 [10:11:09]Write to MH i2c: E2 08 00 38 93 80 13 01 00 00 00 00 00 48 [10:11:09]Write i2c OK [10:11:09]MH_I2C_Read... [10:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:09]Read from MH i2c: E2 [10:11:09]MH_I2C_Read... [10:11:09]Read from MH i2c: E2 0E 00 [10:11:09]MH_I2C_Read... [10:11:09]Read from MH i2c: E2 0E 00 38 93 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AD [10:11:09]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:11:09]wFMCommunicate OK [10:11:09]SAM_PROTO_GetShiftState done [10:11:09]FM_GetShiftState done [10:11:09]opened in 1729642905 [10:11:09]opened+sec_in_day 1729729305 [10:11:09]quantity*price = 0 [10:11:09]sum+1 = 1 [10:11:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 69 23.10.2024 10:11 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30138210 ФМ: 0000000000963323 ФД: 75336 ФПД: 272417920986890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101116&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75336&fm=272417920986890&tin=02508201610067®Number=0000000000161154&sum=0 [10:11:10]StoreToDocumentArchive [10:11:10]shift 173 fd 75336 [10:11:10]save to /storage/0173/doc_00075336 [10:11:10]save last doc name /storage/0173/doc_00075336 to /storage/kkm_last_doc_name [10:11:10]save OK [10:11:10]Clear old archive folders... [10:11:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:10]tlvbuf is B6E258D0 [10:11:10]SAM_PROTO_ClearQueue [10:11:10]wFMCommunicate request_size=4 [10:11:10]MH_SAM_APDU [10:11:10]CAPDU: 80 09 00 00 [10:11:10]Write to MH i2c: E2 08 00 45 93 80 09 00 00 00 00 00 00 4A [10:11:10]Write i2c OK [10:11:10]MH_I2C_Read... [10:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:10]Read from MH i2c: E2 [10:11:10]MH_I2C_Read... [10:11:10]Read from MH i2c: E2 03 00 [10:11:10]MH_I2C_Read... [10:11:10]Read from MH i2c: E2 03 00 45 93 00 90 00 4C [10:11:10]RAPDU: 90 00 [10:11:10]wFMCommunicate OK [10:11:10]SAM_PROTO_ClearQueue done [10:11:10]KKMCreateOFDPacket [10:11:10]OFDProtocolAddRootSTLVToBuf [10:11:10]FM_MakeSignedData [10:11:10]FM_MakeSignedData [10:11:10]SAM_PROTO_SignData [10:11:10]wFMCommunicate request_size=4 [10:11:10]MH_SAM_APDU [10:11:10]CAPDU: 80 0D 01 02 [10:11:10]Write to MH i2c: E2 08 00 46 93 80 0D 01 02 00 00 00 00 52 [10:11:10]Write i2c OK [10:11:10]MH_I2C_Read... [10:11:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:10]Read from MH i2c: E2 [10:11:10]MH_I2C_Read... [10:11:10]Read from MH i2c: E2 03 00 [10:11:10]MH_I2C_Read... [10:11:10]Read from MH i2c: E2 03 00 46 93 00 90 00 4D [10:11:10]RAPDU: 90 00 [10:11:10]wFMCommunicate OK [10:11:10]wFMCommunicate request_size=255 [10:11:10]MH_SAM_APDU [10:11: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C4 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 48 26 01 00 35 04 06 00 F7 [10:11:11]Write to MH i2c: E2 02 01 47 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C4 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 48 26 01 00 35 04 06 00 F7 00 00 5A [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:11]Read from MH i2c: E2 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 47 93 00 90 00 4E [10:11:11]RAPDU: 90 00 [10:11:11]wFMCommunicate OK [10:11:11]wFMCommunicate request_size=10 [10:11:11]MH_SAM_APDU [10:11:11]CAPDU: 80 0D 02 02 05 C3 3D 69 2F 0A [10:11:11]Write to MH i2c: E2 0D 00 48 93 80 0D 02 02 05 00 C3 3D 69 2F 0A 00 00 01 [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:11]Read from MH i2c: E2 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 48 93 00 90 00 4F [10:11:11]RAPDU: 90 00 [10:11:11]wFMCommunicate OK [10:11:11]wFMCommunicate request_size=4 [10:11:11]MH_SAM_APDU [10:11:11]CAPDU: 80 0D 03 02 [10:11:11]Write to MH i2c: E2 08 00 49 93 80 0D 03 02 00 00 00 00 57 [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:11]Read from MH i2c: E2 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 0B 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 0B 00 49 93 00 0E 64 8B 9D 26 21 4F F7 90 00 7F [10:11:11]RAPDU: 0E 64 8B 9D 26 21 4F F7 90 00 [10:11:11]wFMCommunicate OK [10:11:11]SAM_PROTO_SignData done [10:11:11]FM_MakeSignedData done [10:11:11]CreateOFDProtocolMessage [10:11:11]wFMCommunicate request_size=4 [10:11:11]MH_SAM_APDU [10:11:11]CAPDU: 80 11 00 00 [10:11:11]Write to MH i2c: E2 08 00 4A 93 80 11 00 00 00 00 00 00 57 [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:11]Read from MH i2c: E2 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 17 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 17 00 4A 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A4 [10:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:11:11]wFMCommunicate OK [10:11:11]CreateOFDProtocolMessage done [10:11:11]OFDSenderStorePacket 75336 [10:11:11]StoreOFDPacket docnum=75336 [10:11:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 85 AA 07 01 DE A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C4 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 48 26 01 00 35 04 06 00 F7 C3 3D 69 2F 0A 0E 64 8B 9D 26 21 4F F7 [10:11:11]CheckFolder [10:11:11]dirname=/storage/ofd_packets [10:11:11]CheckFolder done [10:11:11]ProducePacketName [10:11:11]name=ofd_packets/00075336 [10:11:11]NVStorageSaveData ofd_packets/00075336 [10:11:11]File name is /storage/ofd_packets/00075336 [10:11:11]Write 301 bytes [10:11:11]NVStorageSaveData done [10:11:11]OFDSenderStorePacket done [10:11:11]KKMCreateOFDPacket done [10:11:11]NVStorageSaveData kkm_last_timestamp [10:11:11]File name is /storage/kkm_last_timestamp [10:11:11]Write 4 bytes [10:11:11]NVStorageSaveData done [10:11:11]ExternCall_PrintAddStr [10:11:11]wPrintStart [10:11:11]Write to MH i2c: 01 00 00 4B 93 DE [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: 01 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: 01 07 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: 01 07 00 4B 93 00 00 00 00 00 FF 0F F3 [10:11:11]RasterBufferAndPrint [10:11:11]line Счет N : (1)1965306 [10:11:11]line ИНН: 02508201610067 [10:11:11]line Контрольно-Кассовый Чек [10:11:11]line ПРОДАЖА [10:11:11]line ТРК (МРК, ГНК) : 43 [10:11:11]line Товар: 2710124130 [10:11:11]line Аи-92-К-5 [10:11:11]line 30.000 * 0.00 [10:11:11]line = 0.00 [10:11:11]line НДС 12% НСП 1% [10:11:11]line > о реализуемом товаре [10:11:11]line ИТОГО: 0.00 [10:11:11]line НСП 1% : 0.00 [10:11:11]line НДС 12% : 0.00 [10:11:11]line Наличными: 0.00 [10:11:11]line Безнал.: 0.00 [10:11:11]line Место: АЗС № 133 "Партнер Нефть" [10:11:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:11:11]line СНО: Общий режим [10:11:11]line Чек 69 23.10.2024 10:11 [10:11:11]line Смена: 173 ФФД: 1.0 [10:11:11]line ЗНМ: 0300000020 [10:11:11]line РНМ: 0000000000161154 [10:11:11]line Версия ККМ: v1.0 [10:11:11]line Талоны: ТК ГПНА Online [10:11:11]line 30138210 [10:11:11]line ФМ: 0000000000963323 [10:11:11]line ФД: 75336 [10:11:11]line ФПД: 272417920986890 [10:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101116&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75336&fm=272417920986890&tin=02508201610067®Number=0000000000161154&sum=0 [10:11:11]written 0, free lines is 4095 [10:11:11]OFD Sender: Processing packet 75336 [packets to send 15, broken 14] [10:11:11]ProducePacketName [10:11:11]name=ofd_packets/00075336 [10:11:11]OFD Sender: To server: pG, [10:11:11]CommunicateWithHost lk.salyk.kg:30040 [10:11:11]ConnectInit lk.salyk.kg [10:11:11]Connected sock=9 [10:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 85 AA 07 01 DE A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C4 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 48 26 01 00 35 04 06 00 F7 C3 3D 69 2F 0A 0E 64 8B 9D 26 21 4F F7 [10:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FC CE 47 00 BA D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 48 26 01 00 F4 03 04 00 9F 74 18 67 B6 04 01 00 00 FA E0 80 EE 42 4F 2B 0B [10:11:11]CommunicateWithHost err = 0 [10:11:11]CheckOFDResponse [10:11:11]1017 (14) - 77093643461234 [10:11:11]1041 (16) - 0000000000963323 [10:11:11]1040 (4) - 75336 [10:11:11]1012 (4) - 23.10.2024 03:59 [10:11:11]1206 (1) - 0 [10:11:11]OFD Sender: Remove packet 75336 [10:11:11]ProducePacketName [10:11:11]name=ofd_packets/00075336 [10:11:11]NVStorageDeleteData [10:11:11]Write to MH i2c: 01 00 00 74 93 07 [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: 01 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: 01 07 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: 01 07 00 74 93 00 00 00 00 00 D3 0C ED [10:11:11]RasterBufferAndPrint [10:11:11]line [10:11:11]line [10:11:11]line [10:11:11]line [10:11:11]line [10:11:11]written 0, free lines is 3295 [10:11:11]MH_Cut [10:11:11]Write to MH i2c: D1 01 00 7B 93 01 E0 [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: D1 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: D1 01 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: D1 01 00 7B 93 00 DF [10:11:11]Write to MH i2c: 01 00 00 7C 93 0F [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:12]OFD Sender: No OFD packet to send [10:11:12]*** Cut start [10:11:12]*** Partial cut [10:11:12]*** CUTSNS_PIN = 1 [10:11:12]*** CUTSNS_PIN = 0 [10:11:13]*** Brake cut motor [10:11:13]Read from MH i2c: 01 [10:11:13]MH_I2C_Read... [10:11:13]*** Stop cut motor [10:11:13]*** Cut end [10:11:13]Read from MH i2c: 01 07 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: 01 07 00 7C 93 00 00 00 00 00 FF 0F 24 [10:11:13]process_action close_receipt done [10:11:13]requested_data is exist [10:11:13]produce_requested_data [10:11:13]requested_item fm.sn is exist - process it [10:11:13]wFMCommunicate request_size=4 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 11 00 00 [10:11:13]Write to MH i2c: E2 08 00 7D 93 80 11 00 00 00 00 00 00 8A [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 17 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 17 00 7D 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D7 [10:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:11:13]wFMCommunicate OK [10:11:13]requested_item fd.num is exist - process it [10:11:13]SAM_PROTO_GetFieldsCounters [10:11:13]wFMCommunicate request_size=4 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 13 00 00 [10:11:13]Write to MH i2c: E2 08 00 7E 93 80 13 00 00 00 00 00 00 8D [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 62 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 62 00 7E 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 48 26 01 00 0E 04 04 00 AD 00 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 8C [10:11:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 48 26 01 00 0E 04 04 00 AD 00 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 [10:11:13]wFMCommunicate OK [10:11:13]SAM_PROTO_GetFieldsCounters done [10:11:13]requested_item shift.num is exist - process it [10:11:13]requested_item shift.opened is exist - process it [10:11:13]req_shift_opened [10:11:13]FM_GetShiftState [10:11:13]SAM_PROTO_GetShiftState [10:11:13]wFMCommunicate request_size=4 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 13 01 00 [10:11:13]Write to MH i2c: E2 08 00 7F 93 80 13 01 00 00 00 00 00 8F [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 0E 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 0E 00 7F 93 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F4 [10:11:13]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:11:13]wFMCommunicate OK [10:11:13]SAM_PROTO_GetShiftState done [10:11:13]FM_GetShiftState done [10:11:13]req_shift_opened done [10:11:13]requested_item shift.open_date is exist - process it [10:11:13]req_shift_open_date [10:11:13]req_shift_open_date done [10:11:13]produce_requested_data done [10:11:13]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75336,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:11:13]process_action_free close_receipt [10:11:13]json_value_free [10:11:13]json_value_free done [10:11:13]process_json_proto returns [10:11:13]Send response to host [10:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75336,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:11:13]free response buf [10:11:13]execute_script done [10:11:13]execute_script returns [10:11:13]free content buf [10:11:13]Sock 7.Close socket [10:11:13]Sock 7.Thread stoped [10:11:14]accept exits with 10 [10:11:14]New connection [10:11:14]New thread 3067465060 created [10:11:14]Thread 3067321700 joined [10:11:14]Waiting for new connection... [10:11:14] Sock 10.Parse request [10:11:14]Sock 10.Check first char [10:11:14]Sock 10.First char is OK [10:11:14]request: POST /json_proto HTTP/1.0 [10:11:14]Method: POST [10:11:14]URL: /json_proto [10:11:14]Method is POST - this is cgi request [10:11:14]url: /json_proto [10:11:14]query_string will be loaded in cgi processing [10:11:14]execute_cgi json_proto POST (null) [10:11:14]execute_cgi path=json_proto method=POST [10:11:14]POST find Content-Length [10:11:14]Host: 172.17.44.196:8080 [10:11:14]Content-Length: 679 [10:11:14]Content-Type: application/json [10:11:14] [10:11:14]POST finish read [10:11:14]Found Content-Length = 679 [10:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [10:11:14]execute_script... [10:11: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)1965310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [10:11:14]POST & json_proto [10:11:14]process_json_proto [10:11:14]json parsed OK: [10:11:14]protocol is kg_v1.0 [10:11:14]action value=close_receipt [10:11:14]process_action close_receipt [10:11:14]cmd_close_receipt [10:11:14]MH_GetDate [10:11:14]Write to MH i2c: F0 00 00 80 93 02 [10:11:14]Write i2c OK [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: F0 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: F0 09 00 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: F0 09 00 80 93 00 C9 CB 18 67 E7 19 F8 65 7B [10:11:14]GetLastDocTimeStamp 1729678276 [10:11:14]current date 1729678281 [10:11:14]FM_GetShiftState [10:11:14]SAM_PROTO_GetShiftState [10:11:14]wFMCommunicate request_size=4 [10:11:14]MH_SAM_APDU [10:11:14]CAPDU: 80 13 01 00 [10:11:14]Write to MH i2c: E2 08 00 81 93 80 13 01 00 00 00 00 00 91 [10:11:14]Write i2c OK [10:11:14]MH_I2C_Read... [10:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:14]Read from MH i2c: E2 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: E2 0E 00 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: E2 0E 00 81 93 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F6 [10:11:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:11:14]wFMCommunicate OK [10:11:14]SAM_PROTO_GetShiftState done [10:11:14]FM_GetShiftState done [10:11:14]opened in 1729642905 [10:11:14]opened+sec_in_day 1729729305 [10:11:14]quantity*price = 80061 [10:11:14]sum+1 = 80063 [10:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 70 23.10.2024 10:11 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75337 ФПД: 279331673590965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101121&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75337&fm=279331673590965&tin=02508201610067®Number=0000000000161154&sum=80000 [10:11:15]StoreToDocumentArchive [10:11:15]shift 173 fd 75337 [10:11:15]save to /storage/0173/doc_00075337 [10:11:15]save last doc name /storage/0173/doc_00075337 to /storage/kkm_last_doc_name [10:11:15]save OK [10:11:15]Clear old archive folders... [10:11:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:15]tlvbuf is 00E91450 [10:11:15]SAM_PROTO_ClearQueue [10:11:15]wFMCommunicate request_size=4 [10:11:15]MH_SAM_APDU [10:11:15]CAPDU: 80 09 00 00 [10:11:15]Write to MH i2c: E2 08 00 8E 93 80 09 00 00 00 00 00 00 93 [10:11:15]Write i2c OK [10:11:15]MH_I2C_Read... [10:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:15]Read from MH i2c: E2 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: E2 03 00 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: E2 03 00 8E 93 00 90 00 95 [10:11:15]RAPDU: 90 00 [10:11:15]wFMCommunicate OK [10:11:15]SAM_PROTO_ClearQueue done [10:11:15]KKMCreateOFDPacket [10:11:15]OFDProtocolAddRootSTLVToBuf [10:11:15]FM_MakeSignedData [10:11:15]FM_MakeSignedData [10:11:15]SAM_PROTO_SignData [10:11:15]wFMCommunicate request_size=4 [10:11:15]MH_SAM_APDU [10:11:15]CAPDU: 80 0D 01 02 [10:11:15]Write to MH i2c: E2 08 00 8F 93 80 0D 01 02 00 00 00 00 9B [10:11:15]Write i2c OK [10:11:15]MH_I2C_Read... [10:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:15]Read from MH i2c: E2 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: E2 03 00 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: E2 03 00 8F 93 00 90 00 96 [10:11:15]RAPDU: 90 00 [10:11:15]wFMCommunicate OK [10:11:15]wFMCommunicate request_size=255 [10:11:15]MH_SAM_APDU [10:11: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 46 00 00 00 F4 03 04 00 C9 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 49 26 01 00 35 04 06 00 FE [10:11:15]Write to MH i2c: E2 02 01 90 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 46 00 00 00 F4 03 04 00 C9 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 49 26 01 00 35 04 06 00 FE 00 00 FE [10:11:15]Write i2c OK [10:11:15]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 90 93 00 90 00 97 [10:11:16]RAPDU: 90 00 [10:11:16]wFMCommunicate OK [10:11:16]wFMCommunicate request_size=10 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 0D 02 02 05 0C F9 2D CC B5 [10:11:16]Write to MH i2c: E2 0D 00 91 93 80 0D 02 02 05 00 0C F9 2D CC B5 00 00 5B [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 91 93 00 90 00 98 [10:11:16]RAPDU: 90 00 [10:11:16]wFMCommunicate OK [10:11:16]wFMCommunicate request_size=4 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 0D 03 02 [10:11:16]Write to MH i2c: E2 08 00 92 93 80 0D 03 02 00 00 00 00 A0 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 0B 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 0B 00 92 93 00 9B A1 D1 69 E6 E6 70 E6 90 00 39 [10:11:16]RAPDU: 9B A1 D1 69 E6 E6 70 E6 90 00 [10:11:16]wFMCommunicate OK [10:11:16]SAM_PROTO_SignData done [10:11:16]FM_MakeSignedData done [10:11:16]CreateOFDProtocolMessage [10:11:16]wFMCommunicate request_size=4 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 11 00 00 [10:11:16]Write to MH i2c: E2 08 00 93 93 80 11 00 00 00 00 00 00 A0 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 17 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 17 00 93 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 ED [10:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:11:16]wFMCommunicate OK [10:11:16]CreateOFDProtocolMessage done [10:11:16]OFDSenderStorePacket 75337 [10:11:16]StoreOFDPacket docnum=75337 [10:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 1C 4B 07 01 07 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 46 00 00 00 F4 03 04 00 C9 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 49 26 01 00 35 04 06 00 FE 0C F9 2D CC B5 9B A1 D1 69 E6 E6 70 E6 [10:11:16]CheckFolder [10:11:16]dirname=/storage/ofd_packets [10:11:16]CheckFolder done [10:11:16]ProducePacketName [10:11:16]name=ofd_packets/00075337 [10:11:16]NVStorageSaveData ofd_packets/00075337 [10:11:16]File name is /storage/ofd_packets/00075337 [10:11:16]Write 301 bytes [10:11:16]NVStorageSaveData done [10:11:16]OFDSenderStorePacket done [10:11:16]KKMCreateOFDPacket done [10:11:16]NVStorageSaveData kkm_last_timestamp [10:11:16]File name is /storage/kkm_last_timestamp [10:11:16]Write 4 bytes [10:11:16]NVStorageSaveData done [10:11:16]ExternCall_PrintAddStr [10:11:16]wPrintStart [10:11:16]Write to MH i2c: 01 00 00 94 93 27 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: 01 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: 01 07 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: 01 07 00 94 93 00 00 00 00 00 FF 0F 3C [10:11:16]RasterBufferAndPrint [10:11:16]line Счет N : (1)1965310 [10:11:16]line ИНН: 02508201610067 [10:11:16]line Контрольно-Кассовый Чек [10:11:16]line ПРОДАЖА [10:11:16]line ТРК (МРК, ГНК) : 54 [10:11:16]line Товар: 2710124500 [10:11:16]line Аи-95-К-5 [10:11:16]line 10.790 * 74.20 [10:11:16]line = 800.62 [10:11:16]line НДС 12% НСП 1% [10:11:16]line > о реализуемом товаре [10:11:16]line ОКРУГЛЕНИЕ: -0.62 [10:11:16]line ИТОГО: 800.00 [10:11:16]line Внесено: 800.00 [10:11:16]line СДАЧА: 0.00 [10:11:16]line НСП 1% : 7.08 [10:11:16]line НДС 12% : 85.02 [10:11:16]line Наличными: 800.00 [10:11:16]line Безнал.: 0.00 [10:11:16]line Место: АЗС № 133 "Партнер Нефть" [10:11:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:11:16]line СНО: Общий режим [10:11:16]line Чек 70 23.10.2024 10:11 [10:11:16]line Смена: 173 ФФД: 1.0 [10:11:16]line ЗНМ: 0300000020 [10:11:16]line РНМ: 0000000000161154 [10:11:16]line Версия ККМ: v1.0 [10:11:16]line ФМ: 0000000000963323 [10:11:16]line ФД: 75337 [10:11:16]line ФПД: 279331673590965 [10:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101121&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75337&fm=279331673590965&tin=02508201610067®Number=0000000000161154&sum=80000 [10:11:16]OFD Sender: Processing packet 75337 [packets to send 15, broken 14] [10:11:16]ProducePacketName [10:11:16]name=ofd_packets/00075337 [10:11:16]OFD Sender: To server: pG, [10:11:16]CommunicateWithHost lk.salyk.kg:30040 [10:11:16]ConnectInit lk.salyk.kg [10:11:16]written 0, free lines is 4095 [10:11:16]Connected sock=9 [10:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 1C 4B 07 01 07 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 46 00 00 00 F4 03 04 00 C9 CB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 49 26 01 00 35 04 06 00 FE 0C F9 2D CC B5 9B A1 D1 69 E6 E6 70 E6 [10:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 29 44 47 00 4F 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 39 36 33 33 32 33 10 04 04 00 49 26 01 00 F4 03 04 00 A4 74 18 67 B6 04 01 00 00 0A 57 62 0D 7E F9 B3 8A [10:11:16]CommunicateWithHost err = 0 [10:11:16]CheckOFDResponse [10:11:16]1017 (14) - 77093643461234 [10:11:16]1041 (16) - 0000000000963323 [10:11:16]1040 (4) - 75337 [10:11:16]1012 (4) - 23.10.2024 03:59 [10:11:16]1206 (1) - 0 [10:11:16]OFD Sender: Remove packet 75337 [10:11:16]ProducePacketName [10:11:16]name=ofd_packets/00075337 [10:11:16]NVStorageDeleteData [10:11:16]Write to MH i2c: 01 00 00 BE 93 51 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: 01 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: 01 07 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: 01 07 00 BE 93 00 00 00 00 00 D9 0C 3D [10:11:16]RasterBufferAndPrint [10:11:16]line [10:11:16]line [10:11:16]line [10:11:16]line [10:11:16]line [10:11:16]written 0, free lines is 3309 [10:11:16]MH_Cut [10:11:16]Write to MH i2c: D1 01 00 C5 93 01 2A [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: D1 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: D1 01 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: D1 01 00 C5 93 00 29 [10:11:16]Write to MH i2c: 01 00 00 C6 93 59 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:17]OFD Sender: No OFD packet to send [10:11:17]*** Cut start [10:11:17]*** Partial cut [10:11:17]*** CUTSNS_PIN = 1 [10:11:17]*** CUTSNS_PIN = 0 [10:11:18]*** Brake cut motor [10:11:18]Read from MH i2c: 01 [10:11:18]MH_I2C_Read... [10:11:18]*** Stop cut motor [10:11:18]*** Cut end [10:11:18]Read from MH i2c: 01 07 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: 01 07 00 C6 93 00 00 00 00 00 FF 0F 6E [10:11:18]process_action close_receipt done [10:11:18]requested_data is exist [10:11:18]produce_requested_data [10:11:18]requested_item fm.sn is exist - process it [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 11 00 00 [10:11:18]Write to MH i2c: E2 08 00 C7 93 80 11 00 00 00 00 00 00 D4 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 17 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 17 00 C7 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 21 [10:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:11:18]wFMCommunicate OK [10:11:18]requested_item fd.num is exist - process it [10:11:18]SAM_PROTO_GetFieldsCounters [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 13 00 00 [10:11:18]Write to MH i2c: E2 08 00 C8 93 80 13 00 00 00 00 00 00 D7 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 62 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 62 00 C8 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 49 26 01 00 0E 04 04 00 AD 00 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 DA [10:11:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 49 26 01 00 0E 04 04 00 AD 00 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 [10:11:18]wFMCommunicate OK [10:11:18]SAM_PROTO_GetFieldsCounters done [10:11:18]requested_item shift.num is exist - process it [10:11:18]requested_item shift.opened is exist - process it [10:11:18]req_shift_opened [10:11:18]FM_GetShiftState [10:11:18]SAM_PROTO_GetShiftState [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 13 01 00 [10:11:18]Write to MH i2c: E2 08 00 C9 93 80 13 01 00 00 00 00 00 D9 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 C9 93 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3E [10:11:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:11:18]wFMCommunicate OK [10:11:18]SAM_PROTO_GetShiftState done [10:11:18]FM_GetShiftState done [10:11:18]req_shift_opened done [10:11:18]requested_item shift.open_date is exist - process it [10:11:18]req_shift_open_date [10:11:18]req_shift_open_date done [10:11:18]produce_requested_data done [10:11:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75337,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:11:18]process_action_free close_receipt [10:11:18]json_value_free [10:11:18]json_value_free done [10:11:18]process_json_proto returns [10:11:18]Send response to host [10:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75337,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:11:18]free response buf [10:11:18]execute_script done [10:11:18]execute_script returns [10:11:18]free content buf [10:11:18]Sock 10.Close socket [10:11:18]Sock 10.Thread stoped [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:11]accept exits with 7 [10:16:11]New connection [10:16:11]New thread 3067321700 created [10:16:11]Thread 3067465060 joined [10:16:11]Waiting for new connection... [10:16:11] Sock 7.Parse request [10:16:11]Sock 7.Check first char [10:16:11]Sock 7.First char is OK [10:16:11]request: POST /json_proto HTTP/1.0 [10:16:11]Method: POST [10:16:11]URL: /json_proto [10:16:11]Method is POST - this is cgi request [10:16:11]url: /json_proto [10:16:11]query_string will be loaded in cgi processing [10:16:11]execute_cgi json_proto POST (null) [10:16:11]execute_cgi path=json_proto method=POST [10:16:11]POST find Content-Length [10:16:11]Host: 172.17.44.196:8080 [10:16:11]Content-Length: 621 [10:16:11]Content-Type: application/json [10:16:11] [10:16:11]POST finish read [10:16:11]Found Content-Length = 621 [10:16:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273217", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:11]execute_script... [10:16: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 : (3)273217", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:11]POST & json_proto [10:16:11]process_json_proto [10:16:11]json parsed OK: [10:16:11]protocol is kg_v1.0 [10:16:11]action value=close_receipt [10:16:11]process_action close_receipt [10:16:11]cmd_close_receipt [10:16:11]MH_GetDate [10:16:11]Write to MH i2c: F0 00 00 CA 93 4C [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: F0 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: F0 09 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: F0 09 00 CA 93 00 F2 CC 18 67 E7 19 F8 65 EF [10:16:11]GetLastDocTimeStamp 1729678281 [10:16:11]current date 1729678578 [10:16:11]FM_GetShiftState [10:16:11]SAM_PROTO_GetShiftState [10:16:11]wFMCommunicate request_size=4 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 13 01 00 [10:16:11]Write to MH i2c: E2 08 00 CB 93 80 13 01 00 00 00 00 00 DB [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 0E 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 0E 00 CB 93 00 09 00 01 99 41 18 67 00 00 00 00 90 00 40 [10:16:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:16:11]wFMCommunicate OK [10:16:11]SAM_PROTO_GetShiftState done [10:16:11]FM_GetShiftState done [10:16:11]opened in 1729642905 [10:16:11]opened+sec_in_day 1729729305 [10:16:11]quantity*price = 14000 [10:16:11]sum+1 = 14001 [10:16:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 71 23.10.2024 10:16 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75338 ФПД: 233585239100028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101618&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75338&fm=233585239100028&tin=02508201610067®Number=0000000000161154&sum=14000 0 [10:16:12]StoreToDocumentArchive [10:16:12]shift 173 fd 75338 [10:16:12]save to /storage/0173/doc_00075338 [10:16:12]save last doc name /storage/0173/doc_00075338 to /storage/kkm_last_doc_name [10:16:12]save OK [10:16:12]Clear old archive folders... [10:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:16:12]tlvbuf is 00D95EF0 [10:16:12]SAM_PROTO_ClearQueue [10:16:12]wFMCommunicate request_size=4 [10:16:12]MH_SAM_APDU [10:16:12]CAPDU: 80 09 00 00 [10:16:12]Write to MH i2c: E2 08 00 D8 93 80 09 00 00 00 00 00 00 DD [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:12]Read from MH i2c: E2 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: E2 03 00 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: E2 03 00 D8 93 00 90 00 DF [10:16:12]RAPDU: 90 00 [10:16:12]wFMCommunicate OK [10:16:12]SAM_PROTO_ClearQueue done [10:16:12]KKMCreateOFDPacket [10:16:12]OFDProtocolAddRootSTLVToBuf [10:16:12]FM_MakeSignedData [10:16:12]FM_MakeSignedData [10:16:12]SAM_PROTO_SignData [10:16:12]wFMCommunicate request_size=4 [10:16:12]MH_SAM_APDU [10:16:12]CAPDU: 80 0D 01 02 [10:16:12]Write to MH i2c: E2 08 00 D9 93 80 0D 01 02 00 00 00 00 E5 [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:12]Read from MH i2c: E2 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: E2 03 00 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: E2 03 00 D9 93 00 90 00 E0 [10:16:12]RAPDU: 90 00 [10:16:12]wFMCommunicate OK [10:16:12]wFMCommunicate request_size=255 [10:16:12]MH_SAM_APDU [10:16:12]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F2 CC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [10:16:12]Write to MH i2c: E2 02 01 DA 93 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F2 CC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 F0 [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 03 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 03 00 DA 93 00 90 00 E1 [10:16:13]RAPDU: 90 00 [10:16:13]wFMCommunicate OK [10:16:13]wFMCommunicate request_size=32 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 4A 26 01 00 35 04 06 00 D4 71 CD 33 8A 7C [10:16:13]Write to MH i2c: E2 23 00 DB 93 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 4A 26 01 00 35 04 06 00 D4 71 CD 33 8A 7C 00 00 FB [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 03 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 03 00 DB 93 00 90 00 E2 [10:16:13]RAPDU: 90 00 [10:16:13]wFMCommunicate OK [10:16:13]wFMCommunicate request_size=4 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 0D 03 02 [10:16:13]Write to MH i2c: E2 08 00 DC 93 80 0D 03 02 00 00 00 00 EA [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 0B 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 0B 00 DC 93 00 50 77 81 D7 C5 56 DE 78 90 00 7B [10:16:13]RAPDU: 50 77 81 D7 C5 56 DE 78 90 00 [10:16:13]wFMCommunicate OK [10:16:13]SAM_PROTO_SignData done [10:16:13]FM_MakeSignedData done [10:16:13]CreateOFDProtocolMessage [10:16:13]wFMCommunicate request_size=4 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 11 00 00 [10:16:13]Write to MH i2c: E2 08 00 DD 93 80 11 00 00 00 00 00 00 EA [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 17 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 17 00 DD 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 37 [10:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:16:13]wFMCommunicate OK [10:16:13]CreateOFDProtocolMessage done [10:16:13]OFDSenderStorePacket 75338 [10:16:13]StoreOFDPacket docnum=75338 [10:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 BB BD 1D 01 42 75 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F2 CC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4A 26 01 00 35 04 06 00 D4 71 CD 33 8A 7C 50 77 81 D7 C5 56 DE 78 [10:16:13]CheckFolder [10:16:13]dirname=/storage/ofd_packets [10:16:13]CheckFolder done [10:16:13]ProducePacketName [10:16:13]name=ofd_packets/00075338 [10:16:13]NVStorageSaveData ofd_packets/00075338 [10:16:13]File name is /storage/ofd_packets/00075338 [10:16:13]Write 323 bytes [10:16:13]NVStorageSaveData done [10:16:13]OFDSenderStorePacket done [10:16:13]KKMCreateOFDPacket done [10:16:13]NVStorageSaveData kkm_last_timestamp [10:16:13]File name is /storage/kkm_last_timestamp [10:16:13]Write 4 bytes [10:16:13]NVStorageSaveData done [10:16:13]ExternCall_PrintAddStr [10:16:13]wPrintStart [10:16:13]Write to MH i2c: 01 00 00 DE 93 71 [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: 01 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: 01 07 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: 01 07 00 DE 93 00 00 00 00 00 FF 0F 86 [10:16:13]RasterBufferAndPrint [10:16:13]line Счет N : (3)273217 [10:16:13]line ИНН: 02508201610067 [10:16:13]line Контрольно-Кассовый Чек [10:16:13]line ПРОДАЖА [10:16:13]line Товар: 48747059 [10:16:13]line Сигареты Winston Legend Blue [10:16:13]line 1.000 * 140.00 [10:16:13]line = 140.00 [10:16:13]line НДС 12% НСП 1% [10:16:13]line > о реализуемом товаре [10:16:13]line ИТОГО: 140.00 [10:16:13]line НСП 1% : 1.24 [10:16:13]line НДС 12% : 14.87 [10:16:13]line Наличными: 140.00 [10:16:13]line Безнал.: 0.00 [10:16:13]line Место: АЗС № 133 "Партнер Нефть" [10:16:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:16:13]line СНО: Общий режим [10:16:13]line Чек 71 23.10.2024 10:16 [10:16:13]line Смена: 173 ФФД: 1.0 [10:16:13]line ЗНМ: 0300000020 [10:16:13]line РНМ: 0000000000161154 [10:16:13]line Версия ККМ: v1.0 [10:16:13]line ФМ: 0000000000963323 [10:16:13]line ФД: 75338 [10:16:13]line ФПД: 233585239100028 [10:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101618&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75338&fm=233585239100028&tin=02508201610067®Number=0000000000161154&sum=14000 [10:16:13]line 0 [10:16:13]written 0, free lines is 4095 [10:16:13]OFD Sender: Processing packet 75338 [packets to send 15, broken 14] [10:16:13]ProducePacketName [10:16:13]name=ofd_packets/00075338 [10:16:13]OFD Sender: To server: pG, [10:16:13]CommunicateWithHost lk.salyk.kg:30040 [10:16:13]ConnectInit lk.salyk.kg [10:16:13]Connected sock=10 [10:16:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 BB BD 1D 01 42 75 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F2 CC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4A 26 01 00 35 04 06 00 D4 71 CD 33 8A 7C 50 77 81 D7 C5 56 DE 78 [10:16:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 89 CC 47 00 98 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 39 36 33 33 32 33 10 04 04 00 4A 26 01 00 F4 03 04 00 CD 75 18 67 B6 04 01 00 00 8A 3C 29 FF C8 5C AC CF [10:16:13]CommunicateWithHost err = 0 [10:16:13]CheckOFDResponse [10:16:13]1017 (14) - 77093643461234 [10:16:13]1041 (16) - 0000000000963323 [10:16:13]1040 (4) - 75338 [10:16:13]1012 (4) - 23.10.2024 04:04 [10:16:13]1206 (1) - 0 [10:16:13]OFD Sender: Remove packet 75338 [10:16:13]ProducePacketName [10:16:13]name=ofd_packets/00075338 [10:16:13]NVStorageDeleteData [10:16:13]Write to MH i2c: 01 00 00 06 94 9A [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: 01 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: 01 07 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: 01 07 00 06 94 00 00 00 00 00 C5 0C 72 [10:16:13]RasterBufferAndPrint [10:16:13]line [10:16:13]line [10:16:14]line [10:16:14]line [10:16:14]line [10:16:14]written 0, free lines is 3274 [10:16:14]MH_Cut [10:16:14]Write to MH i2c: D1 01 00 0D 94 01 73 [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: D1 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: D1 01 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: D1 01 00 0D 94 00 72 [10:16:14]Write to MH i2c: 01 00 00 0E 94 A2 [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]OFD Sender: No OFD packet to send [10:16:14]*** Cut start [10:16:14]*** Partial cut [10:16:14]*** CUTSNS_PIN = 1 [10:16:14]*** CUTSNS_PIN = 0 [10:16:15]*** Brake cut motor [10:16:15]Read from MH i2c: 01 [10:16:15]MH_I2C_Read... [10:16:15]*** Stop cut motor [10:16:15]*** Cut end [10:16:15]Read from MH i2c: 01 07 00 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 07 00 0E 94 00 00 00 00 00 FF 0F B7 [10:16:15]process_action close_receipt done [10:16:15]requested_data is exist [10:16:15]produce_requested_data [10:16:15]requested_item fm.sn is exist - process it [10:16:15]wFMCommunicate request_size=4 [10:16:15]MH_SAM_APDU [10:16:15]CAPDU: 80 11 00 00 [10:16:15]Write to MH i2c: E2 08 00 0F 94 80 11 00 00 00 00 00 00 1D [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:15]Read from MH i2c: E2 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: E2 17 00 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: E2 17 00 0F 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6A [10:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:16:15]wFMCommunicate OK [10:16:15]requested_item fd.num is exist - process it [10:16:15]SAM_PROTO_GetFieldsCounters [10:16:15]wFMCommunicate request_size=4 [10:16:15]MH_SAM_APDU [10:16:15]CAPDU: 80 13 00 00 [10:16:15]Write to MH i2c: E2 08 00 10 94 80 13 00 00 00 00 00 00 20 [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:15]Read from MH i2c: E2 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: E2 62 00 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: E2 62 00 10 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4A 26 01 00 0E 04 04 00 AD 00 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 27 [10:16:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4A 26 01 00 0E 04 04 00 AD 00 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 [10:16:15]wFMCommunicate OK [10:16:15]SAM_PROTO_GetFieldsCounters done [10:16:15]requested_item shift.num is exist - process it [10:16:15]requested_item shift.opened is exist - process it [10:16:15]req_shift_opened [10:16:15]FM_GetShiftState [10:16:15]SAM_PROTO_GetShiftState [10:16:15]wFMCommunicate request_size=4 [10:16:15]MH_SAM_APDU [10:16:15]CAPDU: 80 13 01 00 [10:16:15]Write to MH i2c: E2 08 00 11 94 80 13 01 00 00 00 00 00 22 [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:15]Read from MH i2c: E2 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: E2 0E 00 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: E2 0E 00 11 94 00 09 00 01 99 41 18 67 00 00 00 00 90 00 87 [10:16:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:16:15]wFMCommunicate OK [10:16:15]SAM_PROTO_GetShiftState done [10:16:15]FM_GetShiftState done [10:16:15]req_shift_opened done [10:16:15]requested_item shift.open_date is exist - process it [10:16:15]req_shift_open_date [10:16:15]req_shift_open_date done [10:16:15]produce_requested_data done [10:16:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75338,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:16:15]process_action_free close_receipt [10:16:15]json_value_free [10:16:15]json_value_free done [10:16:15]process_json_proto returns [10:16:15]Send response to host [10:16:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75338,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:16:15]free response buf [10:16:15]execute_script done [10:16:15]execute_script returns [10:16:15]free content buf [10:16:15]Sock 7.Close socket [10:16:15]Sock 7.Thread stoped [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:40]accept exits with 9 [10:20:40]New connection [10:20:40]New thread 3067465060 created [10:20:40]Thread 3067321700 joined [10:20:40]Waiting for new connection... [10:20:40] Sock 9.Parse request [10:20:40]Sock 9.Check first char [10:20:40]Sock 9.First char is OK [10:20:40]request: POST /json_proto HTTP/1.0 [10:20:40]Method: POST [10:20:40]URL: /json_proto [10:20:40]Method is POST - this is cgi request [10:20:40]url: /json_proto [10:20:40]query_string will be loaded in cgi processing [10:20:40]execute_cgi json_proto POST (null) [10:20:40]execute_cgi path=json_proto method=POST [10:20:40]POST find Content-Length [10:20:40]Host: 172.17.44.196:8080 [10:20:40]Content-Length: 659 [10:20:40]Content-Type: application/json [10:20:40] [10:20:40]POST finish read [10:20:40]Found Content-Length = 659 [10:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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:20:40]execute_script... [10:20: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)1965322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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:20:40]POST & json_proto [10:20:40]process_json_proto [10:20:40]json parsed OK: [10:20:40]protocol is kg_v1.0 [10:20:40]action value=close_receipt [10:20:40]process_action close_receipt [10:20:40]cmd_close_receipt [10:20:40]MH_GetDate [10:20:40]Write to MH i2c: F0 00 00 12 94 95 [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: F0 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: F0 09 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: F0 09 00 12 94 00 FF CD 18 67 E7 19 F8 65 46 [10:20:40]GetLastDocTimeStamp 1729678578 [10:20:40]current date 1729678847 [10:20:40]FM_GetShiftState [10:20:40]SAM_PROTO_GetShiftState [10:20:40]wFMCommunicate request_size=4 [10:20:40]MH_SAM_APDU [10:20:40]CAPDU: 80 13 01 00 [10:20:40]Write to MH i2c: E2 08 00 13 94 80 13 01 00 00 00 00 00 24 [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:40]Read from MH i2c: E2 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 0E 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 0E 00 13 94 00 09 00 01 99 41 18 67 00 00 00 00 90 00 89 [10:20:40]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:20:40]wFMCommunicate OK [10:20:40]SAM_PROTO_GetShiftState done [10:20:40]FM_GetShiftState done [10:20:40]opened in 1729642905 [10:20:40]opened+sec_in_day 1729729305 [10:20:40]quantity*price = 40014 [10:20:40]sum+1 = 40015 [10:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 72 23.10.2024 10:20 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75339 ФПД: 14628432194841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102047&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75339&fm=14628432194841&tin=02508201610067®Number=0000000000161154&sum=40000 [10:20:42]StoreToDocumentArchive [10:20:42]shift 173 fd 75339 [10:20:42]save to /storage/0173/doc_00075339 [10:20:42]save last doc name /storage/0173/doc_00075339 to /storage/kkm_last_doc_name [10:20:42]save OK [10:20:42]Clear old archive folders... [10:20:42]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:20:42]tlvbuf is 00FDA280 [10:20:42]SAM_PROTO_ClearQueue [10:20:42]wFMCommunicate request_size=4 [10:20:42]MH_SAM_APDU [10:20:42]CAPDU: 80 09 00 00 [10:20:42]Write to MH i2c: E2 08 00 20 94 80 09 00 00 00 00 00 00 26 [10:20:42]Write i2c OK [10:20:42]MH_I2C_Read... [10:20:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:42]Read from MH i2c: E2 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 03 00 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 03 00 20 94 00 90 00 28 [10:20:42]RAPDU: 90 00 [10:20:42]wFMCommunicate OK [10:20:42]SAM_PROTO_ClearQueue done [10:20:42]KKMCreateOFDPacket [10:20:42]OFDProtocolAddRootSTLVToBuf [10:20:42]FM_MakeSignedData [10:20:42]FM_MakeSignedData [10:20:42]SAM_PROTO_SignData [10:20:42]wFMCommunicate request_size=4 [10:20:42]MH_SAM_APDU [10:20:42]CAPDU: 80 0D 01 02 [10:20:42]Write to MH i2c: E2 08 00 21 94 80 0D 01 02 00 00 00 00 2E [10:20:42]Write i2c OK [10:20:42]MH_I2C_Read... [10:20:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:42]Read from MH i2c: E2 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 03 00 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 03 00 21 94 00 90 00 29 [10:20:42]RAPDU: 90 00 [10:20:42]wFMCommunicate OK [10:20:42]wFMCommunicate request_size=253 [10:20:42]MH_SAM_APDU [10:20:42]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 48 00 00 00 F4 03 04 00 FF CD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4B 26 01 00 35 04 06 00 0D 4D F2 81 2D 19 [10:20:42]Write to MH i2c: E2 00 01 22 94 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 48 00 00 00 F4 03 04 00 FF CD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4B 26 01 00 35 04 06 00 0D 4D F2 81 2D 19 00 00 0E [10:20:42]Write i2c OK [10:20:42]MH_I2C_Read... [10:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:42]Read from MH i2c: E2 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 03 00 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 03 00 22 94 00 90 00 2A [10:20:42]RAPDU: 90 00 [10:20:42]wFMCommunicate OK [10:20:42]wFMCommunicate request_size=4 [10:20:42]MH_SAM_APDU [10:20:42]CAPDU: 80 0D 03 02 [10:20:42]Write to MH i2c: E2 08 00 23 94 80 0D 03 02 00 00 00 00 32 [10:20:42]Write i2c OK [10:20:42]MH_I2C_Read... [10:20:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:42]Read from MH i2c: E2 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 0B 00 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 0B 00 23 94 00 84 41 73 50 6D 2E AA 58 90 00 58 [10:20:42]RAPDU: 84 41 73 50 6D 2E AA 58 90 00 [10:20:42]wFMCommunicate OK [10:20:42]SAM_PROTO_SignData done [10:20:42]FM_MakeSignedData done [10:20:42]CreateOFDProtocolMessage [10:20:42]wFMCommunicate request_size=4 [10:20:42]MH_SAM_APDU [10:20:42]CAPDU: 80 11 00 00 [10:20:42]Write to MH i2c: E2 08 00 24 94 80 11 00 00 00 00 00 00 32 [10:20:42]Write i2c OK [10:20:42]MH_I2C_Read... [10:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:42]Read from MH i2c: E2 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 17 00 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 17 00 24 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7F [10:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:20:42]wFMCommunicate OK [10:20:42]CreateOFDProtocolMessage done [10:20:42]OFDSenderStorePacket 75339 [10:20:42]StoreOFDPacket docnum=75339 [10:20:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 25 40 00 01 95 10 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 48 00 00 00 F4 03 04 00 FF CD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4B 26 01 00 35 04 06 00 0D 4D F2 81 2D 19 84 41 73 50 6D 2E AA 58 [10:20:42]CheckFolder [10:20:42]dirname=/storage/ofd_packets [10:20:42]CheckFolder done [10:20:42]ProducePacketName [10:20:42]name=ofd_packets/00075339 [10:20:42]NVStorageSaveData ofd_packets/00075339 [10:20:42]File name is /storage/ofd_packets/00075339 [10:20:42]Write 294 bytes [10:20:42]NVStorageSaveData done [10:20:42]OFDSenderStorePacket done [10:20:42]KKMCreateOFDPacket done [10:20:42]NVStorageSaveData kkm_last_timestamp [10:20:42]File name is /storage/kkm_last_timestamp [10:20:42]Write 4 bytes [10:20:42]NVStorageSaveData done [10:20:42]ExternCall_PrintAddStr [10:20:42]wPrintStart [10:20:42]Write to MH i2c: 01 00 00 25 94 B9 [10:20:42]Write i2c OK [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: 01 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: 01 07 00 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: 01 07 00 25 94 00 00 00 00 00 FF 0F CE [10:20:42]RasterBufferAndPrint [10:20:42]line Счет N : (1)1965322 [10:20:42]line ИНН: 02508201610067 [10:20:42]line Контрольно-Кассовый Чек [10:20:42]line ПРОДАЖА [10:20:42]line ТРК (МРК, ГНК) : 52 [10:20:42]line Товар: 2710124130 [10:20:42]line SU-92 [10:20:42]line 5.850 * 68.40 [10:20:42]line = 400.14 [10:20:42]line НДС 12% НСП 1% [10:20:42]line > о реализуемом товаре [10:20:42]line ОКРУГЛЕНИЕ: -0.14 [10:20:42]line ИТОГО: 400.00 [10:20:42]line Внесено: 400.00 [10:20:42]line СДАЧА: 0.00 [10:20:42]line НСП 1% : 3.54 [10:20:42]line НДС 12% : 42.49 [10:20:42]line Наличными: 400.00 [10:20:42]line Безнал.: 0.00 [10:20:42]line Место: АЗС № 133 "Партнер Нефть" [10:20:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:20:42]line СНО: Общий режим [10:20:42]line Чек 72 23.10.2024 10:20 [10:20:42]line Смена: 173 ФФД: 1.0 [10:20:42]line ЗНМ: 0300000020 [10:20:42]line РНМ: 0000000000161154 [10:20:42]line Версия ККМ: v1.0 [10:20:42]line ФМ: 0000000000963323 [10:20:42]line ФД: 75339 [10:20:42]line ФПД: 14628432194841 [10:20:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102047&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75339&fm=14628432194841&tin=02508201610067®Number=0000000000161154&sum=40000 [10:20:42]OFD Sender: Processing packet 75339 [packets to send 15, broken 14] [10:20:42]ProducePacketName [10:20:42]name=ofd_packets/00075339 [10:20:42]OFD Sender: To server: pG, [10:20:42]CommunicateWithHost lk.salyk.kg:30040 [10:20:42]ConnectInit lk.salyk.kg [10:20:42]written 0, free lines is 4095 [10:20:42]Connected sock=10 [10:20:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 25 40 00 01 95 10 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 48 00 00 00 F4 03 04 00 FF CD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4B 26 01 00 35 04 06 00 0D 4D F2 81 2D 19 84 41 73 50 6D 2E AA 58 [10:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E5 D7 47 00 55 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4B 26 01 00 F4 03 04 00 DB 76 18 67 B6 04 01 00 00 2D AD A4 58 11 F3 3D 19 [10:20:43]CommunicateWithHost err = 0 [10:20:43]CheckOFDResponse [10:20:43]1017 (14) - 77093643461234 [10:20:43]1041 (16) - 0000000000963323 [10:20:43]1040 (4) - 75339 [10:20:43]1012 (4) - 23.10.2024 04:08 [10:20:43]1206 (1) - 0 [10:20:43]OFD Sender: Remove packet 75339 [10:20:43]ProducePacketName [10:20:43]name=ofd_packets/00075339 [10:20:43]NVStorageDeleteData [10:20:43]Write to MH i2c: 01 00 00 4F 94 E3 [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: 01 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: 01 07 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: 01 07 00 4F 94 00 00 00 00 00 B0 0C A6 [10:20:43]RasterBufferAndPrint [10:20:43]line [10:20:43]line [10:20:43]line [10:20:43]line [10:20:43]line [10:20:43]written 0, free lines is 3253 [10:20:43]MH_Cut [10:20:43]Write to MH i2c: D1 01 00 56 94 01 BC [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: D1 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: D1 01 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: D1 01 00 56 94 00 BB [10:20:43]Write to MH i2c: 01 00 00 57 94 EB [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]OFD Sender: No OFD packet to send [10:20:44]*** Cut start [10:20:44]*** Partial cut [10:20:44]*** CUTSNS_PIN = 1 [10:20:44]*** CUTSNS_PIN = 0 [10:20:44]*** Brake cut motor [10:20:44]Read from MH i2c: 01 [10:20:44]MH_I2C_Read... [10:20:44]*** Stop cut motor [10:20:44]*** Cut end [10:20:44]Read from MH i2c: 01 07 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: 01 07 00 57 94 00 00 00 00 00 FF 0F 00 [10:20:44]process_action close_receipt done [10:20:44]requested_data is exist [10:20:44]produce_requested_data [10:20:44]requested_item fm.sn is exist - process it [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 11 00 00 [10:20:44]Write to MH i2c: E2 08 00 58 94 80 11 00 00 00 00 00 00 66 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 17 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 17 00 58 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B3 [10:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:20:44]wFMCommunicate OK [10:20:44]requested_item fd.num is exist - process it [10:20:44]SAM_PROTO_GetFieldsCounters [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 13 00 00 [10:20:44]Write to MH i2c: E2 08 00 59 94 80 13 00 00 00 00 00 00 69 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 62 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 62 00 59 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4B 26 01 00 0E 04 04 00 AD 00 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 74 [10:20:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4B 26 01 00 0E 04 04 00 AD 00 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 [10:20:45]wFMCommunicate OK [10:20:45]SAM_PROTO_GetFieldsCounters done [10:20:45]requested_item shift.num is exist - process it [10:20:45]requested_item shift.opened is exist - process it [10:20:45]req_shift_opened [10:20:45]FM_GetShiftState [10:20:45]SAM_PROTO_GetShiftState [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 13 01 00 [10:20:45]Write to MH i2c: E2 08 00 5A 94 80 13 01 00 00 00 00 00 6B [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 0E 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 0E 00 5A 94 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D0 [10:20:45]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:20:45]wFMCommunicate OK [10:20:45]SAM_PROTO_GetShiftState done [10:20:45]FM_GetShiftState done [10:20:45]req_shift_opened done [10:20:45]requested_item shift.open_date is exist - process it [10:20:45]req_shift_open_date [10:20:45]req_shift_open_date done [10:20:45]produce_requested_data done [10:20:45]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75339,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:20:45]process_action_free close_receipt [10:20:45]json_value_free [10:20:45]json_value_free done [10:20:45]process_json_proto returns [10:20:45]Send response to host [10:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75339,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:20:45]free response buf [10:20:45]execute_script done [10:20:45]execute_script returns [10:20:45]free content buf [10:20:45]Sock 9.Close socket [10:20:45]Sock 9.Thread stoped [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:44]accept exits with 7 [10:21:44]New connection [10:21:44]New thread 3067321700 created [10:21:44]Thread 3067465060 joined [10:21:44]Waiting for new connection... [10:21:44] Sock 7.Parse request [10:21:44]Sock 7.Check first char [10:21:44]Sock 7.First char is OK [10:21:44]request: POST /json_proto HTTP/1.0 [10:21:44]Method: POST [10:21:44]URL: /json_proto [10:21:44]Method is POST - this is cgi request [10:21:44]url: /json_proto [10:21:44]query_string will be loaded in cgi processing [10:21:44]execute_cgi json_proto POST (null) [10:21:44]execute_cgi path=json_proto method=POST [10:21:44]POST find Content-Length [10:21:44]Host: 172.17.44.196:8080 [10:21:44]Content-Length: 679 [10:21:44]Content-Type: application/json [10:21:44] [10:21:44]POST finish read [10:21:44]Found Content-Length = 679 [10:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [10:21:44]execute_script... [10:21:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [10:21:44]POST & json_proto [10:21:44]process_json_proto [10:21:44]json parsed OK: [10:21:44]protocol is kg_v1.0 [10:21:44]action value=close_receipt [10:21:44]process_action close_receipt [10:21:44]cmd_close_receipt [10:21:44]MH_GetDate [10:21:44]Write to MH i2c: F0 00 00 5B 94 DE [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: F0 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: F0 09 00 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: F0 09 00 5B 94 00 3F CE 18 67 E7 19 F8 65 D0 [10:21:44]GetLastDocTimeStamp 1729678847 [10:21:44]current date 1729678911 [10:21:44]FM_GetShiftState [10:21:44]SAM_PROTO_GetShiftState [10:21:44]wFMCommunicate request_size=4 [10:21:44]MH_SAM_APDU [10:21:44]CAPDU: 80 13 01 00 [10:21:44]Write to MH i2c: E2 08 00 5C 94 80 13 01 00 00 00 00 00 6D [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:45]Read from MH i2c: E2 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 0E 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 0E 00 5C 94 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D2 [10:21:45]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:21:45]wFMCommunicate OK [10:21:45]SAM_PROTO_GetShiftState done [10:21:45]FM_GetShiftState done [10:21:45]opened in 1729642905 [10:21:45]opened+sec_in_day 1729729305 [10:21:45]quantity*price = 80061 [10:21:45]sum+1 = 80063 [10:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 73 23.10.2024 10:21 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75340 ФПД: 103037214101637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102152&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75340&fm=103037214101637&tin=02508201610067®Number=0000000000161154&sum=80000 [10:21:46]StoreToDocumentArchive [10:21:46]shift 173 fd 75340 [10:21:46]save to /storage/0173/doc_00075340 [10:21:46]save last doc name /storage/0173/doc_00075340 to /storage/kkm_last_doc_name [10:21:46]save OK [10:21:46]Clear old archive folders... [10:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:46]tlvbuf is 00DCB5E0 [10:21:46]SAM_PROTO_ClearQueue [10:21:46]wFMCommunicate request_size=4 [10:21:46]MH_SAM_APDU [10:21:46]CAPDU: 80 09 00 00 [10:21:46]Write to MH i2c: E2 08 00 69 94 80 09 00 00 00 00 00 00 6F [10:21:46]Write i2c OK [10:21:46]MH_I2C_Read... [10:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:46]Read from MH i2c: E2 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 03 00 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 03 00 69 94 00 90 00 71 [10:21:46]RAPDU: 90 00 [10:21:46]wFMCommunicate OK [10:21:46]SAM_PROTO_ClearQueue done [10:21:46]KKMCreateOFDPacket [10:21:46]OFDProtocolAddRootSTLVToBuf [10:21:46]FM_MakeSignedData [10:21:46]FM_MakeSignedData [10:21:46]SAM_PROTO_SignData [10:21:46]wFMCommunicate request_size=4 [10:21:46]MH_SAM_APDU [10:21:46]CAPDU: 80 0D 01 02 [10:21:46]Write to MH i2c: E2 08 00 6A 94 80 0D 01 02 00 00 00 00 77 [10:21:46]Write i2c OK [10:21:46]MH_I2C_Read... [10:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:46]Read from MH i2c: E2 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 03 00 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 03 00 6A 94 00 90 00 72 [10:21:46]RAPDU: 90 00 [10:21:46]wFMCommunicate OK [10:21:46]wFMCommunicate request_size=255 [10:21:46]MH_SAM_APDU [10:21:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 49 00 00 00 F4 03 04 00 40 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4C 26 01 00 35 04 06 00 5D [10:21:46]Write to MH i2c: E2 02 01 6B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 49 00 00 00 F4 03 04 00 40 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4C 26 01 00 35 04 06 00 5D 00 00 B9 [10:21:46]Write i2c OK [10:21:46]MH_I2C_Read... [10:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:46]Read from MH i2c: E2 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 03 00 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 03 00 6B 94 00 90 00 73 [10:21:46]RAPDU: 90 00 [10:21:46]wFMCommunicate OK [10:21:46]wFMCommunicate request_size=10 [10:21:46]MH_SAM_APDU [10:21:46]CAPDU: 80 0D 02 02 05 B6 38 8B 90 85 [10:21:46]Write to MH i2c: E2 0D 00 6C 94 80 0D 02 02 05 00 B6 38 8B 90 85 00 00 12 [10:21:46]Write i2c OK [10:21:46]MH_I2C_Read... [10:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:46]Read from MH i2c: E2 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 03 00 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 03 00 6C 94 00 90 00 74 [10:21:46]RAPDU: 90 00 [10:21:46]wFMCommunicate OK [10:21:46]wFMCommunicate request_size=4 [10:21:46]MH_SAM_APDU [10:21:46]CAPDU: 80 0D 03 02 [10:21:46]Write to MH i2c: E2 08 00 6D 94 80 0D 03 02 00 00 00 00 7C [10:21:46]Write i2c OK [10:21:46]MH_I2C_Read... [10:21:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:46]Read from MH i2c: E2 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 0B 00 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 0B 00 6D 94 00 B9 3A A1 97 BB 69 95 A4 90 00 05 [10:21:46]RAPDU: B9 3A A1 97 BB 69 95 A4 90 00 [10:21:46]wFMCommunicate OK [10:21:46]SAM_PROTO_SignData done [10:21:46]FM_MakeSignedData done [10:21:46]CreateOFDProtocolMessage [10:21:46]wFMCommunicate request_size=4 [10:21:46]MH_SAM_APDU [10:21:46]CAPDU: 80 11 00 00 [10:21:46]Write to MH i2c: E2 08 00 6E 94 80 11 00 00 00 00 00 00 7C [10:21:46]Write i2c OK [10:21:46]MH_I2C_Read... [10:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:46]Read from MH i2c: E2 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 17 00 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: E2 17 00 6E 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C9 [10:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:21:46]wFMCommunicate OK [10:21:46]CreateOFDProtocolMessage done [10:21:46]OFDSenderStorePacket 75340 [10:21:46]StoreOFDPacket docnum=75340 [10:21:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FD DD 07 01 2F 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 49 00 00 00 F4 03 04 00 40 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4C 26 01 00 35 04 06 00 5D B6 38 8B 90 85 B9 3A A1 97 BB 69 95 A4 [10:21:46]CheckFolder [10:21:46]dirname=/storage/ofd_packets [10:21:46]CheckFolder done [10:21:46]ProducePacketName [10:21:46]name=ofd_packets/00075340 [10:21:46]NVStorageSaveData ofd_packets/00075340 [10:21:46]File name is /storage/ofd_packets/00075340 [10:21:46]Write 301 bytes [10:21:46]NVStorageSaveData done [10:21:46]OFDSenderStorePacket done [10:21:46]KKMCreateOFDPacket done [10:21:46]NVStorageSaveData kkm_last_timestamp [10:21:46]File name is /storage/kkm_last_timestamp [10:21:46]Write 4 bytes [10:21:46]NVStorageSaveData done [10:21:46]ExternCall_PrintAddStr [10:21:46]wPrintStart [10:21:46]Write to MH i2c: 01 00 00 6F 94 03 [10:21:46]Write i2c OK [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: 01 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: 01 07 00 [10:21:46]MH_I2C_Read... [10:21:46]Read from MH i2c: 01 07 00 6F 94 00 00 00 00 00 FF 0F 18 [10:21:46]RasterBufferAndPrint [10:21:46]line Счет N : (1)1965323 [10:21:46]line ИНН: 02508201610067 [10:21:46]line Контрольно-Кассовый Чек [10:21:46]line ПРОДАЖА [10:21:46]line ТРК (МРК, ГНК) : 44 [10:21:46]line Товар: 2710124500 [10:21:46]line Аи-95-К-5 [10:21:46]line 10.790 * 74.20 [10:21:46]line = 800.62 [10:21:46]line НДС 12% НСП 1% [10:21:46]line > о реализуемом товаре [10:21:46]line ОКРУГЛЕНИЕ: -0.62 [10:21:46]line ИТОГО: 800.00 [10:21:46]line Внесено: 800.00 [10:21:46]line СДАЧА: 0.00 [10:21:46]line НСП 1% : 7.08 [10:21:46]line НДС 12% : 85.02 [10:21:46]line Наличными: 800.00 [10:21:46]line Безнал.: 0.00 [10:21:46]line Место: АЗС № 133 "Партнер Нефть" [10:21:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:21:46]line СНО: Общий режим [10:21:46]line Чек 73 23.10.2024 10:21 [10:21:46]line Смена: 173 ФФД: 1.0 [10:21:46]line ЗНМ: 0300000020 [10:21:46]line РНМ: 0000000000161154 [10:21:46]line Версия ККМ: v1.0 [10:21:46]line ФМ: 0000000000963323 [10:21:46]line ФД: 75340 [10:21:46]line ФПД: 103037214101637 [10:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102152&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75340&fm=103037214101637&tin=02508201610067®Number=0000000000161154&sum=80000 [10:21:46]OFD Sender: Processing packet 75340 [packets to send 15, broken 14] [10:21:46]ProducePacketName [10:21:46]name=ofd_packets/00075340 [10:21:47]OFD Sender: To server: pG, [10:21:47]CommunicateWithHost lk.salyk.kg:30040 [10:21:47]ConnectInit lk.salyk.kg [10:21:47]written 0, free lines is 4095 [10:21:47]Connected sock=10 [10:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 FD DD 07 01 2F 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 49 00 00 00 F4 03 04 00 40 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4C 26 01 00 35 04 06 00 5D B6 38 8B 90 85 B9 3A A1 97 BB 69 95 A4 [10:21:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 08 05 47 00 23 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4C 26 01 00 F4 03 04 00 1B 77 18 67 B6 04 01 00 00 D9 0C C5 30 3C 12 00 2E [10:21:47]CommunicateWithHost err = 0 [10:21:47]CheckOFDResponse [10:21:47]1017 (14) - 77093643461234 [10:21:47]1041 (16) - 0000000000963323 [10:21:47]1040 (4) - 75340 [10:21:47]1012 (4) - 23.10.2024 04:10 [10:21:47]1206 (1) - 0 [10:21:47]OFD Sender: Remove packet 75340 [10:21:47]ProducePacketName [10:21:47]name=ofd_packets/00075340 [10:21:47]NVStorageDeleteData [10:21:47]Write to MH i2c: 01 00 00 99 94 2D [10:21:47]Write i2c OK [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: 01 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: 01 07 00 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: 01 07 00 99 94 00 00 00 00 00 AD 0C ED [10:21:47]RasterBufferAndPrint [10:21:47]line [10:21:47]line [10:21:47]line [10:21:47]line [10:21:47]line [10:21:47]written 0, free lines is 3249 [10:21:47]MH_Cut [10:21:47]Write to MH i2c: D1 01 00 A0 94 01 06 [10:21:47]Write i2c OK [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: D1 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: D1 01 00 [10:21:47]MH_I2C_Read... [10:21:47]Read from MH i2c: D1 01 00 A0 94 00 05 [10:21:47]Write to MH i2c: 01 00 00 A1 94 35 [10:21:47]Write i2c OK [10:21:47]MH_I2C_Read... [10:21:47]OFD Sender: No OFD packet to send [10:21:48]*** Cut start [10:21:48]*** Partial cut [10:21:48]*** CUTSNS_PIN = 1 [10:21:48]*** CUTSNS_PIN = 0 [10:21:48]*** Brake cut motor [10:21:48]Read from MH i2c: 01 [10:21:48]MH_I2C_Read... [10:21:48]*** Stop cut motor [10:21:48]*** Cut end [10:21:48]Read from MH i2c: 01 07 00 [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: 01 07 00 A1 94 00 00 00 00 00 FF 0F 4A [10:21:48]process_action close_receipt done [10:21:49]requested_data is exist [10:21:49]produce_requested_data [10:21:49]requested_item fm.sn is exist - process it [10:21:49]wFMCommunicate request_size=4 [10:21:49]MH_SAM_APDU [10:21:49]CAPDU: 80 11 00 00 [10:21:49]Write to MH i2c: E2 08 00 A2 94 80 11 00 00 00 00 00 00 B0 [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:49]Read from MH i2c: E2 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 17 00 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 17 00 A2 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FD [10:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:21:49]wFMCommunicate OK [10:21:49]requested_item fd.num is exist - process it [10:21:49]SAM_PROTO_GetFieldsCounters [10:21:49]wFMCommunicate request_size=4 [10:21:49]MH_SAM_APDU [10:21:49]CAPDU: 80 13 00 00 [10:21:49]Write to MH i2c: E2 08 00 A3 94 80 13 00 00 00 00 00 00 B3 [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:49]Read from MH i2c: E2 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 62 00 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 62 00 A3 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4C 26 01 00 0E 04 04 00 AD 00 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 C2 [10:21:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4C 26 01 00 0E 04 04 00 AD 00 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 [10:21:49]wFMCommunicate OK [10:21:49]SAM_PROTO_GetFieldsCounters done [10:21:49]requested_item shift.num is exist - process it [10:21:49]requested_item shift.opened is exist - process it [10:21:49]req_shift_opened [10:21:49]FM_GetShiftState [10:21:49]SAM_PROTO_GetShiftState [10:21:49]wFMCommunicate request_size=4 [10:21:49]MH_SAM_APDU [10:21:49]CAPDU: 80 13 01 00 [10:21:49]Write to MH i2c: E2 08 00 A4 94 80 13 01 00 00 00 00 00 B5 [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:49]Read from MH i2c: E2 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 0E 00 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 0E 00 A4 94 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1A [10:21:49]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:21:49]wFMCommunicate OK [10:21:49]SAM_PROTO_GetShiftState done [10:21:49]FM_GetShiftState done [10:21:49]req_shift_opened done [10:21:49]requested_item shift.open_date is exist - process it [10:21:49]req_shift_open_date [10:21:49]req_shift_open_date done [10:21:49]produce_requested_data done [10:21:49]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75340,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:21:49]process_action_free close_receipt [10:21:49]json_value_free [10:21:49]json_value_free done [10:21:49]process_json_proto returns [10:21:49]Send response to host [10:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75340,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:21:49]free response buf [10:21:49]execute_script done [10:21:49]execute_script returns [10:21:49]free content buf [10:21:49]Sock 7.Close socket [10:21:49]Sock 7.Thread stoped [10:21:49]accept exits with 9 [10:21:49]New connection [10:21:49]New thread 3067465060 created [10:21:49]Thread 3067321700 joined [10:21:49]Waiting for new connection... [10:21:49] Sock 9.Parse request [10:21:49]Sock 9.Check first char [10:21:49]Sock 9.First char is OK [10:21:49]request: POST /json_proto HTTP/1.0 [10:21:49]Method: POST [10:21:49]URL: /json_proto [10:21:49]Method is POST - this is cgi request [10:21:49]url: /json_proto [10:21:49]query_string will be loaded in cgi processing [10:21:49]execute_cgi json_proto POST (null) [10:21:49]execute_cgi path=json_proto method=POST [10:21:49]POST find Content-Length [10:21:49]Host: 172.17.44.196:8080 [10:21:49]Content-Length: 664 [10:21:49]Content-Type: application/json [10:21:49] [10:21:49]POST finish read [10:21:49]Found Content-Length = 664 [10:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:21:49]execute_script... [10:21: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)1965324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:21:49]POST & json_proto [10:21:49]process_json_proto [10:21:49]json parsed OK: [10:21:49]protocol is kg_v1.0 [10:21:49]action value=close_receipt [10:21:49]process_action close_receipt [10:21:50]cmd_close_receipt [10:21:50]MH_GetDate [10:21:50]Write to MH i2c: F0 00 00 A5 94 28 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: F0 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: F0 09 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: F0 09 00 A5 94 00 45 CE 18 67 E7 19 F8 65 20 [10:21:50]GetLastDocTimeStamp 1729678912 [10:21:50]current date 1729678917 [10:21:50]FM_GetShiftState [10:21:50]SAM_PROTO_GetShiftState [10:21:50]wFMCommunicate request_size=4 [10:21:50]MH_SAM_APDU [10:21:50]CAPDU: 80 13 01 00 [10:21:50]Write to MH i2c: E2 08 00 A6 94 80 13 01 00 00 00 00 00 B7 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 0E 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 0E 00 A6 94 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1C [10:21:50]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:21:50]wFMCommunicate OK [10:21:50]SAM_PROTO_GetShiftState done [10:21:50]FM_GetShiftState done [10:21:50]opened in 1729642905 [10:21:50]opened+sec_in_day 1729729305 [10:21:50]quantity*price = 100000 [10:21:50]sum+1 = 100002 [10:21:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 74 23.10.2024 10:21 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75341 ФПД: 201210325266526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102157&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75341&fm=201210325266526&tin=02508201610067®Number=0000000000161154&sum=100000 [10:21:51]StoreToDocumentArchive [10:21:51]shift 173 fd 75341 [10:21:51]save to /storage/0173/doc_00075341 [10:21:51]save last doc name /storage/0173/doc_00075341 to /storage/kkm_last_doc_name [10:21:51]save OK [10:21:51]Clear old archive folders... [10:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:21:51]tlvbuf is 00DCB0F0 [10:21:51]SAM_PROTO_ClearQueue [10:21:51]wFMCommunicate request_size=4 [10:21:51]MH_SAM_APDU [10:21:51]CAPDU: 80 09 00 00 [10:21:51]Write to MH i2c: E2 08 00 B3 94 80 09 00 00 00 00 00 00 B9 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:51]Read from MH i2c: E2 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 03 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 03 00 B3 94 00 90 00 BB [10:21:51]RAPDU: 90 00 [10:21:51]wFMCommunicate OK [10:21:51]SAM_PROTO_ClearQueue done [10:21:51]KKMCreateOFDPacket [10:21:51]OFDProtocolAddRootSTLVToBuf [10:21:51]FM_MakeSignedData [10:21:51]FM_MakeSignedData [10:21:51]SAM_PROTO_SignData [10:21:51]wFMCommunicate request_size=4 [10:21:51]MH_SAM_APDU [10:21:51]CAPDU: 80 0D 01 02 [10:21:51]Write to MH i2c: E2 08 00 B4 94 80 0D 01 02 00 00 00 00 C1 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:51]Read from MH i2c: E2 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 03 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 03 00 B4 94 00 90 00 BC [10:21:51]RAPDU: 90 00 [10:21:51]wFMCommunicate OK [10:21:51]wFMCommunicate request_size=253 [10:21:51]MH_SAM_APDU [10:21:51]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4A 00 00 00 F4 03 04 00 45 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4D 26 01 00 35 04 06 00 B6 FF ED F6 70 5E [10:21:51]Write to MH i2c: E2 00 01 B5 94 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4A 00 00 00 F4 03 04 00 45 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4D 26 01 00 35 04 06 00 B6 FF ED F6 70 5E 00 00 89 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:51]Read from MH i2c: E2 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 03 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 03 00 B5 94 00 90 00 BD [10:21:51]RAPDU: 90 00 [10:21:51]wFMCommunicate OK [10:21:51]wFMCommunicate request_size=4 [10:21:51]MH_SAM_APDU [10:21:51]CAPDU: 80 0D 03 02 [10:21:51]Write to MH i2c: E2 08 00 B6 94 80 0D 03 02 00 00 00 00 C5 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 0B 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 0B 00 B6 94 00 66 2D 9B 63 4C 5A 23 D6 90 00 F6 [10:21:52]RAPDU: 66 2D 9B 63 4C 5A 23 D6 90 00 [10:21:52]wFMCommunicate OK [10:21:52]SAM_PROTO_SignData done [10:21:52]FM_MakeSignedData done [10:21:52]CreateOFDProtocolMessage [10:21:52]wFMCommunicate request_size=4 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 11 00 00 [10:21:52]Write to MH i2c: E2 08 00 B7 94 80 11 00 00 00 00 00 00 C5 [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 17 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 17 00 B7 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 12 [10:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:21:52]wFMCommunicate OK [10:21:52]CreateOFDProtocolMessage done [10:21:52]OFDSenderStorePacket 75341 [10:21:52]StoreOFDPacket docnum=75341 [10:21:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 69 FC 00 01 88 FC 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4A 00 00 00 F4 03 04 00 45 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4D 26 01 00 35 04 06 00 B6 FF ED F6 70 5E 66 2D 9B 63 4C 5A 23 D6 [10:21:52]CheckFolder [10:21:52]dirname=/storage/ofd_packets [10:21:52]CheckFolder done [10:21:52]ProducePacketName [10:21:52]name=ofd_packets/00075341 [10:21:52]NVStorageSaveData ofd_packets/00075341 [10:21:52]File name is /storage/ofd_packets/00075341 [10:21:52]Write 294 bytes [10:21:52]NVStorageSaveData done [10:21:52]OFDSenderStorePacket done [10:21:52]KKMCreateOFDPacket done [10:21:52]NVStorageSaveData kkm_last_timestamp [10:21:52]File name is /storage/kkm_last_timestamp [10:21:52]Write 4 bytes [10:21:52]NVStorageSaveData done [10:21:52]ExternCall_PrintAddStr [10:21:52]wPrintStart [10:21:52]Write to MH i2c: 01 00 00 B8 94 4C [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 07 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 07 00 B8 94 00 00 00 00 00 FF 0F 61 [10:21:52]RasterBufferAndPrint [10:21:52]line Счет N : (1)1965324 [10:21:52]line ИНН: 02508201610067 [10:21:52]line Контрольно-Кассовый Чек [10:21:52]line ПРОДАЖА [10:21:52]line ТРК (МРК, ГНК) : 62 [10:21:52]line Товар: 2710124130 [10:21:52]line SU-92 [10:21:52]line 14.620 * 68.40 [10:21:52]line = 1000.01 [10:21:52]line НДС 12% НСП 1% [10:21:52]line > о реализуемом товаре [10:21:52]line ОКРУГЛЕНИЕ: -0.01 [10:21:52]line ИТОГО: 1000.00 [10:21:52]line Внесено: 1000.00 [10:21:52]line СДАЧА: 0.00 [10:21:52]line НСП 1% : 8.85 [10:21:52]line НДС 12% : 106.20 [10:21:52]line Наличными: 1000.00 [10:21:52]line Безнал.: 0.00 [10:21:52]line Место: АЗС № 133 "Партнер Нефть" [10:21:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:21:52]line СНО: Общий режим [10:21:52]line Чек 74 23.10.2024 10:21 [10:21:52]line Смена: 173 ФФД: 1.0 [10:21:52]line ЗНМ: 0300000020 [10:21:52]line РНМ: 0000000000161154 [10:21:52]line Версия ККМ: v1.0 [10:21:52]line ФМ: 0000000000963323 [10:21:52]line ФД: 75341 [10:21:52]line ФПД: 201210325266526 [10:21:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102157&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75341&fm=201210325266526&tin=02508201610067®Number=0000000000161154&sum=100000 [10:21:52]written 0, free lines is 4095 [10:21:52]OFD Sender: Processing packet 75341 [packets to send 15, broken 14] [10:21:52]ProducePacketName [10:21:52]name=ofd_packets/00075341 [10:21:52]OFD Sender: To server: pG, [10:21:52]CommunicateWithHost lk.salyk.kg:30040 [10:21:52]ConnectInit lk.salyk.kg [10:21:52]Connected sock=10 [10:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 69 FC 00 01 88 FC 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4A 00 00 00 F4 03 04 00 45 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4D 26 01 00 35 04 06 00 B6 FF ED F6 70 5E 66 2D 9B 63 4C 5A 23 D6 [10:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4D 1A 47 00 75 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4D 26 01 00 F4 03 04 00 20 77 18 67 B6 04 01 00 00 31 45 6F 41 44 6A CD 13 [10:21:52]CommunicateWithHost err = 0 [10:21:52]CheckOFDResponse [10:21:52]1017 (14) - 77093643461234 [10:21:52]1041 (16) - 0000000000963323 [10:21:52]1040 (4) - 75341 [10:21:52]1012 (4) - 23.10.2024 04:10 [10:21:52]1206 (1) - 0 [10:21:52]OFD Sender: Remove packet 75341 [10:21:52]ProducePacketName [10:21:52]name=ofd_packets/00075341 [10:21:52]NVStorageDeleteData [10:21:52]Write to MH i2c: 01 00 00 E2 94 76 [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 07 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 07 00 E2 94 00 00 00 00 00 B5 0C 3E [10:21:52]RasterBufferAndPrint [10:21:52]line [10:21:52]line [10:21:52]line [10:21:52]line [10:21:52]line [10:21:52]written 0, free lines is 3264 [10:21:52]MH_Cut [10:21:52]Write to MH i2c: D1 01 00 E9 94 01 4F [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: D1 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: D1 01 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: D1 01 00 E9 94 00 4E [10:21:52]Write to MH i2c: 01 00 00 EA 94 7E [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]OFD Sender: No OFD packet to send [10:21:53]*** Cut start [10:21:53]*** Partial cut [10:21:53]*** CUTSNS_PIN = 1 [10:21:53]*** CUTSNS_PIN = 0 [10:21:53]*** Brake cut motor [10:21:54]Read from MH i2c: 01 [10:21:54]MH_I2C_Read... [10:21:54]*** Stop cut motor [10:21:54]*** Cut end [10:21:54]Read from MH i2c: 01 07 00 [10:21:54]MH_I2C_Read... [10:21:54]Read from MH i2c: 01 07 00 EA 94 00 00 00 00 00 FF 0F 93 [10:21:54]process_action close_receipt done [10:21:54]requested_data is exist [10:21:54]produce_requested_data [10:21:54]requested_item fm.sn is exist - process it [10:21:54]wFMCommunicate request_size=4 [10:21:54]MH_SAM_APDU [10:21:54]CAPDU: 80 11 00 00 [10:21:54]Write to MH i2c: E2 08 00 EB 94 80 11 00 00 00 00 00 00 F9 [10:21:54]Write i2c OK [10:21:54]MH_I2C_Read... [10:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:54]Read from MH i2c: E2 [10:21:54]MH_I2C_Read... [10:21:54]Read from MH i2c: E2 17 00 [10:21:54]MH_I2C_Read... [10:21:54]Read from MH i2c: E2 17 00 EB 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 46 [10:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:21:54]wFMCommunicate OK [10:21:54]requested_item fd.num is exist - process it [10:21:54]SAM_PROTO_GetFieldsCounters [10:21:54]wFMCommunicate request_size=4 [10:21:54]MH_SAM_APDU [10:21:54]CAPDU: 80 13 00 00 [10:21:54]Write to MH i2c: E2 08 00 EC 94 80 13 00 00 00 00 00 00 FC [10:21:54]Write i2c OK [10:21:54]MH_I2C_Read... [10:21:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:54]Read from MH i2c: E2 [10:21:54]MH_I2C_Read... [10:21:54]Read from MH i2c: E2 62 00 [10:21:54]MH_I2C_Read... [10:21:54]Read from MH i2c: E2 62 00 EC 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4D 26 01 00 0E 04 04 00 AD 00 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 0F [10:21:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4D 26 01 00 0E 04 04 00 AD 00 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 [10:21:54]wFMCommunicate OK [10:21:54]SAM_PROTO_GetFieldsCounters done [10:21:54]requested_item shift.num is exist - process it [10:21:54]requested_item shift.opened is exist - process it [10:21:54]req_shift_opened [10:21:54]FM_GetShiftState [10:21:54]SAM_PROTO_GetShiftState [10:21:54]wFMCommunicate request_size=4 [10:21:54]MH_SAM_APDU [10:21:54]CAPDU: 80 13 01 00 [10:21:54]Write to MH i2c: E2 08 00 ED 94 80 13 01 00 00 00 00 00 FE [10:21:54]Write i2c OK [10:21:54]MH_I2C_Read... [10:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:54]Read from MH i2c: E2 [10:21:54]MH_I2C_Read... [10:21:54]Read from MH i2c: E2 0E 00 [10:21:54]MH_I2C_Read... [10:21:54]Read from MH i2c: E2 0E 00 ED 94 00 09 00 01 99 41 18 67 00 00 00 00 90 00 63 [10:21:54]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:21:54]wFMCommunicate OK [10:21:54]SAM_PROTO_GetShiftState done [10:21:54]FM_GetShiftState done [10:21:54]req_shift_opened done [10:21:54]requested_item shift.open_date is exist - process it [10:21:54]req_shift_open_date [10:21:54]req_shift_open_date done [10:21:54]produce_requested_data done [10:21:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75341,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:21:54]process_action_free close_receipt [10:21:54]json_value_free [10:21:54]json_value_free done [10:21:54]process_json_proto returns [10:21:54]Send response to host [10:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75341,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:21:54]free response buf [10:21:54]execute_script done [10:21:54]execute_script returns [10:21:54]free content buf [10:21:54]Sock 9.Close socket [10:21:54]Sock 9.Thread stoped [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:35]accept exits with 7 [10:22:35]New connection [10:22:35]New thread 3067321700 created [10:22:35]Thread 3067465060 joined [10:22:35]Waiting for new connection... [10:22:35] Sock 7.Parse request [10:22:35]Sock 7.Check first char [10:22:35]Sock 7.First char is OK [10:22:35]request: POST /json_proto HTTP/1.0 [10:22:35]Method: POST [10:22:35]URL: /json_proto [10:22:35]Method is POST - this is cgi request [10:22:35]url: /json_proto [10:22:35]query_string will be loaded in cgi processing [10:22:35]execute_cgi json_proto POST (null) [10:22:35]execute_cgi path=json_proto method=POST [10:22:35]POST find Content-Length [10:22:35]Host: 172.17.44.196:8080 [10:22:35]Content-Length: 679 [10:22:35]Content-Type: application/json [10:22:35] [10:22:35]POST finish read [10:22:35]Found Content-Length = 679 [10:22:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.770, "sum" : 720.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:35]execute_script... [10:22: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)1965325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.770, "sum" : 720.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:35]POST & json_proto [10:22:35]process_json_proto [10:22:35]json parsed OK: [10:22:35]protocol is kg_v1.0 [10:22:35]action value=close_receipt [10:22:35]process_action close_receipt [10:22:35]cmd_close_receipt [10:22:35]MH_GetDate [10:22:35]Write to MH i2c: F0 00 00 EE 94 71 [10:22:35]Write i2c OK [10:22:35]MH_I2C_Read... [10:22:35]Read from MH i2c: F0 [10:22:35]MH_I2C_Read... [10:22:35]Read from MH i2c: F0 09 00 [10:22:35]MH_I2C_Read... [10:22:35]Read from MH i2c: F0 09 00 EE 94 00 72 CE 18 67 E7 19 F8 65 96 [10:22:35]GetLastDocTimeStamp 1729678917 [10:22:35]current date 1729678962 [10:22:35]FM_GetShiftState [10:22:35]SAM_PROTO_GetShiftState [10:22:35]wFMCommunicate request_size=4 [10:22:35]MH_SAM_APDU [10:22:35]CAPDU: 80 13 01 00 [10:22:35]Write to MH i2c: E2 08 00 EF 94 80 13 01 00 00 00 00 00 00 [10:22:35]Write i2c OK [10:22:35]MH_I2C_Read... [10:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:35]Read from MH i2c: E2 [10:22:35]MH_I2C_Read... [10:22:35]Read from MH i2c: E2 0E 00 [10:22:35]MH_I2C_Read... [10:22:35]Read from MH i2c: E2 0E 00 EF 94 00 09 00 01 99 41 18 67 00 00 00 00 90 00 65 [10:22:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:22:35]wFMCommunicate OK [10:22:35]SAM_PROTO_GetShiftState done [10:22:35]FM_GetShiftState done [10:22:35]opened in 1729642905 [10:22:35]opened+sec_in_day 1729729305 [10:22:35]quantity*price = 72051 [10:22:35]sum+1 = 72052 [10:22:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 75 23.10.2024 10:22 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75342 ФПД: 23286287059753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102242&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75342&fm=23286287059753&tin=02508201610067®Number=0000000000161154&sum=72000 [10:22:36]StoreToDocumentArchive [10:22:36]shift 173 fd 75342 [10:22:36]save to /storage/0173/doc_00075342 [10:22:36]save last doc name /storage/0173/doc_00075342 to /storage/kkm_last_doc_name [10:22:36]save OK [10:22:36]Clear old archive folders... [10:22:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:36]tlvbuf is 00F038E0 [10:22:36]SAM_PROTO_ClearQueue [10:22:36]wFMCommunicate request_size=4 [10:22:36]MH_SAM_APDU [10:22:36]CAPDU: 80 09 00 00 [10:22:36]Write to MH i2c: E2 08 00 FC 94 80 09 00 00 00 00 00 00 02 [10:22:36]Write i2c OK [10:22:36]MH_I2C_Read... [10:22:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:36]Read from MH i2c: E2 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 03 00 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 03 00 FC 94 00 90 00 04 [10:22:36]RAPDU: 90 00 [10:22:36]wFMCommunicate OK [10:22:36]SAM_PROTO_ClearQueue done [10:22:36]KKMCreateOFDPacket [10:22:36]OFDProtocolAddRootSTLVToBuf [10:22:36]FM_MakeSignedData [10:22:36]FM_MakeSignedData [10:22:36]SAM_PROTO_SignData [10:22:36]wFMCommunicate request_size=4 [10:22:36]MH_SAM_APDU [10:22:36]CAPDU: 80 0D 01 02 [10:22:36]Write to MH i2c: E2 08 00 FD 94 80 0D 01 02 00 00 00 00 0A [10:22:36]Write i2c OK [10:22:36]MH_I2C_Read... [10:22:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:36]Read from MH i2c: E2 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 03 00 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 03 00 FD 94 00 90 00 05 [10:22:36]RAPDU: 90 00 [10:22:36]wFMCommunicate OK [10:22:36]wFMCommunicate request_size=255 [10:22:36]MH_SAM_APDU [10:22: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 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 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 72 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4E 26 01 00 35 04 06 00 15 [10:22:36]Write to MH i2c: E2 02 01 FE 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 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 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 72 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4E 26 01 00 35 04 06 00 15 00 00 81 [10:22:36]Write i2c OK [10:22:36]MH_I2C_Read... [10:22:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:36]Read from MH i2c: E2 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 03 00 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 03 00 FE 94 00 90 00 06 [10:22:36]RAPDU: 90 00 [10:22:36]wFMCommunicate OK [10:22:36]wFMCommunicate request_size=10 [10:22:36]MH_SAM_APDU [10:22:36]CAPDU: 80 0D 02 02 05 2D C2 DE 4B 29 [10:22:36]Write to MH i2c: E2 0D 00 FF 94 80 0D 02 02 05 00 2D C2 DE 4B 29 00 00 58 [10:22:36]Write i2c OK [10:22:36]MH_I2C_Read... [10:22:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:36]Read from MH i2c: E2 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 03 00 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 03 00 FF 94 00 90 00 07 [10:22:36]RAPDU: 90 00 [10:22:36]wFMCommunicate OK [10:22:36]wFMCommunicate request_size=4 [10:22:36]MH_SAM_APDU [10:22:36]CAPDU: 80 0D 03 02 [10:22:36]Write to MH i2c: E2 08 00 00 95 80 0D 03 02 00 00 00 00 10 [10:22:36]Write i2c OK [10:22:36]MH_I2C_Read... [10:22:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:37]Read from MH i2c: E2 [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: E2 0B 00 [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: E2 0B 00 00 95 00 C7 3A FB 08 96 15 51 CB 90 00 DC [10:22:37]RAPDU: C7 3A FB 08 96 15 51 CB 90 00 [10:22:37]wFMCommunicate OK [10:22:37]SAM_PROTO_SignData done [10:22:37]FM_MakeSignedData done [10:22:37]CreateOFDProtocolMessage [10:22:37]wFMCommunicate request_size=4 [10:22:37]MH_SAM_APDU [10:22:37]CAPDU: 80 11 00 00 [10:22:37]Write to MH i2c: E2 08 00 01 95 80 11 00 00 00 00 00 00 10 [10:22:37]Write i2c OK [10:22:37]MH_I2C_Read... [10:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:37]Read from MH i2c: E2 [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: E2 17 00 [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: E2 17 00 01 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [10:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:22:37]wFMCommunicate OK [10:22:37]CreateOFDProtocolMessage done [10:22:37]OFDSenderStorePacket 75342 [10:22:37]StoreOFDPacket docnum=75342 [10:22:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 3C 52 07 01 5C 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 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 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 72 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4E 26 01 00 35 04 06 00 15 2D C2 DE 4B 29 C7 3A FB 08 96 15 51 CB [10:22:37]CheckFolder [10:22:37]dirname=/storage/ofd_packets [10:22:37]CheckFolder done [10:22:37]ProducePacketName [10:22:37]name=ofd_packets/00075342 [10:22:37]NVStorageSaveData ofd_packets/00075342 [10:22:37]File name is /storage/ofd_packets/00075342 [10:22:37]Write 301 bytes [10:22:37]NVStorageSaveData done [10:22:37]OFDSenderStorePacket done [10:22:37]KKMCreateOFDPacket done [10:22:37]NVStorageSaveData kkm_last_timestamp [10:22:37]File name is /storage/kkm_last_timestamp [10:22:37]OFD Sender: Processing packet 75342 [packets to send 15, broken 14] [10:22:37]ProducePacketName [10:22:37]name=ofd_packets/00075342 [10:22:37]OFD Sender: To server: pG, [10:22:37]CommunicateWithHost lk.salyk.kg:30040 [10:22:37]ConnectInit lk.salyk.kg [10:22:37]Write 4 bytes [10:22:37]NVStorageSaveData done [10:22:37]ExternCall_PrintAddStr [10:22:37]wPrintStart [10:22:37]Write to MH i2c: 01 00 00 02 95 97 [10:22:37]Write i2c OK [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: 01 [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: 01 07 00 [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: 01 07 00 02 95 00 00 00 00 00 FF 0F AC [10:22:37]RasterBufferAndPrint [10:22:37]line Счет N : (1)1965325 [10:22:37]line ИНН: 02508201610067 [10:22:37]line Контрольно-Кассовый Чек [10:22:37]line ПРОДАЖА [10:22:37]line ТРК (МРК, ГНК) : 33 [10:22:37]line Товар: 2710124130 [10:22:37]line Аи-92-К-5 [10:22:37]line 10.770 * 66.90 [10:22:37]line = 720.51 [10:22:37]line НДС 12% НСП 1% [10:22:37]line > о реализуемом товаре [10:22:37]line ОКРУГЛЕНИЕ: -0.51 [10:22:37]line ИТОГО: 720.00 [10:22:37]line Внесено: 720.00 [10:22:37]line СДАЧА: 0.00 [10:22:37]line НСП 1% : 6.38 [10:22:37]line НДС 12% : 76.51 [10:22:37]line Наличными: 720.00 [10:22:37]line Безнал.: 0.00 [10:22:37]line Место: АЗС № 133 "Партнер Нефть" [10:22:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:22:37]line СНО: Общий режим [10:22:37]line Чек 75 23.10.2024 10:22 [10:22:37]line Смена: 173 ФФД: 1.0 [10:22:37]line ЗНМ: 0300000020 [10:22:37]line РНМ: 0000000000161154 [10:22:37]line Версия ККМ: v1.0 [10:22:37]line ФМ: 0000000000963323 [10:22:37]line ФД: 75342 [10:22:37]line ФПД: 23286287059753 [10:22:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102242&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75342&fm=23286287059753&tin=02508201610067®Number=0000000000161154&sum=72000 [10:22:37]Connected sock=11 [10:22:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 3C 52 07 01 5C 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 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 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 72 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4E 26 01 00 35 04 06 00 15 2D C2 DE 4B 29 C7 3A FB 08 96 15 51 CB [10:22:37]written 0, free lines is 4095 [10:22:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8A 9F 47 00 3A 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4E 26 01 00 F4 03 04 00 4D 77 18 67 B6 04 01 00 00 AE 77 CA B4 EE 86 C6 1A [10:22:37]CommunicateWithHost err = 0 [10:22:37]CheckOFDResponse [10:22:37]1017 (14) - 77093643461234 [10:22:37]1041 (16) - 0000000000963323 [10:22:37]1040 (4) - 75342 [10:22:37]1012 (4) - 23.10.2024 04:10 [10:22:37]1206 (1) - 0 [10:22:37]OFD Sender: Remove packet 75342 [10:22:37]ProducePacketName [10:22:37]name=ofd_packets/00075342 [10:22:37]NVStorageDeleteData [10:22:37]Write to MH i2c: 01 00 00 2C 95 C1 [10:22:37]Write i2c OK [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: 01 [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: 01 07 00 [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: 01 07 00 2C 95 00 00 00 00 00 B3 0C 87 [10:22:37]RasterBufferAndPrint [10:22:37]line [10:22:37]line [10:22:37]line [10:22:37]line [10:22:37]line [10:22:37]written 0, free lines is 3256 [10:22:37]MH_Cut [10:22:37]Write to MH i2c: D1 01 00 33 95 01 9A [10:22:37]Write i2c OK [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: D1 [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: D1 01 00 [10:22:37]MH_I2C_Read... [10:22:37]Read from MH i2c: D1 01 00 33 95 00 99 [10:22:37]Write to MH i2c: 01 00 00 34 95 C9 [10:22:37]Write i2c OK [10:22:37]MH_I2C_Read... [10:22:38]OFD Sender: No OFD packet to send [10:22:38]*** Cut start [10:22:38]*** Partial cut [10:22:38]*** CUTSNS_PIN = 1 [10:22:38]*** CUTSNS_PIN = 0 [10:22:39]*** Brake cut motor [10:22:39]Read from MH i2c: 01 [10:22:39]MH_I2C_Read... [10:22:39]*** Stop cut motor [10:22:39]*** Cut end [10:22:39]Read from MH i2c: 01 07 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: 01 07 00 34 95 00 00 00 00 00 FF 0F DE [10:22:39]process_action close_receipt done [10:22:39]requested_data is exist [10:22:39]produce_requested_data [10:22:39]requested_item fm.sn is exist - process it [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 11 00 00 [10:22:39]Write to MH i2c: E2 08 00 35 95 80 11 00 00 00 00 00 00 44 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 17 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 17 00 35 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 91 [10:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:22:39]wFMCommunicate OK [10:22:39]requested_item fd.num is exist - process it [10:22:39]SAM_PROTO_GetFieldsCounters [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 13 00 00 [10:22:39]Write to MH i2c: E2 08 00 36 95 80 13 00 00 00 00 00 00 47 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 62 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 62 00 36 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4E 26 01 00 0E 04 04 00 AD 00 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 5E [10:22:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4E 26 01 00 0E 04 04 00 AD 00 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 [10:22:39]wFMCommunicate OK [10:22:39]SAM_PROTO_GetFieldsCounters done [10:22:39]requested_item shift.num is exist - process it [10:22:39]requested_item shift.opened is exist - process it [10:22:39]req_shift_opened [10:22:39]FM_GetShiftState [10:22:39]SAM_PROTO_GetShiftState [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 13 01 00 [10:22:39]Write to MH i2c: E2 08 00 37 95 80 13 01 00 00 00 00 00 49 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 0E 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 0E 00 37 95 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AE [10:22:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:22:39]wFMCommunicate OK [10:22:39]SAM_PROTO_GetShiftState done [10:22:39]FM_GetShiftState done [10:22:39]req_shift_opened done [10:22:39]requested_item shift.open_date is exist - process it [10:22:39]req_shift_open_date [10:22:39]req_shift_open_date done [10:22:39]produce_requested_data done [10:22:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75342,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:22:39]process_action_free close_receipt [10:22:39]json_value_free [10:22:39]json_value_free done [10:22:39]process_json_proto returns [10:22:39]Send response to host [10:22:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75342,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:22:39]free response buf [10:22:39]execute_script done [10:22:39]execute_script returns [10:22:39]free content buf [10:22:39]Sock 7.Close socket [10:22:39]Sock 7.Thread stoped [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]accept exits with 9 [10:23:33]New connection [10:23:33]New thread 3067465060 created [10:23:33]Thread 3067321700 joined [10:23:33]Waiting for new connection... [10:23:33] Sock 9.Parse request [10:23:33]Sock 9.Check first char [10:23:33]Sock 9.First char is OK [10:23:33]request: POST /json_proto HTTP/1.0 [10:23:33]Method: POST [10:23:33]URL: /json_proto [10:23:33]Method is POST - this is cgi request [10:23:33]url: /json_proto [10:23:33]query_string will be loaded in cgi processing [10:23:33]execute_cgi json_proto POST (null) [10:23:33]execute_cgi path=json_proto method=POST [10:23:33]POST find Content-Length [10:23:33]Host: 172.17.44.196:8080 [10:23:33]Content-Length: 801 [10:23:33]Content-Type: application/json [10:23:33] [10:23:33]POST finish read [10:23:33]Found Content-Length = 801 [10:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1646169", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:33]execute_script... [10:23: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)1965327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1646169", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:33]POST & json_proto [10:23:33]process_json_proto [10:23:33]json parsed OK: [10:23:33]protocol is kg_v1.0 [10:23:33]action value=close_receipt [10:23:33]process_action close_receipt [10:23:33]cmd_close_receipt [10:23:33]MH_GetDate [10:23:33]Write to MH i2c: F0 00 00 38 95 BC [10:23:33]Write i2c OK [10:23:33]MH_I2C_Read... [10:23:33]Read from MH i2c: F0 [10:23:33]MH_I2C_Read... [10:23:33]Read from MH i2c: F0 09 00 [10:23:33]MH_I2C_Read... [10:23:33]Read from MH i2c: F0 09 00 38 95 00 AC CE 18 67 E7 19 F8 65 1B [10:23:33]GetLastDocTimeStamp 1729678962 [10:23:33]current date 1729679020 [10:23:33]FM_GetShiftState [10:23:33]SAM_PROTO_GetShiftState [10:23:33]wFMCommunicate request_size=4 [10:23:33]MH_SAM_APDU [10:23:33]CAPDU: 80 13 01 00 [10:23:33]Write to MH i2c: E2 08 00 39 95 80 13 01 00 00 00 00 00 4B [10:23:33]Write i2c OK [10:23:33]MH_I2C_Read... [10:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:33]Read from MH i2c: E2 [10:23:33]MH_I2C_Read... [10:23:33]Read from MH i2c: E2 0E 00 [10:23:33]MH_I2C_Read... [10:23:33]Read from MH i2c: E2 0E 00 39 95 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B0 [10:23:33]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:23:33]wFMCommunicate OK [10:23:33]SAM_PROTO_GetShiftState done [10:23:33]FM_GetShiftState done [10:23:33]opened in 1729642905 [10:23:33]opened+sec_in_day 1729729305 [10:23:33]quantity*price = 0 [10:23:33]sum+1 = 1 [10:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 76 23.10.2024 10:23 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: Топливные Талоны 1646169 ФМ: 0000000000963323 ФД: 75343 ФПД: 18697978287869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102340&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75343&fm=18697978287869&tin=02508201610067®Number=0000000000161154&sum=0 [10:23:34]StoreToDocumentArchive [10:23:34]shift 173 fd 75343 [10:23:34]save to /storage/0173/doc_00075343 [10:23:34]save last doc name /storage/0173/doc_00075343 to /storage/kkm_last_doc_name [10:23:34]save OK [10:23:34]Clear old archive folders... [10:23:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:34]tlvbuf is 00DBC480 [10:23:34]SAM_PROTO_ClearQueue [10:23:34]wFMCommunicate request_size=4 [10:23:34]MH_SAM_APDU [10:23:34]CAPDU: 80 09 00 00 [10:23:34]Write to MH i2c: E2 08 00 46 95 80 09 00 00 00 00 00 00 4D [10:23:34]Write i2c OK [10:23:34]MH_I2C_Read... [10:23:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:34]Read from MH i2c: E2 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 03 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 03 00 46 95 00 90 00 4F [10:23:34]RAPDU: 90 00 [10:23:34]wFMCommunicate OK [10:23:34]SAM_PROTO_ClearQueue done [10:23:34]KKMCreateOFDPacket [10:23:34]OFDProtocolAddRootSTLVToBuf [10:23:34]FM_MakeSignedData [10:23:34]FM_MakeSignedData [10:23:34]SAM_PROTO_SignData [10:23:34]wFMCommunicate request_size=4 [10:23:34]MH_SAM_APDU [10:23:34]CAPDU: 80 0D 01 02 [10:23:34]Write to MH i2c: E2 08 00 47 95 80 0D 01 02 00 00 00 00 55 [10:23:34]Write i2c OK [10:23:34]MH_I2C_Read... [10:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:34]Read from MH i2c: E2 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 03 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 03 00 47 95 00 90 00 50 [10:23:34]RAPDU: 90 00 [10:23:34]wFMCommunicate OK [10:23:34]wFMCommunicate request_size=255 [10:23:34]MH_SAM_APDU [10:23: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 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AC CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4F 26 01 00 35 04 06 00 11 [10:23:34]Write to MH i2c: E2 02 01 48 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 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AC CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4F 26 01 00 35 04 06 00 11 00 00 3D [10:23:34]Write i2c OK [10:23:34]MH_I2C_Read... [10:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:34]Read from MH i2c: E2 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 03 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 03 00 48 95 00 90 00 51 [10:23:34]RAPDU: 90 00 [10:23:34]wFMCommunicate OK [10:23:34]wFMCommunicate request_size=10 [10:23:34]MH_SAM_APDU [10:23:34]CAPDU: 80 0D 02 02 05 01 76 5A 96 FD [10:23:34]Write to MH i2c: E2 0D 00 49 95 80 0D 02 02 05 00 01 76 5A 96 FD 00 00 C6 [10:23:34]Write i2c OK [10:23:34]MH_I2C_Read... [10:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:34]Read from MH i2c: E2 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 03 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 03 00 49 95 00 90 00 52 [10:23:34]RAPDU: 90 00 [10:23:34]wFMCommunicate OK [10:23:34]wFMCommunicate request_size=4 [10:23:34]MH_SAM_APDU [10:23:34]CAPDU: 80 0D 03 02 [10:23:34]Write to MH i2c: E2 08 00 4A 95 80 0D 03 02 00 00 00 00 5A [10:23:34]Write i2c OK [10:23:34]MH_I2C_Read... [10:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:34]Read from MH i2c: E2 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 0B 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 0B 00 4A 95 00 8D 6E 75 17 74 F6 3D F9 90 00 82 [10:23:34]RAPDU: 8D 6E 75 17 74 F6 3D F9 90 00 [10:23:34]wFMCommunicate OK [10:23:34]SAM_PROTO_SignData done [10:23:34]FM_MakeSignedData done [10:23:34]CreateOFDProtocolMessage [10:23:34]wFMCommunicate request_size=4 [10:23:34]MH_SAM_APDU [10:23:34]CAPDU: 80 11 00 00 [10:23:34]Write to MH i2c: E2 08 00 4B 95 80 11 00 00 00 00 00 00 5A [10:23:34]Write i2c OK [10:23:34]MH_I2C_Read... [10:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:34]Read from MH i2c: E2 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 17 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: E2 17 00 4B 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A7 [10:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:23:34]wFMCommunicate OK [10:23:34]CreateOFDProtocolMessage done [10:23:34]OFDSenderStorePacket 75343 [10:23:34]StoreOFDPacket docnum=75343 [10:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 04 65 07 01 94 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 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AC CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4F 26 01 00 35 04 06 00 11 01 76 5A 96 FD 8D 6E 75 17 74 F6 3D F9 [10:23:34]CheckFolder [10:23:34]dirname=/storage/ofd_packets [10:23:34]CheckFolder done [10:23:34]ProducePacketName [10:23:34]name=ofd_packets/00075343 [10:23:34]NVStorageSaveData ofd_packets/00075343 [10:23:34]File name is /storage/ofd_packets/00075343 [10:23:34]Write 301 bytes [10:23:34]NVStorageSaveData done [10:23:34]OFDSenderStorePacket done [10:23:34]KKMCreateOFDPacket done [10:23:34]NVStorageSaveData kkm_last_timestamp [10:23:34]File name is /storage/kkm_last_timestamp [10:23:34]Write 4 bytes [10:23:34]NVStorageSaveData done [10:23:34]ExternCall_PrintAddStr [10:23:34]wPrintStart [10:23:34]Write to MH i2c: 01 00 00 4C 95 E1 [10:23:34]Write i2c OK [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: 01 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: 01 07 00 [10:23:34]MH_I2C_Read... [10:23:34]Read from MH i2c: 01 07 00 4C 95 00 00 00 00 00 FF 0F F6 [10:23:34]RasterBufferAndPrint [10:23:34]line Счет N : (1)1965327 [10:23:34]line ИНН: 02508201610067 [10:23:34]line Контрольно-Кассовый Чек [10:23:34]line ПРОДАЖА [10:23:34]line ТРК (МРК, ГНК) : 54 [10:23:34]line Товар: 2710124500 [10:23:34]line Аи-95-К-5 [10:23:34]line 20.000 * 0.00 [10:23:34]line = 0.00 [10:23:34]line НДС 12% НСП 1% [10:23:34]line > о реализуемом товаре [10:23:34]line ИТОГО: 0.00 [10:23:34]line НСП 1% : 0.00 [10:23:34]line НДС 12% : 0.00 [10:23:34]line Наличными: 0.00 [10:23:34]line Безнал.: 0.00 [10:23:34]line Место: АЗС № 133 "Партнер Нефть" [10:23:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:23:34]line СНО: Общий режим [10:23:34]line Чек 76 23.10.2024 10:23 [10:23:34]line Смена: 173 ФФД: 1.0 [10:23:34]line ЗНМ: 0300000020 [10:23:34]line РНМ: 0000000000161154 [10:23:34]line Версия ККМ: v1.0 [10:23:34]line Талоны: Топливные Талоны [10:23:34]line 1646169 [10:23:34]line ФМ: 0000000000963323 [10:23:34]line ФД: 75343 [10:23:34]line ФПД: 18697978287869 [10:23:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102340&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75343&fm=18697978287869&tin=02508201610067®Number=0000000000161154&sum=0 [10:23:35]OFD Sender: Processing packet 75343 [packets to send 15, broken 14] [10:23:35]ProducePacketName [10:23:35]name=ofd_packets/00075343 [10:23:35]OFD Sender: To server: pG, [10:23:35]CommunicateWithHost lk.salyk.kg:30040 [10:23:35]ConnectInit lk.salyk.kg [10:23:35]written 0, free lines is 4095 [10:23:35]Connected sock=10 [10:23:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 04 65 07 01 94 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 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 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AC CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 4F 26 01 00 35 04 06 00 11 01 76 5A 96 FD 8D 6E 75 17 74 F6 3D F9 [10:23:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F5 A1 47 00 B6 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 39 36 33 33 32 33 10 04 04 00 4F 26 01 00 F4 03 04 00 87 77 18 67 B6 04 01 00 00 D0 A2 A7 A5 AA 14 DD EC [10:23:35]CommunicateWithHost err = 0 [10:23:35]CheckOFDResponse [10:23:35]1017 (14) - 77093643461234 [10:23:35]1041 (16) - 0000000000963323 [10:23:35]1040 (4) - 75343 [10:23:35]1012 (4) - 23.10.2024 04:11 [10:23:35]1206 (1) - 0 [10:23:35]OFD Sender: Remove packet 75343 [10:23:35]ProducePacketName [10:23:35]name=ofd_packets/00075343 [10:23:35]NVStorageDeleteData [10:23:35]Write to MH i2c: 01 00 00 75 95 0A [10:23:35]Write i2c OK [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: 01 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: 01 07 00 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: 01 07 00 75 95 00 00 00 00 00 C7 0C E4 [10:23:35]RasterBufferAndPrint [10:23:35]line [10:23:35]line [10:23:35]line [10:23:35]line [10:23:35]line [10:23:35]written 0, free lines is 3276 [10:23:35]MH_Cut [10:23:35]Write to MH i2c: D1 01 00 7C 95 01 E3 [10:23:35]Write i2c OK [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: D1 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: D1 01 00 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: D1 01 00 7C 95 00 E2 [10:23:35]Write to MH i2c: 01 00 00 7D 95 12 [10:23:35]Write i2c OK [10:23:35]MH_I2C_Read... [10:23:35]OFD Sender: No OFD packet to send [10:23:36]*** Cut start [10:23:36]*** Partial cut [10:23:36]*** CUTSNS_PIN = 1 [10:23:36]*** CUTSNS_PIN = 0 [10:23:36]*** Brake cut motor [10:23:37]Read from MH i2c: 01 [10:23:37]MH_I2C_Read... [10:23:37]*** Stop cut motor [10:23:37]*** Cut end [10:23:37]Read from MH i2c: 01 07 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 07 00 7D 95 00 00 00 00 00 FF 0F 27 [10:23:37]process_action close_receipt done [10:23:37]requested_data is exist [10:23:37]produce_requested_data [10:23:37]requested_item fm.sn is exist - process it [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 11 00 00 [10:23:37]Write to MH i2c: E2 08 00 7E 95 80 11 00 00 00 00 00 00 8D [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 17 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 17 00 7E 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DA [10:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:23:37]wFMCommunicate OK [10:23:37]requested_item fd.num is exist - process it [10:23:37]SAM_PROTO_GetFieldsCounters [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 13 00 00 [10:23:37]Write to MH i2c: E2 08 00 7F 95 80 13 00 00 00 00 00 00 90 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 62 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 62 00 7F 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4F 26 01 00 0E 04 04 00 AD 00 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 AB [10:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 4F 26 01 00 0E 04 04 00 AD 00 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 [10:23:37]wFMCommunicate OK [10:23:37]SAM_PROTO_GetFieldsCounters done [10:23:37]requested_item shift.num is exist - process it [10:23:37]requested_item shift.opened is exist - process it [10:23:37]req_shift_opened [10:23:37]FM_GetShiftState [10:23:37]SAM_PROTO_GetShiftState [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 13 01 00 [10:23:37]Write to MH i2c: E2 08 00 80 95 80 13 01 00 00 00 00 00 92 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0E 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0E 00 80 95 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F7 [10:23:37]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:23:37]wFMCommunicate OK [10:23:37]SAM_PROTO_GetShiftState done [10:23:37]FM_GetShiftState done [10:23:37]req_shift_opened done [10:23:37]requested_item shift.open_date is exist - process it [10:23:37]req_shift_open_date [10:23:37]req_shift_open_date done [10:23:37]produce_requested_data done [10:23:37]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75343,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:23:37]process_action_free close_receipt [10:23:37]json_value_free [10:23:37]json_value_free done [10:23:37]process_json_proto returns [10:23:37]Send response to host [10:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75343,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:23:37]free response buf [10:23:37]execute_script done [10:23:37]execute_script returns [10:23:37]free content buf [10:23:37]Sock 9.Close socket [10:23:37]Sock 9.Thread stoped [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]accept exits with 7 [10:23:55]New connection [10:23:55]New thread 3067321700 created [10:23:55]Thread 3067465060 joined [10:23:55]Waiting for new connection... [10:23:55] Sock 7.Parse request [10:23:55]Sock 7.Check first char [10:23:55]Sock 7.First char is OK [10:23:55]request: POST /json_proto HTTP/1.0 [10:23:55]Method: POST [10:23:55]URL: /json_proto [10:23:55]Method is POST - this is cgi request [10:23:55]url: /json_proto [10:23:55]query_string will be loaded in cgi processing [10:23:55]execute_cgi json_proto POST (null) [10:23:55]execute_cgi path=json_proto method=POST [10:23:55]POST find Content-Length [10:23:55]Host: 172.17.44.196:8080 [10:23:55]Content-Length: 673 [10:23:55]Content-Type: application/json [10:23:55] [10:23:55]POST finish read [10:23:55]Found Content-Length = 673 [10:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 20.570, "sum" : 800.17, "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" ] } } [10:23:55]execute_script... [10:23: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)1965326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 20.570, "sum" : 800.17, "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" ] } } [10:23:55]POST & json_proto [10:23:55]process_json_proto [10:23:55]json parsed OK: [10:23:55]protocol is kg_v1.0 [10:23:55]action value=close_receipt [10:23:55]process_action close_receipt [10:23:55]cmd_close_receipt [10:23:55]MH_GetDate [10:23:55]Write to MH i2c: F0 00 00 81 95 05 [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: F0 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: F0 09 00 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: F0 09 00 81 95 00 C3 CE 18 67 E7 19 F8 65 7B [10:23:55]GetLastDocTimeStamp 1729679020 [10:23:55]current date 1729679043 [10:23:55]FM_GetShiftState [10:23:55]SAM_PROTO_GetShiftState [10:23:55]wFMCommunicate request_size=4 [10:23:55]MH_SAM_APDU [10:23:55]CAPDU: 80 13 01 00 [10:23:55]Write to MH i2c: E2 08 00 82 95 80 13 01 00 00 00 00 00 94 [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:56]OFD Sender: No OFD packet to send [10:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:56]Read from MH i2c: E2 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 0E 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 0E 00 82 95 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F9 [10:23:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:23:56]wFMCommunicate OK [10:23:56]SAM_PROTO_GetShiftState done [10:23:56]FM_GetShiftState done [10:23:56]opened in 1729642905 [10:23:56]opened+sec_in_day 1729729305 [10:23:56]quantity*price = 80017 [10:23:56]sum+1 = 80018 [10:23:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 77 23.10.2024 10:24 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75344 ФПД: 237311694380879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102403&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75344&fm=237311694380879&tin=02508201610067®Number=0000000000161154&sum=80000 [10:23:57]StoreToDocumentArchive [10:23:57]shift 173 fd 75344 [10:23:57]save to /storage/0173/doc_00075344 [10:23:57]save last doc name /storage/0173/doc_00075344 to /storage/kkm_last_doc_name [10:23:57]save OK [10:23:57]Clear old archive folders... [10:23:57]ProcessDocumentItem done err = 0, tmpTLVsize=245 [10:23:57]tlvbuf is 00DC5990 [10:23:57]SAM_PROTO_ClearQueue [10:23:57]wFMCommunicate request_size=4 [10:23:57]MH_SAM_APDU [10:23:57]CAPDU: 80 09 00 00 [10:23:57]Write to MH i2c: E2 08 00 8F 95 80 09 00 00 00 00 00 00 96 [10:23:57]Write i2c OK [10:23:57]MH_I2C_Read... [10:23:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:57]Read from MH i2c: E2 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 03 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 03 00 8F 95 00 90 00 98 [10:23:57]RAPDU: 90 00 [10:23:57]wFMCommunicate OK [10:23:57]SAM_PROTO_ClearQueue done [10:23:57]KKMCreateOFDPacket [10:23:57]OFDProtocolAddRootSTLVToBuf [10:23:57]FM_MakeSignedData [10:23:57]FM_MakeSignedData [10:23:57]SAM_PROTO_SignData [10:23:57]wFMCommunicate request_size=4 [10:23:57]MH_SAM_APDU [10:23:57]CAPDU: 80 0D 01 02 [10:23:57]Write to MH i2c: E2 08 00 90 95 80 0D 01 02 00 00 00 00 9E [10:23:57]Write i2c OK [10:23:57]MH_I2C_Read... [10:23:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:57]Read from MH i2c: E2 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 03 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 03 00 90 95 00 90 00 99 [10:23:57]RAPDU: 90 00 [10:23:57]wFMCommunicate OK [10:23:57]wFMCommunicate request_size=254 [10:23:57]MH_SAM_APDU [10:23:57]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 31 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 4D 00 00 00 F4 03 04 00 C3 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 50 26 01 00 35 04 06 00 D7 D5 6F 3E 9F 4F [10:23:57]Write to MH i2c: E2 01 01 91 95 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 31 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 4D 00 00 00 F4 03 04 00 C3 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 50 26 01 00 35 04 06 00 D7 D5 6F 3E 9F 4F 00 00 48 [10:23:57]Write i2c OK [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 [10:23:57]MH_I2C_Read... [10:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:57]Read from MH i2c: E2 03 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 03 00 91 95 00 90 00 9A [10:23:57]RAPDU: 90 00 [10:23:57]wFMCommunicate OK [10:23:57]wFMCommunicate request_size=4 [10:23:57]MH_SAM_APDU [10:23:57]CAPDU: 80 0D 03 02 [10:23:57]Write to MH i2c: E2 08 00 92 95 80 0D 03 02 00 00 00 00 A2 [10:23:57]Write i2c OK [10:23:57]MH_I2C_Read... [10:23:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:57]Read from MH i2c: E2 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 0B 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 0B 00 92 95 00 57 DD BE 68 5D A3 4F 99 90 00 E5 [10:23:57]RAPDU: 57 DD BE 68 5D A3 4F 99 90 00 [10:23:57]wFMCommunicate OK [10:23:57]SAM_PROTO_SignData done [10:23:57]FM_MakeSignedData done [10:23:57]CreateOFDProtocolMessage [10:23:57]wFMCommunicate request_size=4 [10:23:57]MH_SAM_APDU [10:23:57]CAPDU: 80 11 00 00 [10:23:57]Write to MH i2c: E2 08 00 93 95 80 11 00 00 00 00 00 00 A2 [10:23:57]Write i2c OK [10:23:57]MH_I2C_Read... [10:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:57]Read from MH i2c: E2 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 17 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 17 00 93 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EF [10:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:23:57]wFMCommunicate OK [10:23:57]CreateOFDProtocolMessage done [10:23:57]OFDSenderStorePacket 75344 [10:23:57]StoreOFDPacket docnum=75344 [10:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 EB 6E 01 01 3C FD 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 31 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 4D 00 00 00 F4 03 04 00 C3 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 50 26 01 00 35 04 06 00 D7 D5 6F 3E 9F 4F 57 DD BE 68 5D A3 4F 99 [10:23:57]CheckFolder [10:23:57]dirname=/storage/ofd_packets [10:23:57]CheckFolder done [10:23:57]ProducePacketName [10:23:57]name=ofd_packets/00075344 [10:23:57]NVStorageSaveData ofd_packets/00075344 [10:23:57]File name is /storage/ofd_packets/00075344 [10:23:57]Write 295 bytes [10:23:57]NVStorageSaveData done [10:23:57]OFDSenderStorePacket done [10:23:57]KKMCreateOFDPacket done [10:23:57]NVStorageSaveData kkm_last_timestamp [10:23:57]File name is /storage/kkm_last_timestamp [10:23:57]Write 4 bytes [10:23:57]NVStorageSaveData done [10:23:57]ExternCall_PrintAddStr [10:23:57]wPrintStart [10:23:57]Write to MH i2c: 01 00 00 94 95 29 [10:23:57]Write i2c OK [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: 01 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: 01 07 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: 01 07 00 94 95 00 00 00 00 00 FF 0F 3E [10:23:57]RasterBufferAndPrint [10:23:57]line Счет N : (1)1965326 [10:23:57]line ИНН: 02508201610067 [10:23:57]line Контрольно-Кассовый Чек [10:23:57]line ПРОДАЖА [10:23:57]line ТРК (МРК, ГНК) : 71 [10:23:57]line Товар: 2711129700 [10:23:57]line ГАЗ [10:23:57]line 20.570 * 38.90 [10:23:57]line = 800.17 [10:23:57]line НДС 12% НСП 1% [10:23:57]line > о реализуемом товаре [10:23:57]line ОКРУГЛЕНИЕ: -0.17 [10:23:57]line ИТОГО: 800.00 [10:23:57]line Внесено: 800.00 [10:23:57]line СДАЧА: 0.00 [10:23:57]line НСП 1% : 7.08 [10:23:57]line НДС 12% : 84.97 [10:23:57]line Наличными: 800.00 [10:23:57]line Безнал.: 0.00 [10:23:57]line Место: АЗС № 133 "Партнер Нефть" [10:23:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:23:57]line СНО: Общий режим [10:23:57]line Чек 77 23.10.2024 10:24 [10:23:57]line Смена: 173 ФФД: 1.0 [10:23:57]line ЗНМ: 0300000020 [10:23:57]line РНМ: 0000000000161154 [10:23:57]line Версия ККМ: v1.0 [10:23:57]line ФМ: 0000000000963323 [10:23:57]line ФД: 75344 [10:23:57]line ФПД: 237311694380879 [10:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102403&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75344&fm=237311694380879&tin=02508201610067®Number=0000000000161154&sum=80000 [10:23:57]OFD Sender: Processing packet 75344 [packets to send 15, broken 14] [10:23:57]ProducePacketName [10:23:57]name=ofd_packets/00075344 [10:23:57]OFD Sender: To server: pG, [10:23:57]CommunicateWithHost lk.salyk.kg:30040 [10:23:57]ConnectInit lk.salyk.kg [10:23:57]written 0, free lines is 4095 [10:23:58]Connected sock=10 [10:23:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 EB 6E 01 01 3C FD 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 31 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 4D 00 00 00 F4 03 04 00 C3 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 50 26 01 00 35 04 06 00 D7 D5 6F 3E 9F 4F 57 DD BE 68 5D A3 4F 99 [10:23:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E6 4E 47 00 D1 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 39 36 33 33 32 33 10 04 04 00 50 26 01 00 F4 03 04 00 9E 77 18 67 B6 04 01 00 00 1C 95 34 33 F8 DD 09 69 [10:23:58]CommunicateWithHost err = 0 [10:23:58]CheckOFDResponse [10:23:58]1017 (14) - 77093643461234 [10:23:58]1041 (16) - 0000000000963323 [10:23:58]1040 (4) - 75344 [10:23:58]1012 (4) - 23.10.2024 04:12 [10:23:58]1206 (1) - 0 [10:23:58]OFD Sender: Remove packet 75344 [10:23:58]ProducePacketName [10:23:58]name=ofd_packets/00075344 [10:23:58]NVStorageDeleteData [10:23:58]Write to MH i2c: 01 00 00 BE 95 53 [10:23:58]Write i2c OK [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: 01 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: 01 07 00 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: 01 07 00 BE 95 00 00 00 00 00 A9 0C 0F [10:23:58]RasterBufferAndPrint [10:23:58]line [10:23:58]line [10:23:58]line [10:23:58]line [10:23:58]line [10:23:58]written 0, free lines is 3245 [10:23:58]MH_Cut [10:23:58]Write to MH i2c: D1 01 00 C5 95 01 2C [10:23:58]Write i2c OK [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: D1 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: D1 01 00 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: D1 01 00 C5 95 00 2B [10:23:58]Write to MH i2c: 01 00 00 C6 95 5B [10:23:58]Write i2c OK [10:23:58]MH_I2C_Read... [10:23:58]OFD Sender: No OFD packet to send [10:23:59]*** Cut start [10:23:59]*** Partial cut [10:23:59]*** CUTSNS_PIN = 1 [10:23:59]*** CUTSNS_PIN = 0 [10:23:59]*** Brake cut motor [10:23:59]Read from MH i2c: 01 [10:23:59]MH_I2C_Read... [10:23:59]*** Stop cut motor [10:23:59]*** Cut end [10:23:59]Read from MH i2c: 01 07 00 [10:23:59]MH_I2C_Read... [10:23:59]Read from MH i2c: 01 07 00 C6 95 00 00 00 00 00 FF 0F 70 [10:23:59]process_action close_receipt done [10:23:59]requested_data is exist [10:23:59]produce_requested_data [10:23:59]requested_item fm.sn is exist - process it [10:23:59]wFMCommunicate request_size=4 [10:23:59]MH_SAM_APDU [10:23:59]CAPDU: 80 11 00 00 [10:23:59]Write to MH i2c: E2 08 00 C7 95 80 11 00 00 00 00 00 00 D6 [10:23:59]Write i2c OK [10:23:59]MH_I2C_Read... [10:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:59]Read from MH i2c: E2 [10:23:59]MH_I2C_Read... [10:23:59]Read from MH i2c: E2 17 00 [10:23:59]MH_I2C_Read... [10:23:59]Read from MH i2c: E2 17 00 C7 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 23 [10:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:23:59]wFMCommunicate OK [10:23:59]requested_item fd.num is exist - process it [10:23:59]SAM_PROTO_GetFieldsCounters [10:23:59]wFMCommunicate request_size=4 [10:23:59]MH_SAM_APDU [10:23:59]CAPDU: 80 13 00 00 [10:23:59]Write to MH i2c: E2 08 00 C8 95 80 13 00 00 00 00 00 00 D9 [10:23:59]Write i2c OK [10:23:59]MH_I2C_Read... [10:24:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:00]Read from MH i2c: E2 [10:24:00]MH_I2C_Read... [10:24:00]Read from MH i2c: E2 62 00 [10:24:00]MH_I2C_Read... [10:24:00]Read from MH i2c: E2 62 00 C8 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 50 26 01 00 0E 04 04 00 AD 00 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 F8 [10:24:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 50 26 01 00 0E 04 04 00 AD 00 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 [10:24:00]wFMCommunicate OK [10:24:00]SAM_PROTO_GetFieldsCounters done [10:24:00]requested_item shift.num is exist - process it [10:24:00]requested_item shift.opened is exist - process it [10:24:00]req_shift_opened [10:24:00]FM_GetShiftState [10:24:00]SAM_PROTO_GetShiftState [10:24:00]wFMCommunicate request_size=4 [10:24:00]MH_SAM_APDU [10:24:00]CAPDU: 80 13 01 00 [10:24:00]Write to MH i2c: E2 08 00 C9 95 80 13 01 00 00 00 00 00 DB [10:24:00]Write i2c OK [10:24:00]MH_I2C_Read... [10:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:00]Read from MH i2c: E2 [10:24:00]MH_I2C_Read... [10:24:00]Read from MH i2c: E2 0E 00 [10:24:00]MH_I2C_Read... [10:24:00]Read from MH i2c: E2 0E 00 C9 95 00 09 00 01 99 41 18 67 00 00 00 00 90 00 40 [10:24:00]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:24:00]wFMCommunicate OK [10:24:00]SAM_PROTO_GetShiftState done [10:24:00]FM_GetShiftState done [10:24:00]req_shift_opened done [10:24:00]requested_item shift.open_date is exist - process it [10:24:00]req_shift_open_date [10:24:00]req_shift_open_date done [10:24:00]produce_requested_data done [10:24:00]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75344,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:24:00]process_action_free close_receipt [10:24:00]json_value_free [10:24:00]json_value_free done [10:24:00]process_json_proto returns [10:24:00]Send response to host [10:24:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75344,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:24:00]free response buf [10:24:00]execute_script done [10:24:00]execute_script returns [10:24:00]free content buf [10:24:00]Sock 7.Close socket [10:24:00]Sock 7.Thread stoped [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:11]accept exits with 9 [10:24:11]New connection [10:24:11]New thread 3067465060 created [10:24:11]Thread 3067321700 joined [10:24:11]Waiting for new connection... [10:24:11] Sock 9.Parse request [10:24:11]Sock 9.Check first char [10:24:11]Sock 9.First char is OK [10:24:11]request: POST /json_proto HTTP/1.0 [10:24:11]Method: POST [10:24:11]URL: /json_proto [10:24:11]Method is POST - this is cgi request [10:24:11]url: /json_proto [10:24:11]query_string will be loaded in cgi processing [10:24:11]execute_cgi json_proto POST (null) [10:24:11]execute_cgi path=json_proto method=POST [10:24:11]POST find Content-Length [10:24:11]Host: 172.17.44.196:8080 [10:24:11]Content-Length: 678 [10:24:11]Content-Type: application/json [10:24:11] [10:24:11]POST finish read [10:24:11]Found Content-Length = 678 [10:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:24:11]execute_script... [10:24: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)1965328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:24:11]POST & json_proto [10:24:11]process_json_proto [10:24:11]json parsed OK: [10:24:11]protocol is kg_v1.0 [10:24:11]action value=close_receipt [10:24:11]process_action close_receipt [10:24:11]cmd_close_receipt [10:24:11]MH_GetDate [10:24:11]Write to MH i2c: F0 00 00 CA 95 4E [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: F0 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: F0 09 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: F0 09 00 CA 95 00 D2 CE 18 67 E7 19 F8 65 D3 [10:24:11]GetLastDocTimeStamp 1729679043 [10:24:11]current date 1729679058 [10:24:11]FM_GetShiftState [10:24:11]SAM_PROTO_GetShiftState [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 13 01 00 [10:24:11]Write to MH i2c: E2 08 00 CB 95 80 13 01 00 00 00 00 00 DD [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0E 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0E 00 CB 95 00 09 00 01 99 41 18 67 00 00 00 00 90 00 42 [10:24:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_GetShiftState done [10:24:11]FM_GetShiftState done [10:24:11]opened in 1729642905 [10:24:11]opened+sec_in_day 1729729305 [10:24:11]quantity*price = 50041 [10:24:11]sum+1 = 50042 [10:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 78 23.10.2024 10:24 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75345 ФПД: 69301923347757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102419&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75345&fm=69301923347757&tin=02508201610067®Number=0000000000161154&sum=50000 [10:24:13]StoreToDocumentArchive [10:24:13]shift 173 fd 75345 [10:24:13]save to /storage/0173/doc_00075345 [10:24:13]save last doc name /storage/0173/doc_00075345 to /storage/kkm_last_doc_name [10:24:13]save OK [10:24:13]Clear old archive folders... [10:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:13]tlvbuf is 00D95CE0 [10:24:13]SAM_PROTO_ClearQueue [10:24:13]wFMCommunicate request_size=4 [10:24:13]MH_SAM_APDU [10:24:13]CAPDU: 80 09 00 00 [10:24:13]Write to MH i2c: E2 08 00 D8 95 80 09 00 00 00 00 00 00 DF [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 03 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 03 00 D8 95 00 90 00 E1 [10:24:13]RAPDU: 90 00 [10:24:13]wFMCommunicate OK [10:24:13]SAM_PROTO_ClearQueue done [10:24:13]KKMCreateOFDPacket [10:24:13]OFDProtocolAddRootSTLVToBuf [10:24:13]FM_MakeSignedData [10:24:13]FM_MakeSignedData [10:24:13]SAM_PROTO_SignData [10:24:13]wFMCommunicate request_size=4 [10:24:13]MH_SAM_APDU [10:24:13]CAPDU: 80 0D 01 02 [10:24:13]Write to MH i2c: E2 08 00 D9 95 80 0D 01 02 00 00 00 00 E7 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 03 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 03 00 D9 95 00 90 00 E2 [10:24:13]RAPDU: 90 00 [10:24:13]wFMCommunicate OK [10:24:13]wFMCommunicate request_size=255 [10:24:13]MH_SAM_APDU [10:24: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 4E 00 00 00 F4 03 04 00 D3 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 51 26 01 00 35 04 06 00 3F [10:24:13]Write to MH i2c: E2 02 01 DA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 4E 00 00 00 F4 03 04 00 D3 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 51 26 01 00 35 04 06 00 3F 00 00 3B [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 03 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 03 00 DA 95 00 90 00 E3 [10:24:13]RAPDU: 90 00 [10:24:13]wFMCommunicate OK [10:24:13]wFMCommunicate request_size=10 [10:24:13]MH_SAM_APDU [10:24:13]CAPDU: 80 0D 02 02 05 07 9C 85 FD 2D [10:24:13]Write to MH i2c: E2 0D 00 DB 95 80 0D 02 02 05 00 07 9C 85 FD 2D 00 00 46 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 03 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 03 00 DB 95 00 90 00 E4 [10:24:13]RAPDU: 90 00 [10:24:13]wFMCommunicate OK [10:24:13]wFMCommunicate request_size=4 [10:24:13]MH_SAM_APDU [10:24:13]CAPDU: 80 0D 03 02 [10:24:13]Write to MH i2c: E2 08 00 DC 95 80 0D 03 02 00 00 00 00 EC [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 0B 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 0B 00 DC 95 00 EF 05 BC ED D1 25 16 42 90 00 D8 [10:24:13]RAPDU: EF 05 BC ED D1 25 16 42 90 00 [10:24:13]wFMCommunicate OK [10:24:13]SAM_PROTO_SignData done [10:24:13]FM_MakeSignedData done [10:24:13]CreateOFDProtocolMessage [10:24:13]wFMCommunicate request_size=4 [10:24:13]MH_SAM_APDU [10:24:13]CAPDU: 80 11 00 00 [10:24:13]Write to MH i2c: E2 08 00 DD 95 80 11 00 00 00 00 00 00 EC [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 17 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 17 00 DD 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 39 [10:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:24:13]wFMCommunicate OK [10:24:13]CreateOFDProtocolMessage done [10:24:13]OFDSenderStorePacket 75345 [10:24:13]StoreOFDPacket docnum=75345 [10:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 B7 DA 07 01 CF 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 4E 00 00 00 F4 03 04 00 D3 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 51 26 01 00 35 04 06 00 3F 07 9C 85 FD 2D EF 05 BC ED D1 25 16 42 [10:24:13]CheckFolder [10:24:13]dirname=/storage/ofd_packets [10:24:13]CheckFolder done [10:24:13]ProducePacketName [10:24:13]name=ofd_packets/00075345 [10:24:13]NVStorageSaveData ofd_packets/00075345 [10:24:13]File name is /storage/ofd_packets/00075345 [10:24:13]Write 301 bytes [10:24:13]NVStorageSaveData done [10:24:13]OFDSenderStorePacket done [10:24:13]KKMCreateOFDPacket done [10:24:13]NVStorageSaveData kkm_last_timestamp [10:24:13]File name is /storage/kkm_last_timestamp [10:24:13]Write 4 bytes [10:24:13]NVStorageSaveData done [10:24:13]ExternCall_PrintAddStr [10:24:13]wPrintStart [10:24:13]Write to MH i2c: 01 00 00 DE 95 73 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 DE 95 00 00 00 00 00 FF 0F 88 [10:24:13]RasterBufferAndPrint [10:24:13]line Счет N : (1)1965328 [10:24:13]line ИНН: 02508201610067 [10:24:13]line Контрольно-Кассовый Чек [10:24:13]line ПРОДАЖА [10:24:13]line ТРК (МРК, ГНК) : 43 [10:24:13]line Товар: 2710124130 [10:24:13]line Аи-92-К-5 [10:24:13]line 7.480 * 66.90 [10:24:13]line = 500.41 [10:24:13]line НДС 12% НСП 1% [10:24:13]line > о реализуемом товаре [10:24:13]line ОКРУГЛЕНИЕ: -0.41 [10:24:13]line ИТОГО: 500.00 [10:24:13]line Внесено: 500.00 [10:24:13]line СДАЧА: 0.00 [10:24:13]line НСП 1% : 4.43 [10:24:13]line НДС 12% : 53.14 [10:24:13]line Наличными: 500.00 [10:24:13]line Безнал.: 0.00 [10:24:13]line Место: АЗС № 133 "Партнер Нефть" [10:24:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:24:13]line СНО: Общий режим [10:24:13]line Чек 78 23.10.2024 10:24 [10:24:13]line Смена: 173 ФФД: 1.0 [10:24:13]line ЗНМ: 0300000020 [10:24:13]line РНМ: 0000000000161154 [10:24:13]line Версия ККМ: v1.0 [10:24:13]line ФМ: 0000000000963323 [10:24:13]line ФД: 75345 [10:24:13]line ФПД: 69301923347757 [10:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102419&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75345&fm=69301923347757&tin=02508201610067®Number=0000000000161154&sum=50000 [10:24:13]OFD Sender: Processing packet 75345 [packets to send 15, broken 14] [10:24:13]ProducePacketName [10:24:13]name=ofd_packets/00075345 [10:24:13]OFD Sender: To server: pG, [10:24:13]CommunicateWithHost lk.salyk.kg:30040 [10:24:13]ConnectInit lk.salyk.kg [10:24:13]written 0, free lines is 4095 [10:24:14]Connected sock=10 [10:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 B7 DA 07 01 CF 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 4E 00 00 00 F4 03 04 00 D3 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 51 26 01 00 35 04 06 00 3F 07 9C 85 FD 2D EF 05 BC ED D1 25 16 42 [10:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3C BA 47 00 51 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 39 36 33 33 32 33 10 04 04 00 51 26 01 00 F4 03 04 00 AE 77 18 67 B6 04 01 00 00 38 72 B0 AB 4E 16 5D 2B [10:24:14]CommunicateWithHost err = 0 [10:24:14]CheckOFDResponse [10:24:14]1017 (14) - 77093643461234 [10:24:14]1041 (16) - 0000000000963323 [10:24:14]1040 (4) - 75345 [10:24:14]1012 (4) - 23.10.2024 04:12 [10:24:14]1206 (1) - 0 [10:24:14]OFD Sender: Remove packet 75345 [10:24:14]ProducePacketName [10:24:14]name=ofd_packets/00075345 [10:24:14]NVStorageDeleteData [10:24:14]Write to MH i2c: 01 00 00 08 96 9E [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: 01 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: 01 07 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: 01 07 00 08 96 00 00 00 00 00 AA 0C 5B [10:24:14]RasterBufferAndPrint [10:24:14]line [10:24:14]line [10:24:14]line [10:24:14]line [10:24:14]line [10:24:14]written 0, free lines is 3246 [10:24:14]MH_Cut [10:24:14]Write to MH i2c: D1 01 00 0F 96 01 77 [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: D1 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: D1 01 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: D1 01 00 0F 96 00 76 [10:24:14]Write to MH i2c: 01 00 00 10 96 A6 [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]OFD Sender: No OFD packet to send [10:24:15]*** Cut start [10:24:15]*** Partial cut [10:24:15]*** CUTSNS_PIN = 1 [10:24:15]*** CUTSNS_PIN = 0 [10:24:15]*** Brake cut motor [10:24:15]Read from MH i2c: 01 [10:24:15]MH_I2C_Read... [10:24:15]*** Stop cut motor [10:24:15]*** Cut end [10:24:15]Read from MH i2c: 01 07 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: 01 07 00 10 96 00 00 00 00 00 FF 0F BB [10:24:15]process_action close_receipt done [10:24:15]requested_data is exist [10:24:15]produce_requested_data [10:24:15]requested_item fm.sn is exist - process it [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 11 00 00 [10:24:15]Write to MH i2c: E2 08 00 11 96 80 11 00 00 00 00 00 00 21 [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 17 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 17 00 11 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6E [10:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:24:16]wFMCommunicate OK [10:24:16]requested_item fd.num is exist - process it [10:24:16]SAM_PROTO_GetFieldsCounters [10:24:16]wFMCommunicate request_size=4 [10:24:16]MH_SAM_APDU [10:24:16]CAPDU: 80 13 00 00 [10:24:16]Write to MH i2c: E2 08 00 12 96 80 13 00 00 00 00 00 00 24 [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 62 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 62 00 12 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 51 26 01 00 0E 04 04 00 AD 00 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 47 [10:24:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 51 26 01 00 0E 04 04 00 AD 00 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 [10:24:16]wFMCommunicate OK [10:24:16]SAM_PROTO_GetFieldsCounters done [10:24:16]requested_item shift.num is exist - process it [10:24:16]requested_item shift.opened is exist - process it [10:24:16]req_shift_opened [10:24:16]FM_GetShiftState [10:24:16]SAM_PROTO_GetShiftState [10:24:16]wFMCommunicate request_size=4 [10:24:16]MH_SAM_APDU [10:24:16]CAPDU: 80 13 01 00 [10:24:16]Write to MH i2c: E2 08 00 13 96 80 13 01 00 00 00 00 00 26 [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 0E 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 0E 00 13 96 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8B [10:24:16]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:24:16]wFMCommunicate OK [10:24:16]SAM_PROTO_GetShiftState done [10:24:16]FM_GetShiftState done [10:24:16]req_shift_opened done [10:24:16]requested_item shift.open_date is exist - process it [10:24:16]req_shift_open_date [10:24:16]req_shift_open_date done [10:24:16]produce_requested_data done [10:24:16]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75345,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:24:16]process_action_free close_receipt [10:24:16]json_value_free [10:24:16]json_value_free done [10:24:16]process_json_proto returns [10:24:16]Send response to host [10:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75345,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:24:16]free response buf [10:24:16]execute_script done [10:24:16]execute_script returns [10:24:16]free content buf [10:24:16]Sock 9.Close socket [10:24:16]Sock 9.Thread stoped [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:45]accept exits with 7 [10:24:45]New connection [10:24:45]New thread 3067321700 created [10:24:45]Thread 3067465060 joined [10:24:45]Waiting for new connection... [10:24:45] Sock 7.Parse request [10:24:45]Sock 7.Check first char [10:24:45]Sock 7.First char is OK [10:24:45]request: POST /json_proto HTTP/1.0 [10:24:45]Method: POST [10:24:45]URL: /json_proto [10:24:45]Method is POST - this is cgi request [10:24:45]url: /json_proto [10:24:45]query_string will be loaded in cgi processing [10:24:45]execute_cgi json_proto POST (null) [10:24:45]execute_cgi path=json_proto method=POST [10:24:45]POST find Content-Length [10:24:45]Host: 172.17.44.196:8080 [10:24:45]Content-Length: 678 [10:24:45]Content-Type: application/json [10:24:45] [10:24:45]POST finish read [10:24:45]Found Content-Length = 678 [10:24:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:45]execute_script... [10:24: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)1965329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:45]POST & json_proto [10:24:45]process_json_proto [10:24:45]json parsed OK: [10:24:45]protocol is kg_v1.0 [10:24:45]action value=close_receipt [10:24:45]process_action close_receipt [10:24:45]cmd_close_receipt [10:24:45]MH_GetDate [10:24:45]Write to MH i2c: F0 00 00 14 96 99 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: F0 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: F0 09 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: F0 09 00 14 96 00 F4 CE 18 67 E7 19 F8 65 40 [10:24:45]GetLastDocTimeStamp 1729679059 [10:24:45]current date 1729679092 [10:24:45]FM_GetShiftState [10:24:45]SAM_PROTO_GetShiftState [10:24:45]wFMCommunicate request_size=4 [10:24:45]MH_SAM_APDU [10:24:45]CAPDU: 80 13 01 00 [10:24:45]Write to MH i2c: E2 08 00 15 96 80 13 01 00 00 00 00 00 28 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 0E 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 0E 00 15 96 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8D [10:24:45]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:24:45]wFMCommunicate OK [10:24:45]SAM_PROTO_GetShiftState done [10:24:45]FM_GetShiftState done [10:24:45]opened in 1729642905 [10:24:45]opened+sec_in_day 1729729305 [10:24:45]quantity*price = 50010 [10:24:45]sum+1 = 50012 [10:24:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 79 23.10.2024 10:24 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75346 ФПД: 218996035518597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102452&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75346&fm=218996035518597&tin=02508201610067®Number=0000000000161154&sum=50000 [10:24:46]StoreToDocumentArchive [10:24:46]shift 173 fd 75346 [10:24:46]save to /storage/0173/doc_00075346 [10:24:46]save last doc name /storage/0173/doc_00075346 to /storage/kkm_last_doc_name [10:24:46]save OK [10:24:46]Clear old archive folders... [10:24:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:46]tlvbuf is 01002550 [10:24:46]SAM_PROTO_ClearQueue [10:24:46]wFMCommunicate request_size=4 [10:24:46]MH_SAM_APDU [10:24:46]CAPDU: 80 09 00 00 [10:24:46]Write to MH i2c: E2 08 00 22 96 80 09 00 00 00 00 00 00 2A [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:46]Read from MH i2c: E2 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 03 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 03 00 22 96 00 90 00 2C [10:24:46]RAPDU: 90 00 [10:24:46]wFMCommunicate OK [10:24:46]SAM_PROTO_ClearQueue done [10:24:46]KKMCreateOFDPacket [10:24:46]OFDProtocolAddRootSTLVToBuf [10:24:46]FM_MakeSignedData [10:24:46]FM_MakeSignedData [10:24:46]SAM_PROTO_SignData [10:24:46]wFMCommunicate request_size=4 [10:24:46]MH_SAM_APDU [10:24:46]CAPDU: 80 0D 01 02 [10:24:46]Write to MH i2c: E2 08 00 23 96 80 0D 01 02 00 00 00 00 32 [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:46]Read from MH i2c: E2 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 03 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 03 00 23 96 00 90 00 2D [10:24:46]RAPDU: 90 00 [10:24:46]wFMCommunicate OK [10:24:46]wFMCommunicate request_size=255 [10:24:46]MH_SAM_APDU [10:24:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F4 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 52 26 01 00 35 04 06 00 C7 [10:24:46]Write to MH i2c: E2 02 01 24 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F4 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 52 26 01 00 35 04 06 00 C7 00 00 09 [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 24 96 00 90 00 2E [10:24:47]RAPDU: 90 00 [10:24:47]wFMCommunicate OK [10:24:47]wFMCommunicate request_size=10 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 0D 02 02 05 2C FC E7 80 85 [10:24:47]Write to MH i2c: E2 0D 00 25 96 80 0D 02 02 05 00 2C FC E7 80 85 00 00 53 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 25 96 00 90 00 2F [10:24:47]RAPDU: 90 00 [10:24:47]wFMCommunicate OK [10:24:47]wFMCommunicate request_size=4 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 0D 03 02 [10:24:47]Write to MH i2c: E2 08 00 26 96 80 0D 03 02 00 00 00 00 37 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 0B 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 0B 00 26 96 00 1C F2 6A 6F 30 D5 A6 06 90 00 D0 [10:24:47]RAPDU: 1C F2 6A 6F 30 D5 A6 06 90 00 [10:24:47]wFMCommunicate OK [10:24:47]SAM_PROTO_SignData done [10:24:47]FM_MakeSignedData done [10:24:47]CreateOFDProtocolMessage [10:24:47]wFMCommunicate request_size=4 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 11 00 00 [10:24:47]Write to MH i2c: E2 08 00 27 96 80 11 00 00 00 00 00 00 37 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 17 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 17 00 27 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 84 [10:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:24:47]wFMCommunicate OK [10:24:47]CreateOFDProtocolMessage done [10:24:47]OFDSenderStorePacket 75346 [10:24:47]StoreOFDPacket docnum=75346 [10:24:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 52 FF 07 01 64 76 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F4 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 52 26 01 00 35 04 06 00 C7 2C FC E7 80 85 1C F2 6A 6F 30 D5 A6 06 [10:24:47]CheckFolder [10:24:47]dirname=/storage/ofd_packets [10:24:47]CheckFolder done [10:24:47]ProducePacketName [10:24:47]name=ofd_packets/00075346 [10:24:47]NVStorageSaveData ofd_packets/00075346 [10:24:47]File name is /storage/ofd_packets/00075346 [10:24:47]Write 301 bytes [10:24:47]NVStorageSaveData done [10:24:47]OFDSenderStorePacket done [10:24:47]KKMCreateOFDPacket done [10:24:47]NVStorageSaveData kkm_last_timestamp [10:24:47]File name is /storage/kkm_last_timestamp [10:24:47]Write 4 bytes [10:24:47]NVStorageSaveData done [10:24:47]ExternCall_PrintAddStr [10:24:47]wPrintStart [10:24:47]Write to MH i2c: 01 00 00 28 96 BE [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: 01 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: 01 07 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: 01 07 00 28 96 00 00 00 00 00 FF 0F D3 [10:24:47]RasterBufferAndPrint [10:24:47]line Счет N : (1)1965329 [10:24:47]line ИНН: 02508201610067 [10:24:47]line Контрольно-Кассовый Чек [10:24:47]line ПРОДАЖА [10:24:47]line ТРК (МРК, ГНК) : 64 [10:24:47]line Товар: 2710124500 [10:24:47]line Аи-95-К-5 [10:24:47]line 6.740 * 74.20 [10:24:47]line = 500.11 [10:24:47]line НДС 12% НСП 1% [10:24:47]line > о реализуемом товаре [10:24:47]line ОКРУГЛЕНИЕ: -0.11 [10:24:47]line ИТОГО: 500.00 [10:24:47]line Внесено: 500.00 [10:24:47]line СДАЧА: 0.00 [10:24:47]line НСП 1% : 4.43 [10:24:47]line НДС 12% : 53.11 [10:24:47]line Наличными: 500.00 [10:24:47]line Безнал.: 0.00 [10:24:47]line Место: АЗС № 133 "Партнер Нефть" [10:24:47]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:24:47]line СНО: Общий режим [10:24:47]line Чек 79 23.10.2024 10:24 [10:24:47]line Смена: 173 ФФД: 1.0 [10:24:47]line ЗНМ: 0300000020 [10:24:47]line РНМ: 0000000000161154 [10:24:47]line Версия ККМ: v1.0 [10:24:47]line ФМ: 0000000000963323 [10:24:47]line ФД: 75346 [10:24:47]line ФПД: 218996035518597 [10:24:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102452&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75346&fm=218996035518597&tin=02508201610067®Number=0000000000161154&sum=50000 [10:24:47]OFD Sender: Processing packet 75346 [packets to send 15, broken 14] [10:24:47]ProducePacketName [10:24:47]name=ofd_packets/00075346 [10:24:47]OFD Sender: To server: pG, [10:24:47]CommunicateWithHost lk.salyk.kg:30040 [10:24:47]ConnectInit lk.salyk.kg [10:24:47]written 0, free lines is 4095 [10:24:47]Connected sock=10 [10:24:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 52 FF 07 01 64 76 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F4 CE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 52 26 01 00 35 04 06 00 C7 2C FC E7 80 85 1C F2 6A 6F 30 D5 A6 06 [10:24:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D2 38 47 00 52 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 39 36 33 33 32 33 10 04 04 00 52 26 01 00 F4 03 04 00 CF 77 18 67 B6 04 01 00 00 37 8B DA AE 24 FA 4E EE [10:24:47]CommunicateWithHost err = 0 [10:24:47]CheckOFDResponse [10:24:47]1017 (14) - 77093643461234 [10:24:47]1041 (16) - 0000000000963323 [10:24:47]1040 (4) - 75346 [10:24:47]1012 (4) - 23.10.2024 04:13 [10:24:47]1206 (1) - 0 [10:24:47]OFD Sender: Remove packet 75346 [10:24:47]ProducePacketName [10:24:47]name=ofd_packets/00075346 [10:24:47]NVStorageDeleteData [10:24:48]Write to MH i2c: 01 00 00 52 96 E8 [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 07 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 07 00 52 96 00 00 00 00 00 B3 0C AE [10:24:48]RasterBufferAndPrint [10:24:48]line [10:24:48]line [10:24:48]line [10:24:48]line [10:24:48]line [10:24:48]written 0, free lines is 3256 [10:24:48]MH_Cut [10:24:48]Write to MH i2c: D1 01 00 59 96 01 C1 [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: D1 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: D1 01 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: D1 01 00 59 96 00 C0 [10:24:48]Write to MH i2c: 01 00 00 5A 96 F0 [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]OFD Sender: No OFD packet to send [10:24:48]*** Cut start [10:24:48]*** Partial cut [10:24:48]*** CUTSNS_PIN = 1 [10:24:48]*** CUTSNS_PIN = 0 [10:24:49]*** Brake cut motor [10:24:49]Read from MH i2c: 01 [10:24:49]MH_I2C_Read... [10:24:49]*** Stop cut motor [10:24:49]*** Cut end [10:24:49]Read from MH i2c: 01 07 00 [10:24:49]MH_I2C_Read... [10:24:49]Read from MH i2c: 01 07 00 5A 96 00 00 00 00 00 FF 0F 05 [10:24:49]process_action close_receipt done [10:24:49]requested_data is exist [10:24:49]produce_requested_data [10:24:49]requested_item fm.sn is exist - process it [10:24:49]wFMCommunicate request_size=4 [10:24:49]MH_SAM_APDU [10:24:49]CAPDU: 80 11 00 00 [10:24:49]Write to MH i2c: E2 08 00 5B 96 80 11 00 00 00 00 00 00 6B [10:24:49]Write i2c OK [10:24:49]MH_I2C_Read... [10:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:49]Read from MH i2c: E2 [10:24:49]MH_I2C_Read... [10:24:49]Read from MH i2c: E2 17 00 [10:24:49]MH_I2C_Read... [10:24:49]Read from MH i2c: E2 17 00 5B 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B8 [10:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:24:49]wFMCommunicate OK [10:24:49]requested_item fd.num is exist - process it [10:24:49]SAM_PROTO_GetFieldsCounters [10:24:49]wFMCommunicate request_size=4 [10:24:49]MH_SAM_APDU [10:24:49]CAPDU: 80 13 00 00 [10:24:49]Write to MH i2c: E2 08 00 5C 96 80 13 00 00 00 00 00 00 6E [10:24:49]Write i2c OK [10:24:49]MH_I2C_Read... [10:24:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:49]Read from MH i2c: E2 [10:24:49]MH_I2C_Read... [10:24:49]Read from MH i2c: E2 62 00 [10:24:49]MH_I2C_Read... [10:24:49]Read from MH i2c: E2 62 00 5C 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 52 26 01 00 0E 04 04 00 AD 00 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 95 [10:24:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 52 26 01 00 0E 04 04 00 AD 00 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 [10:24:49]wFMCommunicate OK [10:24:49]SAM_PROTO_GetFieldsCounters done [10:24:49]requested_item shift.num is exist - process it [10:24:49]requested_item shift.opened is exist - process it [10:24:49]req_shift_opened [10:24:49]FM_GetShiftState [10:24:49]SAM_PROTO_GetShiftState [10:24:49]wFMCommunicate request_size=4 [10:24:49]MH_SAM_APDU [10:24:49]CAPDU: 80 13 01 00 [10:24:49]Write to MH i2c: E2 08 00 5D 96 80 13 01 00 00 00 00 00 70 [10:24:49]Write i2c OK [10:24:49]MH_I2C_Read... [10:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:49]Read from MH i2c: E2 [10:24:49]MH_I2C_Read... [10:24:49]Read from MH i2c: E2 0E 00 [10:24:49]MH_I2C_Read... [10:24:49]Read from MH i2c: E2 0E 00 5D 96 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D5 [10:24:49]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:24:49]wFMCommunicate OK [10:24:49]SAM_PROTO_GetShiftState done [10:24:49]FM_GetShiftState done [10:24:49]req_shift_opened done [10:24:49]requested_item shift.open_date is exist - process it [10:24:49]req_shift_open_date [10:24:49]req_shift_open_date done [10:24:49]produce_requested_data done [10:24:49]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75346,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:24:49]process_action_free close_receipt [10:24:49]json_value_free [10:24:49]json_value_free done [10:24:49]process_json_proto returns [10:24:49]Send response to host [10:24:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75346,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:24:49]free response buf [10:24:49]execute_script done [10:24:49]execute_script returns [10:24:49]free content buf [10:24:49]Sock 7.Close socket [10:24:49]Sock 7.Thread stoped [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:26:59]accept exits with 9 [10:26:59]New connection [10:26:59]New thread 3067465060 created [10:26:59]Thread 3067321700 joined [10:26:59]Waiting for new connection... [10:26:59] Sock 9.Parse request [10:26:59]Sock 9.Check first char [10:26:59]Sock 9.First char is OK [10:26:59]request: POST /json_proto HTTP/1.0 [10:26:59]Method: POST [10:26:59]URL: /json_proto [10:26:59]Method is POST - this is cgi request [10:26:59]url: /json_proto [10:26:59]query_string will be loaded in cgi processing [10:26:59]execute_cgi json_proto POST (null) [10:26:59]execute_cgi path=json_proto method=POST [10:26:59]POST find Content-Length [10:26:59]Host: 172.17.44.196:8080 [10:26:59]Content-Length: 677 [10:26:59]Content-Type: application/json [10:26:59] [10:26:59]POST finish read [10:26:59]Found Content-Length = 677 [10:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:26:59]execute_script... [10:26: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)1965330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:26:59]POST & json_proto [10:26:59]process_json_proto [10:26:59]json parsed OK: [10:26:59]protocol is kg_v1.0 [10:26:59]action value=close_receipt [10:26:59]process_action close_receipt [10:26:59]cmd_close_receipt [10:26:59]MH_GetDate [10:26:59]Write to MH i2c: F0 00 00 5E 96 E3 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: F0 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: F0 09 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: F0 09 00 5E 96 00 7A CF 18 67 E7 19 F8 65 11 [10:26:59]GetLastDocTimeStamp 1729679092 [10:26:59]current date 1729679226 [10:26:59]FM_GetShiftState [10:26:59]SAM_PROTO_GetShiftState [10:26:59]wFMCommunicate request_size=4 [10:26:59]MH_SAM_APDU [10:26:59]CAPDU: 80 13 01 00 [10:26:59]Write to MH i2c: E2 08 00 5F 96 80 13 01 00 00 00 00 00 72 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:59]Read from MH i2c: E2 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 0E 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 0E 00 5F 96 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D7 [10:26:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:26:59]wFMCommunicate OK [10:26:59]SAM_PROTO_GetShiftState done [10:26:59]FM_GetShiftState done [10:26:59]opened in 1729642905 [10:26:59]opened+sec_in_day 1729729305 [10:26:59]quantity*price = 100011 [10:26:59]sum+1 = 100013 [10:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 80 23.10.2024 10:27 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75347 ФПД: 80619282210260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102706&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75347&fm=80619282210260&tin=02508201610067®Number=0000000000161154&sum=100000 [10:27:00]StoreToDocumentArchive [10:27:00]shift 173 fd 75347 [10:27:00]save to /storage/0173/doc_00075347 [10:27:00]save last doc name /storage/0173/doc_00075347 to /storage/kkm_last_doc_name [10:27:00]save OK [10:27:00]Clear old archive folders... [10:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=245 [10:27:00]tlvbuf is 01002550 [10:27:00]SAM_PROTO_ClearQueue [10:27:00]wFMCommunicate request_size=4 [10:27:00]MH_SAM_APDU [10:27:00]CAPDU: 80 09 00 00 [10:27:00]Write to MH i2c: E2 08 00 6C 96 80 09 00 00 00 00 00 00 74 [10:27:00]Write i2c OK [10:27:00]MH_I2C_Read... [10:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:00]Read from MH i2c: E2 [10:27:00]MH_I2C_Read... [10:27:00]Read from MH i2c: E2 03 00 [10:27:00]MH_I2C_Read... [10:27:00]Read from MH i2c: E2 03 00 6C 96 00 90 00 76 [10:27:00]RAPDU: 90 00 [10:27:00]wFMCommunicate OK [10:27:00]SAM_PROTO_ClearQueue done [10:27:00]KKMCreateOFDPacket [10:27:00]OFDProtocolAddRootSTLVToBuf [10:27:00]FM_MakeSignedData [10:27:00]FM_MakeSignedData [10:27:00]SAM_PROTO_SignData [10:27:00]wFMCommunicate request_size=4 [10:27:00]MH_SAM_APDU [10:27:00]CAPDU: 80 0D 01 02 [10:27:00]Write to MH i2c: E2 08 00 6D 96 80 0D 01 02 00 00 00 00 7C [10:27:00]Write i2c OK [10:27:00]MH_I2C_Read... [10:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:00]Read from MH i2c: E2 [10:27:00]MH_I2C_Read... [10:27:00]Read from MH i2c: E2 03 00 [10:27:00]MH_I2C_Read... [10:27:00]Read from MH i2c: E2 03 00 6D 96 00 90 00 77 [10:27:00]RAPDU: 90 00 [10:27:00]wFMCommunicate OK [10:27:00]wFMCommunicate request_size=254 [10:27:00]MH_SAM_APDU [10:27:00]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 00 00 00 F4 03 04 00 7A CF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 53 26 01 00 35 04 06 00 49 52 A3 AD 9D D4 [10:27:00]Write to MH i2c: E2 01 01 6E 96 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 00 00 00 F4 03 04 00 7A CF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 53 26 01 00 35 04 06 00 49 52 A3 AD 9D D4 00 00 6C [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:01]Read from MH i2c: E2 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 03 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 03 00 6E 96 00 90 00 78 [10:27:01]RAPDU: 90 00 [10:27:01]wFMCommunicate OK [10:27:01]wFMCommunicate request_size=4 [10:27:01]MH_SAM_APDU [10:27:01]CAPDU: 80 0D 03 02 [10:27:01]Write to MH i2c: E2 08 00 6F 96 80 0D 03 02 00 00 00 00 80 [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:01]Read from MH i2c: E2 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 0B 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 0B 00 6F 96 00 92 5B 55 69 26 7E 75 7C 90 00 C1 [10:27:01]RAPDU: 92 5B 55 69 26 7E 75 7C 90 00 [10:27:01]wFMCommunicate OK [10:27:01]SAM_PROTO_SignData done [10:27:01]FM_MakeSignedData done [10:27:01]CreateOFDProtocolMessage [10:27:01]wFMCommunicate request_size=4 [10:27:01]MH_SAM_APDU [10:27:01]CAPDU: 80 11 00 00 [10:27:01]Write to MH i2c: E2 08 00 70 96 80 11 00 00 00 00 00 00 80 [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:01]Read from MH i2c: E2 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 17 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 17 00 70 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CD [10:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:27:01]wFMCommunicate OK [10:27:01]CreateOFDProtocolMessage done [10:27:01]OFDSenderStorePacket 75347 [10:27:01]StoreOFDPacket docnum=75347 [10:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 D4 2F 01 01 35 04 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 00 00 00 F4 03 04 00 7A CF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 53 26 01 00 35 04 06 00 49 52 A3 AD 9D D4 92 5B 55 69 26 7E 75 7C [10:27:01]CheckFolder [10:27:01]dirname=/storage/ofd_packets [10:27:01]CheckFolder done [10:27:01]ProducePacketName [10:27:01]name=ofd_packets/00075347 [10:27:01]NVStorageSaveData ofd_packets/00075347 [10:27:01]File name is /storage/ofd_packets/00075347 [10:27:01]Write 295 bytes [10:27:01]NVStorageSaveData done [10:27:01]OFDSenderStorePacket done [10:27:01]KKMCreateOFDPacket done [10:27:01]NVStorageSaveData kkm_last_timestamp [10:27:01]File name is /storage/kkm_last_timestamp [10:27:01]Write 4 bytes [10:27:01]NVStorageSaveData done [10:27:01]ExternCall_PrintAddStr [10:27:01]wPrintStart [10:27:01]Write to MH i2c: 01 00 00 71 96 07 [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: 01 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: 01 07 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: 01 07 00 71 96 00 00 00 00 00 FF 0F 1C [10:27:01]RasterBufferAndPrint [10:27:01]line Счет N : (1)1965330 [10:27:01]line ИНН: 02508201610067 [10:27:01]line Контрольно-Кассовый Чек [10:27:01]line ПРОДАЖА [10:27:01]line ТРК (МРК, ГНК) : 71 [10:27:01]line Товар: 2711129700 [10:27:01]line ГАЗ [10:27:01]line 25.710 * 38.90 [10:27:01]line = 1000.12 [10:27:01]line НДС 12% НСП 1% [10:27:01]line > о реализуемом товаре [10:27:01]line ОКРУГЛЕНИЕ: -0.12 [10:27:01]line ИТОГО: 1000.00 [10:27:01]line Внесено: 1000.00 [10:27:01]line СДАЧА: 0.00 [10:27:01]line НСП 1% : 8.85 [10:27:01]line НДС 12% : 106.21 [10:27:01]line Наличными: 1000.00 [10:27:01]line Безнал.: 0.00 [10:27:01]line Место: АЗС № 133 "Партнер Нефть" [10:27:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:27:01]line СНО: Общий режим [10:27:01]line Чек 80 23.10.2024 10:27 [10:27:01]line Смена: 173 ФФД: 1.0 [10:27:01]line ЗНМ: 0300000020 [10:27:01]line РНМ: 0000000000161154 [10:27:01]line Версия ККМ: v1.0 [10:27:01]line ФМ: 0000000000963323 [10:27:01]line ФД: 75347 [10:27:01]line ФПД: 80619282210260 [10:27:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102706&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75347&fm=80619282210260&tin=02508201610067®Number=0000000000161154&sum=100000 [10:27:01]OFD Sender: Processing packet 75347 [packets to send 15, broken 14] [10:27:01]ProducePacketName [10:27:01]name=ofd_packets/00075347 [10:27:01]OFD Sender: To server: pG, [10:27:01]CommunicateWithHost lk.salyk.kg:30040 [10:27:01]written 0, free lines is 4095 [10:27:01]ConnectInit lk.salyk.kg [10:27:01]Connected sock=10 [10:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 D4 2F 01 01 35 04 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 00 00 00 F4 03 04 00 7A CF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 53 26 01 00 35 04 06 00 49 52 A3 AD 9D D4 92 5B 55 69 26 7E 75 7C [10:27:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 35 89 47 00 97 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 53 26 01 00 F4 03 04 00 56 78 18 67 B6 04 01 00 00 2B 66 24 58 30 A5 D7 0C [10:27:02]CommunicateWithHost err = 0 [10:27:02]CheckOFDResponse [10:27:02]1017 (14) - 77093643461234 [10:27:02]1041 (16) - 0000000000963323 [10:27:02]1040 (4) - 75347 [10:27:02]1012 (4) - 23.10.2024 04:15 [10:27:02]1206 (1) - 0 [10:27:02]OFD Sender: Remove packet 75347 [10:27:02]ProducePacketName [10:27:02]name=ofd_packets/00075347 [10:27:02]NVStorageDeleteData [10:27:02]Write to MH i2c: 01 00 00 9B 96 31 [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: 01 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: 01 07 00 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: 01 07 00 9B 96 00 00 00 00 00 A5 0C E9 [10:27:02]RasterBufferAndPrint [10:27:02]line [10:27:02]line [10:27:02]line [10:27:02]line [10:27:02]line [10:27:02]written 0, free lines is 3242 [10:27:02]MH_Cut [10:27:02]Write to MH i2c: D1 01 00 A2 96 01 0A [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: D1 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: D1 01 00 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: D1 01 00 A2 96 00 09 [10:27:02]Write to MH i2c: 01 00 00 A3 96 39 [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:02]OFD Sender: No OFD packet to send [10:27:03]*** Cut start [10:27:03]*** Partial cut [10:27:03]*** CUTSNS_PIN = 1 [10:27:03]*** CUTSNS_PIN = 0 [10:27:03]*** Brake cut motor [10:27:03]Read from MH i2c: 01 [10:27:03]MH_I2C_Read... [10:27:03]*** Stop cut motor [10:27:03]*** Cut end [10:27:03]Read from MH i2c: 01 07 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 07 00 A3 96 00 00 00 00 00 FF 0F 4E [10:27:03]process_action close_receipt done [10:27:03]requested_data is exist [10:27:03]produce_requested_data [10:27:03]requested_item fm.sn is exist - process it [10:27:03]wFMCommunicate request_size=4 [10:27:03]MH_SAM_APDU [10:27:03]CAPDU: 80 11 00 00 [10:27:03]Write to MH i2c: E2 08 00 A4 96 80 11 00 00 00 00 00 00 B4 [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:03]Read from MH i2c: E2 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 17 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 17 00 A4 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 01 [10:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:27:03]wFMCommunicate OK [10:27:03]requested_item fd.num is exist - process it [10:27:03]SAM_PROTO_GetFieldsCounters [10:27:03]wFMCommunicate request_size=4 [10:27:03]MH_SAM_APDU [10:27:03]CAPDU: 80 13 00 00 [10:27:03]Write to MH i2c: E2 08 00 A5 96 80 13 00 00 00 00 00 00 B7 [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:03]Read from MH i2c: E2 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 62 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 62 00 A5 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 53 26 01 00 0E 04 04 00 AD 00 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 E2 [10:27:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 53 26 01 00 0E 04 04 00 AD 00 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 [10:27:03]wFMCommunicate OK [10:27:03]SAM_PROTO_GetFieldsCounters done [10:27:03]requested_item shift.num is exist - process it [10:27:03]requested_item shift.opened is exist - process it [10:27:03]req_shift_opened [10:27:03]FM_GetShiftState [10:27:03]SAM_PROTO_GetShiftState [10:27:03]wFMCommunicate request_size=4 [10:27:03]MH_SAM_APDU [10:27:03]CAPDU: 80 13 01 00 [10:27:03]Write to MH i2c: E2 08 00 A6 96 80 13 01 00 00 00 00 00 B9 [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:03]Read from MH i2c: E2 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 0E 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 0E 00 A6 96 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1E [10:27:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:27:03]wFMCommunicate OK [10:27:03]SAM_PROTO_GetShiftState done [10:27:03]FM_GetShiftState done [10:27:03]req_shift_opened done [10:27:03]requested_item shift.open_date is exist - process it [10:27:03]req_shift_open_date [10:27:03]req_shift_open_date done [10:27:03]produce_requested_data done [10:27:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75347,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:27:03]process_action_free close_receipt [10:27:03]json_value_free [10:27:03]json_value_free done [10:27:03]process_json_proto returns [10:27:03]Send response to host [10:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75347,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:27:03]free response buf [10:27:03]execute_script done [10:27:03]execute_script returns [10:27:03]free content buf [10:27:03]Sock 9.Close socket [10:27:03]Sock 9.Thread stoped [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:24]accept exits with 7 [10:30:24]New connection [10:30:24]New thread 3067321700 created [10:30:24]Thread 3067465060 joined [10:30:24]Waiting for new connection... [10:30:24] Sock 7.Parse request [10:30:24]Sock 7.Check first char [10:30:24]Sock 7.First char is OK [10:30:24]request: POST /json_proto HTTP/1.0 [10:30:24]Method: POST [10:30:24]URL: /json_proto [10:30:24]Method is POST - this is cgi request [10:30:24]url: /json_proto [10:30:24]query_string will be loaded in cgi processing [10:30:24]execute_cgi json_proto POST (null) [10:30:24]execute_cgi path=json_proto method=POST [10:30:24]POST find Content-Length [10:30:24]Host: 172.17.44.196:8080 [10:30:24]Content-Length: 678 [10:30:24]Content-Type: application/json [10:30:24] [10:30:24]POST finish read [10:30:24]Found Content-Length = 678 [10:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:24]execute_script... [10:30: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)1965332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:24]POST & json_proto [10:30:24]process_json_proto [10:30:24]json parsed OK: [10:30:24]protocol is kg_v1.0 [10:30:24]action value=close_receipt [10:30:24]process_action close_receipt [10:30:24]cmd_close_receipt [10:30:24]MH_GetDate [10:30:24]Write to MH i2c: F0 00 00 A7 96 2C [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: F0 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: F0 09 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: F0 09 00 A7 96 00 47 D0 18 67 E7 19 F8 65 28 [10:30:24]GetLastDocTimeStamp 1729679226 [10:30:24]current date 1729679431 [10:30:24]FM_GetShiftState [10:30:24]SAM_PROTO_GetShiftState [10:30:24]wFMCommunicate request_size=4 [10:30:24]MH_SAM_APDU [10:30:24]CAPDU: 80 13 01 00 [10:30:24]Write to MH i2c: E2 08 00 A8 96 80 13 01 00 00 00 00 00 BB [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 0E 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 0E 00 A8 96 00 09 00 01 99 41 18 67 00 00 00 00 90 00 20 [10:30:24]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:30:24]wFMCommunicate OK [10:30:24]SAM_PROTO_GetShiftState done [10:30:24]FM_GetShiftState done [10:30:24]opened in 1729642905 [10:30:24]opened+sec_in_day 1729729305 [10:30:24]quantity*price = 30038 [10:30:24]sum+1 = 30039 [10:30:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 81 23.10.2024 10:30 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75348 ФПД: 254005545864659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103031&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75348&fm=254005545864659&tin=02508201610067®Number=0000000000161154&sum=30000 [10:30:25]StoreToDocumentArchive [10:30:25]shift 173 fd 75348 [10:30:25]save to /storage/0173/doc_00075348 [10:30:25]save last doc name /storage/0173/doc_00075348 to /storage/kkm_last_doc_name [10:30:25]save OK [10:30:25]Clear old archive folders... [10:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:25]tlvbuf is 00FDA250 [10:30:25]SAM_PROTO_ClearQueue [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 09 00 00 [10:30:25]Write to MH i2c: E2 08 00 B5 96 80 09 00 00 00 00 00 00 BD [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 B5 96 00 90 00 BF [10:30:25]RAPDU: 90 00 [10:30:25]wFMCommunicate OK [10:30:25]SAM_PROTO_ClearQueue done [10:30:25]KKMCreateOFDPacket [10:30:25]OFDProtocolAddRootSTLVToBuf [10:30:25]FM_MakeSignedData [10:30:25]FM_MakeSignedData [10:30:25]SAM_PROTO_SignData [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 0D 01 02 [10:30:25]Write to MH i2c: E2 08 00 B6 96 80 0D 01 02 00 00 00 00 C5 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 B6 96 00 90 00 C0 [10:30:25]RAPDU: 90 00 [10:30:25]wFMCommunicate OK [10:30:25]wFMCommunicate request_size=255 [10:30:25]MH_SAM_APDU [10:30: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 47 D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 54 26 01 00 35 04 06 00 E7 [10:30:25]Write to MH i2c: E2 02 01 B7 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 47 D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 54 26 01 00 35 04 06 00 E7 00 00 31 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 B7 96 00 90 00 C1 [10:30:26]RAPDU: 90 00 [10:30:26]wFMCommunicate OK [10:30:26]wFMCommunicate request_size=10 [10:30:26]MH_SAM_APDU [10:30:26]CAPDU: 80 0D 02 02 05 04 46 55 0D D3 [10:30:26]Write to MH i2c: E2 0D 00 B8 96 80 0D 02 02 05 00 04 46 55 0D D3 00 00 51 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 03 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 03 00 B8 96 00 90 00 C2 [10:30:26]RAPDU: 90 00 [10:30:26]wFMCommunicate OK [10:30:26]wFMCommunicate request_size=4 [10:30:26]MH_SAM_APDU [10:30:26]CAPDU: 80 0D 03 02 [10:30:26]Write to MH i2c: E2 08 00 B9 96 80 0D 03 02 00 00 00 00 CA [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 0B 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 0B 00 B9 96 00 98 CD 97 E5 9E 70 AD 7D 90 00 E4 [10:30:26]RAPDU: 98 CD 97 E5 9E 70 AD 7D 90 00 [10:30:26]wFMCommunicate OK [10:30:26]SAM_PROTO_SignData done [10:30:26]FM_MakeSignedData done [10:30:26]CreateOFDProtocolMessage [10:30:26]wFMCommunicate request_size=4 [10:30:26]MH_SAM_APDU [10:30:26]CAPDU: 80 11 00 00 [10:30:26]Write to MH i2c: E2 08 00 BA 96 80 11 00 00 00 00 00 00 CA [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:26]Read from MH i2c: E2 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 17 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: E2 17 00 BA 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 17 [10:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:30:26]wFMCommunicate OK [10:30:26]CreateOFDProtocolMessage done [10:30:26]OFDSenderStorePacket 75348 [10:30:26]StoreOFDPacket docnum=75348 [10:30:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A3 A8 07 01 CB 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 47 D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 54 26 01 00 35 04 06 00 E7 04 46 55 0D D3 98 CD 97 E5 9E 70 AD 7D [10:30:26]CheckFolder [10:30:26]dirname=/storage/ofd_packets [10:30:26]CheckFolder done [10:30:26]ProducePacketName [10:30:26]name=ofd_packets/00075348 [10:30:26]NVStorageSaveData ofd_packets/00075348 [10:30:26]File name is /storage/ofd_packets/00075348 [10:30:26]Write 301 bytes [10:30:26]NVStorageSaveData done [10:30:26]OFDSenderStorePacket done [10:30:26]KKMCreateOFDPacket done [10:30:26]NVStorageSaveData kkm_last_timestamp [10:30:26]File name is /storage/kkm_last_timestamp [10:30:26]Write 4 bytes [10:30:26]NVStorageSaveData done [10:30:26]ExternCall_PrintAddStr [10:30:26]wPrintStart [10:30:26]Write to MH i2c: 01 00 00 BB 96 51 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 BB 96 00 00 00 00 00 FF 0F 66 [10:30:26]RasterBufferAndPrint [10:30:26]line Счет N : (1)1965332 [10:30:26]line ИНН: 02508201610067 [10:30:26]line Контрольно-Кассовый Чек [10:30:26]line ПРОДАЖА [10:30:26]line ТРК (МРК, ГНК) : 33 [10:30:26]line Товар: 2710124130 [10:30:26]line Аи-92-К-5 [10:30:26]line 4.490 * 66.90 [10:30:26]line = 300.38 [10:30:26]line НДС 12% НСП 1% [10:30:26]line > о реализуемом товаре [10:30:26]line ОКРУГЛЕНИЕ: -0.38 [10:30:26]line ИТОГО: 300.00 [10:30:26]line Внесено: 300.00 [10:30:26]line СДАЧА: 0.00 [10:30:26]line НСП 1% : 2.66 [10:30:26]line НДС 12% : 31.90 [10:30:26]line Наличными: 300.00 [10:30:26]line Безнал.: 0.00 [10:30:26]line Место: АЗС № 133 "Партнер Нефть" [10:30:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:30:26]line СНО: Общий режим [10:30:26]line Чек 81 23.10.2024 10:30 [10:30:26]line Смена: 173 ФФД: 1.0 [10:30:26]line ЗНМ: 0300000020 [10:30:26]line РНМ: 0000000000161154 [10:30:26]line Версия ККМ: v1.0 [10:30:26]line ФМ: 0000000000963323 [10:30:26]line ФД: 75348 [10:30:26]line ФПД: 254005545864659 [10:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103031&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75348&fm=254005545864659&tin=02508201610067®Number=0000000000161154&sum=30000 [10:30:26]OFD Sender: Processing packet 75348 [packets to send 15, broken 14] [10:30:26]ProducePacketName [10:30:26]name=ofd_packets/00075348 [10:30:26]OFD Sender: To server: pG, [10:30:26]CommunicateWithHost lk.salyk.kg:30040 [10:30:26]ConnectInit lk.salyk.kg [10:30:26]written 0, free lines is 4095 [10:30:26]Connected sock=10 [10:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A3 A8 07 01 CB 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 47 D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 54 26 01 00 35 04 06 00 E7 04 46 55 0D D3 98 CD 97 E5 9E 70 AD 7D [10:30:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1F 33 47 00 58 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 54 26 01 00 F4 03 04 00 22 79 18 67 B6 04 01 00 00 5C 0E 6D 9A 84 34 95 2A [10:30:26]CommunicateWithHost err = 0 [10:30:26]CheckOFDResponse [10:30:26]1017 (14) - 77093643461234 [10:30:26]1041 (16) - 0000000000963323 [10:30:26]1040 (4) - 75348 [10:30:26]1012 (4) - 23.10.2024 04:18 [10:30:26]1206 (1) - 0 [10:30:26]OFD Sender: Remove packet 75348 [10:30:26]ProducePacketName [10:30:26]name=ofd_packets/00075348 [10:30:26]NVStorageDeleteData [10:30:26]Write to MH i2c: 01 00 00 E5 96 7B [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 E5 96 00 00 00 00 00 B5 0C 43 [10:30:26]RasterBufferAndPrint [10:30:26]line [10:30:26]line [10:30:26]line [10:30:26]line [10:30:26]line [10:30:26]written 0, free lines is 3258 [10:30:26]MH_Cut [10:30:26]Write to MH i2c: D1 01 00 EC 96 01 54 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: D1 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: D1 01 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: D1 01 00 EC 96 00 53 [10:30:26]Write to MH i2c: 01 00 00 ED 96 83 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:27]OFD Sender: No OFD packet to send [10:30:27]*** Cut start [10:30:27]*** Partial cut [10:30:27]*** CUTSNS_PIN = 1 [10:30:27]*** CUTSNS_PIN = 0 [10:30:28]*** Brake cut motor [10:30:28]Read from MH i2c: 01 [10:30:28]MH_I2C_Read... [10:30:28]*** Stop cut motor [10:30:28]*** Cut end [10:30:28]Read from MH i2c: 01 07 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: 01 07 00 ED 96 00 00 00 00 00 FF 0F 98 [10:30:28]process_action close_receipt done [10:30:28]requested_data is exist [10:30:28]produce_requested_data [10:30:28]requested_item fm.sn is exist - process it [10:30:28]wFMCommunicate request_size=4 [10:30:28]MH_SAM_APDU [10:30:28]CAPDU: 80 11 00 00 [10:30:28]Write to MH i2c: E2 08 00 EE 96 80 11 00 00 00 00 00 00 FE [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:28]Read from MH i2c: E2 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 17 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 17 00 EE 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4B [10:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:30:28]wFMCommunicate OK [10:30:28]requested_item fd.num is exist - process it [10:30:28]SAM_PROTO_GetFieldsCounters [10:30:28]wFMCommunicate request_size=4 [10:30:28]MH_SAM_APDU [10:30:28]CAPDU: 80 13 00 00 [10:30:28]Write to MH i2c: E2 08 00 EF 96 80 13 00 00 00 00 00 00 01 [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:28]Read from MH i2c: E2 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 62 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 62 00 EF 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 54 26 01 00 0E 04 04 00 AD 00 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 30 [10:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 54 26 01 00 0E 04 04 00 AD 00 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 [10:30:28]wFMCommunicate OK [10:30:28]SAM_PROTO_GetFieldsCounters done [10:30:28]requested_item shift.num is exist - process it [10:30:28]requested_item shift.opened is exist - process it [10:30:28]req_shift_opened [10:30:28]FM_GetShiftState [10:30:28]SAM_PROTO_GetShiftState [10:30:28]wFMCommunicate request_size=4 [10:30:28]MH_SAM_APDU [10:30:28]CAPDU: 80 13 01 00 [10:30:28]Write to MH i2c: E2 08 00 F0 96 80 13 01 00 00 00 00 00 03 [10:30:28]Write i2c OK [10:30:28]MH_I2C_Read... [10:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:28]Read from MH i2c: E2 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 0E 00 [10:30:28]MH_I2C_Read... [10:30:28]Read from MH i2c: E2 0E 00 F0 96 00 09 00 01 99 41 18 67 00 00 00 00 90 00 68 [10:30:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:30:28]wFMCommunicate OK [10:30:28]SAM_PROTO_GetShiftState done [10:30:28]FM_GetShiftState done [10:30:28]req_shift_opened done [10:30:28]requested_item shift.open_date is exist - process it [10:30:28]req_shift_open_date [10:30:28]req_shift_open_date done [10:30:28]produce_requested_data done [10:30:28]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75348,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:30:28]process_action_free close_receipt [10:30:28]json_value_free [10:30:28]json_value_free done [10:30:28]process_json_proto returns [10:30:28]Send response to host [10:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75348,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:30:28]free response buf [10:30:28]execute_script done [10:30:28]execute_script returns [10:30:28]free content buf [10:30:28]Sock 7.Close socket [10:30:28]Sock 7.Thread stoped [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]accept exits with 9 [10:31:17]New connection [10:31:17]New thread 3067465060 created [10:31:17]Thread 3067321700 joined [10:31:17]Waiting for new connection... [10:31:17] Sock 9.Parse request [10:31:17]Sock 9.Check first char [10:31:17]Sock 9.First char is OK [10:31:17]request: POST /json_proto HTTP/1.0 [10:31:17]Method: POST [10:31:17]URL: /json_proto [10:31:17]Method is POST - this is cgi request [10:31:17]url: /json_proto [10:31:17]query_string will be loaded in cgi processing [10:31:17]execute_cgi json_proto POST (null) [10:31:17]execute_cgi path=json_proto method=POST [10:31:17]POST find Content-Length [10:31:17]Host: 172.17.44.196:8080 [10:31:17]Content-Length: 753 [10:31:17]Content-Type: application/json [10:31:17] [10:31:17]POST finish read [10:31:17]Found Content-Length = 753 [10:31:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965331", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072880", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:17]execute_script... [10:31: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)1965331", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072880", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:17]POST & json_proto [10:31:17]process_json_proto [10:31:17]json parsed OK: [10:31:17]protocol is kg_v1.0 [10:31:17]action value=close_receipt [10:31:17]process_action close_receipt [10:31:17]cmd_close_receipt [10:31:17]MH_GetDate [10:31:17]Write to MH i2c: F0 00 00 F1 96 76 [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: F0 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: F0 09 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: F0 09 00 F1 96 00 7C D0 18 67 E7 19 F8 65 A7 [10:31:17]GetLastDocTimeStamp 1729679431 [10:31:17]current date 1729679484 [10:31:17]FM_GetShiftState [10:31:17]SAM_PROTO_GetShiftState [10:31:17]wFMCommunicate request_size=4 [10:31:17]MH_SAM_APDU [10:31:17]CAPDU: 80 13 01 00 [10:31:17]Write to MH i2c: E2 08 00 F2 96 80 13 01 00 00 00 00 00 05 [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:17]OFD Sender: No OFD packet to send [10:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:17]Read from MH i2c: E2 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 0E 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 0E 00 F2 96 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6A [10:31:17]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:31:17]wFMCommunicate OK [10:31:17]SAM_PROTO_GetShiftState done [10:31:17]FM_GetShiftState done [10:31:17]opened in 1729642905 [10:31:17]opened+sec_in_day 1729729305 [10:31:17]quantity*price = 0 [10:31:17]sum+1 = 1 [10:31:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 82 23.10.2024 10:31 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30072880 ФМ: 0000000000963323 ФД: 75349 ФПД: 151673976055441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103124&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75349&fm=151673976055441&tin=02508201610067®Number=0000000000161154&sum=0 [10:31:18]StoreToDocumentArchive [10:31:18]shift 173 fd 75349 [10:31:18]save to /storage/0173/doc_00075349 [10:31:18]save last doc name /storage/0173/doc_00075349 to /storage/kkm_last_doc_name [10:31:18]save OK [10:31:18]Clear old archive folders... [10:31:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:31:18]tlvbuf is 00DCB5B0 [10:31:18]SAM_PROTO_ClearQueue [10:31:18]wFMCommunicate request_size=4 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 09 00 00 [10:31:18]Write to MH i2c: E2 08 00 FF 96 80 09 00 00 00 00 00 00 07 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 FF 96 00 90 00 09 [10:31:18]RAPDU: 90 00 [10:31:18]wFMCommunicate OK [10:31:18]SAM_PROTO_ClearQueue done [10:31:18]KKMCreateOFDPacket [10:31:18]OFDProtocolAddRootSTLVToBuf [10:31:18]FM_MakeSignedData [10:31:18]FM_MakeSignedData [10:31:18]SAM_PROTO_SignData [10:31:18]wFMCommunicate request_size=4 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 0D 01 02 [10:31:18]Write to MH i2c: E2 08 00 00 97 80 0D 01 02 00 00 00 00 10 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 00 97 00 90 00 0B [10:31:18]RAPDU: 90 00 [10:31:18]wFMCommunicate OK [10:31:18]wFMCommunicate request_size=255 [10:31:18]MH_SAM_APDU [10:31:18]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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7C D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 55 26 01 00 35 04 06 00 89 F2 59 76 [10:31:18]Write to MH i2c: E2 02 01 01 97 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7C D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 55 26 01 00 35 04 06 00 89 F2 59 76 00 00 17 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 01 97 00 90 00 0C [10:31:18]RAPDU: 90 00 [10:31:18]wFMCommunicate OK [10:31:18]wFMCommunicate request_size=7 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 0D 02 02 02 E6 91 [10:31:18]Write to MH i2c: E2 0A 00 02 97 80 0D 02 02 02 00 E6 91 00 00 8E [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 02 97 00 90 00 0D [10:31:18]RAPDU: 90 00 [10:31:18]wFMCommunicate OK [10:31:18]wFMCommunicate request_size=4 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 0D 03 02 [10:31:18]Write to MH i2c: E2 08 00 03 97 80 0D 03 02 00 00 00 00 15 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 0B 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 0B 00 03 97 00 4E BF BA B6 71 09 73 9D 90 00 1D [10:31:18]RAPDU: 4E BF BA B6 71 09 73 9D 90 00 [10:31:18]wFMCommunicate OK [10:31:18]SAM_PROTO_SignData done [10:31:18]FM_MakeSignedData done [10:31:18]CreateOFDProtocolMessage [10:31:18]wFMCommunicate request_size=4 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 11 00 00 [10:31:18]Write to MH i2c: E2 08 00 04 97 80 11 00 00 00 00 00 00 15 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:19]Read from MH i2c: E2 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 17 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: E2 17 00 04 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 62 [10:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:31:19]wFMCommunicate OK [10:31:19]CreateOFDProtocolMessage done [10:31:19]OFDSenderStorePacket 75349 [10:31:19]StoreOFDPacket docnum=75349 [10:31:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 B5 18 04 01 FA 18 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7C D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 55 26 01 00 35 04 06 00 89 F2 59 76 E6 91 4E BF BA B6 71 09 73 9D [10:31:19]CheckFolder [10:31:19]dirname=/storage/ofd_packets [10:31:19]CheckFolder done [10:31:19]ProducePacketName [10:31:19]name=ofd_packets/00075349 [10:31:19]NVStorageSaveData ofd_packets/00075349 [10:31:19]File name is /storage/ofd_packets/00075349 [10:31:19]Write 298 bytes [10:31:19]NVStorageSaveData done [10:31:19]OFDSenderStorePacket done [10:31:19]KKMCreateOFDPacket done [10:31:19]NVStorageSaveData kkm_last_timestamp [10:31:19]File name is /storage/kkm_last_timestamp [10:31:19]Write 4 bytes [10:31:19]NVStorageSaveData done [10:31:19]ExternCall_PrintAddStr [10:31:19]wPrintStart [10:31:19]Write to MH i2c: 01 00 00 05 97 9C [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 07 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 07 00 05 97 00 00 00 00 00 FF 0F B1 [10:31:19]RasterBufferAndPrint [10:31:19]line Счет N : (1)1965331 [10:31:19]line ИНН: 02508201610067 [10:31:19]line Контрольно-Кассовый Чек [10:31:19]line ПРОДАЖА [10:31:19]line ТРК (МРК, ГНК) : 51 [10:31:19]line Товар: 2710194210 [10:31:19]line ДТ-К-5 [10:31:19]line 100.000 * 0.00 [10:31:19]line = 0.00 [10:31:19]line НДС 12% НСП 1% [10:31:19]line > о реализуемом товаре [10:31:19]line ИТОГО: 0.00 [10:31:19]line НСП 1% : 0.00 [10:31:19]line НДС 12% : 0.00 [10:31:19]line Наличными: 0.00 [10:31:19]line Безнал.: 0.00 [10:31:19]line Место: АЗС № 133 "Партнер Нефть" [10:31:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:31:19]line СНО: Общий режим [10:31:19]line Чек 82 23.10.2024 10:31 [10:31:19]line Смена: 173 ФФД: 1.0 [10:31:19]line ЗНМ: 0300000020 [10:31:19]line РНМ: 0000000000161154 [10:31:19]line Версия ККМ: v1.0 [10:31:19]line Талоны: ТК ГПНА Online [10:31:19]line 30072880 [10:31:19]line ФМ: 0000000000963323 [10:31:19]line ФД: 75349 [10:31:19]line ФПД: 151673976055441 [10:31:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103124&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75349&fm=151673976055441&tin=02508201610067®Number=0000000000161154&sum=0 [10:31:19]OFD Sender: Processing packet 75349 [packets to send 15, broken 14] [10:31:19]ProducePacketName [10:31:19]name=ofd_packets/00075349 [10:31:19]OFD Sender: To server: pG, [10:31:19]CommunicateWithHost lk.salyk.kg:30040 [10:31:19]ConnectInit lk.salyk.kg [10:31:19]written 0, free lines is 4095 [10:31:19]Connected sock=10 [10:31:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 B5 18 04 01 FA 18 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7C D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 55 26 01 00 35 04 06 00 89 F2 59 76 E6 91 4E BF BA B6 71 09 73 9D [10:31:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 34 C0 47 00 40 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 55 26 01 00 F4 03 04 00 57 79 18 67 B6 04 01 00 00 FF 6B FD 58 0B 38 06 5D [10:31:19]CommunicateWithHost err = 0 [10:31:19]CheckOFDResponse [10:31:19]1017 (14) - 77093643461234 [10:31:19]1041 (16) - 0000000000963323 [10:31:19]1040 (4) - 75349 [10:31:19]1012 (4) - 23.10.2024 04:19 [10:31:19]1206 (1) - 0 [10:31:19]OFD Sender: Remove packet 75349 [10:31:19]ProducePacketName [10:31:19]name=ofd_packets/00075349 [10:31:19]NVStorageDeleteData [10:31:19]Write to MH i2c: 01 00 00 2E 97 C5 [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 07 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: 01 07 00 2E 97 00 00 00 00 00 CE 0C A6 [10:31:19]RasterBufferAndPrint [10:31:19]line [10:31:19]line [10:31:19]line [10:31:19]line [10:31:19]line [10:31:19]written 0, free lines is 3284 [10:31:19]MH_Cut [10:31:19]Write to MH i2c: D1 01 00 35 97 01 9E [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: D1 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: D1 01 00 [10:31:19]MH_I2C_Read... [10:31:19]Read from MH i2c: D1 01 00 35 97 00 9D [10:31:19]Write to MH i2c: 01 00 00 36 97 CD [10:31:19]Write i2c OK [10:31:19]MH_I2C_Read... [10:31:20]OFD Sender: No OFD packet to send [10:31:20]*** Cut start [10:31:20]*** Partial cut [10:31:20]*** CUTSNS_PIN = 1 [10:31:20]*** CUTSNS_PIN = 0 [10:31:20]*** Brake cut motor [10:31:21]Read from MH i2c: 01 [10:31:21]MH_I2C_Read... [10:31:21]*** Stop cut motor [10:31:21]*** Cut end [10:31:21]Read from MH i2c: 01 07 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: 01 07 00 36 97 00 00 00 00 00 FF 0F E2 [10:31:21]process_action close_receipt done [10:31:21]requested_data is exist [10:31:21]produce_requested_data [10:31:21]requested_item fm.sn is exist - process it [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 11 00 00 [10:31:21]Write to MH i2c: E2 08 00 37 97 80 11 00 00 00 00 00 00 48 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 17 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 17 00 37 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 95 [10:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:31:21]wFMCommunicate OK [10:31:21]requested_item fd.num is exist - process it [10:31:21]SAM_PROTO_GetFieldsCounters [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 13 00 00 [10:31:21]Write to MH i2c: E2 08 00 38 97 80 13 00 00 00 00 00 00 4B [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 62 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 62 00 38 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 55 26 01 00 0E 04 04 00 AD 00 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 7E [10:31:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 55 26 01 00 0E 04 04 00 AD 00 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 [10:31:21]wFMCommunicate OK [10:31:21]SAM_PROTO_GetFieldsCounters done [10:31:21]requested_item shift.num is exist - process it [10:31:21]requested_item shift.opened is exist - process it [10:31:21]req_shift_opened [10:31:21]FM_GetShiftState [10:31:21]SAM_PROTO_GetShiftState [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 13 01 00 [10:31:21]Write to MH i2c: E2 08 00 39 97 80 13 01 00 00 00 00 00 4D [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 0E 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 0E 00 39 97 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B2 [10:31:21]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:31:21]wFMCommunicate OK [10:31:21]SAM_PROTO_GetShiftState done [10:31:21]FM_GetShiftState done [10:31:21]req_shift_opened done [10:31:21]requested_item shift.open_date is exist - process it [10:31:21]req_shift_open_date [10:31:21]req_shift_open_date done [10:31:21]produce_requested_data done [10:31:21]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75349,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:31:21]process_action_free close_receipt [10:31:21]json_value_free [10:31:21]json_value_free done [10:31:21]process_json_proto returns [10:31:21]Send response to host [10:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75349,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:31:21]free response buf [10:31:21]execute_script done [10:31:21]execute_script returns [10:31:21]free content buf [10:31:21]Sock 9.Close socket [10:31:21]Sock 9.Thread stoped [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:22]accept exits with 7 [10:33:22]New connection [10:33:22]New thread 3067321700 created [10:33:22]Thread 3067465060 joined [10:33:22]Waiting for new connection... [10:33:22] Sock 7.Parse request [10:33:22]Sock 7.Check first char [10:33:22]Sock 7.First char is OK [10:33:22]request: POST /json_proto HTTP/1.0 [10:33:22]Method: POST [10:33:22]URL: /json_proto [10:33:22]Method is POST - this is cgi request [10:33:22]url: /json_proto [10:33:22]query_string will be loaded in cgi processing [10:33:22]execute_cgi json_proto POST (null) [10:33:22]execute_cgi path=json_proto method=POST [10:33:22]POST find Content-Length [10:33:22]Host: 172.17.44.196:8080 [10:33:22]Content-Length: 1775 [10:33:22]Content-Type: application/json [10:33:22] [10:33:22]POST finish read [10:33:22]Found Content-Length = 1775 [10:33:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273218", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 342.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:22]execute_script... [10: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 : (3)273218", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 342.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:22]POST & json_proto [10:33:22]process_json_proto [10:33:22]json parsed OK: [10:33:22]protocol is kg_v1.0 [10:33:22]action value=close_receipt [10:33:22]process_action close_receipt [10:33:22]cmd_close_receipt [10:33:22]MH_GetDate [10:33:22]Write to MH i2c: F0 00 00 3A 97 C0 [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: F0 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: F0 09 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: F0 09 00 3A 97 00 F9 D0 18 67 E7 19 F8 65 6E [10:33:22]GetLastDocTimeStamp 1729679484 [10:33:22]current date 1729679609 [10:33:22]FM_GetShiftState [10:33:22]SAM_PROTO_GetShiftState [10:33:22]wFMCommunicate request_size=4 [10:33:22]MH_SAM_APDU [10:33:22]CAPDU: 80 13 01 00 [10:33:22]Write to MH i2c: E2 08 00 3B 97 80 13 01 00 00 00 00 00 4F [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:22]Read from MH i2c: E2 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 0E 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 0E 00 3B 97 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B4 [10:33:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:33:22]wFMCommunicate OK [10:33:22]SAM_PROTO_GetShiftState done [10:33:22]FM_GetShiftState done [10:33:22]opened in 1729642905 [10:33:22]opened+sec_in_day 1729729305 [10:33:22]quantity*price = 9500 [10:33:22]sum+1 = 9501 [10:33:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000273680 Сок Piko Pulpy красный виноград ПЭТ 0,5л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4860019001339 Вода Боржоми 0,33л ст 1.000 * 103.00 = 103.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 342.00 НСП 1% : 3.01 НДС 12% : 36.32 Наличными: 342.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 83 23.10.2024 10:33 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75350 ФПД: 159365871934411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103329&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75350&fm=159365871934411&tin=02508201610067®Number=0000000000161154&sum=34200 0 [10:33:23]StoreToDocumentArchive [10:33:23]shift 173 fd 75350 [10:33:23]save to /storage/0173/doc_00075350 [10:33:23]save last doc name /storage/0173/doc_00075350 to /storage/kkm_last_doc_name [10:33:23]save OK [10:33:23]Clear old archive folders... [10:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=739 [10:33:23]tlvbuf is 00EB7180 [10:33:23]SAM_PROTO_ClearQueue [10:33:23]wFMCommunicate request_size=4 [10:33:23]MH_SAM_APDU [10:33:23]CAPDU: 80 09 00 00 [10:33:23]Write to MH i2c: E2 08 00 48 97 80 09 00 00 00 00 00 00 51 [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:23]Read from MH i2c: E2 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 03 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 03 00 48 97 00 90 00 53 [10:33:23]RAPDU: 90 00 [10:33:23]wFMCommunicate OK [10:33:23]SAM_PROTO_ClearQueue done [10:33:23]KKMCreateOFDPacket [10:33:23]OFDProtocolAddRootSTLVToBuf [10:33:23]FM_MakeSignedData [10:33:23]FM_MakeSignedData [10:33:23]SAM_PROTO_SignData [10:33:23]wFMCommunicate request_size=4 [10:33:23]MH_SAM_APDU [10:33:23]CAPDU: 80 0D 01 02 [10:33:23]Write to MH i2c: E2 08 00 49 97 80 0D 01 02 00 00 00 00 59 [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:23]Read from MH i2c: E2 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 03 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 03 00 49 97 00 90 00 54 [10:33:23]RAPDU: 90 00 [10:33:23]wFMCommunicate OK [10:33:23]wFMCommunicate request_size=255 [10:33:23]MH_SAM_APDU [10:33:23]CAPDU: 80 0D 02 02 FA 03 00 E3 02 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 [10:33:23]Write to MH i2c: E2 02 01 4A 97 80 0D 02 02 FA 00 03 00 E3 02 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 00 97 [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 03 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 03 00 4A 97 00 90 00 55 [10:33:24]RAPDU: 90 00 [10:33:24]wFMCommunicate OK [10:33:24]wFMCommunicate request_size=255 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 [10:33:24]Write to MH i2c: E2 02 01 4B 97 80 0D 02 02 FA 00 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 00 00 35 [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 03 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 03 00 4B 97 00 90 00 56 [10:33:24]RAPDU: 90 00 [10:33:24]wFMCommunicate OK [10:33:24]wFMCommunicate request_size=248 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 0D 02 02 F3 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 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 F9 D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 56 26 01 00 35 04 06 00 90 F1 42 2F 9B CB [10:33:24]Write to MH i2c: E2 FB 00 4C 97 80 0D 02 02 F3 00 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 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 F9 D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 56 26 01 00 35 04 06 00 90 F1 42 2F 9B CB 00 00 26 [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 03 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 03 00 4C 97 00 90 00 57 [10:33:24]RAPDU: 90 00 [10:33:24]wFMCommunicate OK [10:33:24]wFMCommunicate request_size=4 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 0D 03 02 [10:33:24]Write to MH i2c: E2 08 00 4D 97 80 0D 03 02 00 00 00 00 5F [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 0B 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 0B 00 4D 97 00 52 3F 32 BC F5 E7 C2 9B 90 00 18 [10:33:24]RAPDU: 52 3F 32 BC F5 E7 C2 9B 90 00 [10:33:24]wFMCommunicate OK [10:33:24]SAM_PROTO_SignData done [10:33:24]FM_MakeSignedData done [10:33:24]CreateOFDProtocolMessage [10:33:24]wFMCommunicate request_size=4 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 11 00 00 [10:33:24]Write to MH i2c: E2 08 00 4E 97 80 11 00 00 00 00 00 00 5F [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 17 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 17 00 4E 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AC [10:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:33:24]wFMCommunicate OK [10:33:24]CreateOFDProtocolMessage done [10:33:24]OFDSenderStorePacket 75350 [10:33:24]StoreOFDPacket docnum=75350 [10:33:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F7 02 00 00 FB 85 EF 02 D4 C6 5A 03 01 00 03 00 E3 02 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 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 F9 D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 56 26 01 00 35 04 06 00 90 F1 42 2F 9B CB 52 3F 32 BC F5 E7 C2 9B [10:33:25]CheckFolder [10:33:25]dirname=/storage/ofd_packets [10:33:25]CheckFolder done [10:33:25]ProducePacketName [10:33:25]name=ofd_packets/00075350 [10:33:25]NVStorageSaveData ofd_packets/00075350 [10:33:25]File name is /storage/ofd_packets/00075350 [10:33:25]Write 789 bytes [10:33:25]NVStorageSaveData done [10:33:25]OFDSenderStorePacket done [10:33:25]KKMCreateOFDPacket done [10:33:25]NVStorageSaveData kkm_last_timestamp [10:33:25]File name is /storage/kkm_last_timestamp [10:33:25]Write 4 bytes [10:33:25]NVStorageSaveData done [10:33:25]ExternCall_PrintAddStr [10:33:25]wPrintStart [10:33:25]Write to MH i2c: 01 00 00 4F 97 E6 [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 07 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 07 00 4F 97 00 00 00 00 00 FF 0F FB [10:33:25]RasterBufferAndPrint [10:33:25]line Счет N : (3)273218 [10:33:25]line ИНН: 02508201610067 [10:33:25]line Контрольно-Кассовый Чек [10:33:25]line ПРОДАЖА [10:33:25]line Товар: 5449000176431 [10:33:25]line Сок Piko Pulpy апельсин ПЭТ 0,5л [10:33:25]line 1.000 * 95.00 [10:33:25]line = 95.00 [10:33:25]line НДС 12% НСП 1% [10:33:25]line > о реализуемом товаре [10:33:25]line Товар: 5449000273680 [10:33:25]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [10:33:25]line 1.000 * 100.00 [10:33:25]line = 100.00 [10:33:25]line НДС 12% НСП 1% [10:33:25]line > о реализуемом товаре [10:33:25]line Товар: 4700000160211 [10:33:25]line Вода Легенда 0,5л [10:33:25]line 1.000 * 40.00 [10:33:25]line = 40.00 [10:33:25]line НДС 12% НСП 1% [10:33:25]line > о реализуемом товаре [10:33:25]line Товар: 4860019001339 [10:33:25]line Вода Боржоми 0,33л ст [10:33:25]line 1.000 * 103.00 [10:33:25]line = 103.00 [10:33:25]line НДС 12% НСП 1% [10:33:25]line > о реализуемом товаре [10:33:25]line Товар: 2000031750019 [10:33:25]line Пакет Партнер Нефть [10:33:25]line 1.000 * 4.00 [10:33:25]line = 4.00 [10:33:25]line НДС 12% НСП 1% [10:33:25]line > о реализуемом товаре [10:33:25]line ИТОГО: 342.00 [10:33:25]line НСП 1% : 3.01 [10:33:25]line НДС 12% : 36.32 [10:33:25]line Наличными: 342.00 [10:33:25]line Безнал.: 0.00 [10:33:25]line Место: АЗС № 133 "Партнер Нефть" [10:33:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:33:25]line СНО: Общий режим [10:33:25]line Чек 83 23.10.2024 10:33 [10:33:25]line Смена: 173 ФФД: 1.0 [10:33:25]line ЗНМ: 0300000020 [10:33:25]line РНМ: 0000000000161154 [10:33:25]line Версия ККМ: v1.0 [10:33:25]line ФМ: 0000000000963323 [10:33:25]line ФД: 75350 [10:33:25]line ФПД: 159365871934411 [10:33:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103329&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75350&fm=159365871934411&tin=02508201610067®Number=0000000000161154&sum=34200 [10:33:25]OFD Sender: Processing packet 75350 [packets to send 15, broken 14] [10:33:25]ProducePacketName [10:33:25]name=ofd_packets/00075350 [10:33:25]OFD Sender: To server: pG, [10:33:25]CommunicateWithHost lk.salyk.kg:30040 [10:33:25]ConnectInit lk.salyk.kg [10:33:25]line 0 [10:33:25]written 0, free lines is 4095 [10:33:25]Connected sock=10 [10:33:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F7 02 00 00 FB 85 EF 02 D4 C6 5A 03 01 00 03 00 E3 02 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 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 F9 D0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 56 26 01 00 35 04 06 00 90 F1 42 2F 9B CB 52 3F 32 BC F5 E7 C2 9B [10:33:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1F 53 47 00 E5 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 39 36 33 33 32 33 10 04 04 00 56 26 01 00 F4 03 04 00 D5 79 18 67 B6 04 01 00 00 43 0E 50 AA 8E DA 27 1E [10:33:25]CommunicateWithHost err = 0 [10:33:25]CheckOFDResponse [10:33:25]1017 (14) - 77093643461234 [10:33:25]1041 (16) - 0000000000963323 [10:33:25]1040 (4) - 75350 [10:33:25]1012 (4) - 23.10.2024 04:21 [10:33:25]1206 (1) - 0 [10:33:25]OFD Sender: Remove packet 75350 [10:33:25]ProducePacketName [10:33:25]name=ofd_packets/00075350 [10:33:25]NVStorageDeleteData [10:33:25]Write to MH i2c: 01 00 00 90 97 27 [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 07 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 07 00 90 97 00 00 00 00 00 20 0B 59 [10:33:25]RasterBufferAndPrint [10:33:25]line [10:33:25]line [10:33:25]line [10:33:25]line [10:33:25]line [10:33:25]written 0, free lines is 2859 [10:33:25]MH_Cut [10:33:25]Write to MH i2c: D1 01 00 97 97 01 00 [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: D1 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: D1 01 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: D1 01 00 97 97 00 FF [10:33:25]Write to MH i2c: 01 00 00 98 97 2F [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:26]OFD Sender: No OFD packet to send [10:33:27]*** Cut start [10:33:27]*** Partial cut [10:33:27]*** CUTSNS_PIN = 1 [10:33:27]*** CUTSNS_PIN = 0 [10:33:27]*** Brake cut motor [10:33:27]Read from MH i2c: 01 [10:33:27]MH_I2C_Read... [10:33:27]*** Stop cut motor [10:33:27]*** Cut end [10:33:27]Read from MH i2c: 01 07 00 [10:33:27]MH_I2C_Read... [10:33:27]Read from MH i2c: 01 07 00 98 97 00 00 00 00 00 FF 0F 44 [10:33:27]process_action close_receipt done [10:33:27]requested_data is exist [10:33:27]produce_requested_data [10:33:27]requested_item fm.sn is exist - process it [10:33:27]wFMCommunicate request_size=4 [10:33:27]MH_SAM_APDU [10:33:27]CAPDU: 80 11 00 00 [10:33:27]Write to MH i2c: E2 08 00 99 97 80 11 00 00 00 00 00 00 AA [10:33:27]Write i2c OK [10:33:27]MH_I2C_Read... [10:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:27]Read from MH i2c: E2 [10:33:27]MH_I2C_Read... [10:33:27]Read from MH i2c: E2 17 00 [10:33:27]MH_I2C_Read... [10:33:27]Read from MH i2c: E2 17 00 99 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F7 [10:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:33:27]wFMCommunicate OK [10:33:27]requested_item fd.num is exist - process it [10:33:27]SAM_PROTO_GetFieldsCounters [10:33:27]wFMCommunicate request_size=4 [10:33:27]MH_SAM_APDU [10:33:27]CAPDU: 80 13 00 00 [10:33:27]Write to MH i2c: E2 08 00 9A 97 80 13 00 00 00 00 00 00 AD [10:33:27]Write i2c OK [10:33:27]MH_I2C_Read... [10:33:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:27]Read from MH i2c: E2 [10:33:27]MH_I2C_Read... [10:33:27]Read from MH i2c: E2 62 00 [10:33:27]MH_I2C_Read... [10:33:27]Read from MH i2c: E2 62 00 9A 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 56 26 01 00 0E 04 04 00 AD 00 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 E4 [10:33:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 56 26 01 00 0E 04 04 00 AD 00 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 [10:33:27]wFMCommunicate OK [10:33:27]SAM_PROTO_GetFieldsCounters done [10:33:27]requested_item shift.num is exist - process it [10:33:27]requested_item shift.opened is exist - process it [10:33:27]req_shift_opened [10:33:27]FM_GetShiftState [10:33:27]SAM_PROTO_GetShiftState [10:33:27]wFMCommunicate request_size=4 [10:33:27]MH_SAM_APDU [10:33:27]CAPDU: 80 13 01 00 [10:33:27]Write to MH i2c: E2 08 00 9B 97 80 13 01 00 00 00 00 00 AF [10:33:27]Write i2c OK [10:33:27]MH_I2C_Read... [10:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:28]Read from MH i2c: E2 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: E2 0E 00 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: E2 0E 00 9B 97 00 09 00 01 99 41 18 67 00 00 00 00 90 00 14 [10:33:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:33:28]wFMCommunicate OK [10:33:28]SAM_PROTO_GetShiftState done [10:33:28]FM_GetShiftState done [10:33:28]req_shift_opened done [10:33:28]requested_item shift.open_date is exist - process it [10:33:28]req_shift_open_date [10:33:28]req_shift_open_date done [10:33:28]produce_requested_data done [10:33:28]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75350,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:33:28]process_action_free close_receipt [10:33:28]json_value_free [10:33:28]json_value_free done [10:33:28]process_json_proto returns [10:33:28]Send response to host [10:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75350,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:33:28]free response buf [10:33:28]execute_script done [10:33:28]execute_script returns [10:33:28]free content buf [10:33:28]Sock 7.Close socket [10:33:28]Sock 7.Thread stoped [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:27]accept exits with 9 [10:34:27]New connection [10:34:27]New thread 3067465060 created [10:34:27]Thread 3067321700 joined [10:34:27]Waiting for new connection... [10:34:27] Sock 9.Parse request [10:34:27]Sock 9.Check first char [10:34:27]Sock 9.First char is OK [10:34:27]request: POST /json_proto HTTP/1.0 [10:34:27]Method: POST [10:34:27]URL: /json_proto [10:34:27]Method is POST - this is cgi request [10:34:27]url: /json_proto [10:34:27]query_string will be loaded in cgi processing [10:34:27]execute_cgi json_proto POST (null) [10:34:27]execute_cgi path=json_proto method=POST [10:34:27]POST find Content-Length [10:34:27]Host: 172.17.44.196:8080 [10:34:27]Content-Length: 770 [10:34:27]Content-Type: application/json [10:34:27] [10:34:27]POST finish read [10:34:27]Found Content-Length = 770 [10:34:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:27]execute_script... [10:34: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)1965335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:27]POST & json_proto [10:34:27]process_json_proto [10:34:27]json parsed OK: [10:34:27]protocol is kg_v1.0 [10:34:27]action value=close_receipt [10:34:27]process_action close_receipt [10:34:27]cmd_close_receipt [10:34:27]MH_GetDate [10:34:27]Write to MH i2c: F0 00 00 9C 97 22 [10:34:27]Write i2c OK [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: F0 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: F0 09 00 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: F0 09 00 9C 97 00 3A D1 18 67 E7 19 F8 65 12 [10:34:27]GetLastDocTimeStamp 1729679609 [10:34:27]current date 1729679674 [10:34:27]FM_GetShiftState [10:34:27]SAM_PROTO_GetShiftState [10:34:27]wFMCommunicate request_size=4 [10:34:27]MH_SAM_APDU [10:34:27]CAPDU: 80 13 01 00 [10:34:27]Write to MH i2c: E2 08 00 9D 97 80 13 01 00 00 00 00 00 B1 [10:34:27]Write i2c OK [10:34:27]MH_I2C_Read... [10:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:27]Read from MH i2c: E2 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: E2 0E 00 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: E2 0E 00 9D 97 00 09 00 01 99 41 18 67 00 00 00 00 90 00 16 [10:34:27]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:34:27]wFMCommunicate OK [10:34:27]SAM_PROTO_GetShiftState done [10:34:27]FM_GetShiftState done [10:34:27]opened in 1729642905 [10:34:27]opened+sec_in_day 1729729305 [10:34:27]quantity*price = 100015 [10:34:27]sum+1 = 100017 [10:34:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 84 23.10.2024 10:34 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75351 ФПД: 73764640837608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103434&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75351&fm=73764640837608&tin=02508201610067®Number=0000000000161154&sum=100016 [10:34:28]StoreToDocumentArchive [10:34:28]shift 173 fd 75351 [10:34:28]save to /storage/0173/doc_00075351 [10:34:28]save last doc name /storage/0173/doc_00075351 to /storage/kkm_last_doc_name [10:34:28]save OK [10:34:28]Clear old archive folders... [10:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:28]tlvbuf is 00D45B00 [10:34:28]SAM_PROTO_ClearQueue [10:34:28]wFMCommunicate request_size=4 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 09 00 00 [10:34:28]Write to MH i2c: E2 08 00 AA 97 80 09 00 00 00 00 00 00 B3 [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 AA 97 00 90 00 B5 [10:34:28]RAPDU: 90 00 [10:34:28]wFMCommunicate OK [10:34:28]SAM_PROTO_ClearQueue done [10:34:28]KKMCreateOFDPacket [10:34:28]OFDProtocolAddRootSTLVToBuf [10:34:28]FM_MakeSignedData [10:34:28]FM_MakeSignedData [10:34:28]SAM_PROTO_SignData [10:34:28]wFMCommunicate request_size=4 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 0D 01 02 [10:34:28]Write to MH i2c: E2 08 00 AB 97 80 0D 01 02 00 00 00 00 BB [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 03 00 AB 97 00 90 00 B6 [10:34:28]RAPDU: 90 00 [10:34:28]wFMCommunicate OK [10:34:28]wFMCommunicate request_size=255 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3A D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 57 26 01 00 35 04 06 00 43 [10:34:28]Write to MH i2c: E2 02 01 AC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3A D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 57 26 01 00 35 04 06 00 43 00 00 A3 [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 03 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 03 00 AC 97 00 90 00 B7 [10:34:29]RAPDU: 90 00 [10:34:29]wFMCommunicate OK [10:34:29]wFMCommunicate request_size=10 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 0D 02 02 05 16 AB 36 CF E8 [10:34:29]Write to MH i2c: E2 0D 00 AD 97 80 0D 02 02 05 00 16 AB 36 CF E8 00 00 76 [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 03 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 03 00 AD 97 00 90 00 B8 [10:34:29]RAPDU: 90 00 [10:34:29]wFMCommunicate OK [10:34:29]wFMCommunicate request_size=4 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 0D 03 02 [10:34:29]Write to MH i2c: E2 08 00 AE 97 80 0D 03 02 00 00 00 00 C0 [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 0B 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 0B 00 AE 97 00 47 58 E8 0E F1 C7 6A 8D 90 00 05 [10:34:29]RAPDU: 47 58 E8 0E F1 C7 6A 8D 90 00 [10:34:29]wFMCommunicate OK [10:34:29]SAM_PROTO_SignData done [10:34:29]FM_MakeSignedData done [10:34:29]CreateOFDProtocolMessage [10:34:29]wFMCommunicate request_size=4 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 11 00 00 [10:34:29]Write to MH i2c: E2 08 00 AF 97 80 11 00 00 00 00 00 00 C0 [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 17 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 17 00 AF 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0D [10:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:34:29]wFMCommunicate OK [10:34:29]CreateOFDProtocolMessage done [10:34:29]OFDSenderStorePacket 75351 [10:34:29]StoreOFDPacket docnum=75351 [10:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E2 62 07 01 76 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3A D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 57 26 01 00 35 04 06 00 43 16 AB 36 CF E8 47 58 E8 0E F1 C7 6A 8D [10:34:29]CheckFolder [10:34:29]dirname=/storage/ofd_packets [10:34:29]CheckFolder done [10:34:29]ProducePacketName [10:34:29]name=ofd_packets/00075351 [10:34:29]NVStorageSaveData ofd_packets/00075351 [10:34:29]File name is /storage/ofd_packets/00075351 [10:34:29]Write 301 bytes [10:34:29]NVStorageSaveData done [10:34:29]OFDSenderStorePacket done [10:34:29]KKMCreateOFDPacket done [10:34:29]NVStorageSaveData kkm_last_timestamp [10:34:29]File name is /storage/kkm_last_timestamp [10:34:29]Write 4 bytes [10:34:29]NVStorageSaveData done [10:34:29]ExternCall_PrintAddStr [10:34:29]wPrintStart [10:34:29]Write to MH i2c: 01 00 00 B0 97 47 [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: 01 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: 01 07 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: 01 07 00 B0 97 00 00 00 00 00 FF 0F 5C [10:34:29]RasterBufferAndPrint [10:34:29]line Счет N : (1)1965335 [10:34:29]line ИНН: 02508201610067 [10:34:29]line Контрольно-Кассовый Чек [10:34:29]line ПРОДАЖА [10:34:29]line ТРК (МРК, ГНК) : 43 [10:34:29]line Товар: 2710124130 [10:34:29]line Аи-92-К-5 [10:34:29]line 14.950 * 66.90 [10:34:29]line = 1000.16 [10:34:29]line НДС 12% НСП 1% [10:34:29]line > о реализуемом товаре [10:34:29]line ИТОГО: 1000.16 [10:34:29]line НСП 1% : 8.85 [10:34:29]line НДС 12% : 106.21 [10:34:29]line Наличными: 0.00 [10:34:29]line Безнал.: 1000.16 [10:34:29]line Место: АЗС № 133 "Партнер Нефть" [10:34:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:34:29]line СНО: Общий режим [10:34:29]line Чек 84 23.10.2024 10:34 [10:34:29]line Смена: 173 ФФД: 1.0 [10:34:29]line ЗНМ: 0300000020 [10:34:29]line РНМ: 0000000000161154 [10:34:29]line Версия ККМ: v1.0 [10:34:29]line Платежная система: Mbank [10:34:29]line ФМ: 0000000000963323 [10:34:29]line ФД: 75351 [10:34:29]line ФПД: 73764640837608 [10:34:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103434&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75351&fm=73764640837608&tin=02508201610067®Number=0000000000161154&sum=100016 [10:34:29]OFD Sender: Processing packet 75351 [packets to send 15, broken 14] [10:34:29]ProducePacketName [10:34:29]name=ofd_packets/00075351 [10:34:29]OFD Sender: To server: pG, [10:34:29]CommunicateWithHost lk.salyk.kg:30040 [10:34:29]ConnectInit lk.salyk.kg [10:34:29]written 0, free lines is 4095 [10:34:29]Connected sock=10 [10:34:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E2 62 07 01 76 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3A D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 57 26 01 00 35 04 06 00 43 16 AB 36 CF E8 47 58 E8 0E F1 C7 6A 8D [10:34:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 71 75 47 00 CB FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 57 26 01 00 F4 03 04 00 15 7A 18 67 B6 04 01 00 00 88 90 24 46 27 95 9F 9A [10:34:29]CommunicateWithHost err = 0 [10:34:29]CheckOFDResponse [10:34:29]1017 (14) - 77093643461234 [10:34:29]1041 (16) - 0000000000963323 [10:34:29]1040 (4) - 75351 [10:34:29]1012 (4) - 23.10.2024 04:22 [10:34:29]1206 (1) - 0 [10:34:29]OFD Sender: Remove packet 75351 [10:34:29]ProducePacketName [10:34:29]name=ofd_packets/00075351 [10:34:29]NVStorageDeleteData [10:34:30]Write to MH i2c: 01 00 00 D8 97 6F [10:34:30]Write i2c OK [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: 01 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: 01 07 00 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: 01 07 00 D8 97 00 00 00 00 00 E2 0C 64 [10:34:30]RasterBufferAndPrint [10:34:30]line [10:34:30]line [10:34:30]line [10:34:30]line [10:34:30]line [10:34:30]written 0, free lines is 3302 [10:34:30]MH_Cut [10:34:30]Write to MH i2c: D1 01 00 DF 97 01 48 [10:34:30]Write i2c OK [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: D1 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: D1 01 00 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: D1 01 00 DF 97 00 47 [10:34:30]Write to MH i2c: 01 00 00 E0 97 77 [10:34:30]Write i2c OK [10:34:30]MH_I2C_Read... [10:34:30]OFD Sender: No OFD packet to send [10:34:30]*** Cut start [10:34:30]*** Partial cut [10:34:30]*** CUTSNS_PIN = 1 [10:34:31]*** CUTSNS_PIN = 0 [10:34:31]*** Brake cut motor [10:34:31]Read from MH i2c: 01 [10:34:31]MH_I2C_Read... [10:34:31]*** Stop cut motor [10:34:31]*** Cut end [10:34:31]Read from MH i2c: 01 07 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 E0 97 00 00 00 00 00 FF 0F 8C [10:34:31]process_action close_receipt done [10:34:31]requested_data is exist [10:34:31]produce_requested_data [10:34:31]requested_item fm.sn is exist - process it [10:34:31]wFMCommunicate request_size=4 [10:34:31]MH_SAM_APDU [10:34:31]CAPDU: 80 11 00 00 [10:34:31]Write to MH i2c: E2 08 00 E1 97 80 11 00 00 00 00 00 00 F2 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:31]Read from MH i2c: E2 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 17 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 17 00 E1 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3F [10:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:34:31]wFMCommunicate OK [10:34:31]requested_item fd.num is exist - process it [10:34:31]SAM_PROTO_GetFieldsCounters [10:34:31]wFMCommunicate request_size=4 [10:34:31]MH_SAM_APDU [10:34:31]CAPDU: 80 13 00 00 [10:34:31]Write to MH i2c: E2 08 00 E2 97 80 13 00 00 00 00 00 00 F5 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:31]Read from MH i2c: E2 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 62 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 62 00 E2 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 57 26 01 00 0E 04 04 00 AD 00 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 30 [10:34:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 57 26 01 00 0E 04 04 00 AD 00 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 [10:34:31]wFMCommunicate OK [10:34:31]SAM_PROTO_GetFieldsCounters done [10:34:31]requested_item shift.num is exist - process it [10:34:31]requested_item shift.opened is exist - process it [10:34:31]req_shift_opened [10:34:31]FM_GetShiftState [10:34:31]SAM_PROTO_GetShiftState [10:34:31]wFMCommunicate request_size=4 [10:34:31]MH_SAM_APDU [10:34:31]CAPDU: 80 13 01 00 [10:34:31]Write to MH i2c: E2 08 00 E3 97 80 13 01 00 00 00 00 00 F7 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:31]Read from MH i2c: E2 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 0E 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 0E 00 E3 97 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5C [10:34:31]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:34:31]wFMCommunicate OK [10:34:31]SAM_PROTO_GetShiftState done [10:34:31]FM_GetShiftState done [10:34:31]req_shift_opened done [10:34:31]requested_item shift.open_date is exist - process it [10:34:31]req_shift_open_date [10:34:31]req_shift_open_date done [10:34:31]produce_requested_data done [10:34:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75351,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:34:31]process_action_free close_receipt [10:34:31]json_value_free [10:34:31]json_value_free done [10:34:31]process_json_proto returns [10:34:31]Send response to host [10:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75351,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:34:31]free response buf [10:34:31]execute_script done [10:34:31]execute_script returns [10:34:31]free content buf [10:34:31]Sock 9.Close socket [10:34:31]Sock 9.Thread stoped [10:34:34]accept exits with 7 [10:34:34]New connection [10:34:34]New thread 3067321700 created [10:34:34]Thread 3067465060 joined [10:34:34]Waiting for new connection... [10:34:34] Sock 7.Parse request [10:34:34]Sock 7.Check first char [10:34:34]Sock 7.First char is OK [10:34:34]request: POST /json_proto HTTP/1.0 [10:34:34]Method: POST [10:34:34]URL: /json_proto [10:34:34]Method is POST - this is cgi request [10:34:34]url: /json_proto [10:34:34]query_string will be loaded in cgi processing [10:34:34]execute_cgi json_proto POST (null) [10:34:34]execute_cgi path=json_proto method=POST [10:34:34]POST find Content-Length [10:34:34]Host: 172.17.44.196:8080 [10:34:34]Content-Length: 677 [10:34:34]Content-Type: application/json [10:34:34] [10:34:34]POST finish read [10:34:34]Found Content-Length = 677 [10:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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:34:34]execute_script... [10:34:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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:34:34]POST & json_proto [10:34:34]process_json_proto [10:34:34]json parsed OK: [10:34:34]protocol is kg_v1.0 [10:34:34]action value=close_receipt [10:34:34]process_action close_receipt [10:34:34]cmd_close_receipt [10:34:34]MH_GetDate [10:34:34]Write to MH i2c: F0 00 00 E4 97 6A [10:34:34]Write i2c OK [10:34:34]MH_I2C_Read... [10:34:34]Read from MH i2c: F0 [10:34:34]MH_I2C_Read... [10:34:34]Read from MH i2c: F0 09 00 [10:34:34]MH_I2C_Read... [10:34:34]Read from MH i2c: F0 09 00 E4 97 00 42 D1 18 67 E7 19 F8 65 62 [10:34:34]GetLastDocTimeStamp 1729679674 [10:34:34]current date 1729679682 [10:34:34]FM_GetShiftState [10:34:34]SAM_PROTO_GetShiftState [10:34:34]wFMCommunicate request_size=4 [10:34:34]MH_SAM_APDU [10:34:34]CAPDU: 80 13 01 00 [10:34:34]Write to MH i2c: E2 08 00 E5 97 80 13 01 00 00 00 00 00 F9 [10:34:34]Write i2c OK [10:34:34]MH_I2C_Read... [10:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:34]Read from MH i2c: E2 [10:34:34]MH_I2C_Read... [10:34:34]Read from MH i2c: E2 0E 00 [10:34:34]MH_I2C_Read... [10:34:34]Read from MH i2c: E2 0E 00 E5 97 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5E [10:34:34]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:34:34]wFMCommunicate OK [10:34:34]SAM_PROTO_GetShiftState done [10:34:34]FM_GetShiftState done [10:34:34]opened in 1729642905 [10:34:34]opened+sec_in_day 1729729305 [10:34:34]quantity*price = 150037 [10:34:34]sum+1 = 150038 [10:34:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 85 23.10.2024 10:34 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75352 ФПД: 213110743965302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103442&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75352&fm=213110743965302&tin=02508201610067®Number=0000000000161154&sum=150000 [10:34:36]StoreToDocumentArchive [10:34:36]shift 173 fd 75352 [10:34:36]save to /storage/0173/doc_00075352 [10:34:36]save last doc name /storage/0173/doc_00075352 to /storage/kkm_last_doc_name [10:34:36]save OK [10:34:36]Clear old archive folders... [10:34:36]ProcessDocumentItem done err = 0, tmpTLVsize=245 [10:34:36]tlvbuf is 00CE06E0 [10:34:36]SAM_PROTO_ClearQueue [10:34:36]wFMCommunicate request_size=4 [10:34:36]MH_SAM_APDU [10:34:36]CAPDU: 80 09 00 00 [10:34:36]Write to MH i2c: E2 08 00 F2 97 80 09 00 00 00 00 00 00 FB [10:34:36]Write i2c OK [10:34:36]MH_I2C_Read... [10:34:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:36]Read from MH i2c: E2 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: E2 03 00 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: E2 03 00 F2 97 00 90 00 FD [10:34:36]RAPDU: 90 00 [10:34:36]wFMCommunicate OK [10:34:36]SAM_PROTO_ClearQueue done [10:34:36]KKMCreateOFDPacket [10:34:36]OFDProtocolAddRootSTLVToBuf [10:34:36]FM_MakeSignedData [10:34:36]FM_MakeSignedData [10:34:36]SAM_PROTO_SignData [10:34:36]wFMCommunicate request_size=4 [10:34:36]MH_SAM_APDU [10:34:36]CAPDU: 80 0D 01 02 [10:34:36]Write to MH i2c: E2 08 00 F3 97 80 0D 01 02 00 00 00 00 03 [10:34:36]Write i2c OK [10:34:36]MH_I2C_Read... [10:34:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:36]Read from MH i2c: E2 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: E2 03 00 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: E2 03 00 F3 97 00 90 00 FE [10:34:36]RAPDU: 90 00 [10:34:36]wFMCommunicate OK [10:34:36]wFMCommunicate request_size=254 [10:34:36]MH_SAM_APDU [10:34:36]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 42 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 58 26 01 00 35 04 06 00 C1 D2 B6 31 1E 76 [10:34:36]Write to MH i2c: E2 01 01 F4 97 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 42 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 58 26 01 00 35 04 06 00 C1 D2 B6 31 1E 76 00 00 CF [10:34:36]Write i2c OK [10:34:36]MH_I2C_Read... [10:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:36]Read from MH i2c: E2 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: E2 03 00 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: E2 03 00 F4 97 00 90 00 FF [10:34:36]RAPDU: 90 00 [10:34:36]wFMCommunicate OK [10:34:36]wFMCommunicate request_size=4 [10:34:36]MH_SAM_APDU [10:34:36]CAPDU: 80 0D 03 02 [10:34:36]Write to MH i2c: E2 08 00 F5 97 80 0D 03 02 00 00 00 00 07 [10:34:36]Write i2c OK [10:34:36]MH_I2C_Read... [10:34:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:36]Read from MH i2c: E2 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: E2 0B 00 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: E2 0B 00 F5 97 00 AD AC 1D 91 93 E1 45 6B 90 00 33 [10:34:36]RAPDU: AD AC 1D 91 93 E1 45 6B 90 00 [10:34:36]wFMCommunicate OK [10:34:36]SAM_PROTO_SignData done [10:34:36]FM_MakeSignedData done [10:34:36]CreateOFDProtocolMessage [10:34:36]wFMCommunicate request_size=4 [10:34:36]MH_SAM_APDU [10:34:36]CAPDU: 80 11 00 00 [10:34:36]Write to MH i2c: E2 08 00 F6 97 80 11 00 00 00 00 00 00 07 [10:34:36]Write i2c OK [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: E2 [10:34:36]MH_I2C_Read... [10:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:36]Read from MH i2c: E2 17 00 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: E2 17 00 F6 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 54 [10:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:34:36]wFMCommunicate OK [10:34:36]CreateOFDProtocolMessage done [10:34:36]OFDSenderStorePacket 75352 [10:34:36]StoreOFDPacket docnum=75352 [10:34:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 25 2D 01 01 36 10 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 42 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 58 26 01 00 35 04 06 00 C1 D2 B6 31 1E 76 AD AC 1D 91 93 E1 45 6B [10:34:36]CheckFolder [10:34:36]dirname=/storage/ofd_packets [10:34:36]CheckFolder done [10:34:36]ProducePacketName [10:34:36]name=ofd_packets/00075352 [10:34:36]NVStorageSaveData ofd_packets/00075352 [10:34:36]File name is /storage/ofd_packets/00075352 [10:34:36]Write 295 bytes [10:34:36]NVStorageSaveData done [10:34:36]OFDSenderStorePacket done [10:34:36]KKMCreateOFDPacket done [10:34:36]NVStorageSaveData kkm_last_timestamp [10:34:36]File name is /storage/kkm_last_timestamp [10:34:36]Write 4 bytes [10:34:36]NVStorageSaveData done [10:34:36]ExternCall_PrintAddStr [10:34:36]wPrintStart [10:34:36]Write to MH i2c: 01 00 00 F7 97 8E [10:34:36]Write i2c OK [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: 01 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: 01 07 00 [10:34:36]MH_I2C_Read... [10:34:36]Read from MH i2c: 01 07 00 F7 97 00 00 00 00 00 FF 0F A3 [10:34:36]RasterBufferAndPrint [10:34:36]line Счет N : (1)1965333 [10:34:36]line ИНН: 02508201610067 [10:34:36]line Контрольно-Кассовый Чек [10:34:36]line ПРОДАЖА [10:34:36]line ТРК (МРК, ГНК) : 71 [10:34:36]line Товар: 2711129700 [10:34:36]line ГАЗ [10:34:36]line 38.570 * 38.90 [10:34:36]line = 1500.37 [10:34:36]line НДС 12% НСП 1% [10:34:36]line > о реализуемом товаре [10:34:36]line ОКРУГЛЕНИЕ: -0.37 [10:34:36]line ИТОГО: 1500.00 [10:34:36]line Внесено: 1500.00 [10:34:36]line СДАЧА: 0.00 [10:34:36]line НСП 1% : 13.28 [10:34:36]line НДС 12% : 159.33 [10:34:36]line Наличными: 1500.00 [10:34:36]line Безнал.: 0.00 [10:34:36]line Место: АЗС № 133 "Партнер Нефть" [10:34:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:34:36]line СНО: Общий режим [10:34:36]line Чек 85 23.10.2024 10:34 [10:34:36]line Смена: 173 ФФД: 1.0 [10:34:36]line ЗНМ: 0300000020 [10:34:36]line РНМ: 0000000000161154 [10:34:36]line Версия ККМ: v1.0 [10:34:36]line ФМ: 0000000000963323 [10:34:36]line ФД: 75352 [10:34:36]line ФПД: 213110743965302 [10:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103442&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75352&fm=213110743965302&tin=02508201610067®Number=0000000000161154&sum=150000 [10:34:36]written 0, free lines is 4095 [10:34:36]OFD Sender: Processing packet 75352 [packets to send 15, broken 14] [10:34:36]ProducePacketName [10:34:36]name=ofd_packets/00075352 [10:34:36]OFD Sender: To server: pG, [10:34:36]CommunicateWithHost lk.salyk.kg:30040 [10:34:36]ConnectInit lk.salyk.kg [10:34:36]Connected sock=10 [10:34:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 25 2D 01 01 36 10 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 42 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 58 26 01 00 35 04 06 00 C1 D2 B6 31 1E 76 AD AC 1D 91 93 E1 45 6B [10:34:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0E 4B 47 00 22 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 58 26 01 00 F4 03 04 00 1D 7A 18 67 B6 04 01 00 00 96 75 FD EB F7 36 DD A7 [10:34:37]CommunicateWithHost err = 0 [10:34:37]CheckOFDResponse [10:34:37]1017 (14) - 77093643461234 [10:34:37]1041 (16) - 0000000000963323 [10:34:37]1040 (4) - 75352 [10:34:37]1012 (4) - 23.10.2024 04:22 [10:34:37]1206 (1) - 0 [10:34:37]OFD Sender: Remove packet 75352 [10:34:37]ProducePacketName [10:34:37]name=ofd_packets/00075352 [10:34:37]NVStorageDeleteData [10:34:37]Write to MH i2c: 01 00 00 21 98 B9 [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: 01 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: 01 07 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: 01 07 00 21 98 00 00 00 00 00 AB 0C 77 [10:34:37]RasterBufferAndPrint [10:34:37]line [10:34:37]line [10:34:37]line [10:34:37]line [10:34:37]line [10:34:37]written 0, free lines is 3251 [10:34:37]MH_Cut [10:34:37]Write to MH i2c: D1 01 00 28 98 01 92 [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: D1 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: D1 01 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: D1 01 00 28 98 00 91 [10:34:37]Write to MH i2c: 01 00 00 29 98 C1 [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]OFD Sender: No OFD packet to send [10:34:38]*** Cut start [10:34:38]*** Partial cut [10:34:38]*** CUTSNS_PIN = 1 [10:34:38]*** CUTSNS_PIN = 0 [10:34:38]*** Brake cut motor [10:34:38]Read from MH i2c: 01 [10:34:38]MH_I2C_Read... [10:34:38]*** Stop cut motor [10:34:38]*** Cut end [10:34:38]Read from MH i2c: 01 07 00 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: 01 07 00 29 98 00 00 00 00 00 FF 0F D6 [10:34:38]process_action close_receipt done [10:34:38]requested_data is exist [10:34:38]produce_requested_data [10:34:38]requested_item fm.sn is exist - process it [10:34:38]wFMCommunicate request_size=4 [10:34:38]MH_SAM_APDU [10:34:38]CAPDU: 80 11 00 00 [10:34:38]Write to MH i2c: E2 08 00 2A 98 80 11 00 00 00 00 00 00 3C [10:34:38]Write i2c OK [10:34:38]MH_I2C_Read... [10:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:38]Read from MH i2c: E2 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 17 00 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 17 00 2A 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 89 [10:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:34:38]wFMCommunicate OK [10:34:38]requested_item fd.num is exist - process it [10:34:38]SAM_PROTO_GetFieldsCounters [10:34:38]wFMCommunicate request_size=4 [10:34:38]MH_SAM_APDU [10:34:38]CAPDU: 80 13 00 00 [10:34:38]Write to MH i2c: E2 08 00 2B 98 80 13 00 00 00 00 00 00 3F [10:34:38]Write i2c OK [10:34:38]MH_I2C_Read... [10:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:38]Read from MH i2c: E2 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 62 00 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 62 00 2B 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 58 26 01 00 0E 04 04 00 AD 00 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 7E [10:34:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 58 26 01 00 0E 04 04 00 AD 00 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 [10:34:38]wFMCommunicate OK [10:34:38]SAM_PROTO_GetFieldsCounters done [10:34:38]requested_item shift.num is exist - process it [10:34:38]requested_item shift.opened is exist - process it [10:34:38]req_shift_opened [10:34:38]FM_GetShiftState [10:34:38]SAM_PROTO_GetShiftState [10:34:38]wFMCommunicate request_size=4 [10:34:38]MH_SAM_APDU [10:34:38]CAPDU: 80 13 01 00 [10:34:38]Write to MH i2c: E2 08 00 2C 98 80 13 01 00 00 00 00 00 41 [10:34:38]Write i2c OK [10:34:38]MH_I2C_Read... [10:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:38]Read from MH i2c: E2 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 0E 00 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: E2 0E 00 2C 98 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A6 [10:34:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:34:38]wFMCommunicate OK [10:34:38]SAM_PROTO_GetShiftState done [10:34:38]FM_GetShiftState done [10:34:38]req_shift_opened done [10:34:38]requested_item shift.open_date is exist - process it [10:34:38]req_shift_open_date [10:34:38]req_shift_open_date done [10:34:38]produce_requested_data done [10:34:38]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75352,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:34:38]process_action_free close_receipt [10:34:38]json_value_free [10:34:38]json_value_free done [10:34:38]process_json_proto returns [10:34:38]Send response to host [10:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75352,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:34:38]free response buf [10:34:38]execute_script done [10:34:38]execute_script returns [10:34:38]free content buf [10:34:38]Sock 7.Close socket [10:34:38]Sock 7.Thread stoped [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]accept exits with 9 [10:35:07]New connection [10:35:07]New thread 3067465060 created [10:35:07]Thread 3067321700 joined [10:35:07]Waiting for new connection... [10:35:07] Sock 9.Parse request [10:35:07]Sock 9.Check first char [10:35:07]Sock 9.First char is OK [10:35:07]request: POST /json_proto HTTP/1.0 [10:35:07]Method: POST [10:35:07]URL: /json_proto [10:35:07]Method is POST - this is cgi request [10:35:07]url: /json_proto [10:35:07]query_string will be loaded in cgi processing [10:35:07]execute_cgi json_proto POST (null) [10:35:07]execute_cgi path=json_proto method=POST [10:35:07]POST find Content-Length [10:35:07]Host: 172.17.44.196:8080 [10:35:07]Content-Length: 678 [10:35:07]Content-Type: application/json [10:35:07] [10:35:07]POST finish read [10:35:07]Found Content-Length = 678 [10:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:07]execute_script... [10:35: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)1965336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:07]POST & json_proto [10:35:07]process_json_proto [10:35:07]json parsed OK: [10:35:07]protocol is kg_v1.0 [10:35:07]action value=close_receipt [10:35:07]process_action close_receipt [10:35:07]cmd_close_receipt [10:35:07]MH_GetDate [10:35:07]Write to MH i2c: F0 00 00 2D 98 B4 [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: F0 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: F0 09 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: F0 09 00 2D 98 00 62 D1 18 67 E7 19 F8 65 CC [10:35:07]GetLastDocTimeStamp 1729679682 [10:35:07]current date 1729679714 [10:35:07]FM_GetShiftState [10:35:07]SAM_PROTO_GetShiftState [10:35:07]wFMCommunicate request_size=4 [10:35:07]MH_SAM_APDU [10:35:07]CAPDU: 80 13 01 00 [10:35:07]Write to MH i2c: E2 08 00 2E 98 80 13 01 00 00 00 00 00 43 [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:07]Read from MH i2c: E2 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 0E 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 0E 00 2E 98 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A8 [10:35:07]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:35:07]wFMCommunicate OK [10:35:07]SAM_PROTO_GetShiftState done [10:35:07]FM_GetShiftState done [10:35:07]opened in 1729642905 [10:35:07]opened+sec_in_day 1729729305 [10:35:07]quantity*price = 30038 [10:35:07]sum+1 = 30039 [10:35:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 86 23.10.2024 10:35 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75353 ФПД: 257457946557024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103514&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75353&fm=257457946557024&tin=02508201610067®Number=0000000000161154&sum=30000 [10:35:08]StoreToDocumentArchive [10:35:08]shift 173 fd 75353 [10:35:08]save to /storage/0173/doc_00075353 [10:35:08]save last doc name /storage/0173/doc_00075353 to /storage/kkm_last_doc_name [10:35:08]save OK [10:35:08]Clear old archive folders... [10:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:08]tlvbuf is 00FF78F0 [10:35:08]SAM_PROTO_ClearQueue [10:35:08]wFMCommunicate request_size=4 [10:35:08]MH_SAM_APDU [10:35:08]CAPDU: 80 09 00 00 [10:35:08]Write to MH i2c: E2 08 00 3B 98 80 09 00 00 00 00 00 00 45 [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 3B 98 00 90 00 47 [10:35:08]RAPDU: 90 00 [10:35:08]wFMCommunicate OK [10:35:08]SAM_PROTO_ClearQueue done [10:35:08]KKMCreateOFDPacket [10:35:08]OFDProtocolAddRootSTLVToBuf [10:35:08]FM_MakeSignedData [10:35:08]FM_MakeSignedData [10:35:08]SAM_PROTO_SignData [10:35:08]wFMCommunicate request_size=4 [10:35:08]MH_SAM_APDU [10:35:08]CAPDU: 80 0D 01 02 [10:35:08]Write to MH i2c: E2 08 00 3C 98 80 0D 01 02 00 00 00 00 4D [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 3C 98 00 90 00 48 [10:35:08]RAPDU: 90 00 [10:35:08]wFMCommunicate OK [10:35:08]wFMCommunicate request_size=255 [10:35:08]MH_SAM_APDU [10:35: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 62 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 59 26 01 00 35 04 06 00 EA [10:35:08]Write to MH i2c: E2 02 01 3D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 62 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 59 26 01 00 35 04 06 00 EA 00 00 E2 [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 3D 98 00 90 00 49 [10:35:08]RAPDU: 90 00 [10:35:08]wFMCommunicate OK [10:35:08]wFMCommunicate request_size=10 [10:35:08]MH_SAM_APDU [10:35:08]CAPDU: 80 0D 02 02 05 28 19 72 FA 60 [10:35:08]Write to MH i2c: E2 0D 00 3E 98 80 0D 02 02 05 00 28 19 72 FA 60 00 00 67 [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 3E 98 00 90 00 4A [10:35:08]RAPDU: 90 00 [10:35:08]wFMCommunicate OK [10:35:08]wFMCommunicate request_size=4 [10:35:08]MH_SAM_APDU [10:35:08]CAPDU: 80 0D 03 02 [10:35:08]Write to MH i2c: E2 08 00 3F 98 80 0D 03 02 00 00 00 00 52 [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 0B 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 0B 00 3F 98 00 B7 81 04 59 01 BF 65 05 90 00 12 [10:35:08]RAPDU: B7 81 04 59 01 BF 65 05 90 00 [10:35:08]wFMCommunicate OK [10:35:08]SAM_PROTO_SignData done [10:35:08]FM_MakeSignedData done [10:35:08]CreateOFDProtocolMessage [10:35:08]wFMCommunicate request_size=4 [10:35:08]MH_SAM_APDU [10:35:08]CAPDU: 80 11 00 00 [10:35:08]Write to MH i2c: E2 08 00 40 98 80 11 00 00 00 00 00 00 52 [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 17 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 17 00 40 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9F [10:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:35:08]wFMCommunicate OK [10:35:08]CreateOFDProtocolMessage done [10:35:08]OFDSenderStorePacket 75353 [10:35:08]StoreOFDPacket docnum=75353 [10:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 92 03 07 01 A2 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 62 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 59 26 01 00 35 04 06 00 EA 28 19 72 FA 60 B7 81 04 59 01 BF 65 05 [10:35:08]CheckFolder [10:35:08]dirname=/storage/ofd_packets [10:35:08]CheckFolder done [10:35:08]ProducePacketName [10:35:08]name=ofd_packets/00075353 [10:35:08]NVStorageSaveData ofd_packets/00075353 [10:35:08]File name is /storage/ofd_packets/00075353 [10:35:08]Write 301 bytes [10:35:08]NVStorageSaveData done [10:35:08]OFDSenderStorePacket done [10:35:08]KKMCreateOFDPacket done [10:35:08]NVStorageSaveData kkm_last_timestamp [10:35:08]File name is /storage/kkm_last_timestamp [10:35:08]Write 4 bytes [10:35:08]NVStorageSaveData done [10:35:08]ExternCall_PrintAddStr [10:35:08]wPrintStart [10:35:08]Write to MH i2c: 01 00 00 41 98 D9 [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: 01 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: 01 07 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: 01 07 00 41 98 00 00 00 00 00 FF 0F EE [10:35:08]RasterBufferAndPrint [10:35:08]line Счет N : (1)1965336 [10:35:08]line ИНН: 02508201610067 [10:35:08]line Контрольно-Кассовый Чек [10:35:08]line ПРОДАЖА [10:35:08]line ТРК (МРК, ГНК) : 63 [10:35:08]line Товар: 2710124130 [10:35:08]line Аи-92-К-5 [10:35:08]line 4.490 * 66.90 [10:35:08]line = 300.38 [10:35:08]line НДС 12% НСП 1% [10:35:08]line > о реализуемом товаре [10:35:08]line ОКРУГЛЕНИЕ: -0.38 [10:35:08]line ИТОГО: 300.00 [10:35:08]line Внесено: 300.00 [10:35:08]line СДАЧА: 0.00 [10:35:08]line НСП 1% : 2.66 [10:35:08]line НДС 12% : 31.90 [10:35:08]line Наличными: 300.00 [10:35:08]line Безнал.: 0.00 [10:35:08]line Место: АЗС № 133 "Партнер Нефть" [10:35:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:35:08]line СНО: Общий режим [10:35:08]line Чек 86 23.10.2024 10:35 [10:35:08]line Смена: 173 ФФД: 1.0 [10:35:08]line ЗНМ: 0300000020 [10:35:08]line РНМ: 0000000000161154 [10:35:08]line Версия ККМ: v1.0 [10:35:08]line ФМ: 0000000000963323 [10:35:08]line ФД: 75353 [10:35:08]line ФПД: 257457946557024 [10:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103514&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75353&fm=257457946557024&tin=02508201610067®Number=0000000000161154&sum=30000 [10:35:09]OFD Sender: Processing packet 75353 [packets to send 15, broken 14] [10:35:09]ProducePacketName [10:35:09]name=ofd_packets/00075353 [10:35:09]OFD Sender: To server: pG, [10:35:09]CommunicateWithHost lk.salyk.kg:30040 [10:35:09]ConnectInit lk.salyk.kg [10:35:09]written 0, free lines is 4095 [10:35:09]Connected sock=10 [10:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 92 03 07 01 A2 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 62 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 59 26 01 00 35 04 06 00 EA 28 19 72 FA 60 B7 81 04 59 01 BF 65 05 [10:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 41 8A 47 00 C3 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 59 26 01 00 F4 03 04 00 3D 7A 18 67 B6 04 01 00 00 F5 96 E8 E7 E7 9F D4 28 [10:35:09]CommunicateWithHost err = 0 [10:35:09]CheckOFDResponse [10:35:09]1017 (14) - 77093643461234 [10:35:09]1041 (16) - 0000000000963323 [10:35:09]1040 (4) - 75353 [10:35:09]1012 (4) - 23.10.2024 04:23 [10:35:09]1206 (1) - 0 [10:35:09]OFD Sender: Remove packet 75353 [10:35:09]ProducePacketName [10:35:09]name=ofd_packets/00075353 [10:35:09]NVStorageDeleteData [10:35:09]Write to MH i2c: 01 00 00 6B 98 03 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 07 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 07 00 6B 98 00 00 00 00 00 BA 0C D0 [10:35:09]RasterBufferAndPrint [10:35:09]line [10:35:09]line [10:35:09]line [10:35:09]line [10:35:09]line [10:35:09]written 0, free lines is 3265 [10:35:09]MH_Cut [10:35:09]Write to MH i2c: D1 01 00 72 98 01 DC [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: D1 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: D1 01 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: D1 01 00 72 98 00 DB [10:35:09]Write to MH i2c: 01 00 00 73 98 0B [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]OFD Sender: No OFD packet to send [10:35:10]*** Cut start [10:35:10]*** Partial cut [10:35:10]*** CUTSNS_PIN = 1 [10:35:10]*** CUTSNS_PIN = 0 [10:35:10]*** Brake cut motor [10:35:11]Read from MH i2c: 01 [10:35:11]MH_I2C_Read... [10:35:11]*** Stop cut motor [10:35:11]*** Cut end [10:35:11]Read from MH i2c: 01 07 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: 01 07 00 73 98 00 00 00 00 00 FF 0F 20 [10:35:11]process_action close_receipt done [10:35:11]requested_data is exist [10:35:11]produce_requested_data [10:35:11]requested_item fm.sn is exist - process it [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 11 00 00 [10:35:11]Write to MH i2c: E2 08 00 74 98 80 11 00 00 00 00 00 00 86 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:11]Read from MH i2c: E2 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 17 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 17 00 74 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D3 [10:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:35:11]wFMCommunicate OK [10:35:11]requested_item fd.num is exist - process it [10:35:11]SAM_PROTO_GetFieldsCounters [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 13 00 00 [10:35:11]Write to MH i2c: E2 08 00 75 98 80 13 00 00 00 00 00 00 89 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:11]Read from MH i2c: E2 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 62 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 62 00 75 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 59 26 01 00 0E 04 04 00 AD 00 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 CC [10:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 59 26 01 00 0E 04 04 00 AD 00 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 [10:35:11]wFMCommunicate OK [10:35:11]SAM_PROTO_GetFieldsCounters done [10:35:11]requested_item shift.num is exist - process it [10:35:11]requested_item shift.opened is exist - process it [10:35:11]req_shift_opened [10:35:11]FM_GetShiftState [10:35:11]SAM_PROTO_GetShiftState [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 13 01 00 [10:35:11]Write to MH i2c: E2 08 00 76 98 80 13 01 00 00 00 00 00 8B [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:11]Read from MH i2c: E2 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 0E 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 0E 00 76 98 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F0 [10:35:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:35:11]wFMCommunicate OK [10:35:11]SAM_PROTO_GetShiftState done [10:35:11]FM_GetShiftState done [10:35:11]req_shift_opened done [10:35:11]requested_item shift.open_date is exist - process it [10:35:11]req_shift_open_date [10:35:11]req_shift_open_date done [10:35:11]produce_requested_data done [10:35:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75353,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:35:11]process_action_free close_receipt [10:35:11]json_value_free [10:35:11]json_value_free done [10:35:11]process_json_proto returns [10:35:11]Send response to host [10:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75353,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:35:11]free response buf [10:35:11]execute_script done [10:35:11]execute_script returns [10:35:11]free content buf [10:35:11]Sock 9.Close socket [10:35:11]Sock 9.Thread stoped [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:51]accept exits with 7 [10:35:51]New connection [10:35:51]New thread 3067321700 created [10:35:51]Thread 3067465060 joined [10:35:51]Waiting for new connection... [10:35:51] Sock 7.Parse request [10:35:51]Sock 7.Check first char [10:35:51]Sock 7.First char is OK [10:35:51]request: POST /json_proto HTTP/1.0 [10:35:51]Method: POST [10:35:51]URL: /json_proto [10:35:51]Method is POST - this is cgi request [10:35:51]url: /json_proto [10:35:51]query_string will be loaded in cgi processing [10:35:51]execute_cgi json_proto POST (null) [10:35:51]execute_cgi path=json_proto method=POST [10:35:51]POST find Content-Length [10:35:51]Host: 172.17.44.196:8080 [10:35:51]Content-Length: 753 [10:35:51]Content-Type: application/json [10:35:51] [10:35:51]POST finish read [10:35:51]Found Content-Length = 753 [10:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965334", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072880", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:51]execute_script... [10:35: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)1965334", "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" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072880", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:51]POST & json_proto [10:35:51]process_json_proto [10:35:51]json parsed OK: [10:35:51]protocol is kg_v1.0 [10:35:51]action value=close_receipt [10:35:51]process_action close_receipt [10:35:51]cmd_close_receipt [10:35:51]MH_GetDate [10:35:51]Write to MH i2c: F0 00 00 77 98 FE [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: F0 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: F0 09 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: F0 09 00 77 98 00 8E D1 18 67 E7 19 F8 65 42 [10:35:51]GetLastDocTimeStamp 1729679714 [10:35:51]current date 1729679758 [10:35:51]FM_GetShiftState [10:35:51]SAM_PROTO_GetShiftState [10:35:51]wFMCommunicate request_size=4 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 13 01 00 [10:35:51]Write to MH i2c: E2 08 00 78 98 80 13 01 00 00 00 00 00 8D [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 0E 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 0E 00 78 98 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F2 [10:35:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:35:51]wFMCommunicate OK [10:35:51]SAM_PROTO_GetShiftState done [10:35:51]FM_GetShiftState done [10:35:51]opened in 1729642905 [10:35:51]opened+sec_in_day 1729729305 [10:35:51]quantity*price = 0 [10:35:51]sum+1 = 1 [10:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 87 23.10.2024 10:35 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30072880 ФМ: 0000000000963323 ФД: 75354 ФПД: 217538156458345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103558&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75354&fm=217538156458345&tin=02508201610067®Number=0000000000161154&sum=0 [10:35:52]StoreToDocumentArchive [10:35:52]shift 173 fd 75354 [10:35:52]save to /storage/0173/doc_00075354 [10:35:52]save last doc name /storage/0173/doc_00075354 to /storage/kkm_last_doc_name [10:35:52]save OK [10:35:52]Clear old archive folders... [10:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:35:52]tlvbuf is 00DBC0B0 [10:35:52]SAM_PROTO_ClearQueue [10:35:52]wFMCommunicate request_size=4 [10:35:52]MH_SAM_APDU [10:35:52]CAPDU: 80 09 00 00 [10:35:52]Write to MH i2c: E2 08 00 85 98 80 09 00 00 00 00 00 00 8F [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:52]Read from MH i2c: E2 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 03 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 03 00 85 98 00 90 00 91 [10:35:52]RAPDU: 90 00 [10:35:52]wFMCommunicate OK [10:35:52]SAM_PROTO_ClearQueue done [10:35:52]KKMCreateOFDPacket [10:35:52]OFDProtocolAddRootSTLVToBuf [10:35:52]FM_MakeSignedData [10:35:52]FM_MakeSignedData [10:35:52]SAM_PROTO_SignData [10:35:52]wFMCommunicate request_size=4 [10:35:52]MH_SAM_APDU [10:35:52]CAPDU: 80 0D 01 02 [10:35:52]Write to MH i2c: E2 08 00 86 98 80 0D 01 02 00 00 00 00 97 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:52]Read from MH i2c: E2 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 03 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 03 00 86 98 00 90 00 92 [10:35:52]RAPDU: 90 00 [10:35:52]wFMCommunicate OK [10:35:52]wFMCommunicate request_size=255 [10:35:52]MH_SAM_APDU [10:35:52]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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8E D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5A 26 01 00 35 04 06 00 C5 D9 8C 8A [10:35:52]Write to MH i2c: E2 02 01 87 98 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8E D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5A 26 01 00 35 04 06 00 C5 D9 8C 8A 00 00 25 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:53]Read from MH i2c: E2 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 03 00 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 03 00 87 98 00 90 00 93 [10:35:53]RAPDU: 90 00 [10:35:53]wFMCommunicate OK [10:35:53]wFMCommunicate request_size=7 [10:35:53]MH_SAM_APDU [10:35:53]CAPDU: 80 0D 02 02 02 71 69 [10:35:53]Write to MH i2c: E2 0A 00 88 98 80 0D 02 02 02 00 71 69 00 00 78 [10:35:53]Write i2c OK [10:35:53]MH_I2C_Read... [10:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:53]Read from MH i2c: E2 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 03 00 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 03 00 88 98 00 90 00 94 [10:35:53]RAPDU: 90 00 [10:35:53]wFMCommunicate OK [10:35:53]wFMCommunicate request_size=4 [10:35:53]MH_SAM_APDU [10:35:53]CAPDU: 80 0D 03 02 [10:35:53]Write to MH i2c: E2 08 00 89 98 80 0D 03 02 00 00 00 00 9C [10:35:53]Write i2c OK [10:35:53]MH_I2C_Read... [10:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:53]Read from MH i2c: E2 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 0B 00 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 0B 00 89 98 00 1F 2B D7 B4 D1 85 A0 34 90 00 9C [10:35:53]RAPDU: 1F 2B D7 B4 D1 85 A0 34 90 00 [10:35:53]wFMCommunicate OK [10:35:53]SAM_PROTO_SignData done [10:35:53]FM_MakeSignedData done [10:35:53]CreateOFDProtocolMessage [10:35:53]wFMCommunicate request_size=4 [10:35:53]MH_SAM_APDU [10:35:53]CAPDU: 80 11 00 00 [10:35:53]Write to MH i2c: E2 08 00 8A 98 80 11 00 00 00 00 00 00 9C [10:35:53]Write i2c OK [10:35:53]MH_I2C_Read... [10:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:53]Read from MH i2c: E2 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 17 00 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 17 00 8A 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E9 [10:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:35:53]wFMCommunicate OK [10:35:53]CreateOFDProtocolMessage done [10:35:53]OFDSenderStorePacket 75354 [10:35:53]StoreOFDPacket docnum=75354 [10:35:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 00 C8 04 01 7E 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8E D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5A 26 01 00 35 04 06 00 C5 D9 8C 8A 71 69 1F 2B D7 B4 D1 85 A0 34 [10:35:53]CheckFolder [10:35:53]dirname=/storage/ofd_packets [10:35:53]CheckFolder done [10:35:53]ProducePacketName [10:35:53]name=ofd_packets/00075354 [10:35:53]NVStorageSaveData ofd_packets/00075354 [10:35:53]File name is /storage/ofd_packets/00075354 [10:35:53]Write 298 bytes [10:35:53]NVStorageSaveData done [10:35:53]OFDSenderStorePacket done [10:35:53]KKMCreateOFDPacket done [10:35:53]NVStorageSaveData kkm_last_timestamp [10:35:53]File name is /storage/kkm_last_timestamp [10:35:53]Write 4 bytes [10:35:53]NVStorageSaveData done [10:35:53]ExternCall_PrintAddStr [10:35:53]wPrintStart [10:35:53]Write to MH i2c: 01 00 00 8B 98 23 [10:35:53]Write i2c OK [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: 01 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: 01 07 00 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: 01 07 00 8B 98 00 00 00 00 00 FF 0F 38 [10:35:53]RasterBufferAndPrint [10:35:53]line Счет N : (1)1965334 [10:35:53]line ИНН: 02508201610067 [10:35:53]line Контрольно-Кассовый Чек [10:35:53]line ПРОДАЖА [10:35:53]line ТРК (МРК, ГНК) : 51 [10:35:53]line Товар: 2710194210 [10:35:53]line ДТ-К-5 [10:35:53]line 100.000 * 0.00 [10:35:53]line = 0.00 [10:35:53]line НДС 12% НСП 1% [10:35:53]line > о реализуемом товаре [10:35:53]line ИТОГО: 0.00 [10:35:53]line НСП 1% : 0.00 [10:35:53]line НДС 12% : 0.00 [10:35:53]line Наличными: 0.00 [10:35:53]line Безнал.: 0.00 [10:35:53]line Место: АЗС № 133 "Партнер Нефть" [10:35:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:35:53]line СНО: Общий режим [10:35:53]line Чек 87 23.10.2024 10:35 [10:35:53]line Смена: 173 ФФД: 1.0 [10:35:53]line ЗНМ: 0300000020 [10:35:53]line РНМ: 0000000000161154 [10:35:53]line Версия ККМ: v1.0 [10:35:53]line Талоны: ТК ГПНА Online [10:35:53]line 30072880 [10:35:53]line ФМ: 0000000000963323 [10:35:53]line ФД: 75354 [10:35:53]line ФПД: 217538156458345 [10:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103558&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75354&fm=217538156458345&tin=02508201610067®Number=0000000000161154&sum=0 [10:35:53]OFD Sender: Processing packet 75354 [packets to send 15, broken 14] [10:35:53]ProducePacketName [10:35:53]name=ofd_packets/00075354 [10:35:53]OFD Sender: To server: pG, [10:35:53]CommunicateWithHost lk.salyk.kg:30040 [10:35:53]ConnectInit lk.salyk.kg [10:35:53]written 0, free lines is 4095 [10:35:53]Connected sock=10 [10:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 00 C8 04 01 7E 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8E D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5A 26 01 00 35 04 06 00 C5 D9 8C 8A 71 69 1F 2B D7 B4 D1 85 A0 34 [10:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AA 51 47 00 FA 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 39 36 33 33 32 33 10 04 04 00 5A 26 01 00 F4 03 04 00 69 7A 18 67 B6 04 01 00 00 C0 EA B6 8F 75 DB 6A BF [10:35:53]CommunicateWithHost err = 0 [10:35:53]CheckOFDResponse [10:35:53]1017 (14) - 77093643461234 [10:35:53]1041 (16) - 0000000000963323 [10:35:53]1040 (4) - 75354 [10:35:53]1012 (4) - 23.10.2024 04:24 [10:35:53]1206 (1) - 0 [10:35:53]OFD Sender: Remove packet 75354 [10:35:53]ProducePacketName [10:35:53]name=ofd_packets/00075354 [10:35:53]NVStorageDeleteData [10:35:54]Write to MH i2c: 01 00 00 B4 98 4C [10:35:54]Write i2c OK [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: 01 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: 01 07 00 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: 01 07 00 B4 98 00 00 00 00 00 D0 0C 2F [10:35:54]RasterBufferAndPrint [10:35:54]line [10:35:54]line [10:35:54]line [10:35:54]line [10:35:54]line [10:35:54]written 0, free lines is 3286 [10:35:54]MH_Cut [10:35:54]Write to MH i2c: D1 01 00 BB 98 01 25 [10:35:54]Write i2c OK [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: D1 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: D1 01 00 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: D1 01 00 BB 98 00 24 [10:35:54]Write to MH i2c: 01 00 00 BC 98 54 [10:35:54]Write i2c OK [10:35:54]MH_I2C_Read... [10:35:54]OFD Sender: No OFD packet to send [10:35:54]*** Cut start [10:35:54]*** Partial cut [10:35:54]*** CUTSNS_PIN = 1 [10:35:54]*** CUTSNS_PIN = 0 [10:35:55]*** Brake cut motor [10:35:55]Read from MH i2c: 01 [10:35:55]MH_I2C_Read... [10:35:55]*** Stop cut motor [10:35:55]*** Cut end [10:35:55]Read from MH i2c: 01 07 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: 01 07 00 BC 98 00 00 00 00 00 FF 0F 69 [10:35:55]process_action close_receipt done [10:35:55]requested_data is exist [10:35:55]produce_requested_data [10:35:55]requested_item fm.sn is exist - process it [10:35:55]wFMCommunicate request_size=4 [10:35:55]MH_SAM_APDU [10:35:55]CAPDU: 80 11 00 00 [10:35:55]Write to MH i2c: E2 08 00 BD 98 80 11 00 00 00 00 00 00 CF [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:55]Read from MH i2c: E2 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 17 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 17 00 BD 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1C [10:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:35:55]wFMCommunicate OK [10:35:55]requested_item fd.num is exist - process it [10:35:55]SAM_PROTO_GetFieldsCounters [10:35:55]wFMCommunicate request_size=4 [10:35:55]MH_SAM_APDU [10:35:55]CAPDU: 80 13 00 00 [10:35:55]Write to MH i2c: E2 08 00 BE 98 80 13 00 00 00 00 00 00 D2 [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:55]Read from MH i2c: E2 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 62 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 62 00 BE 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5A 26 01 00 0E 04 04 00 AD 00 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 19 [10:35:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5A 26 01 00 0E 04 04 00 AD 00 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 [10:35:55]wFMCommunicate OK [10:35:55]SAM_PROTO_GetFieldsCounters done [10:35:55]requested_item shift.num is exist - process it [10:35:55]requested_item shift.opened is exist - process it [10:35:55]req_shift_opened [10:35:55]FM_GetShiftState [10:35:55]SAM_PROTO_GetShiftState [10:35:55]wFMCommunicate request_size=4 [10:35:55]MH_SAM_APDU [10:35:55]CAPDU: 80 13 01 00 [10:35:55]Write to MH i2c: E2 08 00 BF 98 80 13 01 00 00 00 00 00 D4 [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:55]Read from MH i2c: E2 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 0E 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 0E 00 BF 98 00 09 00 01 99 41 18 67 00 00 00 00 90 00 39 [10:35:55]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:35:55]wFMCommunicate OK [10:35:55]SAM_PROTO_GetShiftState done [10:35:55]FM_GetShiftState done [10:35:55]req_shift_opened done [10:35:55]requested_item shift.open_date is exist - process it [10:35:55]req_shift_open_date [10:35:55]req_shift_open_date done [10:35:55]produce_requested_data done [10:35:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75354,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:35:55]process_action_free close_receipt [10:35:55]json_value_free [10:35:55]json_value_free done [10:35:55]process_json_proto returns [10:35:55]Send response to host [10:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75354,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:35:55]free response buf [10:35:55]execute_script done [10:35:55]execute_script returns [10:35:55]free content buf [10:35:55]Sock 7.Close socket [10:35:55]Sock 7.Thread stoped [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:42]accept exits with 9 [10:36:42]New connection [10:36:42]New thread 3067465060 created [10:36:42]Thread 3067321700 joined [10:36:42]Waiting for new connection... [10:36:42] Sock 9.Parse request [10:36:42]Sock 9.Check first char [10:36:42]Sock 9.First char is OK [10:36:42]request: POST /json_proto HTTP/1.0 [10:36:42]Method: POST [10:36:42]URL: /json_proto [10:36:42]Method is POST - this is cgi request [10:36:42]url: /json_proto [10:36:42]query_string will be loaded in cgi processing [10:36:42]execute_cgi json_proto POST (null) [10:36:42]execute_cgi path=json_proto method=POST [10:36:42]POST find Content-Length [10:36:42]Host: 172.17.44.196:8080 [10:36:42]Content-Length: 683 [10:36:42]Content-Type: application/json [10:36:42] [10:36:42]POST finish read [10:36:42]Found Content-Length = 683 [10:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:42]execute_script... [10:36: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)1965337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:42]POST & json_proto [10:36:42]process_json_proto [10:36:42]json parsed OK: [10:36:42]protocol is kg_v1.0 [10:36:42]action value=close_receipt [10:36:42]process_action close_receipt [10:36:42]cmd_close_receipt [10:36:42]MH_GetDate [10:36:42]Write to MH i2c: F0 00 00 C0 98 47 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: F0 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: F0 09 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: F0 09 00 C0 98 00 C1 D1 18 67 E7 19 F8 65 BE [10:36:42]GetLastDocTimeStamp 1729679758 [10:36:42]current date 1729679809 [10:36:42]FM_GetShiftState [10:36:42]SAM_PROTO_GetShiftState [10:36:42]wFMCommunicate request_size=4 [10:36:42]MH_SAM_APDU [10:36:42]CAPDU: 80 13 01 00 [10:36:42]Write to MH i2c: E2 08 00 C1 98 80 13 01 00 00 00 00 00 D6 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:42]Read from MH i2c: E2 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 0E 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 0E 00 C1 98 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3B [10:36:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:36:42]wFMCommunicate OK [10:36:42]SAM_PROTO_GetShiftState done [10:36:42]FM_GetShiftState done [10:36:42]opened in 1729642905 [10:36:42]opened+sec_in_day 1729729305 [10:36:42]quantity*price = 100021 [10:36:42]sum+1 = 100023 [10:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 88 23.10.2024 10:36 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75355 ФПД: 46740432581020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103649&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75355&fm=46740432581020&tin=02508201610067®Number=0000000000161154&sum=100000 [10:36:43]StoreToDocumentArchive [10:36:43]shift 173 fd 75355 [10:36:43]save to /storage/0173/doc_00075355 [10:36:43]save last doc name /storage/0173/doc_00075355 to /storage/kkm_last_doc_name [10:36:43]save OK [10:36:43]Clear old archive folders... [10:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:43]tlvbuf is 00DC56B0 [10:36:43]SAM_PROTO_ClearQueue [10:36:43]wFMCommunicate request_size=4 [10:36:43]MH_SAM_APDU [10:36:43]CAPDU: 80 09 00 00 [10:36:43]Write to MH i2c: E2 08 00 CE 98 80 09 00 00 00 00 00 00 D8 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 CE 98 00 90 00 DA [10:36:43]RAPDU: 90 00 [10:36:43]wFMCommunicate OK [10:36:43]SAM_PROTO_ClearQueue done [10:36:43]KKMCreateOFDPacket [10:36:43]OFDProtocolAddRootSTLVToBuf [10:36:43]FM_MakeSignedData [10:36:43]FM_MakeSignedData [10:36:43]SAM_PROTO_SignData [10:36:43]wFMCommunicate request_size=4 [10:36:43]MH_SAM_APDU [10:36:43]CAPDU: 80 0D 01 02 [10:36:43]Write to MH i2c: E2 08 00 CF 98 80 0D 01 02 00 00 00 00 E0 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 CF 98 00 90 00 DB [10:36:43]RAPDU: 90 00 [10:36:43]wFMCommunicate OK [10:36:43]wFMCommunicate request_size=255 [10:36:43]MH_SAM_APDU [10:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C1 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5B 26 01 00 35 04 06 00 2A [10:36:43]Write to MH i2c: E2 02 01 D0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C1 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5B 26 01 00 35 04 06 00 2A 00 00 41 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 D0 98 00 90 00 DC [10:36:43]RAPDU: 90 00 [10:36:43]wFMCommunicate OK [10:36:43]wFMCommunicate request_size=10 [10:36:43]MH_SAM_APDU [10:36:43]CAPDU: 80 0D 02 02 05 82 9A E1 71 9C [10:36:43]Write to MH i2c: E2 0D 00 D1 98 80 0D 02 02 05 00 82 9A E1 71 9C 00 00 F7 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 03 00 D1 98 00 90 00 DD [10:36:43]RAPDU: 90 00 [10:36:43]wFMCommunicate OK [10:36:43]wFMCommunicate request_size=4 [10:36:43]MH_SAM_APDU [10:36:43]CAPDU: 80 0D 03 02 [10:36:43]Write to MH i2c: E2 08 00 D2 98 80 0D 03 02 00 00 00 00 E5 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 0B 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 0B 00 D2 98 00 AF 71 91 2D 70 C9 98 F4 90 00 89 [10:36:43]RAPDU: AF 71 91 2D 70 C9 98 F4 90 00 [10:36:43]wFMCommunicate OK [10:36:43]SAM_PROTO_SignData done [10:36:43]FM_MakeSignedData done [10:36:43]CreateOFDProtocolMessage [10:36:43]wFMCommunicate request_size=4 [10:36:43]MH_SAM_APDU [10:36:43]CAPDU: 80 11 00 00 [10:36:43]Write to MH i2c: E2 08 00 D3 98 80 11 00 00 00 00 00 00 E5 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:43]Read from MH i2c: E2 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 17 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: E2 17 00 D3 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 32 [10:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:36:43]wFMCommunicate OK [10:36:43]CreateOFDProtocolMessage done [10:36:43]OFDSenderStorePacket 75355 [10:36:43]StoreOFDPacket docnum=75355 [10:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 13 05 07 01 2C 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C1 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5B 26 01 00 35 04 06 00 2A 82 9A E1 71 9C AF 71 91 2D 70 C9 98 F4 [10:36:43]CheckFolder [10:36:43]dirname=/storage/ofd_packets [10:36:43]CheckFolder done [10:36:43]ProducePacketName [10:36:43]name=ofd_packets/00075355 [10:36:43]NVStorageSaveData ofd_packets/00075355 [10:36:43]File name is /storage/ofd_packets/00075355 [10:36:43]Write 301 bytes [10:36:43]NVStorageSaveData done [10:36:43]OFDSenderStorePacket done [10:36:43]KKMCreateOFDPacket done [10:36:43]NVStorageSaveData kkm_last_timestamp [10:36:43]File name is /storage/kkm_last_timestamp [10:36:43]Write 4 bytes [10:36:43]NVStorageSaveData done [10:36:43]ExternCall_PrintAddStr [10:36:43]wPrintStart [10:36:43]Write to MH i2c: 01 00 00 D4 98 6C [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: 01 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: 01 07 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: 01 07 00 D4 98 00 00 00 00 00 FF 0F 81 [10:36:43]RasterBufferAndPrint [10:36:43]line Счет N : (1)1965337 [10:36:43]line ИНН: 02508201610067 [10:36:43]line Контрольно-Кассовый Чек [10:36:43]line ПРОДАЖА [10:36:43]line ТРК (МРК, ГНК) : 34 [10:36:43]line Товар: 2710124500 [10:36:43]line Аи-95-К-5 [10:36:43]line 13.480 * 74.20 [10:36:43]line = 1000.22 [10:36:43]line НДС 12% НСП 1% [10:36:43]line > о реализуемом товаре [10:36:43]line ОКРУГЛЕНИЕ: -0.22 [10:36:43]line ИТОГО: 1000.00 [10:36:43]line Внесено: 1000.00 [10:36:43]line СДАЧА: 0.00 [10:36:43]line НСП 1% : 8.85 [10:36:43]line НДС 12% : 106.22 [10:36:43]line Наличными: 1000.00 [10:36:43]line Безнал.: 0.00 [10:36:43]line Место: АЗС № 133 "Партнер Нефть" [10:36:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:36:43]line СНО: Общий режим [10:36:43]line Чек 88 23.10.2024 10:36 [10:36:43]line Смена: 173 ФФД: 1.0 [10:36:43]line ЗНМ: 0300000020 [10:36:43]line РНМ: 0000000000161154 [10:36:43]line Версия ККМ: v1.0 [10:36:43]line ФМ: 0000000000963323 [10:36:43]line ФД: 75355 [10:36:43]line ФПД: 46740432581020 [10:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103649&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75355&fm=46740432581020&tin=02508201610067®Number=0000000000161154&sum=100000 [10:36:44]OFD Sender: Processing packet 75355 [packets to send 15, broken 14] [10:36:44]ProducePacketName [10:36:44]name=ofd_packets/00075355 [10:36:44]OFD Sender: To server: pG, [10:36:44]CommunicateWithHost lk.salyk.kg:30040 [10:36:44]ConnectInit lk.salyk.kg [10:36:44]written 0, free lines is 4095 [10:36:44]Connected sock=10 [10:36:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 13 05 07 01 2C 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C1 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5B 26 01 00 35 04 06 00 2A 82 9A E1 71 9C AF 71 91 2D 70 C9 98 F4 [10:36:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8C 82 47 00 58 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5B 26 01 00 F4 03 04 00 9C 7A 18 67 B6 04 01 00 00 C6 70 34 00 17 5E F2 38 [10:36:44]CommunicateWithHost err = 0 [10:36:44]CheckOFDResponse [10:36:44]1017 (14) - 77093643461234 [10:36:44]1041 (16) - 0000000000963323 [10:36:44]1040 (4) - 75355 [10:36:44]1012 (4) - 23.10.2024 04:25 [10:36:44]1206 (1) - 0 [10:36:44]OFD Sender: Remove packet 75355 [10:36:44]ProducePacketName [10:36:44]name=ofd_packets/00075355 [10:36:44]NVStorageDeleteData [10:36:44]Write to MH i2c: 01 00 00 FE 98 96 [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: 01 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: 01 07 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: 01 07 00 FE 98 00 00 00 00 00 B7 0C 60 [10:36:44]RasterBufferAndPrint [10:36:44]line [10:36:44]line [10:36:44]line [10:36:44]line [10:36:44]line [10:36:44]written 0, free lines is 3261 [10:36:44]MH_Cut [10:36:44]Write to MH i2c: D1 01 00 05 99 01 70 [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: D1 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: D1 01 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: D1 01 00 05 99 00 6F [10:36:44]Write to MH i2c: 01 00 00 06 99 9F [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:45]OFD Sender: No OFD packet to send [10:36:45]*** Cut start [10:36:45]*** Partial cut [10:36:45]*** CUTSNS_PIN = 1 [10:36:45]*** CUTSNS_PIN = 0 [10:36:45]*** Brake cut motor [10:36:46]Read from MH i2c: 01 [10:36:46]MH_I2C_Read... [10:36:46]*** Stop cut motor [10:36:46]*** Cut end [10:36:46]Read from MH i2c: 01 07 00 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: 01 07 00 06 99 00 00 00 00 00 FF 0F B4 [10:36:46]process_action close_receipt done [10:36:46]requested_data is exist [10:36:46]produce_requested_data [10:36:46]requested_item fm.sn is exist - process it [10:36:46]wFMCommunicate request_size=4 [10:36:46]MH_SAM_APDU [10:36:46]CAPDU: 80 11 00 00 [10:36:46]Write to MH i2c: E2 08 00 07 99 80 11 00 00 00 00 00 00 1A [10:36:46]Write i2c OK [10:36:46]MH_I2C_Read... [10:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:46]Read from MH i2c: E2 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: E2 17 00 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: E2 17 00 07 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 67 [10:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:36:46]wFMCommunicate OK [10:36:46]requested_item fd.num is exist - process it [10:36:46]SAM_PROTO_GetFieldsCounters [10:36:46]wFMCommunicate request_size=4 [10:36:46]MH_SAM_APDU [10:36:46]CAPDU: 80 13 00 00 [10:36:46]Write to MH i2c: E2 08 00 08 99 80 13 00 00 00 00 00 00 1D [10:36:46]Write i2c OK [10:36:46]MH_I2C_Read... [10:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:46]Read from MH i2c: E2 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: E2 62 00 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: E2 62 00 08 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5B 26 01 00 0E 04 04 00 AD 00 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 68 [10:36:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5B 26 01 00 0E 04 04 00 AD 00 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 [10:36:46]wFMCommunicate OK [10:36:46]SAM_PROTO_GetFieldsCounters done [10:36:46]requested_item shift.num is exist - process it [10:36:46]requested_item shift.opened is exist - process it [10:36:46]req_shift_opened [10:36:46]FM_GetShiftState [10:36:46]SAM_PROTO_GetShiftState [10:36:46]wFMCommunicate request_size=4 [10:36:46]MH_SAM_APDU [10:36:46]CAPDU: 80 13 01 00 [10:36:46]Write to MH i2c: E2 08 00 09 99 80 13 01 00 00 00 00 00 1F [10:36:46]Write i2c OK [10:36:46]MH_I2C_Read... [10:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:46]Read from MH i2c: E2 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: E2 0E 00 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: E2 0E 00 09 99 00 09 00 01 99 41 18 67 00 00 00 00 90 00 84 [10:36:46]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:36:46]wFMCommunicate OK [10:36:46]SAM_PROTO_GetShiftState done [10:36:46]FM_GetShiftState done [10:36:46]req_shift_opened done [10:36:46]requested_item shift.open_date is exist - process it [10:36:46]req_shift_open_date [10:36:46]req_shift_open_date done [10:36:46]produce_requested_data done [10:36:46]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75355,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:36:46]process_action_free close_receipt [10:36:46]json_value_free [10:36:46]json_value_free done [10:36:46]process_json_proto returns [10:36:46]Send response to host [10:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75355,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:36:46]free response buf [10:36:46]execute_script done [10:36:46]execute_script returns [10:36:46]free content buf [10:36:46]Sock 9.Close socket [10:36:46]Sock 9.Thread stoped [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:17]accept exits with 7 [10:37:17]New connection [10:37:17]New thread 3067321700 created [10:37:17]Thread 3067465060 joined [10:37:17]Waiting for new connection... [10:37:17] Sock 7.Parse request [10:37:17]Sock 7.Check first char [10:37:17]Sock 7.First char is OK [10:37:17]request: POST /json_proto HTTP/1.0 [10:37:17]Method: POST [10:37:17]URL: /json_proto [10:37:17]Method is POST - this is cgi request [10:37:17]url: /json_proto [10:37:17]query_string will be loaded in cgi processing [10:37:17]execute_cgi json_proto POST (null) [10:37:17]execute_cgi path=json_proto method=POST [10:37:17]POST find Content-Length [10:37:17]Host: 172.17.44.196:8080 [10:37:17]Content-Length: 618 [10:37:17]Content-Type: application/json [10:37:17] [10:37:17]POST finish read [10:37:17]Found Content-Length = 618 [10:37:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273219", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:17]execute_script... [10:37:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273219", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:17]POST & json_proto [10:37:17]process_json_proto [10:37:17]json parsed OK: [10:37:17]protocol is kg_v1.0 [10:37:17]action value=close_receipt [10:37:17]process_action close_receipt [10:37:17]cmd_close_receipt [10:37:17]MH_GetDate [10:37:17]Write to MH i2c: F0 00 00 0A 99 92 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: F0 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: F0 09 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: F0 09 00 0A 99 00 E4 D1 18 67 E7 19 F8 65 2C [10:37:17]GetLastDocTimeStamp 1729679809 [10:37:17]current date 1729679844 [10:37:17]FM_GetShiftState [10:37:17]SAM_PROTO_GetShiftState [10:37:17]wFMCommunicate request_size=4 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 13 01 00 [10:37:17]Write to MH i2c: E2 08 00 0B 99 80 13 01 00 00 00 00 00 21 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 0E 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 0E 00 0B 99 00 09 00 01 99 41 18 67 00 00 00 00 90 00 86 [10:37:17]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:37:17]wFMCommunicate OK [10:37:17]SAM_PROTO_GetShiftState done [10:37:17]FM_GetShiftState done [10:37:17]opened in 1729642905 [10:37:17]opened+sec_in_day 1729729305 [10:37:17]quantity*price = 12500 [10:37:17]sum+1 = 12501 [10:37:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 89 23.10.2024 10:37 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75356 ФПД: 163845277514992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103724&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75356&fm=163845277514992&tin=02508201610067®Number=0000000000161154&sum=12500 0 [10:37:18]StoreToDocumentArchive [10:37:18]shift 173 fd 75356 [10:37:18]save to /storage/0173/doc_00075356 [10:37:18]save last doc name /storage/0173/doc_00075356 to /storage/kkm_last_doc_name [10:37:18]save OK [10:37:18]Clear old archive folders... [10:37:18]ProcessDocumentItem done err = 0, tmpTLVsize=270 [10:37:18]tlvbuf is 01091630 [10:37:18]SAM_PROTO_ClearQueue [10:37:18]wFMCommunicate request_size=4 [10:37:18]MH_SAM_APDU [10:37:18]CAPDU: 80 09 00 00 [10:37:18]Write to MH i2c: E2 08 00 18 99 80 09 00 00 00 00 00 00 23 [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:18]Read from MH i2c: E2 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: E2 03 00 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: E2 03 00 18 99 00 90 00 25 [10:37:18]RAPDU: 90 00 [10:37:18]wFMCommunicate OK [10:37:18]SAM_PROTO_ClearQueue done [10:37:18]KKMCreateOFDPacket [10:37:18]OFDProtocolAddRootSTLVToBuf [10:37:18]FM_MakeSignedData [10:37:18]FM_MakeSignedData [10:37:18]SAM_PROTO_SignData [10:37:18]wFMCommunicate request_size=4 [10:37:18]MH_SAM_APDU [10:37:18]CAPDU: 80 0D 01 02 [10:37:18]Write to MH i2c: E2 08 00 19 99 80 0D 01 02 00 00 00 00 2B [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:18]Read from MH i2c: E2 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: E2 03 00 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: E2 03 00 19 99 00 90 00 26 [10:37:18]RAPDU: 90 00 [10:37:18]wFMCommunicate OK [10:37:18]wFMCommunicate request_size=255 [10:37:18]MH_SAM_APDU [10:37:18]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E4 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [10:37:18]Write to MH i2c: E2 02 01 1A 99 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E4 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 42 [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:19]Read from MH i2c: E2 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 03 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 03 00 1A 99 00 90 00 27 [10:37:19]RAPDU: 90 00 [10:37:19]wFMCommunicate OK [10:37:19]wFMCommunicate request_size=29 [10:37:19]MH_SAM_APDU [10:37:19]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 5C 26 01 00 35 04 06 00 95 04 33 90 7C F0 [10:37:19]Write to MH i2c: E2 20 00 1B 99 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 5C 26 01 00 35 04 06 00 95 04 33 90 7C F0 00 00 3A [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:19]Read from MH i2c: E2 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 03 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 03 00 1B 99 00 90 00 28 [10:37:19]RAPDU: 90 00 [10:37:19]wFMCommunicate OK [10:37:19]wFMCommunicate request_size=4 [10:37:19]MH_SAM_APDU [10:37:19]CAPDU: 80 0D 03 02 [10:37:19]Write to MH i2c: E2 08 00 1C 99 80 0D 03 02 00 00 00 00 30 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:19]Read from MH i2c: E2 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 0B 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 0B 00 1C 99 00 C7 C2 33 0F CE 41 60 72 90 00 DD [10:37:19]RAPDU: C7 C2 33 0F CE 41 60 72 90 00 [10:37:19]wFMCommunicate OK [10:37:19]SAM_PROTO_SignData done [10:37:19]FM_MakeSignedData done [10:37:19]CreateOFDProtocolMessage [10:37:19]wFMCommunicate request_size=4 [10:37:19]MH_SAM_APDU [10:37:19]CAPDU: 80 11 00 00 [10:37:19]Write to MH i2c: E2 08 00 1D 99 80 11 00 00 00 00 00 00 30 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:19]Read from MH i2c: E2 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 17 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: E2 17 00 1D 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7D [10:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:37:19]wFMCommunicate OK [10:37:19]CreateOFDProtocolMessage done [10:37:19]OFDSenderStorePacket 75356 [10:37:19]StoreOFDPacket docnum=75356 [10:37:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 07 00 1A 01 9E 4D 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E4 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5C 26 01 00 35 04 06 00 95 04 33 90 7C F0 C7 C2 33 0F CE 41 60 72 [10:37:19]CheckFolder [10:37:19]dirname=/storage/ofd_packets [10:37:19]CheckFolder done [10:37:19]ProducePacketName [10:37:19]name=ofd_packets/00075356 [10:37:19]NVStorageSaveData ofd_packets/00075356 [10:37:19]File name is /storage/ofd_packets/00075356 [10:37:19]Write 320 bytes [10:37:19]NVStorageSaveData done [10:37:19]OFDSenderStorePacket done [10:37:19]KKMCreateOFDPacket done [10:37:19]NVStorageSaveData kkm_last_timestamp [10:37:19]File name is /storage/kkm_last_timestamp [10:37:19]Write 4 bytes [10:37:19]NVStorageSaveData done [10:37:19]ExternCall_PrintAddStr [10:37:19]wPrintStart [10:37:19]Write to MH i2c: 01 00 00 1E 99 B7 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: 01 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: 01 07 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: 01 07 00 1E 99 00 00 00 00 00 FF 0F CC [10:37:19]RasterBufferAndPrint [10:37:19]line Счет N : (3)273219 [10:37:19]line ИНН: 02508201610067 [10:37:19]line Контрольно-Кассовый Чек [10:37:19]line ПРОДАЖА [10:37:19]line Товар: 48742191 [10:37:19]line Сигареты Bond Street Blue [10:37:19]line 1.000 * 125.00 [10:37:19]line = 125.00 [10:37:19]line НДС 12% НСП 1% [10:37:19]line > о реализуемом товаре [10:37:19]line ИТОГО: 125.00 [10:37:19]line НСП 1% : 1.11 [10:37:19]line НДС 12% : 13.27 [10:37:19]line Наличными: 125.00 [10:37:19]line Безнал.: 0.00 [10:37:19]line Место: АЗС № 133 "Партнер Нефть" [10:37:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:37:19]line СНО: Общий режим [10:37:19]line Чек 89 23.10.2024 10:37 [10:37:19]line Смена: 173 ФФД: 1.0 [10:37:19]line ЗНМ: 0300000020 [10:37:19]line РНМ: 0000000000161154 [10:37:19]line Версия ККМ: v1.0 [10:37:19]line ФМ: 0000000000963323 [10:37:19]line ФД: 75356 [10:37:19]line ФПД: 163845277514992 [10:37:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103724&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75356&fm=163845277514992&tin=02508201610067®Number=0000000000161154&sum=12500 [10:37:19]OFD Sender: Processing packet 75356 [packets to send 15, broken 14] [10:37:19]ProducePacketName [10:37:19]name=ofd_packets/00075356 [10:37:19]OFD Sender: To server: pG, [10:37:19]CommunicateWithHost lk.salyk.kg:30040 [10:37:19]ConnectInit lk.salyk.kg [10:37:19]line 0 [10:37:19]written 0, free lines is 4095 [10:37:19]Connected sock=10 [10:37:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 07 00 1A 01 9E 4D 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E4 D1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5C 26 01 00 35 04 06 00 95 04 33 90 7C F0 C7 C2 33 0F CE 41 60 72 [10:37:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 95 49 47 00 E1 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 39 36 33 33 32 33 10 04 04 00 5C 26 01 00 F4 03 04 00 BF 7A 18 67 B6 04 01 00 00 F7 C5 BC 03 3D 0A 8A 1D [10:37:19]CommunicateWithHost err = 0 [10:37:19]CheckOFDResponse [10:37:19]1017 (14) - 77093643461234 [10:37:19]1041 (16) - 0000000000963323 [10:37:19]1040 (4) - 75356 [10:37:19]1012 (4) - 23.10.2024 04:25 [10:37:19]1206 (1) - 0 [10:37:19]OFD Sender: Remove packet 75356 [10:37:19]ProducePacketName [10:37:19]name=ofd_packets/00075356 [10:37:19]NVStorageDeleteData [10:37:19]Write to MH i2c: 01 00 00 45 99 DE [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: 01 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: 01 07 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: 01 07 00 45 99 00 00 00 00 00 EA 0C DB [10:37:19]RasterBufferAndPrint [10:37:19]line [10:37:19]line [10:37:19]line [10:37:19]line [10:37:19]line [10:37:19]written 0, free lines is 3312 [10:37:19]MH_Cut [10:37:19]Write to MH i2c: D1 01 00 4C 99 01 B7 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: D1 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: D1 01 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: D1 01 00 4C 99 00 B6 [10:37:19]Write to MH i2c: 01 00 00 4D 99 E6 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:20]OFD Sender: No OFD packet to send [10:37:20]*** Cut start [10:37:20]*** Partial cut [10:37:20]*** CUTSNS_PIN = 1 [10:37:20]*** CUTSNS_PIN = 0 [10:37:21]*** Brake cut motor [10:37:21]Read from MH i2c: 01 [10:37:21]MH_I2C_Read... [10:37:21]*** Stop cut motor [10:37:21]*** Cut end [10:37:21]Read from MH i2c: 01 07 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: 01 07 00 4D 99 00 00 00 00 00 FF 0F FB [10:37:21]process_action close_receipt done [10:37:21]requested_data is exist [10:37:21]produce_requested_data [10:37:21]requested_item fm.sn is exist - process it [10:37:21]wFMCommunicate request_size=4 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 11 00 00 [10:37:21]Write to MH i2c: E2 08 00 4E 99 80 11 00 00 00 00 00 00 61 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 17 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 17 00 4E 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AE [10:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:37:21]wFMCommunicate OK [10:37:21]requested_item fd.num is exist - process it [10:37:21]SAM_PROTO_GetFieldsCounters [10:37:21]wFMCommunicate request_size=4 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 13 00 00 [10:37:21]Write to MH i2c: E2 08 00 4F 99 80 13 00 00 00 00 00 00 64 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 62 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 62 00 4F 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5C 26 01 00 0E 04 04 00 AD 00 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 B3 [10:37:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5C 26 01 00 0E 04 04 00 AD 00 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 [10:37:21]wFMCommunicate OK [10:37:21]SAM_PROTO_GetFieldsCounters done [10:37:21]requested_item shift.num is exist - process it [10:37:21]requested_item shift.opened is exist - process it [10:37:21]req_shift_opened [10:37:21]FM_GetShiftState [10:37:21]SAM_PROTO_GetShiftState [10:37:21]wFMCommunicate request_size=4 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 13 01 00 [10:37:21]Write to MH i2c: E2 08 00 50 99 80 13 01 00 00 00 00 00 66 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 0E 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 0E 00 50 99 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CB [10:37:21]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:37:21]wFMCommunicate OK [10:37:21]SAM_PROTO_GetShiftState done [10:37:21]FM_GetShiftState done [10:37:21]req_shift_opened done [10:37:21]requested_item shift.open_date is exist - process it [10:37:21]req_shift_open_date [10:37:21]req_shift_open_date done [10:37:21]produce_requested_data done [10:37:21]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75356,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:37:21]process_action_free close_receipt [10:37:21]json_value_free [10:37:21]json_value_free done [10:37:21]process_json_proto returns [10:37:21]Send response to host [10:37:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75356,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:37:21]free response buf [10:37:21]execute_script done [10:37:21]execute_script returns [10:37:21]free content buf [10:37:21]Sock 7.Close socket [10:37:21]Sock 7.Thread stoped [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:46]accept exits with 9 [10:37:46]New connection [10:37:46]New thread 3067465060 created [10:37:46]Thread 3067321700 joined [10:37:46]Waiting for new connection... [10:37:46] Sock 9.Parse request [10:37:46]Sock 9.Check first char [10:37:46]Sock 9.First char is OK [10:37:46]request: POST /json_proto HTTP/1.0 [10:37:46]Method: POST [10:37:46]URL: /json_proto [10:37:46]Method is POST - this is cgi request [10:37:46]url: /json_proto [10:37:46]query_string will be loaded in cgi processing [10:37:46]execute_cgi json_proto POST (null) [10:37:46]execute_cgi path=json_proto method=POST [10:37:46]POST find Content-Length [10:37:46]Host: 172.17.44.196:8080 [10:37:46]Content-Length: 678 [10:37:46]Content-Type: application/json [10:37:46] [10:37:46]POST finish read [10:37:46]Found Content-Length = 678 [10:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:46]execute_script... [10:37:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:46]POST & json_proto [10:37:46]process_json_proto [10:37:46]json parsed OK: [10:37:46]protocol is kg_v1.0 [10:37:46]action value=close_receipt [10:37:46]process_action close_receipt [10:37:46]cmd_close_receipt [10:37:46]MH_GetDate [10:37:46]Write to MH i2c: F0 00 00 51 99 D9 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: F0 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: F0 09 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: F0 09 00 51 99 00 01 D2 18 67 E7 19 F8 65 91 [10:37:46]GetLastDocTimeStamp 1729679844 [10:37:46]current date 1729679873 [10:37:46]FM_GetShiftState [10:37:46]SAM_PROTO_GetShiftState [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 13 01 00 [10:37:46]Write to MH i2c: E2 08 00 52 99 80 13 01 00 00 00 00 00 68 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 0E 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 0E 00 52 99 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CD [10:37:46]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:37:46]wFMCommunicate OK [10:37:46]SAM_PROTO_GetShiftState done [10:37:46]FM_GetShiftState done [10:37:46]opened in 1729642905 [10:37:46]opened+sec_in_day 1729729305 [10:37:46]quantity*price = 50010 [10:37:46]sum+1 = 50012 [10:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 90 23.10.2024 10:37 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75357 ФПД: 209912862908395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103753&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75357&fm=209912862908395&tin=02508201610067®Number=0000000000161154&sum=50000 [10:37:47]StoreToDocumentArchive [10:37:47]shift 173 fd 75357 [10:37:47]save to /storage/0173/doc_00075357 [10:37:47]save last doc name /storage/0173/doc_00075357 to /storage/kkm_last_doc_name [10:37:47]save OK [10:37:47]Clear old archive folders... [10:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:47]tlvbuf is 00DC5A60 [10:37:47]SAM_PROTO_ClearQueue [10:37:47]wFMCommunicate request_size=4 [10:37:47]MH_SAM_APDU [10:37:47]CAPDU: 80 09 00 00 [10:37:47]Write to MH i2c: E2 08 00 5F 99 80 09 00 00 00 00 00 00 6A [10:37:47]Write i2c OK [10:37:47]MH_I2C_Read... [10:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:47]Read from MH i2c: E2 [10:37:47]MH_I2C_Read... [10:37:47]Read from MH i2c: E2 03 00 [10:37:47]MH_I2C_Read... [10:37:47]Read from MH i2c: E2 03 00 5F 99 00 90 00 6C [10:37:47]RAPDU: 90 00 [10:37:47]wFMCommunicate OK [10:37:47]SAM_PROTO_ClearQueue done [10:37:47]KKMCreateOFDPacket [10:37:47]OFDProtocolAddRootSTLVToBuf [10:37:47]FM_MakeSignedData [10:37:47]FM_MakeSignedData [10:37:47]SAM_PROTO_SignData [10:37:47]wFMCommunicate request_size=4 [10:37:47]MH_SAM_APDU [10:37:47]CAPDU: 80 0D 01 02 [10:37:47]Write to MH i2c: E2 08 00 60 99 80 0D 01 02 00 00 00 00 72 [10:37:47]Write i2c OK [10:37:47]MH_I2C_Read... [10:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:47]Read from MH i2c: E2 [10:37:47]MH_I2C_Read... [10:37:47]Read from MH i2c: E2 03 00 [10:37:47]MH_I2C_Read... [10:37:47]Read from MH i2c: E2 03 00 60 99 00 90 00 6D [10:37:47]RAPDU: 90 00 [10:37:47]wFMCommunicate OK [10:37:47]wFMCommunicate request_size=255 [10:37:47]MH_SAM_APDU [10:37:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 01 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5D 26 01 00 35 04 06 00 BE [10:37:47]Write to MH i2c: E2 02 01 61 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 01 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5D 26 01 00 35 04 06 00 BE 00 00 67 [10:37:47]Write i2c OK [10:37:47]MH_I2C_Read... [10:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:47]Read from MH i2c: E2 [10:37:47]MH_I2C_Read... [10:37:47]Read from MH i2c: E2 03 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 61 99 00 90 00 6E [10:37:48]RAPDU: 90 00 [10:37:48]wFMCommunicate OK [10:37:48]wFMCommunicate request_size=10 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 0D 02 02 05 EA 25 A0 9F EB [10:37:48]Write to MH i2c: E2 0D 00 62 99 80 0D 02 02 05 00 EA 25 A0 9F EB 00 00 B8 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 62 99 00 90 00 6F [10:37:48]RAPDU: 90 00 [10:37:48]wFMCommunicate OK [10:37:48]wFMCommunicate request_size=4 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 0D 03 02 [10:37:48]Write to MH i2c: E2 08 00 63 99 80 0D 03 02 00 00 00 00 77 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 0B 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 0B 00 63 99 00 9C B4 04 E5 09 B0 B6 30 90 00 50 [10:37:48]RAPDU: 9C B4 04 E5 09 B0 B6 30 90 00 [10:37:48]wFMCommunicate OK [10:37:48]SAM_PROTO_SignData done [10:37:48]FM_MakeSignedData done [10:37:48]CreateOFDProtocolMessage [10:37:48]wFMCommunicate request_size=4 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 11 00 00 [10:37:48]Write to MH i2c: E2 08 00 64 99 80 11 00 00 00 00 00 00 77 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 17 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 17 00 64 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C4 [10:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:37:48]wFMCommunicate OK [10:37:48]CreateOFDProtocolMessage done [10:37:48]OFDSenderStorePacket 75357 [10:37:48]StoreOFDPacket docnum=75357 [10:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4D B0 07 01 FD 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 01 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5D 26 01 00 35 04 06 00 BE EA 25 A0 9F EB 9C B4 04 E5 09 B0 B6 30 [10:37:48]CheckFolder [10:37:48]dirname=/storage/ofd_packets [10:37:48]CheckFolder done [10:37:48]ProducePacketName [10:37:48]name=ofd_packets/00075357 [10:37:48]NVStorageSaveData ofd_packets/00075357 [10:37:48]File name is /storage/ofd_packets/00075357 [10:37:48]Write 301 bytes [10:37:48]NVStorageSaveData done [10:37:48]OFDSenderStorePacket done [10:37:48]KKMCreateOFDPacket done [10:37:48]NVStorageSaveData kkm_last_timestamp [10:37:48]File name is /storage/kkm_last_timestamp [10:37:48]Write 4 bytes [10:37:48]NVStorageSaveData done [10:37:48]ExternCall_PrintAddStr [10:37:48]wPrintStart [10:37:48]Write to MH i2c: 01 00 00 65 99 FE [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: 01 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: 01 07 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: 01 07 00 65 99 00 00 00 00 00 FF 0F 13 [10:37:48]RasterBufferAndPrint [10:37:48]line Счет N : (1)1965340 [10:37:48]line ИНН: 02508201610067 [10:37:48]line Контрольно-Кассовый Чек [10:37:48]line ПРОДАЖА [10:37:48]line ТРК (МРК, ГНК) : 44 [10:37:48]line Товар: 2710124500 [10:37:48]line Аи-95-К-5 [10:37:48]line 6.740 * 74.20 [10:37:48]line = 500.11 [10:37:48]line НДС 12% НСП 1% [10:37:48]line > о реализуемом товаре [10:37:48]line ОКРУГЛЕНИЕ: -0.11 [10:37:48]line ИТОГО: 500.00 [10:37:48]line Внесено: 500.00 [10:37:48]line СДАЧА: 0.00 [10:37:48]line НСП 1% : 4.43 [10:37:48]line НДС 12% : 53.11 [10:37:48]line Наличными: 500.00 [10:37:48]line Безнал.: 0.00 [10:37:48]line Место: АЗС № 133 "Партнер Нефть" [10:37:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:37:48]line СНО: Общий режим [10:37:48]line Чек 90 23.10.2024 10:37 [10:37:48]line Смена: 173 ФФД: 1.0 [10:37:48]line ЗНМ: 0300000020 [10:37:48]line РНМ: 0000000000161154 [10:37:48]line Версия ККМ: v1.0 [10:37:48]line ФМ: 0000000000963323 [10:37:48]line ФД: 75357 [10:37:48]line ФПД: 209912862908395 [10:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103753&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75357&fm=209912862908395&tin=02508201610067®Number=0000000000161154&sum=50000 [10:37:48]OFD Sender: Processing packet 75357 [packets to send 15, broken 14] [10:37:48]ProducePacketName [10:37:48]name=ofd_packets/00075357 [10:37:48]OFD Sender: To server: pG, [10:37:48]CommunicateWithHost lk.salyk.kg:30040 [10:37:48]ConnectInit lk.salyk.kg [10:37:48]written 0, free lines is 4095 [10:37:48]Connected sock=10 [10:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4D B0 07 01 FD 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 01 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5D 26 01 00 35 04 06 00 BE EA 25 A0 9F EB 9C B4 04 E5 09 B0 B6 30 [10:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2C AF 47 00 9E 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5D 26 01 00 F4 03 04 00 DC 7A 18 67 B6 04 01 00 00 38 22 D8 B7 32 87 61 87 [10:37:48]CommunicateWithHost err = 0 [10:37:48]CheckOFDResponse [10:37:48]1017 (14) - 77093643461234 [10:37:48]1041 (16) - 0000000000963323 [10:37:48]1040 (4) - 75357 [10:37:48]1012 (4) - 23.10.2024 04:26 [10:37:48]1206 (1) - 0 [10:37:48]OFD Sender: Remove packet 75357 [10:37:48]ProducePacketName [10:37:48]name=ofd_packets/00075357 [10:37:48]NVStorageDeleteData [10:37:48]Write to MH i2c: 01 00 00 8F 99 28 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: 01 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: 01 07 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: 01 07 00 8F 99 00 00 00 00 00 B1 0C EC [10:37:48]RasterBufferAndPrint [10:37:48]line [10:37:48]line [10:37:48]line [10:37:48]line [10:37:48]line [10:37:48]written 0, free lines is 3254 [10:37:48]MH_Cut [10:37:48]Write to MH i2c: D1 01 00 96 99 01 01 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: D1 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: D1 01 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: D1 01 00 96 99 00 00 [10:37:48]Write to MH i2c: 01 00 00 97 99 30 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:49]OFD Sender: No OFD packet to send [10:37:49]*** Cut start [10:37:49]*** Partial cut [10:37:49]*** CUTSNS_PIN = 1 [10:37:49]*** CUTSNS_PIN = 0 [10:37:50]*** Brake cut motor [10:37:50]Read from MH i2c: 01 [10:37:50]MH_I2C_Read... [10:37:50]*** Stop cut motor [10:37:50]*** Cut end [10:37:50]Read from MH i2c: 01 07 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: 01 07 00 97 99 00 00 00 00 00 FF 0F 45 [10:37:50]process_action close_receipt done [10:37:50]requested_data is exist [10:37:50]produce_requested_data [10:37:50]requested_item fm.sn is exist - process it [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 11 00 00 [10:37:50]Write to MH i2c: E2 08 00 98 99 80 11 00 00 00 00 00 00 AB [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 17 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 17 00 98 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F8 [10:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:37:50]wFMCommunicate OK [10:37:50]requested_item fd.num is exist - process it [10:37:50]SAM_PROTO_GetFieldsCounters [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 13 00 00 [10:37:50]Write to MH i2c: E2 08 00 99 99 80 13 00 00 00 00 00 00 AE [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 62 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 62 00 99 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5D 26 01 00 0E 04 04 00 AD 00 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 01 [10:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5D 26 01 00 0E 04 04 00 AD 00 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 [10:37:50]wFMCommunicate OK [10:37:50]SAM_PROTO_GetFieldsCounters done [10:37:50]requested_item shift.num is exist - process it [10:37:50]requested_item shift.opened is exist - process it [10:37:50]req_shift_opened [10:37:50]FM_GetShiftState [10:37:50]SAM_PROTO_GetShiftState [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 13 01 00 [10:37:50]Write to MH i2c: E2 08 00 9A 99 80 13 01 00 00 00 00 00 B0 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 0E 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 0E 00 9A 99 00 09 00 01 99 41 18 67 00 00 00 00 90 00 15 [10:37:50]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:37:50]wFMCommunicate OK [10:37:50]SAM_PROTO_GetShiftState done [10:37:50]FM_GetShiftState done [10:37:50]req_shift_opened done [10:37:50]requested_item shift.open_date is exist - process it [10:37:50]req_shift_open_date [10:37:50]req_shift_open_date done [10:37:50]produce_requested_data done [10:37:50]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75357,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:37:50]process_action_free close_receipt [10:37:50]json_value_free [10:37:50]json_value_free done [10:37:50]process_json_proto returns [10:37:50]Send response to host [10:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75357,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:37:50]free response buf [10:37:50]execute_script done [10:37:50]execute_script returns [10:37:50]free content buf [10:37:50]Sock 9.Close socket [10:37:50]Sock 9.Thread stoped [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:10]accept exits with 7 [10:38:10]New connection [10:38:10]New thread 3067321700 created [10:38:10]Thread 3067465060 joined [10:38:10]Waiting for new connection... [10:38:10] Sock 7.Parse request [10:38:10]Sock 7.Check first char [10:38:10]Sock 7.First char is OK [10:38:10]request: POST /json_proto HTTP/1.0 [10:38:10]Method: POST [10:38:10]URL: /json_proto [10:38:10]Method is POST - this is cgi request [10:38:10]url: /json_proto [10:38:10]query_string will be loaded in cgi processing [10:38:10]execute_cgi json_proto POST (null) [10:38:10]execute_cgi path=json_proto method=POST [10:38:10]POST find Content-Length [10:38:10]Host: 172.17.44.196:8080 [10:38:10]Content-Length: 618 [10:38:10]Content-Type: application/json [10:38:10] [10:38:10]POST finish read [10:38:10]Found Content-Length = 618 [10:38:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273220", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:10]execute_script... [10:38:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273220", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:10]POST & json_proto [10:38:10]process_json_proto [10:38:10]json parsed OK: [10:38:10]protocol is kg_v1.0 [10:38:10]action value=close_receipt [10:38:10]process_action close_receipt [10:38:10]cmd_close_receipt [10:38:10]MH_GetDate [10:38:10]Write to MH i2c: F0 00 00 9B 99 23 [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: F0 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: F0 09 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: F0 09 00 9B 99 00 19 D2 18 67 E7 19 F8 65 F3 [10:38:10]GetLastDocTimeStamp 1729679873 [10:38:10]current date 1729679897 [10:38:10]FM_GetShiftState [10:38:10]SAM_PROTO_GetShiftState [10:38:10]wFMCommunicate request_size=4 [10:38:10]MH_SAM_APDU [10:38:10]CAPDU: 80 13 01 00 [10:38:10]Write to MH i2c: E2 08 00 9C 99 80 13 01 00 00 00 00 00 B2 [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:10]Read from MH i2c: E2 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 0E 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 0E 00 9C 99 00 09 00 01 99 41 18 67 00 00 00 00 90 00 17 [10:38:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:38:10]wFMCommunicate OK [10:38:10]SAM_PROTO_GetShiftState done [10:38:10]FM_GetShiftState done [10:38:10]opened in 1729642905 [10:38:10]opened+sec_in_day 1729729305 [10:38:10]quantity*price = 12500 [10:38:10]sum+1 = 12501 [10:38:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 91 23.10.2024 10:38 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75358 ФПД: 86223286898553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103817&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75358&fm=86223286898553&tin=02508201610067®Number=0000000000161154&sum=12500 0 [10:38:11]StoreToDocumentArchive [10:38:11]shift 173 fd 75358 [10:38:11]save to /storage/0173/doc_00075358 [10:38:11]save last doc name /storage/0173/doc_00075358 to /storage/kkm_last_doc_name [10:38:11]save OK [10:38:11]Clear old archive folders... [10:38:11]ProcessDocumentItem done err = 0, tmpTLVsize=270 [10:38:11]tlvbuf is 01091530 [10:38:11]SAM_PROTO_ClearQueue [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 09 00 00 [10:38:11]Write to MH i2c: E2 08 00 A9 99 80 09 00 00 00 00 00 00 B4 [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 A9 99 00 90 00 B6 [10:38:11]RAPDU: 90 00 [10:38:11]wFMCommunicate OK [10:38:11]SAM_PROTO_ClearQueue done [10:38:11]KKMCreateOFDPacket [10:38:11]OFDProtocolAddRootSTLVToBuf [10:38:11]FM_MakeSignedData [10:38:11]FM_MakeSignedData [10:38:11]SAM_PROTO_SignData [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 0D 01 02 [10:38:11]Write to MH i2c: E2 08 00 AA 99 80 0D 01 02 00 00 00 00 BC [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 AA 99 00 90 00 B7 [10:38:11]RAPDU: 90 00 [10:38:11]wFMCommunicate OK [10:38:11]wFMCommunicate request_size=255 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 19 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [10:38:11]Write to MH i2c: E2 02 01 AB 99 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 19 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 0B [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 AB 99 00 90 00 B8 [10:38:11]RAPDU: 90 00 [10:38:11]wFMCommunicate OK [10:38:11]wFMCommunicate request_size=29 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 5E 26 01 00 35 04 06 00 4E 6B 6C 63 0F 79 [10:38:11]Write to MH i2c: E2 20 00 AC 99 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 5E 26 01 00 35 04 06 00 4E 6B 6C 63 0F 79 00 00 15 [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 AC 99 00 90 00 B9 [10:38:11]RAPDU: 90 00 [10:38:11]wFMCommunicate OK [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 0D 03 02 [10:38:11]Write to MH i2c: E2 08 00 AD 99 80 0D 03 02 00 00 00 00 C1 [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 0B 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 0B 00 AD 99 00 58 0A 04 32 87 4C 52 BE 90 00 3D [10:38:12]RAPDU: 58 0A 04 32 87 4C 52 BE 90 00 [10:38:12]wFMCommunicate OK [10:38:12]SAM_PROTO_SignData done [10:38:12]FM_MakeSignedData done [10:38:12]CreateOFDProtocolMessage [10:38:12]wFMCommunicate request_size=4 [10:38:12]MH_SAM_APDU [10:38:12]CAPDU: 80 11 00 00 [10:38:12]Write to MH i2c: E2 08 00 AE 99 80 11 00 00 00 00 00 00 C1 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 17 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 17 00 AE 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0E [10:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:38:12]wFMCommunicate OK [10:38:12]CreateOFDProtocolMessage done [10:38:12]OFDSenderStorePacket 75358 [10:38:12]StoreOFDPacket docnum=75358 [10:38:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 72 0D 1A 01 54 49 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 19 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5E 26 01 00 35 04 06 00 4E 6B 6C 63 0F 79 58 0A 04 32 87 4C 52 BE [10:38:12]CheckFolder [10:38:12]dirname=/storage/ofd_packets [10:38:12]CheckFolder done [10:38:12]ProducePacketName [10:38:12]name=ofd_packets/00075358 [10:38:12]NVStorageSaveData ofd_packets/00075358 [10:38:12]File name is /storage/ofd_packets/00075358 [10:38:12]Write 320 bytes [10:38:12]NVStorageSaveData done [10:38:12]OFDSenderStorePacket done [10:38:12]KKMCreateOFDPacket done [10:38:12]NVStorageSaveData kkm_last_timestamp [10:38:12]File name is /storage/kkm_last_timestamp [10:38:12]Write 4 bytes [10:38:12]NVStorageSaveData done [10:38:12]ExternCall_PrintAddStr [10:38:12]wPrintStart [10:38:12]Write to MH i2c: 01 00 00 AF 99 48 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 07 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 07 00 AF 99 00 00 00 00 00 FF 0F 5D [10:38:12]RasterBufferAndPrint [10:38:12]line Счет N : (3)273220 [10:38:12]line ИНН: 02508201610067 [10:38:12]line Контрольно-Кассовый Чек [10:38:12]line ПРОДАЖА [10:38:12]line Товар: 48742191 [10:38:12]line Сигареты Bond Street Blue [10:38:12]line 1.000 * 125.00 [10:38:12]line = 125.00 [10:38:12]line НДС 12% НСП 1% [10:38:12]line > о реализуемом товаре [10:38:12]line ИТОГО: 125.00 [10:38:12]line НСП 1% : 1.11 [10:38:12]line НДС 12% : 13.27 [10:38:12]line Наличными: 125.00 [10:38:12]line Безнал.: 0.00 [10:38:12]line Место: АЗС № 133 "Партнер Нефть" [10:38:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:38:12]line СНО: Общий режим [10:38:12]line Чек 91 23.10.2024 10:38 [10:38:12]line Смена: 173 ФФД: 1.0 [10:38:12]line ЗНМ: 0300000020 [10:38:12]line РНМ: 0000000000161154 [10:38:12]line Версия ККМ: v1.0 [10:38:12]line ФМ: 0000000000963323 [10:38:12]line ФД: 75358 [10:38:12]line ФПД: 86223286898553 [10:38:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103817&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75358&fm=86223286898553&tin=02508201610067®Number=0000000000161154&sum=12500 [10:38:12]line 0 [10:38:12]OFD Sender: Processing packet 75358 [packets to send 15, broken 14] [10:38:12]ProducePacketName [10:38:12]name=ofd_packets/00075358 [10:38:12]OFD Sender: To server: pG, [10:38:12]CommunicateWithHost lk.salyk.kg:30040 [10:38:12]ConnectInit lk.salyk.kg [10:38:12]written 0, free lines is 4095 [10:38:12]Connected sock=10 [10:38:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 72 0D 1A 01 54 49 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 19 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5E 26 01 00 35 04 06 00 4E 6B 6C 63 0F 79 58 0A 04 32 87 4C 52 BE [10:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F1 D2 47 00 77 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5E 26 01 00 F4 03 04 00 F4 7A 18 67 B6 04 01 00 00 0B E4 2A 90 7A 19 71 7E [10:38:12]CommunicateWithHost err = 0 [10:38:12]CheckOFDResponse [10:38:12]1017 (14) - 77093643461234 [10:38:12]1041 (16) - 0000000000963323 [10:38:12]1040 (4) - 75358 [10:38:12]1012 (4) - 23.10.2024 04:26 [10:38:12]1206 (1) - 0 [10:38:12]OFD Sender: Remove packet 75358 [10:38:12]ProducePacketName [10:38:12]name=ofd_packets/00075358 [10:38:12]NVStorageDeleteData [10:38:12]Write to MH i2c: 01 00 00 D6 99 6F [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 07 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 07 00 D6 99 00 00 00 00 00 E8 0C 6A [10:38:12]RasterBufferAndPrint [10:38:12]line [10:38:12]line [10:38:12]line [10:38:12]line [10:38:12]line [10:38:12]written 0, free lines is 3310 [10:38:12]MH_Cut [10:38:12]Write to MH i2c: D1 01 00 DD 99 01 48 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: D1 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: D1 01 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: D1 01 00 DD 99 00 47 [10:38:12]Write to MH i2c: 01 00 00 DE 99 77 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:13]OFD Sender: No OFD packet to send [10:38:13]*** Cut start [10:38:13]*** Partial cut [10:38:13]*** CUTSNS_PIN = 1 [10:38:13]*** CUTSNS_PIN = 0 [10:38:14]*** Brake cut motor [10:38:14]Read from MH i2c: 01 [10:38:14]MH_I2C_Read... [10:38:14]*** Stop cut motor [10:38:14]*** Cut end [10:38:14]Read from MH i2c: 01 07 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: 01 07 00 DE 99 00 00 00 00 00 FF 0F 8C [10:38:14]process_action close_receipt done [10:38:14]requested_data is exist [10:38:14]produce_requested_data [10:38:14]requested_item fm.sn is exist - process it [10:38:14]wFMCommunicate request_size=4 [10:38:14]MH_SAM_APDU [10:38:14]CAPDU: 80 11 00 00 [10:38:14]Write to MH i2c: E2 08 00 DF 99 80 11 00 00 00 00 00 00 F2 [10:38:14]Write i2c OK [10:38:14]MH_I2C_Read... [10:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:14]Read from MH i2c: E2 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 17 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 17 00 DF 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3F [10:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:38:14]wFMCommunicate OK [10:38:14]requested_item fd.num is exist - process it [10:38:14]SAM_PROTO_GetFieldsCounters [10:38:14]wFMCommunicate request_size=4 [10:38:14]MH_SAM_APDU [10:38:14]CAPDU: 80 13 00 00 [10:38:14]Write to MH i2c: E2 08 00 E0 99 80 13 00 00 00 00 00 00 F5 [10:38:14]Write i2c OK [10:38:14]MH_I2C_Read... [10:38:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:14]Read from MH i2c: E2 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 62 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 62 00 E0 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5E 26 01 00 0E 04 04 00 AD 00 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 4C [10:38:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5E 26 01 00 0E 04 04 00 AD 00 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 [10:38:14]wFMCommunicate OK [10:38:14]SAM_PROTO_GetFieldsCounters done [10:38:14]requested_item shift.num is exist - process it [10:38:14]requested_item shift.opened is exist - process it [10:38:14]req_shift_opened [10:38:14]FM_GetShiftState [10:38:14]SAM_PROTO_GetShiftState [10:38:14]wFMCommunicate request_size=4 [10:38:14]MH_SAM_APDU [10:38:14]CAPDU: 80 13 01 00 [10:38:14]Write to MH i2c: E2 08 00 E1 99 80 13 01 00 00 00 00 00 F7 [10:38:14]Write i2c OK [10:38:14]MH_I2C_Read... [10:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:14]Read from MH i2c: E2 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 0E 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 0E 00 E1 99 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5C [10:38:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:38:14]wFMCommunicate OK [10:38:14]SAM_PROTO_GetShiftState done [10:38:14]FM_GetShiftState done [10:38:14]req_shift_opened done [10:38:14]requested_item shift.open_date is exist - process it [10:38:14]req_shift_open_date [10:38:14]req_shift_open_date done [10:38:14]produce_requested_data done [10:38:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75358,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:38:14]process_action_free close_receipt [10:38:14]json_value_free [10:38:14]json_value_free done [10:38:14]process_json_proto returns [10:38:14]Send response to host [10:38:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75358,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:38:14]free response buf [10:38:14]execute_script done [10:38:14]execute_script returns [10:38:14]free content buf [10:38:14]Sock 7.Close socket [10:38:14]Sock 7.Thread stoped [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:29]accept exits with 9 [10:38:29]New connection [10:38:29]New thread 3067465060 created [10:38:29]Thread 3067321700 joined [10:38:29]Waiting for new connection... [10:38:29] Sock 9.Parse request [10:38:29]Sock 9.Check first char [10:38:29]Sock 9.First char is OK [10:38:29]request: POST /json_proto HTTP/1.0 [10:38:29]Method: POST [10:38:29]URL: /json_proto [10:38:29]Method is POST - this is cgi request [10:38:29]url: /json_proto [10:38:29]query_string will be loaded in cgi processing [10:38:29]execute_cgi json_proto POST (null) [10:38:29]execute_cgi path=json_proto method=POST [10:38:29]POST find Content-Length [10:38:29]Host: 172.17.44.196:8080 [10:38:29]Content-Length: 755 [10:38:29]Content-Type: application/json [10:38:29] [10:38:29]POST finish read [10:38:29]Found Content-Length = 755 [10:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072880", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:29]execute_script... [10:38: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)1965338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072880", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:29]POST & json_proto [10:38:29]process_json_proto [10:38:29]json parsed OK: [10:38:29]protocol is kg_v1.0 [10:38:29]action value=close_receipt [10:38:29]process_action close_receipt [10:38:29]cmd_close_receipt [10:38:29]MH_GetDate [10:38:29]Write to MH i2c: F0 00 00 E2 99 6A [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: F0 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: F0 09 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: F0 09 00 E2 99 00 2C D2 18 67 E7 19 F8 65 4D [10:38:29]GetLastDocTimeStamp 1729679897 [10:38:29]current date 1729679916 [10:38:29]FM_GetShiftState [10:38:29]SAM_PROTO_GetShiftState [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 13 01 00 [10:38:29]Write to MH i2c: E2 08 00 E3 99 80 13 01 00 00 00 00 00 F9 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 0E 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 0E 00 E3 99 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5E [10:38:29]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:38:29]wFMCommunicate OK [10:38:29]SAM_PROTO_GetShiftState done [10:38:29]FM_GetShiftState done [10:38:29]opened in 1729642905 [10:38:29]opened+sec_in_day 1729729305 [10:38:29]quantity*price = 0 [10:38:29]sum+1 = 1 [10:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 92 23.10.2024 10:38 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30072880 ФМ: 0000000000963323 ФД: 75359 ФПД: 150001107788470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103836&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75359&fm=150001107788470&tin=02508201610067®Number=0000000000161154&sum=0 [10:38:30]StoreToDocumentArchive [10:38:30]shift 173 fd 75359 [10:38:30]save to /storage/0173/doc_00075359 [10:38:30]save last doc name /storage/0173/doc_00075359 to /storage/kkm_last_doc_name [10:38:30]save OK [10:38:30]Clear old archive folders... [10:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:30]tlvbuf is 00DC5A20 [10:38:30]SAM_PROTO_ClearQueue [10:38:30]wFMCommunicate request_size=4 [10:38:30]MH_SAM_APDU [10:38:30]CAPDU: 80 09 00 00 [10:38:30]Write to MH i2c: E2 08 00 F0 99 80 09 00 00 00 00 00 00 FB [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:30]Read from MH i2c: E2 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 03 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 03 00 F0 99 00 90 00 FD [10:38:30]RAPDU: 90 00 [10:38:30]wFMCommunicate OK [10:38:30]SAM_PROTO_ClearQueue done [10:38:30]KKMCreateOFDPacket [10:38:30]OFDProtocolAddRootSTLVToBuf [10:38:30]FM_MakeSignedData [10:38:30]FM_MakeSignedData [10:38:30]SAM_PROTO_SignData [10:38:30]wFMCommunicate request_size=4 [10:38:30]MH_SAM_APDU [10:38:30]CAPDU: 80 0D 01 02 [10:38:30]Write to MH i2c: E2 08 00 F1 99 80 0D 01 02 00 00 00 00 03 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:30]Read from MH i2c: E2 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 03 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 03 00 F1 99 00 90 00 FE [10:38:30]RAPDU: 90 00 [10:38:30]wFMCommunicate OK [10:38:30]wFMCommunicate request_size=255 [10:38:30]MH_SAM_APDU [10:38: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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2C D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5F 26 01 00 35 04 06 00 88 [10:38:30]Write to MH i2c: E2 02 01 F2 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2C D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5F 26 01 00 35 04 06 00 88 00 00 70 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 03 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 03 00 F2 99 00 90 00 FF [10:38:31]RAPDU: 90 00 [10:38:31]wFMCommunicate OK [10:38:31]wFMCommunicate request_size=10 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 0D 02 02 05 6C DA BE E2 B6 [10:38:31]Write to MH i2c: E2 0D 00 F3 99 80 0D 02 02 05 00 6C DA BE E2 B6 00 00 AC [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 03 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 03 00 F3 99 00 90 00 00 [10:38:31]RAPDU: 90 00 [10:38:31]wFMCommunicate OK [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 0D 03 02 [10:38:31]Write to MH i2c: E2 08 00 F4 99 80 0D 03 02 00 00 00 00 08 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 0B 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 0B 00 F4 99 00 AC 6A B4 3C C4 9C 54 60 90 00 23 [10:38:31]RAPDU: AC 6A B4 3C C4 9C 54 60 90 00 [10:38:31]wFMCommunicate OK [10:38:31]SAM_PROTO_SignData done [10:38:31]FM_MakeSignedData done [10:38:31]CreateOFDProtocolMessage [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 11 00 00 [10:38:31]Write to MH i2c: E2 08 00 F5 99 80 11 00 00 00 00 00 00 08 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 17 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 17 00 F5 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 55 [10:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:38:31]wFMCommunicate OK [10:38:31]CreateOFDProtocolMessage done [10:38:31]OFDSenderStorePacket 75359 [10:38:31]StoreOFDPacket docnum=75359 [10:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E9 CC 07 01 FD F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2C D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5F 26 01 00 35 04 06 00 88 6C DA BE E2 B6 AC 6A B4 3C C4 9C 54 60 [10:38:31]CheckFolder [10:38:31]dirname=/storage/ofd_packets [10:38:31]CheckFolder done [10:38:31]ProducePacketName [10:38:31]name=ofd_packets/00075359 [10:38:31]NVStorageSaveData ofd_packets/00075359 [10:38:31]File name is /storage/ofd_packets/00075359 [10:38:31]Write 301 bytes [10:38:31]NVStorageSaveData done [10:38:31]OFDSenderStorePacket done [10:38:31]KKMCreateOFDPacket done [10:38:31]NVStorageSaveData kkm_last_timestamp [10:38:31]File name is /storage/kkm_last_timestamp [10:38:31]Write 4 bytes [10:38:31]NVStorageSaveData done [10:38:31]ExternCall_PrintAddStr [10:38:31]wPrintStart [10:38:31]Write to MH i2c: 01 00 00 F6 99 8F [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: 01 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: 01 07 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: 01 07 00 F6 99 00 00 00 00 00 FF 0F A4 [10:38:31]RasterBufferAndPrint [10:38:31]line Счет N : (1)1965338 [10:38:31]line ИНН: 02508201610067 [10:38:31]line Контрольно-Кассовый Чек [10:38:31]line ПРОДАЖА [10:38:31]line ТРК (МРК, ГНК) : 53 [10:38:31]line Товар: 2710124130 [10:38:31]line Аи-92-К-5 [10:38:31]line 40.000 * 0.00 [10:38:31]line = 0.00 [10:38:31]line НДС 12% НСП 1% [10:38:31]line > о реализуемом товаре [10:38:31]line ИТОГО: 0.00 [10:38:31]line НСП 1% : 0.00 [10:38:31]line НДС 12% : 0.00 [10:38:31]line Наличными: 0.00 [10:38:31]line Безнал.: 0.00 [10:38:31]line Место: АЗС № 133 "Партнер Нефть" [10:38:31]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:38:31]line СНО: Общий режим [10:38:31]line Чек 92 23.10.2024 10:38 [10:38:31]line Смена: 173 ФФД: 1.0 [10:38:31]line ЗНМ: 0300000020 [10:38:31]line РНМ: 0000000000161154 [10:38:31]line Версия ККМ: v1.0 [10:38:31]line Талоны: ТК ГПНА Online [10:38:31]line 30072880 [10:38:31]line ФМ: 0000000000963323 [10:38:31]line ФД: 75359 [10:38:31]line ФПД: 150001107788470 [10:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103836&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75359&fm=150001107788470&tin=02508201610067®Number=0000000000161154&sum=0 [10:38:31]OFD Sender: Processing packet 75359 [packets to send 15, broken 14] [10:38:31]ProducePacketName [10:38:31]name=ofd_packets/00075359 [10:38:31]OFD Sender: To server: pG, [10:38:31]CommunicateWithHost lk.salyk.kg:30040 [10:38:31]ConnectInit lk.salyk.kg [10:38:31]written 0, free lines is 4095 [10:38:31]Write to MH i2c: 01 00 00 1F 9A B9 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: 01 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: 01 07 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: 01 07 00 1F 9A 00 00 00 00 00 C2 0C 8E [10:38:31]RasterBufferAndPrint [10:38:31]line [10:38:31]line [10:38:31]line [10:38:31]line [10:38:31]line [10:38:31]written 0, free lines is 3270 [10:38:31]MH_Cut [10:38:31]Write to MH i2c: D1 01 00 26 9A 01 92 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: D1 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: D1 01 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: D1 01 00 26 9A 00 91 [10:38:31]Write to MH i2c: 01 00 00 27 9A C1 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:32]*** Cut start [10:38:32]*** Partial cut [10:38:32]*** CUTSNS_PIN = 1 [10:38:32]*** CUTSNS_PIN = 0 [10:38:33]*** Brake cut motor [10:38:33]Read from MH i2c: 01 [10:38:33]MH_I2C_Read... [10:38:33]*** Stop cut motor [10:38:33]*** Cut end [10:38:33]Read from MH i2c: 01 07 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 27 9A 00 00 00 00 00 FF 0F D6 [10:38:33]process_action close_receipt done [10:38:33]requested_data is exist [10:38:33]produce_requested_data [10:38:33]requested_item fm.sn is exist - process it [10:38:33]wFMCommunicate request_size=4 [10:38:33]MH_SAM_APDU [10:38:33]CAPDU: 80 11 00 00 [10:38:33]Write to MH i2c: E2 08 00 28 9A 80 11 00 00 00 00 00 00 3C [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 17 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 17 00 28 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 89 [10:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:38:33]wFMCommunicate OK [10:38:33]requested_item fd.num is exist - process it [10:38:33]SAM_PROTO_GetFieldsCounters [10:38:33]wFMCommunicate request_size=4 [10:38:33]MH_SAM_APDU [10:38:33]CAPDU: 80 13 00 00 [10:38:33]Write to MH i2c: E2 08 00 29 9A 80 13 00 00 00 00 00 00 3F [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 62 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 62 00 29 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5F 26 01 00 0E 04 04 00 AD 00 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 9A [10:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 5F 26 01 00 0E 04 04 00 AD 00 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 [10:38:33]wFMCommunicate OK [10:38:33]SAM_PROTO_GetFieldsCounters done [10:38:33]requested_item shift.num is exist - process it [10:38:33]requested_item shift.opened is exist - process it [10:38:33]req_shift_opened [10:38:33]FM_GetShiftState [10:38:33]SAM_PROTO_GetShiftState [10:38:33]wFMCommunicate request_size=4 [10:38:33]MH_SAM_APDU [10:38:33]CAPDU: 80 13 01 00 [10:38:33]Write to MH i2c: E2 08 00 2A 9A 80 13 01 00 00 00 00 00 41 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 0E 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 0E 00 2A 9A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A6 [10:38:33]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:38:33]wFMCommunicate OK [10:38:33]SAM_PROTO_GetShiftState done [10:38:33]FM_GetShiftState done [10:38:33]req_shift_opened done [10:38:33]requested_item shift.open_date is exist - process it [10:38:33]req_shift_open_date [10:38:33]req_shift_open_date done [10:38:33]produce_requested_data done [10:38:33]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75359,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:38:33]process_action_free close_receipt [10:38:33]json_value_free [10:38:33]json_value_free done [10:38:33]process_json_proto returns [10:38:33]Send response to host [10:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75359,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:38:33]free response buf [10:38:33]execute_script done [10:38:33]execute_script returns [10:38:33]free content buf [10:38:33]Sock 9.Close socket [10:38:33]Sock 9.Thread stoped [10:39:06]accept exits with 7 [10:39:06]New connection [10:39:06]New thread 3067321700 created [10:39:06]Thread 3067465060 joined [10:39:06]Waiting for new connection... [10:39:06] Sock 7.Parse request [10:39:06]Sock 7.Check first char [10:39:06]Sock 7.First char is OK [10:39:06]request: POST /json_proto HTTP/1.0 [10:39:06]Method: POST [10:39:06]URL: /json_proto [10:39:06]Method is POST - this is cgi request [10:39:06]url: /json_proto [10:39:06]query_string will be loaded in cgi processing [10:39:06]execute_cgi json_proto POST (null) [10:39:06]execute_cgi path=json_proto method=POST [10:39:06]POST find Content-Length [10:39:06]Host: 172.17.44.196:8080 [10:39:06]Content-Length: 658 [10:39:06]Content-Type: application/json [10:39:06] [10:39:06]POST finish read [10:39:06]Found Content-Length = 658 [10:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273221", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:06]execute_script... [10:39:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273221", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:06]POST & json_proto [10:39:06]process_json_proto [10:39:06]json parsed OK: [10:39:06]protocol is kg_v1.0 [10:39:06]action value=close_receipt [10:39:06]process_action close_receipt [10:39:06]cmd_close_receipt [10:39:06]MH_GetDate [10:39:06]Write to MH i2c: F0 00 00 2B 9A B4 [10:39:06]Write i2c OK [10:39:06]MH_I2C_Read... [10:39:06]Read from MH i2c: F0 [10:39:06]MH_I2C_Read... [10:39:06]Read from MH i2c: F0 09 00 [10:39:06]MH_I2C_Read... [10:39:06]Read from MH i2c: F0 09 00 2B 9A 00 51 D2 18 67 E7 19 F8 65 BC [10:39:06]GetLastDocTimeStamp 1729679916 [10:39:06]current date 1729679953 [10:39:06]FM_GetShiftState [10:39:06]SAM_PROTO_GetShiftState [10:39:06]wFMCommunicate request_size=4 [10:39:06]MH_SAM_APDU [10:39:06]CAPDU: 80 13 01 00 [10:39:06]Write to MH i2c: E2 08 00 2C 9A 80 13 01 00 00 00 00 00 43 [10:39:06]Write i2c OK [10:39:06]MH_I2C_Read... [10:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:06]Read from MH i2c: E2 [10:39:06]MH_I2C_Read... [10:39:06]Read from MH i2c: E2 0E 00 [10:39:06]MH_I2C_Read... [10:39:06]Read from MH i2c: E2 0E 00 2C 9A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A8 [10:39:06]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:39:06]wFMCommunicate OK [10:39:06]SAM_PROTO_GetShiftState done [10:39:06]FM_GetShiftState done [10:39:06]opened in 1729642905 [10:39:06]opened+sec_in_day 1729729305 [10:39:06]quantity*price = 20500 [10:39:06]sum+1 = 20501 [10:39:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 93 23.10.2024 10:39 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75360 ФПД: 180447054652394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103913&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75360&fm=180447054652394&tin=02508201610067®Number=0000000000161154&sum=20500 0 [10:39:07]StoreToDocumentArchive [10:39:07]shift 173 fd 75360 [10:39:07]save to /storage/0173/doc_00075360 [10:39:07]save last doc name /storage/0173/doc_00075360 to /storage/kkm_last_doc_name [10:39:07]save OK [10:39:07]Clear old archive folders... [10:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:39:07]tlvbuf is 00CB2020 [10:39:07]SAM_PROTO_ClearQueue [10:39:07]wFMCommunicate request_size=4 [10:39:07]MH_SAM_APDU [10:39:07]CAPDU: 80 09 00 00 [10:39:07]Write to MH i2c: E2 08 00 39 9A 80 09 00 00 00 00 00 00 45 [10:39:07]Write i2c OK [10:39:07]MH_I2C_Read... [10:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:07]Read from MH i2c: E2 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 03 00 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 03 00 39 9A 00 90 00 47 [10:39:07]RAPDU: 90 00 [10:39:07]wFMCommunicate OK [10:39:07]SAM_PROTO_ClearQueue done [10:39:07]KKMCreateOFDPacket [10:39:07]OFDProtocolAddRootSTLVToBuf [10:39:07]FM_MakeSignedData [10:39:07]FM_MakeSignedData [10:39:07]SAM_PROTO_SignData [10:39:07]wFMCommunicate request_size=4 [10:39:07]MH_SAM_APDU [10:39:07]CAPDU: 80 0D 01 02 [10:39:07]Write to MH i2c: E2 08 00 3A 9A 80 0D 01 02 00 00 00 00 4D [10:39:07]Write i2c OK [10:39:07]MH_I2C_Read... [10:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:07]Read from MH i2c: E2 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 03 00 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 03 00 3A 9A 00 90 00 48 [10:39:07]RAPDU: 90 00 [10:39:07]wFMCommunicate OK [10:39:07]wFMCommunicate request_size=255 [10:39:07]MH_SAM_APDU [10:39:07]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 51 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 [10:39:07]Write to MH i2c: E2 02 01 3B 9A 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 51 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 00 00 B6 [10:39:07]Write i2c OK [10:39:07]MH_I2C_Read... [10:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:08]Read from MH i2c: E2 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 3B 9A 00 90 00 49 [10:39:08]RAPDU: 90 00 [10:39:08]wFMCommunicate OK [10:39:08]wFMCommunicate request_size=37 [10:39:08]MH_SAM_APDU [10:39:08]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 60 26 01 00 35 04 06 00 A4 1D 9A 97 E3 EA [10:39:08]Write to MH i2c: E2 28 00 3C 9A 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 60 26 01 00 35 04 06 00 A4 1D 9A 97 E3 EA 00 00 E7 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:08]Read from MH i2c: E2 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 3C 9A 00 90 00 4A [10:39:08]RAPDU: 90 00 [10:39:08]wFMCommunicate OK [10:39:08]wFMCommunicate request_size=4 [10:39:08]MH_SAM_APDU [10:39:08]CAPDU: 80 0D 03 02 [10:39:08]Write to MH i2c: E2 08 00 3D 9A 80 0D 03 02 00 00 00 00 52 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:08]Read from MH i2c: E2 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 0B 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 0B 00 3D 9A 00 C7 4F E5 E5 D7 18 5C 03 90 00 81 [10:39:08]RAPDU: C7 4F E5 E5 D7 18 5C 03 90 00 [10:39:08]wFMCommunicate OK [10:39:08]SAM_PROTO_SignData done [10:39:08]FM_MakeSignedData done [10:39:08]CreateOFDProtocolMessage [10:39:08]wFMCommunicate request_size=4 [10:39:08]MH_SAM_APDU [10:39:08]CAPDU: 80 11 00 00 [10:39:08]Write to MH i2c: E2 08 00 3E 9A 80 11 00 00 00 00 00 00 52 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:08]Read from MH i2c: E2 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 17 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 17 00 3E 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9F [10:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:39:08]wFMCommunicate OK [10:39:08]CreateOFDProtocolMessage done [10:39:08]OFDSenderStorePacket 75360 [10:39:08]StoreOFDPacket docnum=75360 [10:39:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 90 ED 22 01 3F AB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 51 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 60 26 01 00 35 04 06 00 A4 1D 9A 97 E3 EA C7 4F E5 E5 D7 18 5C 03 [10:39:08]CheckFolder [10:39:08]dirname=/storage/ofd_packets [10:39:08]CheckFolder done [10:39:08]ProducePacketName [10:39:08]name=ofd_packets/00075360 [10:39:08]NVStorageSaveData ofd_packets/00075360 [10:39:08]File name is /storage/ofd_packets/00075360 [10:39:08]Write 328 bytes [10:39:08]NVStorageSaveData done [10:39:08]OFDSenderStorePacket done [10:39:08]KKMCreateOFDPacket done [10:39:08]NVStorageSaveData kkm_last_timestamp [10:39:08]File name is /storage/kkm_last_timestamp [10:39:08]Write 4 bytes [10:39:08]NVStorageSaveData done [10:39:08]ExternCall_PrintAddStr [10:39:08]wPrintStart [10:39:08]Write to MH i2c: 01 00 00 3F 9A D9 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 07 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 07 00 3F 9A 00 00 00 00 00 FF 0F EE [10:39:08]RasterBufferAndPrint [10:39:08]line Счет N : (3)273221 [10:39:08]line ИНН: 02508201610067 [10:39:08]line Контрольно-Кассовый Чек [10:39:08]line ПРОДАЖА [10:39:08]line Товар: 5449000000286 [10:39:08]line Напиток Кока-Кола 2л [10:39:08]line 1.000 * 205.00 [10:39:08]line = 205.00 [10:39:08]line НДС 12% НСП 1% [10:39:08]line > о реализуемом товаре [10:39:08]line ИТОГО: 205.00 [10:39:08]line НСП 1% : 1.81 [10:39:08]line НДС 12% : 21.77 [10:39:08]line Наличными: 205.00 [10:39:08]line Безнал.: 0.00 [10:39:08]line Место: АЗС № 133 "Партнер Нефть" [10:39:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:39:08]line СНО: Общий режим [10:39:08]line Чек 93 23.10.2024 10:39 [10:39:08]line Смена: 173 ФФД: 1.0 [10:39:08]line ЗНМ: 0300000020 [10:39:08]line РНМ: 0000000000161154 [10:39:08]line Версия ККМ: v1.0 [10:39:08]line ФМ: 0000000000963323 [10:39:08]line ФД: 75360 [10:39:08]line ФПД: 180447054652394 [10:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103913&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75360&fm=180447054652394&tin=02508201610067®Number=0000000000161154&sum=20500 [10:39:08]line 0 [10:39:08]written 0, free lines is 4095 [10:39:08]Write to MH i2c: 01 00 00 66 9A 00 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 07 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 07 00 66 9A 00 00 00 00 00 D9 0C EC [10:39:08]RasterBufferAndPrint [10:39:08]line [10:39:08]line [10:39:08]line [10:39:08]line [10:39:08]line [10:39:08]written 0, free lines is 3293 [10:39:08]MH_Cut [10:39:08]Write to MH i2c: D1 01 00 6D 9A 01 D9 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: D1 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: D1 01 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: D1 01 00 6D 9A 00 D8 [10:39:08]Write to MH i2c: 01 00 00 6E 9A 08 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:09]*** Cut start [10:39:09]*** Partial cut [10:39:09]*** CUTSNS_PIN = 1 [10:39:09]*** CUTSNS_PIN = 0 [10:39:10]*** Brake cut motor [10:39:10]Read from MH i2c: 01 [10:39:10]*** Stop cut motor [10:39:10]*** Cut end [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: 01 07 00 [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: 01 07 00 6E 9A 00 00 00 00 00 FF 0F 1D [10:39:10]process_action close_receipt done [10:39:10]requested_data is exist [10:39:10]produce_requested_data [10:39:10]requested_item fm.sn is exist - process it [10:39:10]wFMCommunicate request_size=4 [10:39:10]MH_SAM_APDU [10:39:10]CAPDU: 80 11 00 00 [10:39:10]Write to MH i2c: E2 08 00 6F 9A 80 11 00 00 00 00 00 00 83 [10:39:10]Write i2c OK [10:39:10]MH_I2C_Read... [10:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:10]Read from MH i2c: E2 [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: E2 17 00 [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: E2 17 00 6F 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D0 [10:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:39:10]wFMCommunicate OK [10:39:10]requested_item fd.num is exist - process it [10:39:10]SAM_PROTO_GetFieldsCounters [10:39:10]wFMCommunicate request_size=4 [10:39:10]MH_SAM_APDU [10:39:10]CAPDU: 80 13 00 00 [10:39:10]Write to MH i2c: E2 08 00 70 9A 80 13 00 00 00 00 00 00 86 [10:39:10]Write i2c OK [10:39:10]MH_I2C_Read... [10:39:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:10]Read from MH i2c: E2 [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: E2 62 00 [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: E2 62 00 70 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 60 26 01 00 0E 04 04 00 AD 00 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 E5 [10:39:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 60 26 01 00 0E 04 04 00 AD 00 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 [10:39:10]wFMCommunicate OK [10:39:10]SAM_PROTO_GetFieldsCounters done [10:39:10]requested_item shift.num is exist - process it [10:39:10]requested_item shift.opened is exist - process it [10:39:10]req_shift_opened [10:39:10]FM_GetShiftState [10:39:10]SAM_PROTO_GetShiftState [10:39:10]wFMCommunicate request_size=4 [10:39:10]MH_SAM_APDU [10:39:10]CAPDU: 80 13 01 00 [10:39:10]Write to MH i2c: E2 08 00 71 9A 80 13 01 00 00 00 00 00 88 [10:39:10]Write i2c OK [10:39:10]MH_I2C_Read... [10:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:10]Read from MH i2c: E2 [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: E2 0E 00 [10:39:10]MH_I2C_Read... [10:39:10]Read from MH i2c: E2 0E 00 71 9A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 ED [10:39:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:39:10]wFMCommunicate OK [10:39:10]SAM_PROTO_GetShiftState done [10:39:10]FM_GetShiftState done [10:39:10]req_shift_opened done [10:39:10]requested_item shift.open_date is exist - process it [10:39:10]req_shift_open_date [10:39:10]req_shift_open_date done [10:39:10]produce_requested_data done [10:39:10]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75360,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:39:10]process_action_free close_receipt [10:39:10]json_value_free [10:39:10]json_value_free done [10:39:10]process_json_proto returns [10:39:10]Send response to host [10:39:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75360,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:39:10]free response buf [10:39:10]execute_script done [10:39:10]execute_script returns [10:39:10]free content buf [10:39:10]Sock 7.Close socket [10:39:10]Sock 7.Thread stoped [10:39:18]accept exits with 9 [10:39:18]New connection [10:39:18]New thread 3067465060 created [10:39:18]Thread 3067321700 joined [10:39:18]Waiting for new connection... [10:39:18] Sock 9.Parse request [10:39:18]Sock 9.Check first char [10:39:18]Sock 9.First char is OK [10:39:18]request: POST /json_proto HTTP/1.0 [10:39:18]Method: POST [10:39:18]URL: /json_proto [10:39:18]Method is POST - this is cgi request [10:39:18]url: /json_proto [10:39:18]query_string will be loaded in cgi processing [10:39:18]execute_cgi json_proto POST (null) [10:39:18]execute_cgi path=json_proto method=POST [10:39:18]POST find Content-Length [10:39:18]Host: 172.17.44.196:8080 [10:39:18]Content-Length: 675 [10:39:18]Content-Type: application/json [10:39:18] [10:39:18]POST finish read [10:39:18]Found Content-Length = 675 [10:39:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.890, "sum" : 525.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 525.00, "total" : 525.00, "payments": [ { "type": 0, "sum" : 525.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:18]execute_script... [10:39: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)1965341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.890, "sum" : 525.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 525.00, "total" : 525.00, "payments": [ { "type": 0, "sum" : 525.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:18]POST & json_proto [10:39:18]process_json_proto [10:39:18]json parsed OK: [10:39:18]protocol is kg_v1.0 [10:39:18]action value=close_receipt [10:39:18]process_action close_receipt [10:39:18]cmd_close_receipt [10:39:18]MH_GetDate [10:39:18]Write to MH i2c: F0 00 00 72 9A FB [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: F0 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: F0 09 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: F0 09 00 72 9A 00 5D D2 18 67 E7 19 F8 65 0F [10:39:18]GetLastDocTimeStamp 1729679953 [10:39:18]current date 1729679965 [10:39:18]FM_GetShiftState [10:39:18]SAM_PROTO_GetShiftState [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 13 01 00 [10:39:18]Write to MH i2c: E2 08 00 73 9A 80 13 01 00 00 00 00 00 8A [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 0E 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 0E 00 73 9A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EF [10:39:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:39:18]wFMCommunicate OK [10:39:18]SAM_PROTO_GetShiftState done [10:39:18]FM_GetShiftState done [10:39:18]opened in 1729642905 [10:39:18]opened+sec_in_day 1729729305 [10:39:18]quantity*price = 52501 [10:39:18]sum+1 = 52503 [10:39:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 525.00 Внесено: 525.00 СДАЧА: 0.00 НСП 1% : 4.65 НДС 12% : 55.75 Наличными: 525.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 94 23.10.2024 10:39 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75361 ФПД: 31113762639843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103925&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75361&fm=31113762639843&tin=02508201610067®Number=0000000000161154&sum=52500 [10:39:19]StoreToDocumentArchive [10:39:19]shift 173 fd 75361 [10:39:19]save to /storage/0173/doc_00075361 [10:39:19]save last doc name /storage/0173/doc_00075361 to /storage/kkm_last_doc_name [10:39:19]save OK [10:39:19]Clear old archive folders... [10:39:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:39:19]tlvbuf is 00FB5730 [10:39:19]SAM_PROTO_ClearQueue [10:39:19]wFMCommunicate request_size=4 [10:39:19]MH_SAM_APDU [10:39:19]CAPDU: 80 09 00 00 [10:39:19]Write to MH i2c: E2 08 00 80 9A 80 09 00 00 00 00 00 00 8C [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:19]Read from MH i2c: E2 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 03 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 03 00 80 9A 00 90 00 8E [10:39:19]RAPDU: 90 00 [10:39:19]wFMCommunicate OK [10:39:19]SAM_PROTO_ClearQueue done [10:39:19]KKMCreateOFDPacket [10:39:19]OFDProtocolAddRootSTLVToBuf [10:39:19]FM_MakeSignedData [10:39:19]FM_MakeSignedData [10:39:19]SAM_PROTO_SignData [10:39:19]wFMCommunicate request_size=4 [10:39:19]MH_SAM_APDU [10:39:19]CAPDU: 80 0D 01 02 [10:39:19]Write to MH i2c: E2 08 00 81 9A 80 0D 01 02 00 00 00 00 94 [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:19]Read from MH i2c: E2 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 03 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 03 00 81 9A 00 90 00 8F [10:39:19]RAPDU: 90 00 [10:39:19]wFMCommunicate OK [10:39:19]wFMCommunicate request_size=255 [10:39:19]MH_SAM_APDU [10:39: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 EA 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 5D D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 61 26 01 00 35 04 06 00 1C 4C 3C C5 [10:39:19]Write to MH i2c: E2 02 01 82 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 EA 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 5D D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 61 26 01 00 35 04 06 00 1C 4C 3C C5 00 00 C6 [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:19]Read from MH i2c: E2 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 03 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 03 00 82 9A 00 90 00 90 [10:39:19]RAPDU: 90 00 [10:39:19]wFMCommunicate OK [10:39:19]wFMCommunicate request_size=7 [10:39:19]MH_SAM_APDU [10:39:19]CAPDU: 80 0D 02 02 02 0F E3 [10:39:19]Write to MH i2c: E2 0A 00 83 9A 80 0D 02 02 02 00 0F E3 00 00 8D [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:19]Read from MH i2c: E2 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 03 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 03 00 83 9A 00 90 00 91 [10:39:19]RAPDU: 90 00 [10:39:19]wFMCommunicate OK [10:39:19]wFMCommunicate request_size=4 [10:39:19]MH_SAM_APDU [10:39:19]CAPDU: 80 0D 03 02 [10:39:19]Write to MH i2c: E2 08 00 84 9A 80 0D 03 02 00 00 00 00 99 [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:19]Read from MH i2c: E2 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 0B 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 0B 00 84 9A 00 8F 0C ED A7 51 59 59 4C 90 00 18 [10:39:19]RAPDU: 8F 0C ED A7 51 59 59 4C 90 00 [10:39:19]wFMCommunicate OK [10:39:19]SAM_PROTO_SignData done [10:39:19]FM_MakeSignedData done [10:39:19]CreateOFDProtocolMessage [10:39:19]wFMCommunicate request_size=4 [10:39:19]MH_SAM_APDU [10:39:19]CAPDU: 80 11 00 00 [10:39:19]Write to MH i2c: E2 08 00 85 9A 80 11 00 00 00 00 00 00 99 [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:19]Read from MH i2c: E2 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 17 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 17 00 85 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E6 [10:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:39:19]wFMCommunicate OK [10:39:19]CreateOFDProtocolMessage done [10:39:19]OFDSenderStorePacket 75361 [10:39:19]StoreOFDPacket docnum=75361 [10:39:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7E B5 04 01 12 D9 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 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 5D D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 61 26 01 00 35 04 06 00 1C 4C 3C C5 0F E3 8F 0C ED A7 51 59 59 4C [10:39:19]CheckFolder [10:39:19]dirname=/storage/ofd_packets [10:39:19]CheckFolder done [10:39:19]ProducePacketName [10:39:19]name=ofd_packets/00075361 [10:39:19]NVStorageSaveData ofd_packets/00075361 [10:39:19]File name is /storage/ofd_packets/00075361 [10:39:19]Write 298 bytes [10:39:19]NVStorageSaveData done [10:39:19]OFDSenderStorePacket done [10:39:19]KKMCreateOFDPacket done [10:39:19]NVStorageSaveData kkm_last_timestamp [10:39:19]File name is /storage/kkm_last_timestamp [10:39:19]Write 4 bytes [10:39:19]NVStorageSaveData done [10:39:19]ExternCall_PrintAddStr [10:39:19]wPrintStart [10:39:19]Write to MH i2c: 01 00 00 86 9A 20 [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: 01 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: 01 07 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: 01 07 00 86 9A 00 00 00 00 00 FF 0F 35 [10:39:19]RasterBufferAndPrint [10:39:19]line Счет N : (1)1965341 [10:39:19]line ИНН: 02508201610067 [10:39:19]line Контрольно-Кассовый Чек [10:39:19]line ПРОДАЖА [10:39:19]line ТРК (МРК, ГНК) : 11 [10:39:19]line Товар: 2710194210 [10:39:19]line ДТ-К-5 [10:39:19]line 6.890 * 76.20 [10:39:19]line = 525.02 [10:39:19]line НДС 12% НСП 1% [10:39:19]line > о реализуемом товаре [10:39:19]line ОКРУГЛЕНИЕ: -0.02 [10:39:19]line ИТОГО: 525.00 [10:39:19]line Внесено: 525.00 [10:39:19]line СДАЧА: 0.00 [10:39:19]line НСП 1% : 4.65 [10:39:19]line НДС 12% : 55.75 [10:39:19]line Наличными: 525.00 [10:39:19]line Безнал.: 0.00 [10:39:19]line Место: АЗС № 133 "Партнер Нефть" [10:39:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:39:19]line СНО: Общий режим [10:39:19]line Чек 94 23.10.2024 10:39 [10:39:19]line Смена: 173 ФФД: 1.0 [10:39:19]line ЗНМ: 0300000020 [10:39:19]line РНМ: 0000000000161154 [10:39:19]line Версия ККМ: v1.0 [10:39:19]line ФМ: 0000000000963323 [10:39:19]line ФД: 75361 [10:39:19]line ФПД: 31113762639843 [10:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103925&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75361&fm=31113762639843&tin=02508201610067®Number=0000000000161154&sum=52500 [10:39:20]written 0, free lines is 4095 [10:39:20]Write to MH i2c: 01 00 00 B0 9A 4A [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: 01 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: 01 07 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: 01 07 00 B0 9A 00 00 00 00 00 A9 0C 06 [10:39:20]RasterBufferAndPrint [10:39:20]line [10:39:20]line [10:39:20]line [10:39:20]line [10:39:20]line [10:39:20]written 0, free lines is 3245 [10:39:20]MH_Cut [10:39:20]Write to MH i2c: D1 01 00 B7 9A 01 23 [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: D1 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: D1 01 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: D1 01 00 B7 9A 00 22 [10:39:20]Write to MH i2c: 01 00 00 B8 9A 52 [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:21]*** Cut start [10:39:21]*** Partial cut [10:39:21]*** CUTSNS_PIN = 1 [10:39:21]*** CUTSNS_PIN = 0 [10:39:21]*** Brake cut motor [10:39:22]Read from MH i2c: 01 [10:39:22]MH_I2C_Read... [10:39:22]*** Stop cut motor [10:39:22]*** Cut end [10:39:22]Read from MH i2c: 01 07 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: 01 07 00 B8 9A 00 00 00 00 00 FF 0F 67 [10:39:22]process_action close_receipt done [10:39:22]requested_data is exist [10:39:22]produce_requested_data [10:39:22]requested_item fm.sn is exist - process it [10:39:22]wFMCommunicate request_size=4 [10:39:22]MH_SAM_APDU [10:39:22]CAPDU: 80 11 00 00 [10:39:22]Write to MH i2c: E2 08 00 B9 9A 80 11 00 00 00 00 00 00 CD [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:22]Read from MH i2c: E2 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 17 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 17 00 B9 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1A [10:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:39:22]wFMCommunicate OK [10:39:22]requested_item fd.num is exist - process it [10:39:22]SAM_PROTO_GetFieldsCounters [10:39:22]wFMCommunicate request_size=4 [10:39:22]MH_SAM_APDU [10:39:22]CAPDU: 80 13 00 00 [10:39:22]Write to MH i2c: E2 08 00 BA 9A 80 13 00 00 00 00 00 00 D0 [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:22]Read from MH i2c: E2 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 62 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 62 00 BA 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 61 26 01 00 0E 04 04 00 AD 00 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 33 [10:39:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 61 26 01 00 0E 04 04 00 AD 00 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 [10:39:22]wFMCommunicate OK [10:39:22]SAM_PROTO_GetFieldsCounters done [10:39:22]requested_item shift.num is exist - process it [10:39:22]requested_item shift.opened is exist - process it [10:39:22]req_shift_opened [10:39:22]FM_GetShiftState [10:39:22]SAM_PROTO_GetShiftState [10:39:22]wFMCommunicate request_size=4 [10:39:22]MH_SAM_APDU [10:39:22]CAPDU: 80 13 01 00 [10:39:22]Write to MH i2c: E2 08 00 BB 9A 80 13 01 00 00 00 00 00 D2 [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:22]Read from MH i2c: E2 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 0E 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 0E 00 BB 9A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 37 [10:39:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:39:22]wFMCommunicate OK [10:39:22]SAM_PROTO_GetShiftState done [10:39:22]FM_GetShiftState done [10:39:22]req_shift_opened done [10:39:22]requested_item shift.open_date is exist - process it [10:39:22]req_shift_open_date [10:39:22]req_shift_open_date done [10:39:22]produce_requested_data done [10:39:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75361,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:39:22]process_action_free close_receipt [10:39:22]json_value_free [10:39:22]json_value_free done [10:39:22]process_json_proto returns [10:39:22]Send response to host [10:39:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75361,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:39:22]free response buf [10:39:22]execute_script done [10:39:22]execute_script returns [10:39:22]free content buf [10:39:22]Sock 9.Close socket [10:39:22]Sock 9.Thread stoped [10:39:43]accept exits with 11 [10:39:43]New connection [10:39:43]New thread 3067321700 created [10:39:43]Thread 3067465060 joined [10:39:43]Waiting for new connection... [10:39:43] Sock 11.Parse request [10:39:43]Sock 11.Check first char [10:39:43]Sock 11.First char is OK [10:39:43]request: POST /json_proto HTTP/1.0 [10:39:43]Method: POST [10:39:43]URL: /json_proto [10:39:43]Method is POST - this is cgi request [10:39:43]url: /json_proto [10:39:43]query_string will be loaded in cgi processing [10:39:43]execute_cgi json_proto POST (null) [10:39:43]execute_cgi path=json_proto method=POST [10:39:43]POST find Content-Length [10:39:43]Host: 172.17.44.196:8080 [10:39:43]Content-Length: 621 [10:39:43]Content-Type: application/json [10:39:43] [10:39:43]POST finish read [10:39:43]Found Content-Length = 621 [10:39:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273222", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:43]execute_script... [10:39: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 : (3)273222", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:43]POST & json_proto [10:39:43]process_json_proto [10:39:43]json parsed OK: [10:39:43]protocol is kg_v1.0 [10:39:43]action value=close_receipt [10:39:43]process_action close_receipt [10:39:43]cmd_close_receipt [10:39:43]MH_GetDate [10:39:43]Write to MH i2c: F0 00 00 BC 9A 45 [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: F0 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: F0 09 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: F0 09 00 BC 9A 00 76 D2 18 67 E7 19 F8 65 72 [10:39:43]GetLastDocTimeStamp 1729679965 [10:39:43]current date 1729679990 [10:39:43]FM_GetShiftState [10:39:43]SAM_PROTO_GetShiftState [10:39:43]wFMCommunicate request_size=4 [10:39:43]MH_SAM_APDU [10:39:43]CAPDU: 80 13 01 00 [10:39:43]Write to MH i2c: E2 08 00 BD 9A 80 13 01 00 00 00 00 00 D4 [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:43]Read from MH i2c: E2 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 0E 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 0E 00 BD 9A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 39 [10:39:43]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:39:43]wFMCommunicate OK [10:39:43]SAM_PROTO_GetShiftState done [10:39:43]FM_GetShiftState done [10:39:43]opened in 1729642905 [10:39:43]opened+sec_in_day 1729729305 [10:39:43]quantity*price = 14000 [10:39:43]sum+1 = 14001 [10:39:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 95 23.10.2024 10:39 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75362 ФПД: 201492577720224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103950&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75362&fm=201492577720224&tin=02508201610067®Number=0000000000161154&sum=14000 0 [10:39:44]StoreToDocumentArchive [10:39:44]shift 173 fd 75362 [10:39:44]save to /storage/0173/doc_00075362 [10:39:44]save last doc name /storage/0173/doc_00075362 to /storage/kkm_last_doc_name [10:39:44]save OK [10:39:44]Clear old archive folders... [10:39:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:39:44]tlvbuf is 00F038E0 [10:39:44]SAM_PROTO_ClearQueue [10:39:44]wFMCommunicate request_size=4 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 09 00 00 [10:39:44]Write to MH i2c: E2 08 00 CA 9A 80 09 00 00 00 00 00 00 D6 [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 CA 9A 00 90 00 D8 [10:39:44]RAPDU: 90 00 [10:39:44]wFMCommunicate OK [10:39:44]SAM_PROTO_ClearQueue done [10:39:44]KKMCreateOFDPacket [10:39:44]OFDProtocolAddRootSTLVToBuf [10:39:44]FM_MakeSignedData [10:39:44]FM_MakeSignedData [10:39:44]SAM_PROTO_SignData [10:39:44]wFMCommunicate request_size=4 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 0D 01 02 [10:39:44]Write to MH i2c: E2 08 00 CB 9A 80 0D 01 02 00 00 00 00 DE [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 CB 9A 00 90 00 D9 [10:39:44]RAPDU: 90 00 [10:39:44]wFMCommunicate OK [10:39:44]wFMCommunicate request_size=255 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 76 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [10:39:44]Write to MH i2c: E2 02 01 CC 9A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 76 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 9F [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 CC 9A 00 90 00 DA [10:39:44]RAPDU: 90 00 [10:39:44]wFMCommunicate OK [10:39:44]wFMCommunicate request_size=32 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 62 26 01 00 35 04 06 00 B7 41 A5 85 17 A0 [10:39:44]Write to MH i2c: E2 23 00 CD 9A 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 62 26 01 00 35 04 06 00 B7 41 A5 85 17 A0 00 00 9A [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 CD 9A 00 90 00 DB [10:39:44]RAPDU: 90 00 [10:39:44]wFMCommunicate OK [10:39:44]wFMCommunicate request_size=4 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 0D 03 02 [10:39:44]Write to MH i2c: E2 08 00 CE 9A 80 0D 03 02 00 00 00 00 E3 [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 0B 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 0B 00 CE 9A 00 3F 6F A9 A1 55 A8 9E A7 90 00 1E [10:39:45]RAPDU: 3F 6F A9 A1 55 A8 9E A7 90 00 [10:39:45]wFMCommunicate OK [10:39:45]SAM_PROTO_SignData done [10:39:45]FM_MakeSignedData done [10:39:45]CreateOFDProtocolMessage [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 11 00 00 [10:39:45]Write to MH i2c: E2 08 00 CF 9A 80 11 00 00 00 00 00 00 E3 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 17 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 17 00 CF 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 30 [10:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:39:45]wFMCommunicate OK [10:39:45]CreateOFDProtocolMessage done [10:39:45]OFDSenderStorePacket 75362 [10:39:45]StoreOFDPacket docnum=75362 [10:39:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 C9 B8 1D 01 E5 42 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 76 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 62 26 01 00 35 04 06 00 B7 41 A5 85 17 A0 3F 6F A9 A1 55 A8 9E A7 [10:39:45]CheckFolder [10:39:45]dirname=/storage/ofd_packets [10:39:45]CheckFolder done [10:39:45]ProducePacketName [10:39:45]name=ofd_packets/00075362 [10:39:45]NVStorageSaveData ofd_packets/00075362 [10:39:45]File name is /storage/ofd_packets/00075362 [10:39:45]Write 323 bytes [10:39:45]NVStorageSaveData done [10:39:45]OFDSenderStorePacket done [10:39:45]KKMCreateOFDPacket done [10:39:45]NVStorageSaveData kkm_last_timestamp [10:39:45]File name is /storage/kkm_last_timestamp [10:39:45]Write 4 bytes [10:39:45]NVStorageSaveData done [10:39:45]ExternCall_PrintAddStr [10:39:45]wPrintStart [10:39:45]Write to MH i2c: 01 00 00 D0 9A 6A [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 07 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 07 00 D0 9A 00 00 00 00 00 FF 0F 7F [10:39:45]RasterBufferAndPrint [10:39:45]line Счет N : (3)273222 [10:39:45]line ИНН: 02508201610067 [10:39:45]line Контрольно-Кассовый Чек [10:39:45]line ПРОДАЖА [10:39:45]line Товар: 48743570 [10:39:45]line Сигареты Winston XStyle Blue [10:39:45]line 1.000 * 140.00 [10:39:45]line = 140.00 [10:39:45]line НДС 12% НСП 1% [10:39:45]line > о реализуемом товаре [10:39:45]line ИТОГО: 140.00 [10:39:45]line НСП 1% : 1.24 [10:39:45]line НДС 12% : 14.87 [10:39:45]line Наличными: 140.00 [10:39:45]line Безнал.: 0.00 [10:39:45]line Место: АЗС № 133 "Партнер Нефть" [10:39:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:39:45]line СНО: Общий режим [10:39:45]line Чек 95 23.10.2024 10:39 [10:39:45]line Смена: 173 ФФД: 1.0 [10:39:45]line ЗНМ: 0300000020 [10:39:45]line РНМ: 0000000000161154 [10:39:45]line Версия ККМ: v1.0 [10:39:45]line ФМ: 0000000000963323 [10:39:45]line ФД: 75362 [10:39:45]line ФПД: 201492577720224 [10:39:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T103950&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75362&fm=201492577720224&tin=02508201610067®Number=0000000000161154&sum=14000 [10:39:45]line 0 [10:39:45]written 0, free lines is 4095 [10:39:45]Write to MH i2c: 01 00 00 F7 9A 91 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 07 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 07 00 F7 9A 00 00 00 00 00 E6 0C 8A [10:39:45]RasterBufferAndPrint [10:39:45]line [10:39:45]line [10:39:45]line [10:39:45]line [10:39:45]line [10:39:45]written 0, free lines is 3306 [10:39:45]MH_Cut [10:39:45]Write to MH i2c: D1 01 00 FE 9A 01 6A [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: D1 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: D1 01 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: D1 01 00 FE 9A 00 69 [10:39:45]Write to MH i2c: 01 00 00 FF 9A 99 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:46]*** Cut start [10:39:46]*** Partial cut [10:39:46]*** CUTSNS_PIN = 1 [10:39:46]*** CUTSNS_PIN = 0 [10:39:46]*** Brake cut motor [10:39:47]Read from MH i2c: 01 [10:39:47]MH_I2C_Read... [10:39:47]*** Stop cut motor [10:39:47]*** Cut end [10:39:47]Read from MH i2c: 01 07 00 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: 01 07 00 FF 9A 00 00 00 00 00 FF 0F AE [10:39:47]process_action close_receipt done [10:39:47]requested_data is exist [10:39:47]produce_requested_data [10:39:47]requested_item fm.sn is exist - process it [10:39:47]wFMCommunicate request_size=4 [10:39:47]MH_SAM_APDU [10:39:47]CAPDU: 80 11 00 00 [10:39:47]Write to MH i2c: E2 08 00 00 9B 80 11 00 00 00 00 00 00 15 [10:39:47]Write i2c OK [10:39:47]MH_I2C_Read... [10:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:47]Read from MH i2c: E2 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: E2 17 00 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: E2 17 00 00 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 62 [10:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:39:47]wFMCommunicate OK [10:39:47]requested_item fd.num is exist - process it [10:39:47]SAM_PROTO_GetFieldsCounters [10:39:47]wFMCommunicate request_size=4 [10:39:47]MH_SAM_APDU [10:39:47]CAPDU: 80 13 00 00 [10:39:47]Write to MH i2c: E2 08 00 01 9B 80 13 00 00 00 00 00 00 18 [10:39:47]Write i2c OK [10:39:47]MH_I2C_Read... [10:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:47]Read from MH i2c: E2 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: E2 62 00 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: E2 62 00 01 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 62 26 01 00 0E 04 04 00 AD 00 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 7F [10:39:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 62 26 01 00 0E 04 04 00 AD 00 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 [10:39:47]wFMCommunicate OK [10:39:47]SAM_PROTO_GetFieldsCounters done [10:39:47]requested_item shift.num is exist - process it [10:39:47]requested_item shift.opened is exist - process it [10:39:47]req_shift_opened [10:39:47]FM_GetShiftState [10:39:47]SAM_PROTO_GetShiftState [10:39:47]wFMCommunicate request_size=4 [10:39:47]MH_SAM_APDU [10:39:47]CAPDU: 80 13 01 00 [10:39:47]Write to MH i2c: E2 08 00 02 9B 80 13 01 00 00 00 00 00 1A [10:39:47]Write i2c OK [10:39:47]MH_I2C_Read... [10:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:47]Read from MH i2c: E2 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: E2 0E 00 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: E2 0E 00 02 9B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7F [10:39:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:39:47]wFMCommunicate OK [10:39:47]SAM_PROTO_GetShiftState done [10:39:47]FM_GetShiftState done [10:39:47]req_shift_opened done [10:39:47]requested_item shift.open_date is exist - process it [10:39:47]req_shift_open_date [10:39:47]req_shift_open_date done [10:39:47]produce_requested_data done [10:39:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75362,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:39:47]process_action_free close_receipt [10:39:47]json_value_free [10:39:47]json_value_free done [10:39:47]process_json_proto returns [10:39:47]Send response to host [10:39:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75362,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:39:47]free response buf [10:39:47]execute_script done [10:39:47]execute_script returns [10:39:47]free content buf [10:39:47]Sock 11.Close socket [10:39:47]Sock 11.Thread stoped [10:40:02]accept exits with 7 [10:40:02]New connection [10:40:02]New thread 3067465060 created [10:40:02]Thread 3067321700 joined [10:40:02]Waiting for new connection... [10:40:02] Sock 7.Parse request [10:40:02]Sock 7.Check first char [10:40:02]Sock 7.First char is OK [10:40:02]request: POST /json_proto HTTP/1.0 [10:40:02]Method: POST [10:40:02]URL: /json_proto [10:40:02]Method is POST - this is cgi request [10:40:02]url: /json_proto [10:40:02]query_string will be loaded in cgi processing [10:40:02]execute_cgi json_proto POST (null) [10:40:02]execute_cgi path=json_proto method=POST [10:40:02]POST find Content-Length [10:40:02]Host: 172.17.44.196:8080 [10:40:02]Content-Length: 683 [10:40:02]Content-Type: application/json [10:40:02] [10:40:02]POST finish read [10:40:02]Found Content-Length = 683 [10:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.750, "sum" : 1020.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:02]execute_script... [10:40: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)1965342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.750, "sum" : 1020.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:02]POST & json_proto [10:40:02]process_json_proto [10:40:02]json parsed OK: [10:40:02]protocol is kg_v1.0 [10:40:02]action value=close_receipt [10:40:02]process_action close_receipt [10:40:02]cmd_close_receipt [10:40:02]MH_GetDate [10:40:02]Write to MH i2c: F0 00 00 03 9B 8D [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: F0 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: F0 09 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: F0 09 00 03 9B 00 89 D2 18 67 E7 19 F8 65 CD [10:40:02]GetLastDocTimeStamp 1729679990 [10:40:02]current date 1729680009 [10:40:02]FM_GetShiftState [10:40:02]SAM_PROTO_GetShiftState [10:40:02]wFMCommunicate request_size=4 [10:40:02]MH_SAM_APDU [10:40:02]CAPDU: 80 13 01 00 [10:40:02]Write to MH i2c: E2 08 00 04 9B 80 13 01 00 00 00 00 00 1C [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:02]Read from MH i2c: E2 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 0E 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 0E 00 04 9B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 81 [10:40:02]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:40:02]wFMCommunicate OK [10:40:02]SAM_PROTO_GetShiftState done [10:40:02]FM_GetShiftState done [10:40:02]opened in 1729642905 [10:40:02]opened+sec_in_day 1729729305 [10:40:02]quantity*price = 102025 [10:40:02]sum+1 = 102026 [10:40:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1020.00 Внесено: 1020.00 СДАЧА: 0.00 НСП 1% : 9.03 НДС 12% : 108.34 Наличными: 1020.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 96 23.10.2024 10:40 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75363 ФПД: 169507899417012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104009&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75363&fm=169507899417012&tin=02508201610067®Number=0000000000161154&sum=102000 [10:40:03]StoreToDocumentArchive [10:40:03]shift 173 fd 75363 [10:40:03]save to /storage/0173/doc_00075363 [10:40:03]save last doc name /storage/0173/doc_00075363 to /storage/kkm_last_doc_name [10:40:03]save OK [10:40:03]Clear old archive folders... [10:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:03]tlvbuf is 00DC5AC0 [10:40:03]SAM_PROTO_ClearQueue [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 09 00 00 [10:40:03]Write to MH i2c: E2 08 00 11 9B 80 09 00 00 00 00 00 00 1E [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 11 9B 00 90 00 20 [10:40:03]RAPDU: 90 00 [10:40:03]wFMCommunicate OK [10:40:03]SAM_PROTO_ClearQueue done [10:40:03]KKMCreateOFDPacket [10:40:03]OFDProtocolAddRootSTLVToBuf [10:40:03]FM_MakeSignedData [10:40:03]FM_MakeSignedData [10:40:03]SAM_PROTO_SignData [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 0D 01 02 [10:40:03]Write to MH i2c: E2 08 00 12 9B 80 0D 01 02 00 00 00 00 26 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 12 9B 00 90 00 21 [10:40:03]RAPDU: 90 00 [10:40:03]wFMCommunicate OK [10:40:03]wFMCommunicate request_size=255 [10:40:03]MH_SAM_APDU [10:40: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 B6 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 89 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 01 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 89 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 63 26 01 00 35 04 06 00 9A [10:40:03]Write to MH i2c: E2 02 01 13 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 B6 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 89 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 01 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 89 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 63 26 01 00 35 04 06 00 9A 00 00 51 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:04]Read from MH i2c: E2 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 03 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 03 00 13 9B 00 90 00 22 [10:40:04]RAPDU: 90 00 [10:40:04]wFMCommunicate OK [10:40:04]wFMCommunicate request_size=10 [10:40:04]MH_SAM_APDU [10:40:04]CAPDU: 80 0D 02 02 05 2A A2 21 A1 B4 [10:40:04]Write to MH i2c: E2 0D 00 14 9B 80 0D 02 02 05 00 2A A2 21 A1 B4 00 00 75 [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:04]Read from MH i2c: E2 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 03 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 03 00 14 9B 00 90 00 23 [10:40:04]RAPDU: 90 00 [10:40:04]wFMCommunicate OK [10:40:04]wFMCommunicate request_size=4 [10:40:04]MH_SAM_APDU [10:40:04]CAPDU: 80 0D 03 02 [10:40:04]Write to MH i2c: E2 08 00 15 9B 80 0D 03 02 00 00 00 00 2B [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:04]Read from MH i2c: E2 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 0B 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 0B 00 15 9B 00 E9 FE 69 C0 04 52 7A B2 90 00 BE [10:40:04]RAPDU: E9 FE 69 C0 04 52 7A B2 90 00 [10:40:04]wFMCommunicate OK [10:40:04]SAM_PROTO_SignData done [10:40:04]FM_MakeSignedData done [10:40:04]CreateOFDProtocolMessage [10:40:04]wFMCommunicate request_size=4 [10:40:04]MH_SAM_APDU [10:40:04]CAPDU: 80 11 00 00 [10:40:04]Write to MH i2c: E2 08 00 16 9B 80 11 00 00 00 00 00 00 2B [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:04]Read from MH i2c: E2 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 17 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 17 00 16 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 78 [10:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:40:04]wFMCommunicate OK [10:40:04]CreateOFDProtocolMessage done [10:40:04]OFDSenderStorePacket 75363 [10:40:04]StoreOFDPacket docnum=75363 [10:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 27 7A 07 01 8F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 89 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 01 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 89 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 63 26 01 00 35 04 06 00 9A 2A A2 21 A1 B4 E9 FE 69 C0 04 52 7A B2 [10:40:04]CheckFolder [10:40:04]dirname=/storage/ofd_packets [10:40:04]CheckFolder done [10:40:04]ProducePacketName [10:40:04]name=ofd_packets/00075363 [10:40:04]NVStorageSaveData ofd_packets/00075363 [10:40:04]File name is /storage/ofd_packets/00075363 [10:40:04]Write 301 bytes [10:40:04]NVStorageSaveData done [10:40:04]OFDSenderStorePacket done [10:40:04]KKMCreateOFDPacket done [10:40:04]NVStorageSaveData kkm_last_timestamp [10:40:04]File name is /storage/kkm_last_timestamp [10:40:04]Write 4 bytes [10:40:04]NVStorageSaveData done [10:40:04]ExternCall_PrintAddStr [10:40:04]wPrintStart [10:40:04]Write to MH i2c: 01 00 00 17 9B B2 [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: 01 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: 01 07 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: 01 07 00 17 9B 00 00 00 00 00 FF 0F C7 [10:40:04]RasterBufferAndPrint [10:40:04]line Счет N : (1)1965342 [10:40:04]line ИНН: 02508201610067 [10:40:04]line Контрольно-Кассовый Чек [10:40:04]line ПРОДАЖА [10:40:04]line ТРК (МРК, ГНК) : 34 [10:40:04]line Товар: 2710124500 [10:40:04]line Аи-95-К-5 [10:40:04]line 13.750 * 74.20 [10:40:04]line = 1020.25 [10:40:04]line НДС 12% НСП 1% [10:40:04]line > о реализуемом товаре [10:40:04]line ОКРУГЛЕНИЕ: -0.25 [10:40:04]line ИТОГО: 1020.00 [10:40:04]line Внесено: 1020.00 [10:40:04]line СДАЧА: 0.00 [10:40:04]line НСП 1% : 9.03 [10:40:04]line НДС 12% : 108.34 [10:40:04]line Наличными: 1020.00 [10:40:04]line Безнал.: 0.00 [10:40:04]line Место: АЗС № 133 "Партнер Нефть" [10:40:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:40:04]line СНО: Общий режим [10:40:04]line Чек 96 23.10.2024 10:40 [10:40:04]line Смена: 173 ФФД: 1.0 [10:40:04]line ЗНМ: 0300000020 [10:40:04]line РНМ: 0000000000161154 [10:40:04]line Версия ККМ: v1.0 [10:40:04]line ФМ: 0000000000963323 [10:40:04]line ФД: 75363 [10:40:04]line ФПД: 169507899417012 [10:40:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104009&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75363&fm=169507899417012&tin=02508201610067®Number=0000000000161154&sum=102000 [10:40:04]written 0, free lines is 4095 [10:40:04]Write to MH i2c: 01 00 00 41 9B DC [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: 01 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: 01 07 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: 01 07 00 41 9B 00 00 00 00 00 B0 0C 9F [10:40:05]RasterBufferAndPrint [10:40:05]line [10:40:05]line [10:40:05]line [10:40:05]line [10:40:05]line [10:40:05]written 0, free lines is 3253 [10:40:05]MH_Cut [10:40:05]Write to MH i2c: D1 01 00 48 9B 01 B5 [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: D1 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: D1 01 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: D1 01 00 48 9B 00 B4 [10:40:05]Write to MH i2c: 01 00 00 49 9B E4 [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]*** Cut start [10:40:05]*** Partial cut [10:40:05]*** CUTSNS_PIN = 1 [10:40:05]*** CUTSNS_PIN = 0 [10:40:06]*** Brake cut motor [10:40:06]Read from MH i2c: 01 [10:40:06]MH_I2C_Read... [10:40:06]*** Stop cut motor [10:40:06]*** Cut end [10:40:06]Read from MH i2c: 01 07 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: 01 07 00 49 9B 00 00 00 00 00 FF 0F F9 [10:40:06]process_action close_receipt done [10:40:06]requested_data is exist [10:40:06]produce_requested_data [10:40:06]requested_item fm.sn is exist - process it [10:40:06]wFMCommunicate request_size=4 [10:40:06]MH_SAM_APDU [10:40:06]CAPDU: 80 11 00 00 [10:40:06]Write to MH i2c: E2 08 00 4A 9B 80 11 00 00 00 00 00 00 5F [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 17 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 17 00 4A 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AC [10:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:40:06]wFMCommunicate OK [10:40:06]requested_item fd.num is exist - process it [10:40:06]SAM_PROTO_GetFieldsCounters [10:40:06]wFMCommunicate request_size=4 [10:40:06]MH_SAM_APDU [10:40:06]CAPDU: 80 13 00 00 [10:40:06]Write to MH i2c: E2 08 00 4B 9B 80 13 00 00 00 00 00 00 62 [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 62 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 62 00 4B 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 63 26 01 00 0E 04 04 00 AD 00 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 CD [10:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 63 26 01 00 0E 04 04 00 AD 00 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 [10:40:06]wFMCommunicate OK [10:40:06]SAM_PROTO_GetFieldsCounters done [10:40:06]requested_item shift.num is exist - process it [10:40:06]requested_item shift.opened is exist - process it [10:40:06]req_shift_opened [10:40:06]FM_GetShiftState [10:40:06]SAM_PROTO_GetShiftState [10:40:06]wFMCommunicate request_size=4 [10:40:06]MH_SAM_APDU [10:40:06]CAPDU: 80 13 01 00 [10:40:06]Write to MH i2c: E2 08 00 4C 9B 80 13 01 00 00 00 00 00 64 [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 0E 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 0E 00 4C 9B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C9 [10:40:06]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:40:06]wFMCommunicate OK [10:40:06]SAM_PROTO_GetShiftState done [10:40:06]FM_GetShiftState done [10:40:06]req_shift_opened done [10:40:06]requested_item shift.open_date is exist - process it [10:40:06]req_shift_open_date [10:40:06]req_shift_open_date done [10:40:06]produce_requested_data done [10:40:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75363,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:40:06]process_action_free close_receipt [10:40:06]json_value_free [10:40:06]json_value_free done [10:40:06]process_json_proto returns [10:40:06]Send response to host [10:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75363,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:40:06]free response buf [10:40:06]execute_script done [10:40:06]execute_script returns [10:40:06]free content buf [10:40:06]Sock 7.Close socket [10:40:06]Sock 7.Thread stoped [10:40:44]ConnectInit Can't connect to host [10:40:44]CommunicateWithHost connect error [10:40:44]CommunicateWithHost err = -1 [10:40:44]OFD Sender: Server communicate error [10:40:44]OFD Sender: Processing packet 75359 [packets to send 19, broken 14] [10:40:44]ProducePacketName [10:40:44]name=ofd_packets/00075359 [10:40:44]OFD Sender: To server: pG, [10:40:44]CommunicateWithHost lk.salyk.kg:30040 [10:40:44]ConnectInit lk.salyk.kg [10:40:44]Connected sock=7 [10:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E9 CC 07 01 FD F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2C D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 5F 26 01 00 35 04 06 00 88 6C DA BE E2 B6 AC 6A B4 3C C4 9C 54 60 [10:40:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7B 97 47 00 4D 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 39 36 33 33 32 33 10 04 04 00 5F 26 01 00 F4 03 04 00 8C 7B 18 67 B6 04 01 00 00 BA 29 DF 93 20 3F AF 40 [10:40:44]CommunicateWithHost err = 0 [10:40:44]CheckOFDResponse [10:40:44]1017 (14) - 77093643461234 [10:40:44]1041 (16) - 0000000000963323 [10:40:44]1040 (4) - 75359 [10:40:44]1012 (4) - 23.10.2024 04:29 [10:40:44]1206 (1) - 0 [10:40:44]OFD Sender: Remove packet 75359 [10:40:44]ProducePacketName [10:40:44]name=ofd_packets/00075359 [10:40:44]NVStorageDeleteData [10:40:45]OFD Sender: Processing packet 75360 [packets to send 18, broken 14] [10:40:45]ProducePacketName [10:40:45]name=ofd_packets/00075360 [10:40:45]OFD Sender: To server: pG, [10:40:45]CommunicateWithHost lk.salyk.kg:30040 [10:40:45]ConnectInit lk.salyk.kg [10:40:45]Connected sock=7 [10:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 90 ED 22 01 3F AB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 51 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 60 26 01 00 35 04 06 00 A4 1D 9A 97 E3 EA C7 4F E5 E5 D7 18 5C 03 [10:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CB E7 47 00 E5 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 60 26 01 00 F4 03 04 00 8D 7B 18 67 B6 04 01 00 00 6A 8B DF 7A 5F 4F 32 55 [10:40:45]CommunicateWithHost err = 0 [10:40:45]CheckOFDResponse [10:40:45]1017 (14) - 77093643461234 [10:40:45]1041 (16) - 0000000000963323 [10:40:45]1040 (4) - 75360 [10:40:45]1012 (4) - 23.10.2024 04:29 [10:40:45]1206 (1) - 0 [10:40:45]OFD Sender: Remove packet 75360 [10:40:45]ProducePacketName [10:40:45]name=ofd_packets/00075360 [10:40:45]NVStorageDeleteData [10:40:46]OFD Sender: Processing packet 75361 [packets to send 17, broken 14] [10:40:46]ProducePacketName [10:40:46]name=ofd_packets/00075361 [10:40:46]OFD Sender: To server: pG, [10:40:46]CommunicateWithHost lk.salyk.kg:30040 [10:40:46]ConnectInit lk.salyk.kg [10:40:46]Connected sock=7 [10:40:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 7E B5 04 01 12 D9 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 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 5D D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 61 26 01 00 35 04 06 00 1C 4C 3C C5 0F E3 8F 0C ED A7 51 59 59 4C [10:40:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7D 40 47 00 09 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 61 26 01 00 F4 03 04 00 8E 7B 18 67 B6 04 01 00 00 B9 7D 69 1D B2 15 A3 1E [10:40:46]CommunicateWithHost err = 0 [10:40:46]CheckOFDResponse [10:40:46]1017 (14) - 77093643461234 [10:40:46]1041 (16) - 0000000000963323 [10:40:46]1040 (4) - 75361 [10:40:46]1012 (4) - 23.10.2024 04:29 [10:40:46]1206 (1) - 0 [10:40:46]OFD Sender: Remove packet 75361 [10:40:46]ProducePacketName [10:40:46]name=ofd_packets/00075361 [10:40:46]NVStorageDeleteData [10:40:47]OFD Sender: Processing packet 75362 [packets to send 16, broken 14] [10:40:47]ProducePacketName [10:40:47]name=ofd_packets/00075362 [10:40:47]OFD Sender: To server: pG, [10:40:47]CommunicateWithHost lk.salyk.kg:30040 [10:40:47]ConnectInit lk.salyk.kg [10:40:47]Connected sock=7 [10:40:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 C9 B8 1D 01 E5 42 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 76 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 62 26 01 00 35 04 06 00 B7 41 A5 85 17 A0 3F 6F A9 A1 55 A8 9E A7 [10:40:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5A 0B 47 00 98 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 39 36 33 33 32 33 10 04 04 00 62 26 01 00 F4 03 04 00 8F 7B 18 67 B6 04 01 00 00 F5 1F 7F 4A 9F 63 71 6E [10:40:47]CommunicateWithHost err = 0 [10:40:47]CheckOFDResponse [10:40:47]1017 (14) - 77093643461234 [10:40:47]1041 (16) - 0000000000963323 [10:40:47]1040 (4) - 75362 [10:40:47]1012 (4) - 23.10.2024 04:29 [10:40:47]1206 (1) - 0 [10:40:47]OFD Sender: Remove packet 75362 [10:40:47]ProducePacketName [10:40:47]name=ofd_packets/00075362 [10:40:47]NVStorageDeleteData [10:40:47]OFD Sender: Processing packet 75363 [packets to send 15, broken 14] [10:40:47]ProducePacketName [10:40:47]name=ofd_packets/00075363 [10:40:47]OFD Sender: To server: pG, [10:40:47]CommunicateWithHost lk.salyk.kg:30040 [10:40:47]ConnectInit lk.salyk.kg [10:40:47]Connected sock=7 [10:40:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 27 7A 07 01 8F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 89 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 01 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 89 D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 63 26 01 00 35 04 06 00 9A 2A A2 21 A1 B4 E9 FE 69 C0 04 52 7A B2 [10:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 46 30 47 00 32 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 63 26 01 00 F4 03 04 00 90 7B 18 67 B6 04 01 00 00 CA B1 AB 87 AB 6B F2 50 [10:40:48]CommunicateWithHost err = 0 [10:40:48]CheckOFDResponse [10:40:48]1017 (14) - 77093643461234 [10:40:48]1041 (16) - 0000000000963323 [10:40:48]1040 (4) - 75363 [10:40:48]1012 (4) - 23.10.2024 04:29 [10:40:48]1206 (1) - 0 [10:40:48]OFD Sender: Remove packet 75363 [10:40:48]ProducePacketName [10:40:48]name=ofd_packets/00075363 [10:40:48]NVStorageDeleteData [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:11]accept exits with 9 [10:41:11]New connection [10:41:11]New thread 3067321700 created [10:41:11]Thread 3067465060 joined [10:41:11]Waiting for new connection... [10:41:11] Sock 9.Parse request [10:41:11]Sock 9.Check first char [10:41:11]Sock 9.First char is OK [10:41:11]request: POST /json_proto HTTP/1.0 [10:41:11]Method: POST [10:41:11]URL: /json_proto [10:41:11]Method is POST - this is cgi request [10:41:11]url: /json_proto [10:41:11]query_string will be loaded in cgi processing [10:41:11]execute_cgi json_proto POST (null) [10:41:11]execute_cgi path=json_proto method=POST [10:41:11]POST find Content-Length [10:41:11]Host: 172.17.44.196:8080 [10:41:11]Content-Length: 678 [10:41:11]Content-Type: application/json [10:41:11] [10:41:11]POST finish read [10:41:11]Found Content-Length = 678 [10:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:11]execute_script... [10:41: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)1965343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:11]POST & json_proto [10:41:11]process_json_proto [10:41:11]json parsed OK: [10:41:11]protocol is kg_v1.0 [10:41:11]action value=close_receipt [10:41:11]process_action close_receipt [10:41:11]cmd_close_receipt [10:41:11]MH_GetDate [10:41:11]Write to MH i2c: F0 00 00 4D 9B D7 [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: F0 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: F0 09 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: F0 09 00 4D 9B 00 CE D2 18 67 E7 19 F8 65 5C [10:41:11]GetLastDocTimeStamp 1729680009 [10:41:11]current date 1729680078 [10:41:11]FM_GetShiftState [10:41:11]SAM_PROTO_GetShiftState [10:41:11]wFMCommunicate request_size=4 [10:41:11]MH_SAM_APDU [10:41:11]CAPDU: 80 13 01 00 [10:41:11]Write to MH i2c: E2 08 00 4E 9B 80 13 01 00 00 00 00 00 66 [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:11]Read from MH i2c: E2 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 0E 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 0E 00 4E 9B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CB [10:41:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:41:11]wFMCommunicate OK [10:41:11]SAM_PROTO_GetShiftState done [10:41:11]FM_GetShiftState done [10:41:11]opened in 1729642905 [10:41:11]opened+sec_in_day 1729729305 [10:41:11]quantity*price = 30051 [10:41:11]sum+1 = 30052 [10:41:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 97 23.10.2024 10:41 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75364 ФПД: 224025671421477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104118&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75364&fm=224025671421477&tin=02508201610067®Number=0000000000161154&sum=30000 [10:41:12]StoreToDocumentArchive [10:41:12]shift 173 fd 75364 [10:41:12]save to /storage/0173/doc_00075364 [10:41:12]save last doc name /storage/0173/doc_00075364 to /storage/kkm_last_doc_name [10:41:12]save OK [10:41:12]Clear old archive folders... [10:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:12]tlvbuf is 00CCA610 [10:41:12]SAM_PROTO_ClearQueue [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 09 00 00 [10:41:12]Write to MH i2c: E2 08 00 5B 9B 80 09 00 00 00 00 00 00 68 [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 5B 9B 00 90 00 6A [10:41:12]RAPDU: 90 00 [10:41:12]wFMCommunicate OK [10:41:12]SAM_PROTO_ClearQueue done [10:41:12]KKMCreateOFDPacket [10:41:12]OFDProtocolAddRootSTLVToBuf [10:41:12]FM_MakeSignedData [10:41:12]FM_MakeSignedData [10:41:12]SAM_PROTO_SignData [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 0D 01 02 [10:41:12]Write to MH i2c: E2 08 00 5C 9B 80 0D 01 02 00 00 00 00 70 [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 5C 9B 00 90 00 6B [10:41:12]RAPDU: 90 00 [10:41:12]wFMCommunicate OK [10:41:12]wFMCommunicate request_size=255 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 61 00 00 00 F4 03 04 00 CE D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 64 26 01 00 35 04 06 00 CB [10:41:12]Write to MH i2c: E2 02 01 5D 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 61 00 00 00 F4 03 04 00 CE D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 64 26 01 00 35 04 06 00 CB 00 00 9D [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 5D 9B 00 90 00 6C [10:41:12]RAPDU: 90 00 [10:41:12]wFMCommunicate OK [10:41:12]wFMCommunicate request_size=10 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 0D 02 02 05 C0 0A 90 CE 25 [10:41:12]Write to MH i2c: E2 0D 00 5E 9B 80 0D 02 02 05 00 C0 0A 90 CE 25 00 00 CA [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 5E 9B 00 90 00 6D [10:41:12]RAPDU: 90 00 [10:41:12]wFMCommunicate OK [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 0D 03 02 [10:41:12]Write to MH i2c: E2 08 00 5F 9B 80 0D 03 02 00 00 00 00 75 [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 0B 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 0B 00 5F 9B 00 CB 7A 52 FE F1 3C 62 74 90 00 0E [10:41:12]RAPDU: CB 7A 52 FE F1 3C 62 74 90 00 [10:41:12]wFMCommunicate OK [10:41:12]SAM_PROTO_SignData done [10:41:12]FM_MakeSignedData done [10:41:12]CreateOFDProtocolMessage [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 11 00 00 [10:41:12]Write to MH i2c: E2 08 00 60 9B 80 11 00 00 00 00 00 00 75 [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 17 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 17 00 60 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C2 [10:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:41:12]wFMCommunicate OK [10:41:12]CreateOFDProtocolMessage done [10:41:12]OFDSenderStorePacket 75364 [10:41:12]StoreOFDPacket docnum=75364 [10:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 7C C9 07 01 61 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 61 00 00 00 F4 03 04 00 CE D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 64 26 01 00 35 04 06 00 CB C0 0A 90 CE 25 CB 7A 52 FE F1 3C 62 74 [10:41:12]CheckFolder [10:41:12]dirname=/storage/ofd_packets [10:41:12]CheckFolder done [10:41:12]ProducePacketName [10:41:12]name=ofd_packets/00075364 [10:41:12]NVStorageSaveData ofd_packets/00075364 [10:41:12]File name is /storage/ofd_packets/00075364 [10:41:12]Write 301 bytes [10:41:12]NVStorageSaveData done [10:41:12]OFDSenderStorePacket done [10:41:12]KKMCreateOFDPacket done [10:41:12]NVStorageSaveData kkm_last_timestamp [10:41:12]File name is /storage/kkm_last_timestamp [10:41:12]Write 4 bytes [10:41:12]NVStorageSaveData done [10:41:12]ExternCall_PrintAddStr [10:41:12]wPrintStart [10:41:12]Write to MH i2c: 01 00 00 61 9B FC [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: 01 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: 01 07 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: 01 07 00 61 9B 00 00 00 00 00 FF 0F 11 [10:41:12]RasterBufferAndPrint [10:41:12]line Счет N : (1)1965343 [10:41:12]line ИНН: 02508201610067 [10:41:12]line Контрольно-Кассовый Чек [10:41:12]line ПРОДАЖА [10:41:12]line ТРК (МРК, ГНК) : 64 [10:41:12]line Товар: 2710124500 [10:41:12]line Аи-95-К-5 [10:41:12]line 4.050 * 74.20 [10:41:12]line = 300.51 [10:41:12]line НДС 12% НСП 1% [10:41:12]line > о реализуемом товаре [10:41:12]line ОКРУГЛЕНИЕ: -0.51 [10:41:12]line ИТОГО: 300.00 [10:41:12]line Внесено: 300.00 [10:41:12]line СДАЧА: 0.00 [10:41:12]line НСП 1% : 2.66 [10:41:12]line НДС 12% : 31.91 [10:41:12]line Наличными: 300.00 [10:41:12]line Безнал.: 0.00 [10:41:12]line Место: АЗС № 133 "Партнер Нефть" [10:41:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:41:12]line СНО: Общий режим [10:41:12]line Чек 97 23.10.2024 10:41 [10:41:12]line Смена: 173 ФФД: 1.0 [10:41:12]line ЗНМ: 0300000020 [10:41:12]line РНМ: 0000000000161154 [10:41:12]line Версия ККМ: v1.0 [10:41:12]line ФМ: 0000000000963323 [10:41:12]line ФД: 75364 [10:41:12]line ФПД: 224025671421477 [10:41:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104118&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75364&fm=224025671421477&tin=02508201610067®Number=0000000000161154&sum=30000 [10:41:13]OFD Sender: Processing packet 75364 [packets to send 15, broken 14] [10:41:13]ProducePacketName [10:41:13]name=ofd_packets/00075364 [10:41:13]OFD Sender: To server: pG, [10:41:13]CommunicateWithHost lk.salyk.kg:30040 [10:41:13]ConnectInit lk.salyk.kg [10:41:13]written 0, free lines is 4095 [10:41:13]Connected sock=10 [10:41:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 7C C9 07 01 61 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 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 61 00 00 00 F4 03 04 00 CE D2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 64 26 01 00 35 04 06 00 CB C0 0A 90 CE 25 CB 7A 52 FE F1 3C 62 74 [10:41:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 54 82 47 00 E9 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 39 36 33 33 32 33 10 04 04 00 64 26 01 00 F4 03 04 00 A9 7B 18 67 B6 04 01 00 00 9D 64 8A EC 33 EA 6F E3 [10:41:13]CommunicateWithHost err = 0 [10:41:13]CheckOFDResponse [10:41:13]1017 (14) - 77093643461234 [10:41:13]1041 (16) - 0000000000963323 [10:41:13]1040 (4) - 75364 [10:41:13]1012 (4) - 23.10.2024 04:29 [10:41:13]1206 (1) - 0 [10:41:13]OFD Sender: Remove packet 75364 [10:41:13]ProducePacketName [10:41:13]name=ofd_packets/00075364 [10:41:13]NVStorageDeleteData [10:41:13]Write to MH i2c: 01 00 00 8B 9B 26 [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: 01 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: 01 07 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: 01 07 00 8B 9B 00 00 00 00 00 AB 0C E4 [10:41:13]RasterBufferAndPrint [10:41:13]line [10:41:13]line [10:41:13]line [10:41:13]line [10:41:13]line [10:41:13]written 0, free lines is 3247 [10:41:13]MH_Cut [10:41:13]Write to MH i2c: D1 01 00 92 9B 01 FF [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: D1 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: D1 01 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: D1 01 00 92 9B 00 FE [10:41:13]Write to MH i2c: 01 00 00 93 9B 2E [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:14]OFD Sender: No OFD packet to send [10:41:14]*** Cut start [10:41:14]*** Partial cut [10:41:14]*** CUTSNS_PIN = 1 [10:41:14]*** CUTSNS_PIN = 0 [10:41:14]*** Brake cut motor [10:41:15]Read from MH i2c: 01 [10:41:15]MH_I2C_Read... [10:41:15]*** Stop cut motor [10:41:15]*** Cut end [10:41:15]Read from MH i2c: 01 07 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: 01 07 00 93 9B 00 00 00 00 00 FF 0F 43 [10:41:15]process_action close_receipt done [10:41:15]requested_data is exist [10:41:15]produce_requested_data [10:41:15]requested_item fm.sn is exist - process it [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 11 00 00 [10:41:15]Write to MH i2c: E2 08 00 94 9B 80 11 00 00 00 00 00 00 A9 [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 17 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 17 00 94 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F6 [10:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:41:15]wFMCommunicate OK [10:41:15]requested_item fd.num is exist - process it [10:41:15]SAM_PROTO_GetFieldsCounters [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 13 00 00 [10:41:15]Write to MH i2c: E2 08 00 95 9B 80 13 00 00 00 00 00 00 AC [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 62 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 62 00 95 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 64 26 01 00 0E 04 04 00 AD 00 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 1B [10:41:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 64 26 01 00 0E 04 04 00 AD 00 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 [10:41:15]wFMCommunicate OK [10:41:15]SAM_PROTO_GetFieldsCounters done [10:41:15]requested_item shift.num is exist - process it [10:41:15]requested_item shift.opened is exist - process it [10:41:15]req_shift_opened [10:41:15]FM_GetShiftState [10:41:15]SAM_PROTO_GetShiftState [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 13 01 00 [10:41:15]Write to MH i2c: E2 08 00 96 9B 80 13 01 00 00 00 00 00 AE [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 0E 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 0E 00 96 9B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 13 [10:41:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:41:15]wFMCommunicate OK [10:41:15]SAM_PROTO_GetShiftState done [10:41:15]FM_GetShiftState done [10:41:15]req_shift_opened done [10:41:15]requested_item shift.open_date is exist - process it [10:41:15]req_shift_open_date [10:41:15]req_shift_open_date done [10:41:15]produce_requested_data done [10:41:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75364,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:41:15]process_action_free close_receipt [10:41:15]json_value_free [10:41:15]json_value_free done [10:41:15]process_json_proto returns [10:41:15]Send response to host [10:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75364,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:41:15]free response buf [10:41:15]execute_script done [10:41:15]execute_script returns [10:41:15]free content buf [10:41:15]Sock 9.Close socket [10:41:15]Sock 9.Thread stoped [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:38]accept exits with 7 [10:42:38]New connection [10:42:38]New thread 3067465060 created [10:42:38]Thread 3067321700 joined [10:42:38]Waiting for new connection... [10:42:38] Sock 7.Parse request [10:42:38]Sock 7.Check first char [10:42:38]Sock 7.First char is OK [10:42:38]request: POST /json_proto HTTP/1.0 [10:42:38]Method: POST [10:42:38]URL: /json_proto [10:42:38]Method is POST - this is cgi request [10:42:38]url: /json_proto [10:42:38]query_string will be loaded in cgi processing [10:42:38]execute_cgi json_proto POST (null) [10:42:38]execute_cgi path=json_proto method=POST [10:42:38]POST find Content-Length [10:42:38]Host: 172.17.44.196:8080 [10:42:38]Content-Length: 678 [10:42:38]Content-Type: application/json [10:42:38] [10:42:38]POST finish read [10:42:38]Found Content-Length = 678 [10:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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:42:38]execute_script... [10:42: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)1965344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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:42:38]POST & json_proto [10:42:38]process_json_proto [10:42:38]json parsed OK: [10:42:38]protocol is kg_v1.0 [10:42:38]action value=close_receipt [10:42:38]process_action close_receipt [10:42:38]cmd_close_receipt [10:42:38]MH_GetDate [10:42:38]Write to MH i2c: F0 00 00 97 9B 21 [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: F0 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: F0 09 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: F0 09 00 97 9B 00 25 D3 18 67 E7 19 F8 65 FE [10:42:38]GetLastDocTimeStamp 1729680078 [10:42:38]current date 1729680165 [10:42:38]FM_GetShiftState [10:42:38]SAM_PROTO_GetShiftState [10:42:38]wFMCommunicate request_size=4 [10:42:38]MH_SAM_APDU [10:42:38]CAPDU: 80 13 01 00 [10:42:38]Write to MH i2c: E2 08 00 98 9B 80 13 01 00 00 00 00 00 B0 [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 0E 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 0E 00 98 9B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 15 [10:42:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:42:38]wFMCommunicate OK [10:42:38]SAM_PROTO_GetShiftState done [10:42:38]FM_GetShiftState done [10:42:38]opened in 1729642905 [10:42:38]opened+sec_in_day 1729729305 [10:42:38]quantity*price = 20003 [10:42:38]sum+1 = 20004 [10:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 98 23.10.2024 10:42 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75365 ФПД: 95375417356731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104245&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75365&fm=95375417356731&tin=02508201610067®Number=0000000000161154&sum=20000 [10:42:39]StoreToDocumentArchive [10:42:39]shift 173 fd 75365 [10:42:39]save to /storage/0173/doc_00075365 [10:42:39]save last doc name /storage/0173/doc_00075365 to /storage/kkm_last_doc_name [10:42:39]save OK [10:42:39]Clear old archive folders... [10:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:39]tlvbuf is 00E8DB00 [10:42:39]SAM_PROTO_ClearQueue [10:42:39]wFMCommunicate request_size=4 [10:42:39]MH_SAM_APDU [10:42:39]CAPDU: 80 09 00 00 [10:42:39]Write to MH i2c: E2 08 00 A5 9B 80 09 00 00 00 00 00 00 B2 [10:42:39]Write i2c OK [10:42:39]MH_I2C_Read... [10:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:39]Read from MH i2c: E2 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 03 00 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 03 00 A5 9B 00 90 00 B4 [10:42:39]RAPDU: 90 00 [10:42:39]wFMCommunicate OK [10:42:39]SAM_PROTO_ClearQueue done [10:42:39]KKMCreateOFDPacket [10:42:39]OFDProtocolAddRootSTLVToBuf [10:42:39]FM_MakeSignedData [10:42:39]FM_MakeSignedData [10:42:39]SAM_PROTO_SignData [10:42:39]wFMCommunicate request_size=4 [10:42:39]MH_SAM_APDU [10:42:39]CAPDU: 80 0D 01 02 [10:42:39]Write to MH i2c: E2 08 00 A6 9B 80 0D 01 02 00 00 00 00 BA [10:42:39]Write i2c OK [10:42:39]MH_I2C_Read... [10:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:39]Read from MH i2c: E2 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 03 00 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 03 00 A6 9B 00 90 00 B5 [10:42:39]RAPDU: 90 00 [10:42:39]wFMCommunicate OK [10:42:39]wFMCommunicate request_size=255 [10:42:39]MH_SAM_APDU [10:42:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 62 00 00 00 F4 03 04 00 25 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 65 26 01 00 35 04 06 00 56 [10:42:39]Write to MH i2c: E2 02 01 A7 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 62 00 00 00 F4 03 04 00 25 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 65 26 01 00 35 04 06 00 56 00 00 66 [10:42:39]Write i2c OK [10:42:39]MH_I2C_Read... [10:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:39]Read from MH i2c: E2 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 03 00 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 03 00 A7 9B 00 90 00 B6 [10:42:39]RAPDU: 90 00 [10:42:39]wFMCommunicate OK [10:42:39]wFMCommunicate request_size=10 [10:42:39]MH_SAM_APDU [10:42:39]CAPDU: 80 0D 02 02 05 BE 51 DF 31 BB [10:42:39]Write to MH i2c: E2 0D 00 A8 9B 80 0D 02 02 05 00 BE 51 DF 31 BB 00 00 A1 [10:42:39]Write i2c OK [10:42:39]MH_I2C_Read... [10:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:39]Read from MH i2c: E2 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 03 00 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 03 00 A8 9B 00 90 00 B7 [10:42:39]RAPDU: 90 00 [10:42:39]wFMCommunicate OK [10:42:39]wFMCommunicate request_size=4 [10:42:39]MH_SAM_APDU [10:42:39]CAPDU: 80 0D 03 02 [10:42:39]Write to MH i2c: E2 08 00 A9 9B 80 0D 03 02 00 00 00 00 BF [10:42:39]Write i2c OK [10:42:39]MH_I2C_Read... [10:42:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:39]Read from MH i2c: E2 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 0B 00 [10:42:39]MH_I2C_Read... [10:42:39]Read from MH i2c: E2 0B 00 A9 9B 00 70 5A 40 1D E9 81 84 F5 90 00 CA [10:42:39]RAPDU: 70 5A 40 1D E9 81 84 F5 90 00 [10:42:39]wFMCommunicate OK [10:42:39]SAM_PROTO_SignData done [10:42:39]FM_MakeSignedData done [10:42:39]CreateOFDProtocolMessage [10:42:39]wFMCommunicate request_size=4 [10:42:39]MH_SAM_APDU [10:42:39]CAPDU: 80 11 00 00 [10:42:39]Write to MH i2c: E2 08 00 AA 9B 80 11 00 00 00 00 00 00 BF [10:42:39]Write i2c OK [10:42:39]MH_I2C_Read... [10:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:40]Read from MH i2c: E2 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: E2 17 00 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: E2 17 00 AA 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0C [10:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:42:40]wFMCommunicate OK [10:42:40]CreateOFDProtocolMessage done [10:42:40]OFDSenderStorePacket 75365 [10:42:40]StoreOFDPacket docnum=75365 [10:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 40 CC 07 01 7B 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 62 00 00 00 F4 03 04 00 25 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 65 26 01 00 35 04 06 00 56 BE 51 DF 31 BB 70 5A 40 1D E9 81 84 F5 [10:42:40]CheckFolder [10:42:40]dirname=/storage/ofd_packets [10:42:40]CheckFolder done [10:42:40]ProducePacketName [10:42:40]name=ofd_packets/00075365 [10:42:40]NVStorageSaveData ofd_packets/00075365 [10:42:40]File name is /storage/ofd_packets/00075365 [10:42:40]Write 301 bytes [10:42:40]NVStorageSaveData done [10:42:40]OFDSenderStorePacket done [10:42:40]KKMCreateOFDPacket done [10:42:40]NVStorageSaveData kkm_last_timestamp [10:42:40]File name is /storage/kkm_last_timestamp [10:42:40]Write 4 bytes [10:42:40]NVStorageSaveData done [10:42:40]ExternCall_PrintAddStr [10:42:40]wPrintStart [10:42:40]Write to MH i2c: 01 00 00 AB 9B 46 [10:42:40]Write i2c OK [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: 01 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: 01 07 00 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: 01 07 00 AB 9B 00 00 00 00 00 FF 0F 5B [10:42:40]RasterBufferAndPrint [10:42:40]line Счет N : (1)1965344 [10:42:40]line ИНН: 02508201610067 [10:42:40]line Контрольно-Кассовый Чек [10:42:40]line ПРОДАЖА [10:42:40]line ТРК (МРК, ГНК) : 43 [10:42:40]line Товар: 2710124130 [10:42:40]line Аи-92-К-5 [10:42:40]line 2.990 * 66.90 [10:42:40]line = 200.03 [10:42:40]line НДС 12% НСП 1% [10:42:40]line > о реализуемом товаре [10:42:40]line ОКРУГЛЕНИЕ: -0.03 [10:42:40]line ИТОГО: 200.00 [10:42:40]line Внесено: 200.00 [10:42:40]line СДАЧА: 0.00 [10:42:40]line НСП 1% : 1.77 [10:42:40]line НДС 12% : 21.24 [10:42:40]line Наличными: 200.00 [10:42:40]line Безнал.: 0.00 [10:42:40]line Место: АЗС № 133 "Партнер Нефть" [10:42:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:42:40]line СНО: Общий режим [10:42:40]line Чек 98 23.10.2024 10:42 [10:42:40]line Смена: 173 ФФД: 1.0 [10:42:40]line ЗНМ: 0300000020 [10:42:40]line РНМ: 0000000000161154 [10:42:40]line Версия ККМ: v1.0 [10:42:40]line ФМ: 0000000000963323 [10:42:40]line ФД: 75365 [10:42:40]line ФПД: 95375417356731 [10:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104245&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75365&fm=95375417356731&tin=02508201610067®Number=0000000000161154&sum=20000 [10:42:40]OFD Sender: Processing packet 75365 [packets to send 15, broken 14] [10:42:40]ProducePacketName [10:42:40]name=ofd_packets/00075365 [10:42:40]OFD Sender: To server: pG, [10:42:40]CommunicateWithHost lk.salyk.kg:30040 [10:42:40]ConnectInit lk.salyk.kg [10:42:40]written 0, free lines is 4095 [10:42:40]Connected sock=10 [10:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 40 CC 07 01 7B 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 62 00 00 00 F4 03 04 00 25 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 65 26 01 00 35 04 06 00 56 BE 51 DF 31 BB 70 5A 40 1D E9 81 84 F5 [10:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F1 A6 47 00 E7 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 65 26 01 00 F4 03 04 00 00 7C 18 67 B6 04 01 00 00 AE 18 27 97 AE 5F 7D E8 [10:42:40]CommunicateWithHost err = 0 [10:42:40]CheckOFDResponse [10:42:40]1017 (14) - 77093643461234 [10:42:40]1041 (16) - 0000000000963323 [10:42:40]1040 (4) - 75365 [10:42:40]1012 (4) - 23.10.2024 04:30 [10:42:40]1206 (1) - 0 [10:42:40]OFD Sender: Remove packet 75365 [10:42:40]ProducePacketName [10:42:40]name=ofd_packets/00075365 [10:42:40]NVStorageDeleteData [10:42:40]Write to MH i2c: 01 00 00 D5 9B 70 [10:42:40]Write i2c OK [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: 01 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: 01 07 00 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: 01 07 00 D5 9B 00 00 00 00 00 B7 0C 3A [10:42:40]RasterBufferAndPrint [10:42:40]line [10:42:40]line [10:42:40]line [10:42:40]line [10:42:40]line [10:42:40]written 0, free lines is 3261 [10:42:40]MH_Cut [10:42:40]Write to MH i2c: D1 01 00 DC 9B 01 49 [10:42:40]Write i2c OK [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: D1 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: D1 01 00 [10:42:40]MH_I2C_Read... [10:42:40]Read from MH i2c: D1 01 00 DC 9B 00 48 [10:42:40]Write to MH i2c: 01 00 00 DD 9B 78 [10:42:40]Write i2c OK [10:42:40]MH_I2C_Read... [10:42:41]OFD Sender: No OFD packet to send [10:42:41]*** Cut start [10:42:41]*** Partial cut [10:42:41]*** CUTSNS_PIN = 1 [10:42:41]*** CUTSNS_PIN = 0 [10:42:41]*** Brake cut motor [10:42:42]Read from MH i2c: 01 [10:42:42]MH_I2C_Read... [10:42:42]*** Stop cut motor [10:42:42]*** Cut end [10:42:42]Read from MH i2c: 01 07 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: 01 07 00 DD 9B 00 00 00 00 00 FF 0F 8D [10:42:42]process_action close_receipt done [10:42:42]requested_data is exist [10:42:42]produce_requested_data [10:42:42]requested_item fm.sn is exist - process it [10:42:42]wFMCommunicate request_size=4 [10:42:42]MH_SAM_APDU [10:42:42]CAPDU: 80 11 00 00 [10:42:42]Write to MH i2c: E2 08 00 DE 9B 80 11 00 00 00 00 00 00 F3 [10:42:42]Write i2c OK [10:42:42]MH_I2C_Read... [10:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:42]Read from MH i2c: E2 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 17 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 17 00 DE 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 40 [10:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:42:42]wFMCommunicate OK [10:42:42]requested_item fd.num is exist - process it [10:42:42]SAM_PROTO_GetFieldsCounters [10:42:42]wFMCommunicate request_size=4 [10:42:42]MH_SAM_APDU [10:42:42]CAPDU: 80 13 00 00 [10:42:42]Write to MH i2c: E2 08 00 DF 9B 80 13 00 00 00 00 00 00 F6 [10:42:42]Write i2c OK [10:42:42]MH_I2C_Read... [10:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:42]Read from MH i2c: E2 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 62 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 62 00 DF 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 65 26 01 00 0E 04 04 00 AD 00 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 69 [10:42:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 65 26 01 00 0E 04 04 00 AD 00 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 [10:42:42]wFMCommunicate OK [10:42:42]SAM_PROTO_GetFieldsCounters done [10:42:42]requested_item shift.num is exist - process it [10:42:42]requested_item shift.opened is exist - process it [10:42:42]req_shift_opened [10:42:42]FM_GetShiftState [10:42:42]SAM_PROTO_GetShiftState [10:42:42]wFMCommunicate request_size=4 [10:42:42]MH_SAM_APDU [10:42:42]CAPDU: 80 13 01 00 [10:42:42]Write to MH i2c: E2 08 00 E0 9B 80 13 01 00 00 00 00 00 F8 [10:42:42]Write i2c OK [10:42:42]MH_I2C_Read... [10:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:42]Read from MH i2c: E2 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 0E 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 0E 00 E0 9B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5D [10:42:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:42:42]wFMCommunicate OK [10:42:42]SAM_PROTO_GetShiftState done [10:42:42]FM_GetShiftState done [10:42:42]req_shift_opened done [10:42:42]requested_item shift.open_date is exist - process it [10:42:42]req_shift_open_date [10:42:42]req_shift_open_date done [10:42:42]produce_requested_data done [10:42:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75365,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:42:42]process_action_free close_receipt [10:42:42]json_value_free [10:42:42]json_value_free done [10:42:42]process_json_proto returns [10:42:42]Send response to host [10:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75365,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:42:42]free response buf [10:42:42]execute_script done [10:42:42]execute_script returns [10:42:42]free content buf [10:42:42]Sock 7.Close socket [10:42:42]Sock 7.Thread stoped [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:12]accept exits with 9 [10:43:12]New connection [10:43:12]New thread 3067321700 created [10:43:12]Thread 3067465060 joined [10:43:12]Waiting for new connection... [10:43:12] Sock 9.Parse request [10:43:12]Sock 9.Check first char [10:43:12]Sock 9.First char is OK [10:43:12]request: POST /json_proto HTTP/1.0 [10:43:12]Method: POST [10:43:12]URL: /json_proto [10:43:12]Method is POST - this is cgi request [10:43:12]url: /json_proto [10:43:12]query_string will be loaded in cgi processing [10:43:12]execute_cgi json_proto POST (null) [10:43:12]execute_cgi path=json_proto method=POST [10:43:12]POST find Content-Length [10:43:12]Host: 172.17.44.196:8080 [10:43:12]Content-Length: 764 [10:43:12]Content-Type: application/json [10:43:12] [10:43:12]POST finish read [10:43:12]Found Content-Length = 764 [10:43:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 57.840, "sum" : 2249.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2249.98 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:12]execute_script... [10:43: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)1965339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 57.840, "sum" : 2249.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2249.98 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:12]POST & json_proto [10:43:12]process_json_proto [10:43:12]json parsed OK: [10:43:12]protocol is kg_v1.0 [10:43:12]action value=close_receipt [10:43:12]process_action close_receipt [10:43:12]cmd_close_receipt [10:43:12]MH_GetDate [10:43:12]Write to MH i2c: F0 00 00 E1 9B 6B [10:43:12]Write i2c OK [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: F0 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: F0 09 00 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: F0 09 00 E1 9B 00 47 D3 18 67 E7 19 F8 65 6A [10:43:12]GetLastDocTimeStamp 1729680165 [10:43:12]current date 1729680199 [10:43:12]FM_GetShiftState [10:43:12]SAM_PROTO_GetShiftState [10:43:12]wFMCommunicate request_size=4 [10:43:12]MH_SAM_APDU [10:43:12]CAPDU: 80 13 01 00 [10:43:12]Write to MH i2c: E2 08 00 E2 9B 80 13 01 00 00 00 00 00 FA [10:43:12]Write i2c OK [10:43:12]MH_I2C_Read... [10:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:12]Read from MH i2c: E2 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 0E 00 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 0E 00 E2 9B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5F [10:43:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:43:12]wFMCommunicate OK [10:43:12]SAM_PROTO_GetShiftState done [10:43:12]FM_GetShiftState done [10:43:12]opened in 1729642905 [10:43:12]opened+sec_in_day 1729729305 [10:43:12]quantity*price = 224997 [10:43:12]sum+1 = 224999 [10:43:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2249.98 НСП 1% : 19.91 НДС 12% : 238.94 Наличными: 0.00 Безнал.: 2249.98 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 99 23.10.2024 10:43 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75366 ФПД: 141007692390818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104319&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75366&fm=141007692390818&tin=02508201610067®Number=0000000000161154&sum=224998 [10:43:13]StoreToDocumentArchive [10:43:13]shift 173 fd 75366 [10:43:13]save to /storage/0173/doc_00075366 [10:43:13]save last doc name /storage/0173/doc_00075366 to /storage/kkm_last_doc_name [10:43:13]save OK [10:43:13]Clear old archive folders... [10:43:13]ProcessDocumentItem done err = 0, tmpTLVsize=245 [10:43:13]tlvbuf is 00D615B0 [10:43:13]SAM_PROTO_ClearQueue [10:43:13]wFMCommunicate request_size=4 [10:43:13]MH_SAM_APDU [10:43:13]CAPDU: 80 09 00 00 [10:43:13]Write to MH i2c: E2 08 00 EF 9B 80 09 00 00 00 00 00 00 FC [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:13]Read from MH i2c: E2 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 03 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 03 00 EF 9B 00 90 00 FE [10:43:13]RAPDU: 90 00 [10:43:13]wFMCommunicate OK [10:43:13]SAM_PROTO_ClearQueue done [10:43:13]KKMCreateOFDPacket [10:43:13]OFDProtocolAddRootSTLVToBuf [10:43:13]FM_MakeSignedData [10:43:13]FM_MakeSignedData [10:43:13]SAM_PROTO_SignData [10:43:13]wFMCommunicate request_size=4 [10:43:13]MH_SAM_APDU [10:43:13]CAPDU: 80 0D 01 02 [10:43:13]Write to MH i2c: E2 08 00 F0 9B 80 0D 01 02 00 00 00 00 04 [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 F0 9B 00 90 00 FF [10:43:14]RAPDU: 90 00 [10:43:14]wFMCommunicate OK [10:43:14]wFMCommunicate request_size=254 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 F0 E1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 6E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 5D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 6E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 47 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 66 26 01 00 35 04 06 00 80 3E E9 6A 61 A2 [10:43:14]Write to MH i2c: E2 01 01 F1 9B 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 F0 E1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 6E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 5D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 6E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 47 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 66 26 01 00 35 04 06 00 80 3E E9 6A 61 A2 00 00 89 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:14]Read from MH i2c: E2 03 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 F1 9B 00 90 00 00 [10:43:14]RAPDU: 90 00 [10:43:14]wFMCommunicate OK [10:43:14]wFMCommunicate request_size=4 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 0D 03 02 [10:43:14]Write to MH i2c: E2 08 00 F2 9B 80 0D 03 02 00 00 00 00 08 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 0B 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 0B 00 F2 9B 00 B9 4C BA 89 92 F7 14 6D 90 00 5B [10:43:14]RAPDU: B9 4C BA 89 92 F7 14 6D 90 00 [10:43:14]wFMCommunicate OK [10:43:14]SAM_PROTO_SignData done [10:43:14]FM_MakeSignedData done [10:43:14]CreateOFDProtocolMessage [10:43:14]wFMCommunicate request_size=4 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 11 00 00 [10:43:14]Write to MH i2c: E2 08 00 F3 9B 80 11 00 00 00 00 00 00 08 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 17 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 17 00 F3 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 55 [10:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:43:14]wFMCommunicate OK [10:43:14]CreateOFDProtocolMessage done [10:43:14]OFDSenderStorePacket 75366 [10:43:14]StoreOFDPacket docnum=75366 [10:43:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 84 04 01 01 4C 71 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 F0 E1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 6E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 5D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 6E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 47 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 66 26 01 00 35 04 06 00 80 3E E9 6A 61 A2 B9 4C BA 89 92 F7 14 6D [10:43:14]CheckFolder [10:43:14]dirname=/storage/ofd_packets [10:43:14]CheckFolder done [10:43:14]ProducePacketName [10:43:14]name=ofd_packets/00075366 [10:43:14]NVStorageSaveData ofd_packets/00075366 [10:43:14]File name is /storage/ofd_packets/00075366 [10:43:14]Write 295 bytes [10:43:14]NVStorageSaveData done [10:43:14]OFDSenderStorePacket done [10:43:14]KKMCreateOFDPacket done [10:43:14]NVStorageSaveData kkm_last_timestamp [10:43:14]File name is /storage/kkm_last_timestamp [10:43:14]Write 4 bytes [10:43:14]NVStorageSaveData done [10:43:14]ExternCall_PrintAddStr [10:43:14]wPrintStart [10:43:14]Write to MH i2c: 01 00 00 F4 9B 8F [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 07 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 07 00 F4 9B 00 00 00 00 00 FF 0F A4 [10:43:14]RasterBufferAndPrint [10:43:14]line Счет N : (1)1965339 [10:43:14]line ИНН: 02508201610067 [10:43:14]line Контрольно-Кассовый Чек [10:43:14]line ПРОДАЖА [10:43:14]line ТРК (МРК, ГНК) : 71 [10:43:14]line Товар: 2711129700 [10:43:14]line ГАЗ [10:43:14]line 57.840 * 38.90 [10:43:14]line = 2249.98 [10:43:14]line НДС 12% НСП 1% [10:43:14]line > о реализуемом товаре [10:43:14]line ИТОГО: 2249.98 [10:43:14]line НСП 1% : 19.91 [10:43:14]line НДС 12% : 238.94 [10:43:14]line Наличными: 0.00 [10:43:14]line Безнал.: 2249.98 [10:43:14]line Место: АЗС № 133 "Партнер Нефть" [10:43:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:43:14]line СНО: Общий режим [10:43:14]line Чек 99 23.10.2024 10:43 [10:43:14]line Смена: 173 ФФД: 1.0 [10:43:14]line ЗНМ: 0300000020 [10:43:14]line РНМ: 0000000000161154 [10:43:14]line Версия ККМ: v1.0 [10:43:14]line Платежная система: Mbank [10:43:14]line ФМ: 0000000000963323 [10:43:14]line ФД: 75366 [10:43:14]line ФПД: 141007692390818 [10:43:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104319&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75366&fm=141007692390818&tin=02508201610067®Number=0000000000161154&sum=224998 [10:43:14]written 0, free lines is 4095 [10:43:14]OFD Sender: Processing packet 75366 [packets to send 15, broken 14] [10:43:14]ProducePacketName [10:43:14]name=ofd_packets/00075366 [10:43:14]OFD Sender: To server: pG, [10:43:14]CommunicateWithHost lk.salyk.kg:30040 [10:43:14]ConnectInit lk.salyk.kg [10:43:14]Connected sock=10 [10:43:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 84 04 01 01 4C 71 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 F0 E1 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 6E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 5D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 6E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 47 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 66 26 01 00 35 04 06 00 80 3E E9 6A 61 A2 B9 4C BA 89 92 F7 14 6D [10:43:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E5 42 47 00 6E D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 66 26 01 00 F4 03 04 00 22 7C 18 67 B6 04 01 00 00 E4 69 ED 36 ED AF 25 5F [10:43:14]CommunicateWithHost err = 0 [10:43:14]CheckOFDResponse [10:43:14]1017 (14) - 77093643461234 [10:43:14]1041 (16) - 0000000000963323 [10:43:14]1040 (4) - 75366 [10:43:14]1012 (4) - 23.10.2024 04:31 [10:43:14]1206 (1) - 0 [10:43:14]OFD Sender: Remove packet 75366 [10:43:14]ProducePacketName [10:43:14]name=ofd_packets/00075366 [10:43:14]NVStorageDeleteData [10:43:14]Write to MH i2c: 01 00 00 1C 9C B8 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 07 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 07 00 1C 9C 00 00 00 00 00 DD 0C A8 [10:43:14]RasterBufferAndPrint [10:43:14]line [10:43:14]line [10:43:14]line [10:43:14]line [10:43:14]line [10:43:14]written 0, free lines is 3297 [10:43:14]MH_Cut [10:43:14]Write to MH i2c: D1 01 00 23 9C 01 91 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: D1 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: D1 01 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: D1 01 00 23 9C 00 90 [10:43:14]Write to MH i2c: 01 00 00 24 9C C0 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:15]OFD Sender: No OFD packet to send [10:43:15]*** Cut start [10:43:15]*** Partial cut [10:43:15]*** CUTSNS_PIN = 1 [10:43:15]*** CUTSNS_PIN = 0 [10:43:16]*** Brake cut motor [10:43:16]Read from MH i2c: 01 [10:43:16]MH_I2C_Read... [10:43:16]*** Stop cut motor [10:43:16]*** Cut end [10:43:16]Read from MH i2c: 01 07 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 07 00 24 9C 00 00 00 00 00 FF 0F D5 [10:43:16]process_action close_receipt done [10:43:16]requested_data is exist [10:43:16]produce_requested_data [10:43:16]requested_item fm.sn is exist - process it [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 11 00 00 [10:43:16]Write to MH i2c: E2 08 00 25 9C 80 11 00 00 00 00 00 00 3B [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 17 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 17 00 25 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 88 [10:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:43:16]wFMCommunicate OK [10:43:16]requested_item fd.num is exist - process it [10:43:16]SAM_PROTO_GetFieldsCounters [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 13 00 00 [10:43:16]Write to MH i2c: E2 08 00 26 9C 80 13 00 00 00 00 00 00 3E [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 62 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 62 00 26 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 66 26 01 00 0E 04 04 00 AD 00 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 B5 [10:43:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 66 26 01 00 0E 04 04 00 AD 00 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 [10:43:16]wFMCommunicate OK [10:43:16]SAM_PROTO_GetFieldsCounters done [10:43:16]requested_item shift.num is exist - process it [10:43:16]requested_item shift.opened is exist - process it [10:43:16]req_shift_opened [10:43:16]FM_GetShiftState [10:43:16]SAM_PROTO_GetShiftState [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 13 01 00 [10:43:16]Write to MH i2c: E2 08 00 27 9C 80 13 01 00 00 00 00 00 40 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 0E 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 0E 00 27 9C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A5 [10:43:16]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:43:16]wFMCommunicate OK [10:43:16]SAM_PROTO_GetShiftState done [10:43:16]FM_GetShiftState done [10:43:16]req_shift_opened done [10:43:16]requested_item shift.open_date is exist - process it [10:43:16]req_shift_open_date [10:43:16]req_shift_open_date done [10:43:16]produce_requested_data done [10:43:16]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75366,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:43:16]process_action_free close_receipt [10:43:16]json_value_free [10:43:16]json_value_free done [10:43:16]process_json_proto returns [10:43:16]Send response to host [10:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75366,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:43:16]free response buf [10:43:16]execute_script done [10:43:16]execute_script returns [10:43:16]free content buf [10:43:16]Sock 9.Close socket [10:43:16]Sock 9.Thread stoped [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:11]accept exits with 7 [10:44:11]New connection [10:44:11]New thread 3067465060 created [10:44:11]Thread 3067321700 joined [10:44:11]Waiting for new connection... [10:44:11] Sock 7.Parse request [10:44:11]Sock 7.Check first char [10:44:11]Sock 7.First char is OK [10:44:11]request: POST /json_proto HTTP/1.0 [10:44:11]Method: POST [10:44:11]URL: /json_proto [10:44:11]Method is POST - this is cgi request [10:44:11]url: /json_proto [10:44:11]query_string will be loaded in cgi processing [10:44:11]execute_cgi json_proto POST (null) [10:44:11]execute_cgi path=json_proto method=POST [10:44:11]POST find Content-Length [10:44:11]Host: 172.17.44.196:8080 [10:44:11]Content-Length: 622 [10:44:11]Content-Type: application/json [10:44:11] [10:44:11]POST finish read [10:44:11]Found Content-Length = 622 [10:44:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273223", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:11]execute_script... [10:44: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 : (3)273223", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:11]POST & json_proto [10:44:11]process_json_proto [10:44:11]json parsed OK: [10:44:11]protocol is kg_v1.0 [10:44:11]action value=close_receipt [10:44:11]process_action close_receipt [10:44:11]cmd_close_receipt [10:44:11]MH_GetDate [10:44:11]Write to MH i2c: F0 00 00 28 9C B3 [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: F0 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: F0 09 00 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: F0 09 00 28 9C 00 82 D3 18 67 E7 19 F8 65 ED [10:44:11]GetLastDocTimeStamp 1729680199 [10:44:11]current date 1729680258 [10:44:11]FM_GetShiftState [10:44:11]SAM_PROTO_GetShiftState [10:44:11]wFMCommunicate request_size=4 [10:44:11]MH_SAM_APDU [10:44:11]CAPDU: 80 13 01 00 [10:44:11]Write to MH i2c: E2 08 00 29 9C 80 13 01 00 00 00 00 00 42 [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:11]Read from MH i2c: E2 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: E2 0E 00 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: E2 0E 00 29 9C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A7 [10:44:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:44:11]wFMCommunicate OK [10:44:11]SAM_PROTO_GetShiftState done [10:44:11]FM_GetShiftState done [10:44:11]opened in 1729642905 [10:44:11]opened+sec_in_day 1729729305 [10:44:11]quantity*price = 15000 [10:44:11]sum+1 = 15001 [10:44:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 100 23.10.2024 10:44 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75367 ФПД: 179153291646804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104418&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75367&fm=179153291646804&tin=02508201610067®Number=0000000000161154&sum=15000 0 [10:44:12]StoreToDocumentArchive [10:44:12]shift 173 fd 75367 [10:44:12]save to /storage/0173/doc_00075367 [10:44:12]save last doc name /storage/0173/doc_00075367 to /storage/kkm_last_doc_name [10:44:12]save OK [10:44:12]Clear old archive folders... [10:44:12]ProcessDocumentItem done err = 0, tmpTLVsize=274 [10:44:12]tlvbuf is 00E6F490 [10:44:12]SAM_PROTO_ClearQueue [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 09 00 00 [10:44:12]Write to MH i2c: E2 08 00 36 9C 80 09 00 00 00 00 00 00 44 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 36 9C 00 90 00 46 [10:44:12]RAPDU: 90 00 [10:44:12]wFMCommunicate OK [10:44:12]SAM_PROTO_ClearQueue done [10:44:12]KKMCreateOFDPacket [10:44:12]OFDProtocolAddRootSTLVToBuf [10:44:12]FM_MakeSignedData [10:44:12]FM_MakeSignedData [10:44:12]SAM_PROTO_SignData [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 0D 01 02 [10:44:12]Write to MH i2c: E2 08 00 37 9C 80 0D 01 02 00 00 00 00 4C [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 37 9C 00 90 00 47 [10:44:12]RAPDU: 90 00 [10:44:12]wFMCommunicate OK [10:44:12]wFMCommunicate request_size=255 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 82 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 [10:44:12]Write to MH i2c: E2 02 01 38 9C 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 82 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 00 00 42 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 38 9C 00 90 00 48 [10:44:12]RAPDU: 90 00 [10:44:12]wFMCommunicate OK [10:44:12]wFMCommunicate request_size=33 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 33 33 32 33 10 04 04 00 67 26 01 00 35 04 06 00 A2 F0 60 4F 17 54 [10:44:12]Write to MH i2c: E2 24 00 39 9C 80 0D 02 02 1C 00 30 30 30 30 39 36 33 33 32 33 10 04 04 00 67 26 01 00 35 04 06 00 A2 F0 60 4F 17 54 00 00 12 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 39 9C 00 90 00 49 [10:44:12]RAPDU: 90 00 [10:44:12]wFMCommunicate OK [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 0D 03 02 [10:44:12]Write to MH i2c: E2 08 00 3A 9C 80 0D 03 02 00 00 00 00 51 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 0B 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 0B 00 3A 9C 00 54 D4 F7 28 47 6A DE 01 90 00 29 [10:44:12]RAPDU: 54 D4 F7 28 47 6A DE 01 90 00 [10:44:12]wFMCommunicate OK [10:44:12]SAM_PROTO_SignData done [10:44:12]FM_MakeSignedData done [10:44:12]CreateOFDProtocolMessage [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 11 00 00 [10:44:12]Write to MH i2c: E2 08 00 3B 9C 80 11 00 00 00 00 00 00 51 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:13]Read from MH i2c: E2 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: E2 17 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: E2 17 00 3B 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9E [10:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:44:13]wFMCommunicate OK [10:44:13]CreateOFDProtocolMessage done [10:44:13]OFDSenderStorePacket 75367 [10:44:13]StoreOFDPacket docnum=75367 [10:44:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 01 BC 1E 01 AD 44 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 82 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 67 26 01 00 35 04 06 00 A2 F0 60 4F 17 54 54 D4 F7 28 47 6A DE 01 [10:44:13]CheckFolder [10:44:13]dirname=/storage/ofd_packets [10:44:13]CheckFolder done [10:44:13]ProducePacketName [10:44:13]name=ofd_packets/00075367 [10:44:13]NVStorageSaveData ofd_packets/00075367 [10:44:13]File name is /storage/ofd_packets/00075367 [10:44:13]Write 324 bytes [10:44:13]NVStorageSaveData done [10:44:13]OFDSenderStorePacket done [10:44:13]KKMCreateOFDPacket done [10:44:13]NVStorageSaveData kkm_last_timestamp [10:44:13]File name is /storage/kkm_last_timestamp [10:44:13]Write 4 bytes [10:44:13]NVStorageSaveData done [10:44:13]ExternCall_PrintAddStr [10:44:13]wPrintStart [10:44:13]Write to MH i2c: 01 00 00 3C 9C D8 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 07 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 07 00 3C 9C 00 00 00 00 00 FF 0F ED [10:44:13]RasterBufferAndPrint [10:44:13]line Счет N : (3)273223 [10:44:13]line ИНН: 02508201610067 [10:44:13]line Контрольно-Кассовый Чек [10:44:13]line ПРОДАЖА [10:44:13]line Товар: 46230614 [10:44:13]line Сигареты Richmond Red Edition [10:44:13]line 1.000 * 150.00 [10:44:13]line = 150.00 [10:44:13]line НДС 12% НСП 1% [10:44:13]line > о реализуемом товаре [10:44:13]line ИТОГО: 150.00 [10:44:13]line НСП 1% : 1.33 [10:44:13]line НДС 12% : 15.93 [10:44:13]line Наличными: 150.00 [10:44:13]line Безнал.: 0.00 [10:44:13]line Место: АЗС № 133 "Партнер Нефть" [10:44:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:44:13]line СНО: Общий режим [10:44:13]line Чек 100 23.10.2024 10:44 [10:44:13]line Смена: 173 ФФД: 1.0 [10:44:13]line ЗНМ: 0300000020 [10:44:13]line РНМ: 0000000000161154 [10:44:13]line Версия ККМ: v1.0 [10:44:13]line ФМ: 0000000000963323 [10:44:13]line ФД: 75367 [10:44:13]line ФПД: 179153291646804 [10:44:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104418&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75367&fm=179153291646804&tin=02508201610067®Number=0000000000161154&sum=15000 [10:44:13]line 0 [10:44:13]OFD Sender: Processing packet 75367 [packets to send 15, broken 14] [10:44:13]ProducePacketName [10:44:13]name=ofd_packets/00075367 [10:44:13]OFD Sender: To server: pG, [10:44:13]CommunicateWithHost lk.salyk.kg:30040 [10:44:13]ConnectInit lk.salyk.kg [10:44:13]written 0, free lines is 4095 [10:44:13]Connected sock=10 [10:44:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 01 BC 1E 01 AD 44 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 82 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 67 26 01 00 35 04 06 00 A2 F0 60 4F 17 54 54 D4 F7 28 47 6A DE 01 [10:44:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 75 CC 47 00 6A 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 39 36 33 33 32 33 10 04 04 00 67 26 01 00 F4 03 04 00 5D 7C 18 67 B6 04 01 00 00 10 58 71 83 C6 EF F9 61 [10:44:13]CommunicateWithHost err = 0 [10:44:13]CheckOFDResponse [10:44:13]1017 (14) - 77093643461234 [10:44:13]1041 (16) - 0000000000963323 [10:44:13]1040 (4) - 75367 [10:44:13]1012 (4) - 23.10.2024 04:32 [10:44:13]1206 (1) - 0 [10:44:13]OFD Sender: Remove packet 75367 [10:44:13]ProducePacketName [10:44:13]name=ofd_packets/00075367 [10:44:13]NVStorageDeleteData [10:44:13]Write to MH i2c: 01 00 00 64 9C 00 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 07 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 07 00 64 9C 00 00 00 00 00 C8 0C DB [10:44:13]RasterBufferAndPrint [10:44:13]line [10:44:13]line [10:44:13]line [10:44:13]line [10:44:13]line [10:44:13]written 0, free lines is 3276 [10:44:13]MH_Cut [10:44:13]Write to MH i2c: D1 01 00 6B 9C 01 D9 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: D1 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: D1 01 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: D1 01 00 6B 9C 00 D8 [10:44:13]Write to MH i2c: 01 00 00 6C 9C 08 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:14]OFD Sender: No OFD packet to send [10:44:14]*** Cut start [10:44:14]*** Partial cut [10:44:14]*** CUTSNS_PIN = 1 [10:44:14]*** CUTSNS_PIN = 0 [10:44:14]*** Brake cut motor [10:44:15]Read from MH i2c: 01 [10:44:15]MH_I2C_Read... [10:44:15]*** Stop cut motor [10:44:15]*** Cut end [10:44:15]Read from MH i2c: 01 07 00 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: 01 07 00 6C 9C 00 00 00 00 00 FF 0F 1D [10:44:15]process_action close_receipt done [10:44:15]requested_data is exist [10:44:15]produce_requested_data [10:44:15]requested_item fm.sn is exist - process it [10:44:15]wFMCommunicate request_size=4 [10:44:15]MH_SAM_APDU [10:44:15]CAPDU: 80 11 00 00 [10:44:15]Write to MH i2c: E2 08 00 6D 9C 80 11 00 00 00 00 00 00 83 [10:44:15]Write i2c OK [10:44:15]MH_I2C_Read... [10:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:15]Read from MH i2c: E2 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 17 00 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 17 00 6D 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D0 [10:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:44:15]wFMCommunicate OK [10:44:15]requested_item fd.num is exist - process it [10:44:15]SAM_PROTO_GetFieldsCounters [10:44:15]wFMCommunicate request_size=4 [10:44:15]MH_SAM_APDU [10:44:15]CAPDU: 80 13 00 00 [10:44:15]Write to MH i2c: E2 08 00 6E 9C 80 13 00 00 00 00 00 00 86 [10:44:15]Write i2c OK [10:44:15]MH_I2C_Read... [10:44:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:15]Read from MH i2c: E2 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 62 00 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 62 00 6E 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 67 26 01 00 0E 04 04 00 AD 00 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 01 [10:44:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 67 26 01 00 0E 04 04 00 AD 00 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 [10:44:15]wFMCommunicate OK [10:44:15]SAM_PROTO_GetFieldsCounters done [10:44:15]requested_item shift.num is exist - process it [10:44:15]requested_item shift.opened is exist - process it [10:44:15]req_shift_opened [10:44:15]FM_GetShiftState [10:44:15]SAM_PROTO_GetShiftState [10:44:15]wFMCommunicate request_size=4 [10:44:15]MH_SAM_APDU [10:44:15]CAPDU: 80 13 01 00 [10:44:15]Write to MH i2c: E2 08 00 6F 9C 80 13 01 00 00 00 00 00 88 [10:44:15]Write i2c OK [10:44:15]MH_I2C_Read... [10:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:15]Read from MH i2c: E2 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 0E 00 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 0E 00 6F 9C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 ED [10:44:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:44:15]wFMCommunicate OK [10:44:15]SAM_PROTO_GetShiftState done [10:44:15]FM_GetShiftState done [10:44:15]req_shift_opened done [10:44:15]requested_item shift.open_date is exist - process it [10:44:15]req_shift_open_date [10:44:15]req_shift_open_date done [10:44:15]produce_requested_data done [10:44:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75367,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:44:15]process_action_free close_receipt [10:44:15]json_value_free [10:44:15]json_value_free done [10:44:15]process_json_proto returns [10:44:15]Send response to host [10:44:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75367,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:44:15]free response buf [10:44:15]execute_script done [10:44:15]execute_script returns [10:44:15]free content buf [10:44:15]Sock 7.Close socket [10:44:15]Sock 7.Thread stoped [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:25]accept exits with 9 [10:44:25]New connection [10:44:25]New thread 3067321700 created [10:44:25]Thread 3067465060 joined [10:44:25]Waiting for new connection... [10:44:25] Sock 9.Parse request [10:44:25]Sock 9.Check first char [10:44:25]Sock 9.First char is OK [10:44:25]request: POST /json_proto HTTP/1.0 [10:44:25]Method: POST [10:44:25]URL: /json_proto [10:44:25]Method is POST - this is cgi request [10:44:25]url: /json_proto [10:44:25]query_string will be loaded in cgi processing [10:44:25]execute_cgi json_proto POST (null) [10:44:25]execute_cgi path=json_proto method=POST [10:44:25]POST find Content-Length [10:44:25]Host: 172.17.44.196:8080 [10:44:25]Content-Length: 621 [10:44:25]Content-Type: application/json [10:44:25] [10:44:25]POST finish read [10:44:25]Found Content-Length = 621 [10:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273224", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:25]execute_script... [10:44:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273224", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:25]POST & json_proto [10:44:25]process_json_proto [10:44:25]json parsed OK: [10:44:25]protocol is kg_v1.0 [10:44:25]action value=close_receipt [10:44:25]process_action close_receipt [10:44:25]cmd_close_receipt [10:44:25]MH_GetDate [10:44:25]Write to MH i2c: F0 00 00 70 9C FB [10:44:25]Write i2c OK [10:44:25]MH_I2C_Read... [10:44:25]Read from MH i2c: F0 [10:44:25]MH_I2C_Read... [10:44:25]Read from MH i2c: F0 09 00 [10:44:25]MH_I2C_Read... [10:44:25]Read from MH i2c: F0 09 00 70 9C 00 90 D3 18 67 E7 19 F8 65 43 [10:44:25]GetLastDocTimeStamp 1729680258 [10:44:25]current date 1729680272 [10:44:25]FM_GetShiftState [10:44:25]SAM_PROTO_GetShiftState [10:44:25]wFMCommunicate request_size=4 [10:44:25]MH_SAM_APDU [10:44:25]CAPDU: 80 13 01 00 [10:44:25]Write to MH i2c: E2 08 00 71 9C 80 13 01 00 00 00 00 00 8A [10:44:25]Write i2c OK [10:44:25]MH_I2C_Read... [10:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:25]Read from MH i2c: E2 [10:44:25]MH_I2C_Read... [10:44:25]Read from MH i2c: E2 0E 00 [10:44:25]MH_I2C_Read... [10:44:25]Read from MH i2c: E2 0E 00 71 9C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EF [10:44:25]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:44:25]wFMCommunicate OK [10:44:25]SAM_PROTO_GetShiftState done [10:44:25]FM_GetShiftState done [10:44:25]opened in 1729642905 [10:44:25]opened+sec_in_day 1729729305 [10:44:25]quantity*price = 14000 [10:44:25]sum+1 = 14001 [10:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 101 23.10.2024 10:44 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75368 ФПД: 209153355419902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104432&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75368&fm=209153355419902&tin=02508201610067®Number=0000000000161154&sum=14000 0 [10:44:26]StoreToDocumentArchive [10:44:26]shift 173 fd 75368 [10:44:26]save to /storage/0173/doc_00075368 [10:44:26]save last doc name /storage/0173/doc_00075368 to /storage/kkm_last_doc_name [10:44:26]save OK [10:44:26]Clear old archive folders... [10:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:44:26]tlvbuf is 00FABD70 [10:44:26]SAM_PROTO_ClearQueue [10:44:26]wFMCommunicate request_size=4 [10:44:26]MH_SAM_APDU [10:44:26]CAPDU: 80 09 00 00 [10:44:26]Write to MH i2c: E2 08 00 7E 9C 80 09 00 00 00 00 00 00 8C [10:44:26]Write i2c OK [10:44:26]MH_I2C_Read... [10:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:26]Read from MH i2c: E2 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: E2 03 00 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: E2 03 00 7E 9C 00 90 00 8E [10:44:26]RAPDU: 90 00 [10:44:26]wFMCommunicate OK [10:44:26]SAM_PROTO_ClearQueue done [10:44:26]KKMCreateOFDPacket [10:44:26]OFDProtocolAddRootSTLVToBuf [10:44:26]FM_MakeSignedData [10:44:26]FM_MakeSignedData [10:44:26]SAM_PROTO_SignData [10:44:26]wFMCommunicate request_size=4 [10:44:26]MH_SAM_APDU [10:44:26]CAPDU: 80 0D 01 02 [10:44:26]Write to MH i2c: E2 08 00 7F 9C 80 0D 01 02 00 00 00 00 94 [10:44:26]Write i2c OK [10:44:26]MH_I2C_Read... [10:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:26]Read from MH i2c: E2 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: E2 03 00 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: E2 03 00 7F 9C 00 90 00 8F [10:44:26]RAPDU: 90 00 [10:44:26]wFMCommunicate OK [10:44:26]wFMCommunicate request_size=255 [10:44:26]MH_SAM_APDU [10:44:26]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 90 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [10:44:26]Write to MH i2c: E2 02 01 80 9C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 90 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 76 [10:44:26]Write i2c OK [10:44:26]MH_I2C_Read... [10:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:26]Read from MH i2c: E2 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: E2 03 00 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: E2 03 00 80 9C 00 90 00 90 [10:44:26]RAPDU: 90 00 [10:44:26]wFMCommunicate OK [10:44:26]wFMCommunicate request_size=32 [10:44:26]MH_SAM_APDU [10:44:26]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 68 26 01 00 35 04 06 00 BE 39 4F 74 10 FE [10:44:26]Write to MH i2c: E2 23 00 81 9C 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 68 26 01 00 35 04 06 00 BE 39 4F 74 10 FE 00 00 45 [10:44:26]Write i2c OK [10:44:26]MH_I2C_Read... [10:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:27]Read from MH i2c: E2 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 81 9C 00 90 00 91 [10:44:27]RAPDU: 90 00 [10:44:27]wFMCommunicate OK [10:44:27]wFMCommunicate request_size=4 [10:44:27]MH_SAM_APDU [10:44:27]CAPDU: 80 0D 03 02 [10:44:27]Write to MH i2c: E2 08 00 82 9C 80 0D 03 02 00 00 00 00 99 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:27]Read from MH i2c: E2 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 0B 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 0B 00 82 9C 00 57 A9 26 06 AF 93 71 C2 90 00 3B [10:44:27]RAPDU: 57 A9 26 06 AF 93 71 C2 90 00 [10:44:27]wFMCommunicate OK [10:44:27]SAM_PROTO_SignData done [10:44:27]FM_MakeSignedData done [10:44:27]CreateOFDProtocolMessage [10:44:27]wFMCommunicate request_size=4 [10:44:27]MH_SAM_APDU [10:44:27]CAPDU: 80 11 00 00 [10:44:27]Write to MH i2c: E2 08 00 83 9C 80 11 00 00 00 00 00 00 99 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:27]Read from MH i2c: E2 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 17 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 17 00 83 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E6 [10:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:44:27]wFMCommunicate OK [10:44:27]CreateOFDProtocolMessage done [10:44:27]OFDSenderStorePacket 75368 [10:44:27]StoreOFDPacket docnum=75368 [10:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 72 47 1D 01 C1 BA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 90 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 68 26 01 00 35 04 06 00 BE 39 4F 74 10 FE 57 A9 26 06 AF 93 71 C2 [10:44:27]CheckFolder [10:44:27]dirname=/storage/ofd_packets [10:44:27]CheckFolder done [10:44:27]ProducePacketName [10:44:27]name=ofd_packets/00075368 [10:44:27]NVStorageSaveData ofd_packets/00075368 [10:44:27]File name is /storage/ofd_packets/00075368 [10:44:27]Write 323 bytes [10:44:27]NVStorageSaveData done [10:44:27]OFDSenderStorePacket done [10:44:27]KKMCreateOFDPacket done [10:44:27]NVStorageSaveData kkm_last_timestamp [10:44:27]File name is /storage/kkm_last_timestamp [10:44:27]Write 4 bytes [10:44:27]NVStorageSaveData done [10:44:27]ExternCall_PrintAddStr [10:44:27]wPrintStart [10:44:27]Write to MH i2c: 01 00 00 84 9C 20 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: 01 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: 01 07 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: 01 07 00 84 9C 00 00 00 00 00 FF 0F 35 [10:44:27]RasterBufferAndPrint [10:44:27]line Счет N : (3)273224 [10:44:27]line ИНН: 02508201610067 [10:44:27]line Контрольно-Кассовый Чек [10:44:27]line ПРОДАЖА [10:44:27]line Товар: 48743570 [10:44:27]line Сигареты Winston XStyle Blue [10:44:27]line 1.000 * 140.00 [10:44:27]line = 140.00 [10:44:27]line НДС 12% НСП 1% [10:44:27]line > о реализуемом товаре [10:44:27]line ИТОГО: 140.00 [10:44:27]line НСП 1% : 1.24 [10:44:27]line НДС 12% : 14.87 [10:44:27]line Наличными: 140.00 [10:44:27]line Безнал.: 0.00 [10:44:27]line Место: АЗС № 133 "Партнер Нефть" [10:44:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:44:27]line СНО: Общий режим [10:44:27]line Чек 101 23.10.2024 10:44 [10:44:27]line Смена: 173 ФФД: 1.0 [10:44:27]line ЗНМ: 0300000020 [10:44:27]line РНМ: 0000000000161154 [10:44:27]line Версия ККМ: v1.0 [10:44:27]line ФМ: 0000000000963323 [10:44:27]line ФД: 75368 [10:44:27]line ФПД: 209153355419902 [10:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104432&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75368&fm=209153355419902&tin=02508201610067®Number=0000000000161154&sum=14000 [10:44:27]OFD Sender: Processing packet 75368 [packets to send 15, broken 14] [10:44:27]ProducePacketName [10:44:27]name=ofd_packets/00075368 [10:44:27]OFD Sender: To server: pG, [10:44:27]CommunicateWithHost lk.salyk.kg:30040 [10:44:27]ConnectInit lk.salyk.kg [10:44:27]line 0 [10:44:27]written 0, free lines is 4095 [10:44:27]Connected sock=10 [10:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 72 47 1D 01 C1 BA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 90 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 68 26 01 00 35 04 06 00 BE 39 4F 74 10 FE 57 A9 26 06 AF 93 71 C2 [10:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 16 E1 47 00 35 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 68 26 01 00 F4 03 04 00 6B 7C 18 67 B6 04 01 00 00 1E F9 26 EE 2A F8 3C 1F [10:44:27]CommunicateWithHost err = 0 [10:44:27]CheckOFDResponse [10:44:27]1017 (14) - 77093643461234 [10:44:27]1041 (16) - 0000000000963323 [10:44:27]1040 (4) - 75368 [10:44:27]1012 (4) - 23.10.2024 04:32 [10:44:27]1206 (1) - 0 [10:44:27]OFD Sender: Remove packet 75368 [10:44:27]ProducePacketName [10:44:27]name=ofd_packets/00075368 [10:44:27]NVStorageDeleteData [10:44:27]Write to MH i2c: 01 00 00 AB 9C 47 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: 01 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: 01 07 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: 01 07 00 AB 9C 00 00 00 00 00 FA 0C 54 [10:44:27]RasterBufferAndPrint [10:44:27]line [10:44:27]line [10:44:27]line [10:44:27]line [10:44:27]line [10:44:27]written 0, free lines is 3331 [10:44:27]MH_Cut [10:44:27]Write to MH i2c: D1 01 00 B2 9C 01 20 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: D1 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: D1 01 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: D1 01 00 B2 9C 00 1F [10:44:27]Write to MH i2c: 01 00 00 B3 9C 4F [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:28]OFD Sender: No OFD packet to send [10:44:28]*** Cut start [10:44:28]*** Partial cut [10:44:28]*** CUTSNS_PIN = 1 [10:44:28]*** CUTSNS_PIN = 0 [10:44:29]*** Brake cut motor [10:44:29]Read from MH i2c: 01 [10:44:29]MH_I2C_Read... [10:44:29]*** Stop cut motor [10:44:29]*** Cut end [10:44:29]Read from MH i2c: 01 07 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 07 00 B3 9C 00 00 00 00 00 FF 0F 64 [10:44:29]process_action close_receipt done [10:44:29]requested_data is exist [10:44:29]produce_requested_data [10:44:29]requested_item fm.sn is exist - process it [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 11 00 00 [10:44:29]Write to MH i2c: E2 08 00 B4 9C 80 11 00 00 00 00 00 00 CA [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 17 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 17 00 B4 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 17 [10:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:44:29]wFMCommunicate OK [10:44:29]requested_item fd.num is exist - process it [10:44:29]SAM_PROTO_GetFieldsCounters [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 13 00 00 [10:44:29]Write to MH i2c: E2 08 00 B5 9C 80 13 00 00 00 00 00 00 CD [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 62 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 62 00 B5 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 68 26 01 00 0E 04 04 00 AD 00 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 4C [10:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 68 26 01 00 0E 04 04 00 AD 00 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 [10:44:29]wFMCommunicate OK [10:44:29]SAM_PROTO_GetFieldsCounters done [10:44:29]requested_item shift.num is exist - process it [10:44:29]requested_item shift.opened is exist - process it [10:44:29]req_shift_opened [10:44:29]FM_GetShiftState [10:44:29]SAM_PROTO_GetShiftState [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 13 01 00 [10:44:29]Write to MH i2c: E2 08 00 B6 9C 80 13 01 00 00 00 00 00 CF [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0E 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0E 00 B6 9C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 34 [10:44:29]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:44:29]wFMCommunicate OK [10:44:29]SAM_PROTO_GetShiftState done [10:44:29]FM_GetShiftState done [10:44:29]req_shift_opened done [10:44:29]requested_item shift.open_date is exist - process it [10:44:29]req_shift_open_date [10:44:29]req_shift_open_date done [10:44:29]produce_requested_data done [10:44:29]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75368,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:44:29]process_action_free close_receipt [10:44:29]json_value_free [10:44:29]json_value_free done [10:44:29]process_json_proto returns [10:44:29]Send response to host [10:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75368,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:44:29]free response buf [10:44:29]execute_script done [10:44:29]execute_script returns [10:44:29]free content buf [10:44:29]Sock 9.Close socket [10:44:29]Sock 9.Thread stoped [10:44:30]accept exits with 7 [10:44:30]New connection [10:44:30]New thread 3067465060 created [10:44:30]Thread 3067321700 joined [10:44:30]Waiting for new connection... [10:44:30] Sock 7.Parse request [10:44:30]Sock 7.Check first char [10:44:30]Sock 7.First char is OK [10:44:30]request: POST /json_proto HTTP/1.0 [10:44:30]Method: POST [10:44:30]URL: /json_proto [10:44:30]Method is POST - this is cgi request [10:44:30]url: /json_proto [10:44:30]query_string will be loaded in cgi processing [10:44:30]execute_cgi json_proto POST (null) [10:44:30]execute_cgi path=json_proto method=POST [10:44:30]POST find Content-Length [10:44:30]Host: 172.17.44.196:8080 [10:44:30]Content-Length: 770 [10:44:30]Content-Type: application/json [10:44:30] [10:44:30]POST finish read [10:44:30]Found Content-Length = 770 [10:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:30]execute_script... [10:44: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)1965345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:30]POST & json_proto [10:44:30]process_json_proto [10:44:30]json parsed OK: [10:44:30]protocol is kg_v1.0 [10:44:30]action value=close_receipt [10:44:30]process_action close_receipt [10:44:30]cmd_close_receipt [10:44:30]MH_GetDate [10:44:30]Write to MH i2c: F0 00 00 B7 9C 42 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: F0 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: F0 09 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: F0 09 00 B7 9C 00 95 D3 18 67 E7 19 F8 65 8F [10:44:30]GetLastDocTimeStamp 1729680272 [10:44:30]current date 1729680277 [10:44:30]FM_GetShiftState [10:44:30]SAM_PROTO_GetShiftState [10:44:30]wFMCommunicate request_size=4 [10:44:30]MH_SAM_APDU [10:44:30]CAPDU: 80 13 01 00 [10:44:30]Write to MH i2c: E2 08 00 B8 9C 80 13 01 00 00 00 00 00 D1 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:30]Read from MH i2c: E2 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 0E 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 0E 00 B8 9C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 36 [10:44:30]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:44:30]wFMCommunicate OK [10:44:30]SAM_PROTO_GetShiftState done [10:44:30]FM_GetShiftState done [10:44:30]opened in 1729642905 [10:44:30]opened+sec_in_day 1729729305 [10:44:30]quantity*price = 100021 [10:44:30]sum+1 = 100023 [10:44:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 102 23.10.2024 10:44 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75369 ФПД: 164322107989603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104437&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75369&fm=164322107989603&tin=02508201610067®Number=0000000000161154&sum=100022 [10:44:31]StoreToDocumentArchive [10:44:31]shift 173 fd 75369 [10:44:31]save to /storage/0173/doc_00075369 [10:44:31]save last doc name /storage/0173/doc_00075369 to /storage/kkm_last_doc_name [10:44:31]save OK [10:44:31]Clear old archive folders... [10:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:31]tlvbuf is 00E365D0 [10:44:31]SAM_PROTO_ClearQueue [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 09 00 00 [10:44:31]Write to MH i2c: E2 08 00 C5 9C 80 09 00 00 00 00 00 00 D3 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 C5 9C 00 90 00 D5 [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]SAM_PROTO_ClearQueue done [10:44:31]KKMCreateOFDPacket [10:44:31]OFDProtocolAddRootSTLVToBuf [10:44:31]FM_MakeSignedData [10:44:31]FM_MakeSignedData [10:44:31]SAM_PROTO_SignData [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 0D 01 02 [10:44:31]Write to MH i2c: E2 08 00 C6 9C 80 0D 01 02 00 00 00 00 DB [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 C6 9C 00 90 00 D6 [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]wFMCommunicate request_size=255 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 95 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 69 26 01 00 35 04 06 00 95 [10:44:31]Write to MH i2c: E2 02 01 C7 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 95 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 69 26 01 00 35 04 06 00 95 00 00 C5 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:32]Read from MH i2c: E2 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 03 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 03 00 C7 9C 00 90 00 D7 [10:44:32]RAPDU: 90 00 [10:44:32]wFMCommunicate OK [10:44:32]wFMCommunicate request_size=10 [10:44:32]MH_SAM_APDU [10:44:32]CAPDU: 80 0D 02 02 05 73 38 E0 1E 63 [10:44:32]Write to MH i2c: E2 0D 00 C8 9C 80 0D 02 02 05 00 73 38 E0 1E 63 00 00 F4 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:32]Read from MH i2c: E2 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 03 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 03 00 C8 9C 00 90 00 D8 [10:44:32]RAPDU: 90 00 [10:44:32]wFMCommunicate OK [10:44:32]wFMCommunicate request_size=4 [10:44:32]MH_SAM_APDU [10:44:32]CAPDU: 80 0D 03 02 [10:44:32]Write to MH i2c: E2 08 00 C9 9C 80 0D 03 02 00 00 00 00 E0 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:32]Read from MH i2c: E2 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 0B 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 0B 00 C9 9C 00 8B 2D 93 01 7B B5 91 82 90 00 70 [10:44:32]RAPDU: 8B 2D 93 01 7B B5 91 82 90 00 [10:44:32]wFMCommunicate OK [10:44:32]SAM_PROTO_SignData done [10:44:32]FM_MakeSignedData done [10:44:32]CreateOFDProtocolMessage [10:44:32]wFMCommunicate request_size=4 [10:44:32]MH_SAM_APDU [10:44:32]CAPDU: 80 11 00 00 [10:44:32]Write to MH i2c: E2 08 00 CA 9C 80 11 00 00 00 00 00 00 E0 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:32]Read from MH i2c: E2 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 17 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 17 00 CA 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2D [10:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:44:32]wFMCommunicate OK [10:44:32]CreateOFDProtocolMessage done [10:44:32]OFDSenderStorePacket 75369 [10:44:32]StoreOFDPacket docnum=75369 [10:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D1 2A 07 01 DE 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 95 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 69 26 01 00 35 04 06 00 95 73 38 E0 1E 63 8B 2D 93 01 7B B5 91 82 [10:44:32]CheckFolder [10:44:32]dirname=/storage/ofd_packets [10:44:32]CheckFolder done [10:44:32]ProducePacketName [10:44:32]name=ofd_packets/00075369 [10:44:32]NVStorageSaveData ofd_packets/00075369 [10:44:32]File name is /storage/ofd_packets/00075369 [10:44:32]Write 301 bytes [10:44:32]NVStorageSaveData done [10:44:32]OFDSenderStorePacket done [10:44:32]KKMCreateOFDPacket done [10:44:32]NVStorageSaveData kkm_last_timestamp [10:44:32]File name is /storage/kkm_last_timestamp [10:44:32]Write 4 bytes [10:44:32]NVStorageSaveData done [10:44:32]ExternCall_PrintAddStr [10:44:32]wPrintStart [10:44:32]Write to MH i2c: 01 00 00 CB 9C 67 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 07 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 07 00 CB 9C 00 00 00 00 00 FF 0F 7C [10:44:32]RasterBufferAndPrint [10:44:32]line Счет N : (1)1965345 [10:44:32]line ИНН: 02508201610067 [10:44:32]line Контрольно-Кассовый Чек [10:44:32]line ПРОДАЖА [10:44:32]line ТРК (МРК, ГНК) : 54 [10:44:32]line Товар: 2710124500 [10:44:32]line Аи-95-К-5 [10:44:32]line 13.480 * 74.20 [10:44:32]line = 1000.22 [10:44:32]line НДС 12% НСП 1% [10:44:32]line > о реализуемом товаре [10:44:32]line ИТОГО: 1000.22 [10:44:32]line НСП 1% : 8.85 [10:44:32]line НДС 12% : 106.22 [10:44:32]line Наличными: 0.00 [10:44:32]line Безнал.: 1000.22 [10:44:32]line Место: АЗС № 133 "Партнер Нефть" [10:44:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:44:32]line СНО: Общий режим [10:44:32]line Чек 102 23.10.2024 10:44 [10:44:32]line Смена: 173 ФФД: 1.0 [10:44:32]line ЗНМ: 0300000020 [10:44:32]line РНМ: 0000000000161154 [10:44:32]line Версия ККМ: v1.0 [10:44:32]line Платежная система: Mbank [10:44:32]line ФМ: 0000000000963323 [10:44:32]line ФД: 75369 [10:44:32]line ФПД: 164322107989603 [10:44:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104437&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75369&fm=164322107989603&tin=02508201610067®Number=0000000000161154&sum=100022 [10:44:32]OFD Sender: Processing packet 75369 [packets to send 15, broken 14] [10:44:32]ProducePacketName [10:44:32]name=ofd_packets/00075369 [10:44:32]OFD Sender: To server: pG, [10:44:32]CommunicateWithHost lk.salyk.kg:30040 [10:44:32]ConnectInit lk.salyk.kg [10:44:32]written 0, free lines is 4095 [10:44:32]Connected sock=10 [10:44:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D1 2A 07 01 DE 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 95 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 69 26 01 00 35 04 06 00 95 73 38 E0 1E 63 8B 2D 93 01 7B B5 91 82 [10:44:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 52 88 47 00 37 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 39 36 33 33 32 33 10 04 04 00 69 26 01 00 F4 03 04 00 70 7C 18 67 B6 04 01 00 00 CF D4 71 17 44 D5 4C A6 [10:44:32]CommunicateWithHost err = 0 [10:44:32]CheckOFDResponse [10:44:32]1017 (14) - 77093643461234 [10:44:32]1041 (16) - 0000000000963323 [10:44:32]1040 (4) - 75369 [10:44:32]1012 (4) - 23.10.2024 04:32 [10:44:32]1206 (1) - 0 [10:44:32]OFD Sender: Remove packet 75369 [10:44:32]ProducePacketName [10:44:32]name=ofd_packets/00075369 [10:44:32]NVStorageDeleteData [10:44:33]Write to MH i2c: 01 00 00 F3 9C 8F [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: 01 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: 01 07 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: 01 07 00 F3 9C 00 00 00 00 00 FA 0C 9C [10:44:33]RasterBufferAndPrint [10:44:33]line [10:44:33]line [10:44:33]line [10:44:33]line [10:44:33]line [10:44:33]written 0, free lines is 3335 [10:44:33]MH_Cut [10:44:33]Write to MH i2c: D1 01 00 FA 9C 01 68 [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: D1 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: D1 01 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: D1 01 00 FA 9C 00 67 [10:44:33]Write to MH i2c: 01 00 00 FB 9C 97 [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]OFD Sender: No OFD packet to send [10:44:33]*** Cut start [10:44:33]*** Partial cut [10:44:33]*** CUTSNS_PIN = 1 [10:44:33]*** CUTSNS_PIN = 0 [10:44:34]*** Brake cut motor [10:44:34]Read from MH i2c: 01 [10:44:34]MH_I2C_Read... [10:44:34]*** Stop cut motor [10:44:34]*** Cut end [10:44:34]Read from MH i2c: 01 07 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: 01 07 00 FB 9C 00 00 00 00 00 FF 0F AC [10:44:34]process_action close_receipt done [10:44:34]requested_data is exist [10:44:34]produce_requested_data [10:44:34]requested_item fm.sn is exist - process it [10:44:34]wFMCommunicate request_size=4 [10:44:34]MH_SAM_APDU [10:44:34]CAPDU: 80 11 00 00 [10:44:34]Write to MH i2c: E2 08 00 FC 9C 80 11 00 00 00 00 00 00 12 [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 17 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 17 00 FC 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5F [10:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:44:34]wFMCommunicate OK [10:44:34]requested_item fd.num is exist - process it [10:44:34]SAM_PROTO_GetFieldsCounters [10:44:34]wFMCommunicate request_size=4 [10:44:34]MH_SAM_APDU [10:44:34]CAPDU: 80 13 00 00 [10:44:34]Write to MH i2c: E2 08 00 FD 9C 80 13 00 00 00 00 00 00 15 [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 62 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 62 00 FD 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 69 26 01 00 0E 04 04 00 AD 00 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 98 [10:44:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 69 26 01 00 0E 04 04 00 AD 00 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 [10:44:34]wFMCommunicate OK [10:44:34]SAM_PROTO_GetFieldsCounters done [10:44:34]requested_item shift.num is exist - process it [10:44:34]requested_item shift.opened is exist - process it [10:44:34]req_shift_opened [10:44:34]FM_GetShiftState [10:44:34]SAM_PROTO_GetShiftState [10:44:34]wFMCommunicate request_size=4 [10:44:34]MH_SAM_APDU [10:44:34]CAPDU: 80 13 01 00 [10:44:34]Write to MH i2c: E2 08 00 FE 9C 80 13 01 00 00 00 00 00 17 [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 0E 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 0E 00 FE 9C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7C [10:44:34]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:44:34]wFMCommunicate OK [10:44:34]SAM_PROTO_GetShiftState done [10:44:34]FM_GetShiftState done [10:44:34]req_shift_opened done [10:44:34]requested_item shift.open_date is exist - process it [10:44:34]req_shift_open_date [10:44:34]req_shift_open_date done [10:44:34]produce_requested_data done [10:44:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75369,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:44:34]process_action_free close_receipt [10:44:34]json_value_free [10:44:34]json_value_free done [10:44:34]process_json_proto returns [10:44:34]Send response to host [10:44:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75369,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:44:34]free response buf [10:44:34]execute_script done [10:44:34]execute_script returns [10:44:34]free content buf [10:44:34]Sock 7.Close socket [10:44:34]Sock 7.Thread stoped [10:44:35]accept exits with 9 [10:44:35]New connection [10:44:35]New thread 3067321700 created [10:44:35]Thread 3067465060 joined [10:44:35]Waiting for new connection... [10:44:35] Sock 9.Parse request [10:44:35]Sock 9.Check first char [10:44:35]Sock 9.First char is OK [10:44:35]request: POST /json_proto HTTP/1.0 [10:44:35]Method: POST [10:44:35]URL: /json_proto [10:44:35]Method is POST - this is cgi request [10:44:35]url: /json_proto [10:44:35]query_string will be loaded in cgi processing [10:44:35]execute_cgi json_proto POST (null) [10:44:35]execute_cgi path=json_proto method=POST [10:44:35]POST find Content-Length [10:44:35]Host: 172.17.44.196:8080 [10:44:35]Content-Length: 678 [10:44:35]Content-Type: application/json [10:44:35] [10:44:35]POST finish read [10:44:35]Found Content-Length = 678 [10:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:44:35]execute_script... [10:44: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)1965347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:44:35]POST & json_proto [10:44:35]process_json_proto [10:44:35]json parsed OK: [10:44:35]protocol is kg_v1.0 [10:44:35]action value=close_receipt [10:44:35]process_action close_receipt [10:44:35]cmd_close_receipt [10:44:35]MH_GetDate [10:44:35]Write to MH i2c: F0 00 00 FF 9C 8A [10:44:35]Write i2c OK [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: F0 [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: F0 09 00 [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: F0 09 00 FF 9C 00 9A D3 18 67 E7 19 F8 65 DC [10:44:35]GetLastDocTimeStamp 1729680277 [10:44:35]current date 1729680282 [10:44:35]FM_GetShiftState [10:44:35]SAM_PROTO_GetShiftState [10:44:35]wFMCommunicate request_size=4 [10:44:35]MH_SAM_APDU [10:44:35]CAPDU: 80 13 01 00 [10:44:35]Write to MH i2c: E2 08 00 00 9D 80 13 01 00 00 00 00 00 1A [10:44:35]Write i2c OK [10:44:35]MH_I2C_Read... [10:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:35]Read from MH i2c: E2 [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: E2 0E 00 [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: E2 0E 00 00 9D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7F [10:44:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:44:35]wFMCommunicate OK [10:44:35]SAM_PROTO_GetShiftState done [10:44:35]FM_GetShiftState done [10:44:35]opened in 1729642905 [10:44:35]opened+sec_in_day 1729729305 [10:44:35]quantity*price = 60009 [10:44:35]sum+1 = 60010 [10:44:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 103 23.10.2024 10:44 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75370 ФПД: 210717888560634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104442&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75370&fm=210717888560634&tin=02508201610067®Number=0000000000161154&sum=60000 [10:44:36]StoreToDocumentArchive [10:44:36]shift 173 fd 75370 [10:44:36]save to /storage/0173/doc_00075370 [10:44:36]save last doc name /storage/0173/doc_00075370 to /storage/kkm_last_doc_name [10:44:36]save OK [10:44:36]Clear old archive folders... [10:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:36]tlvbuf is 00F913D0 [10:44:36]SAM_PROTO_ClearQueue [10:44:36]wFMCommunicate request_size=4 [10:44:36]MH_SAM_APDU [10:44:36]CAPDU: 80 09 00 00 [10:44:36]Write to MH i2c: E2 08 00 0D 9D 80 09 00 00 00 00 00 00 1C [10:44:36]Write i2c OK [10:44:36]MH_I2C_Read... [10:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:36]Read from MH i2c: E2 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 03 00 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 03 00 0D 9D 00 90 00 1E [10:44:36]RAPDU: 90 00 [10:44:36]wFMCommunicate OK [10:44:36]SAM_PROTO_ClearQueue done [10:44:36]KKMCreateOFDPacket [10:44:36]OFDProtocolAddRootSTLVToBuf [10:44:36]FM_MakeSignedData [10:44:36]FM_MakeSignedData [10:44:36]SAM_PROTO_SignData [10:44:36]wFMCommunicate request_size=4 [10:44:36]MH_SAM_APDU [10:44:36]CAPDU: 80 0D 01 02 [10:44:36]Write to MH i2c: E2 08 00 0E 9D 80 0D 01 02 00 00 00 00 24 [10:44:36]Write i2c OK [10:44:36]MH_I2C_Read... [10:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:36]Read from MH i2c: E2 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 03 00 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 03 00 0E 9D 00 90 00 1F [10:44:36]RAPDU: 90 00 [10:44:36]wFMCommunicate OK [10:44:36]wFMCommunicate request_size=255 [10:44:36]MH_SAM_APDU [10:44: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 67 00 00 00 F4 03 04 00 9A D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6A 26 01 00 35 04 06 00 BF [10:44:36]Write to MH i2c: E2 02 01 0F 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 67 00 00 00 F4 03 04 00 9A D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6A 26 01 00 35 04 06 00 BF 00 00 D3 [10:44:36]Write i2c OK [10:44:36]MH_I2C_Read... [10:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:36]Read from MH i2c: E2 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 03 00 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 03 00 0F 9D 00 90 00 20 [10:44:36]RAPDU: 90 00 [10:44:36]wFMCommunicate OK [10:44:36]wFMCommunicate request_size=10 [10:44:36]MH_SAM_APDU [10:44:36]CAPDU: 80 0D 02 02 05 A5 94 E5 3D FA [10:44:36]Write to MH i2c: E2 0D 00 10 9D 80 0D 02 02 05 00 A5 94 E5 3D FA 00 00 86 [10:44:36]Write i2c OK [10:44:36]MH_I2C_Read... [10:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:36]Read from MH i2c: E2 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 03 00 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 03 00 10 9D 00 90 00 21 [10:44:37]RAPDU: 90 00 [10:44:37]wFMCommunicate OK [10:44:37]wFMCommunicate request_size=4 [10:44:37]MH_SAM_APDU [10:44:37]CAPDU: 80 0D 03 02 [10:44:37]Write to MH i2c: E2 08 00 11 9D 80 0D 03 02 00 00 00 00 29 [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:37]Read from MH i2c: E2 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: E2 0B 00 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: E2 0B 00 11 9D 00 DE E7 3B 78 13 FC 34 8C 90 00 71 [10:44:37]RAPDU: DE E7 3B 78 13 FC 34 8C 90 00 [10:44:37]wFMCommunicate OK [10:44:37]SAM_PROTO_SignData done [10:44:37]FM_MakeSignedData done [10:44:37]CreateOFDProtocolMessage [10:44:37]wFMCommunicate request_size=4 [10:44:37]MH_SAM_APDU [10:44:37]CAPDU: 80 11 00 00 [10:44:37]Write to MH i2c: E2 08 00 12 9D 80 11 00 00 00 00 00 00 29 [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:37]Read from MH i2c: E2 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: E2 17 00 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: E2 17 00 12 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 76 [10:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:44:37]wFMCommunicate OK [10:44:37]CreateOFDProtocolMessage done [10:44:37]OFDSenderStorePacket 75370 [10:44:37]StoreOFDPacket docnum=75370 [10:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4A 6C 07 01 80 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 67 00 00 00 F4 03 04 00 9A D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6A 26 01 00 35 04 06 00 BF A5 94 E5 3D FA DE E7 3B 78 13 FC 34 8C [10:44:37]CheckFolder [10:44:37]dirname=/storage/ofd_packets [10:44:37]CheckFolder done [10:44:37]ProducePacketName [10:44:37]name=ofd_packets/00075370 [10:44:37]NVStorageSaveData ofd_packets/00075370 [10:44:37]File name is /storage/ofd_packets/00075370 [10:44:37]Write 301 bytes [10:44:37]NVStorageSaveData done [10:44:37]OFDSenderStorePacket done [10:44:37]KKMCreateOFDPacket done [10:44:37]NVStorageSaveData kkm_last_timestamp [10:44:37]File name is /storage/kkm_last_timestamp [10:44:37]Write 4 bytes [10:44:37]NVStorageSaveData done [10:44:37]ExternCall_PrintAddStr [10:44:37]wPrintStart [10:44:37]Write to MH i2c: 01 00 00 13 9D B0 [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 07 00 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 07 00 13 9D 00 00 00 00 00 FF 0F C5 [10:44:37]RasterBufferAndPrint [10:44:37]line Счет N : (1)1965347 [10:44:37]line ИНН: 02508201610067 [10:44:37]line Контрольно-Кассовый Чек [10:44:37]line ПРОДАЖА [10:44:37]line ТРК (МРК, ГНК) : 43 [10:44:37]line Товар: 2710124130 [10:44:37]line Аи-92-К-5 [10:44:37]line 8.970 * 66.90 [10:44:37]line = 600.09 [10:44:37]line НДС 12% НСП 1% [10:44:37]line > о реализуемом товаре [10:44:37]line ОКРУГЛЕНИЕ: -0.09 [10:44:37]line ИТОГО: 600.00 [10:44:37]line Внесено: 600.00 [10:44:37]line СДАЧА: 0.00 [10:44:37]line НСП 1% : 5.31 [10:44:37]line НДС 12% : 63.73 [10:44:37]line Наличными: 600.00 [10:44:37]line Безнал.: 0.00 [10:44:37]line Место: АЗС № 133 "Партнер Нефть" [10:44:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:44:37]line СНО: Общий режим [10:44:37]line Чек 103 23.10.2024 10:44 [10:44:37]line Смена: 173 ФФД: 1.0 [10:44:37]line ЗНМ: 0300000020 [10:44:37]line РНМ: 0000000000161154 [10:44:37]line Версия ККМ: v1.0 [10:44:37]line ФМ: 0000000000963323 [10:44:37]line ФД: 75370 [10:44:37]line ФПД: 210717888560634 [10:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104442&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75370&fm=210717888560634&tin=02508201610067®Number=0000000000161154&sum=60000 [10:44:37]written 0, free lines is 4095 [10:44:37]OFD Sender: Processing packet 75370 [packets to send 15, broken 14] [10:44:37]ProducePacketName [10:44:37]name=ofd_packets/00075370 [10:44:37]OFD Sender: To server: pG, [10:44:37]CommunicateWithHost lk.salyk.kg:30040 [10:44:37]ConnectInit lk.salyk.kg [10:44:37]Connected sock=10 [10:44:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4A 6C 07 01 80 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 67 00 00 00 F4 03 04 00 9A D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6A 26 01 00 35 04 06 00 BF A5 94 E5 3D FA DE E7 3B 78 13 FC 34 8C [10:44:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3A 51 47 00 07 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6A 26 01 00 F4 03 04 00 75 7C 18 67 B6 04 01 00 00 F6 43 10 E0 D4 28 D7 C2 [10:44:37]CommunicateWithHost err = 0 [10:44:37]CheckOFDResponse [10:44:37]1017 (14) - 77093643461234 [10:44:37]1041 (16) - 0000000000963323 [10:44:37]1040 (4) - 75370 [10:44:37]1012 (4) - 23.10.2024 04:32 [10:44:37]1206 (1) - 0 [10:44:37]OFD Sender: Remove packet 75370 [10:44:37]ProducePacketName [10:44:37]name=ofd_packets/00075370 [10:44:37]NVStorageDeleteData [10:44:37]Write to MH i2c: 01 00 00 3D 9D DA [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 07 00 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: 01 07 00 3D 9D 00 00 00 00 00 26 0D 14 [10:44:37]RasterBufferAndPrint [10:44:37]line [10:44:37]line [10:44:37]line [10:44:37]line [10:44:37]line [10:44:37]written 0, free lines is 3389 [10:44:37]MH_Cut [10:44:37]Write to MH i2c: D1 01 00 44 9D 01 B3 [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: D1 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: D1 01 00 [10:44:37]MH_I2C_Read... [10:44:37]Read from MH i2c: D1 01 00 44 9D 00 B2 [10:44:37]Write to MH i2c: 01 00 00 45 9D E2 [10:44:37]Write i2c OK [10:44:37]MH_I2C_Read... [10:44:38]OFD Sender: No OFD packet to send [10:44:38]*** Cut start [10:44:38]*** Partial cut [10:44:38]*** CUTSNS_PIN = 1 [10:44:38]*** CUTSNS_PIN = 0 [10:44:38]*** Brake cut motor [10:44:39]Read from MH i2c: 01 [10:44:39]MH_I2C_Read... [10:44:39]*** Stop cut motor [10:44:39]*** Cut end [10:44:39]Read from MH i2c: 01 07 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 07 00 45 9D 00 00 00 00 00 FF 0F F7 [10:44:39]process_action close_receipt done [10:44:39]requested_data is exist [10:44:39]produce_requested_data [10:44:39]requested_item fm.sn is exist - process it [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 11 00 00 [10:44:39]Write to MH i2c: E2 08 00 46 9D 80 11 00 00 00 00 00 00 5D [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 17 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 17 00 46 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AA [10:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:44:39]wFMCommunicate OK [10:44:39]requested_item fd.num is exist - process it [10:44:39]SAM_PROTO_GetFieldsCounters [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 13 00 00 [10:44:39]Write to MH i2c: E2 08 00 47 9D 80 13 00 00 00 00 00 00 60 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 62 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 62 00 47 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6A 26 01 00 0E 04 04 00 AD 00 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 E7 [10:44:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6A 26 01 00 0E 04 04 00 AD 00 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 [10:44:39]wFMCommunicate OK [10:44:39]SAM_PROTO_GetFieldsCounters done [10:44:39]requested_item shift.num is exist - process it [10:44:39]requested_item shift.opened is exist - process it [10:44:39]req_shift_opened [10:44:39]FM_GetShiftState [10:44:39]SAM_PROTO_GetShiftState [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 13 01 00 [10:44:39]Write to MH i2c: E2 08 00 48 9D 80 13 01 00 00 00 00 00 62 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 0E 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 0E 00 48 9D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C7 [10:44:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:44:39]wFMCommunicate OK [10:44:39]SAM_PROTO_GetShiftState done [10:44:39]FM_GetShiftState done [10:44:39]req_shift_opened done [10:44:39]requested_item shift.open_date is exist - process it [10:44:39]req_shift_open_date [10:44:39]req_shift_open_date done [10:44:39]produce_requested_data done [10:44:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75370,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:44:39]process_action_free close_receipt [10:44:39]json_value_free [10:44:39]json_value_free done [10:44:39]process_json_proto returns [10:44:39]Send response to host [10:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75370,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:44:39]free response buf [10:44:39]execute_script done [10:44:39]execute_script returns [10:44:39]free content buf [10:44:39]Sock 9.Close socket [10:44:39]Sock 9.Thread stoped [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:03]accept exits with 7 [10:45:03]New connection [10:45:03]New thread 3067465060 created [10:45:03]Thread 3067321700 joined [10:45:03]Waiting for new connection... [10:45:03] Sock 7.Parse request [10:45:03]Sock 7.Check first char [10:45:03]Sock 7.First char is OK [10:45:03]request: POST /json_proto HTTP/1.0 [10:45:03]Method: POST [10:45:03]URL: /json_proto [10:45:03]Method is POST - this is cgi request [10:45:03]url: /json_proto [10:45:03]query_string will be loaded in cgi processing [10:45:03]execute_cgi json_proto POST (null) [10:45:03]execute_cgi path=json_proto method=POST [10:45:03]POST find Content-Length [10:45:03]Host: 172.17.44.196:8080 [10:45:03]Content-Length: 629 [10:45:03]Content-Type: application/json [10:45:03] [10:45:03]POST finish read [10:45:03]Found Content-Length = 629 [10:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273225", "tax_sys" : 0, "items" : [ { "code": "48745307", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Soho Compact Mix", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:03]execute_script... [10:45:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273225", "tax_sys" : 0, "items" : [ { "code": "48745307", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Soho Compact Mix", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:03]POST & json_proto [10:45:03]process_json_proto [10:45:03]json parsed OK: [10:45:03]protocol is kg_v1.0 [10:45:03]action value=close_receipt [10:45:03]process_action close_receipt [10:45:03]cmd_close_receipt [10:45:03]MH_GetDate [10:45:03]Write to MH i2c: F0 00 00 49 9D D5 [10:45:03]Write i2c OK [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: F0 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: F0 09 00 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: F0 09 00 49 9D 00 B6 D3 18 67 E7 19 F8 65 43 [10:45:03]GetLastDocTimeStamp 1729680282 [10:45:03]current date 1729680310 [10:45:03]FM_GetShiftState [10:45:03]SAM_PROTO_GetShiftState [10:45:03]wFMCommunicate request_size=4 [10:45:03]MH_SAM_APDU [10:45:03]CAPDU: 80 13 01 00 [10:45:03]Write to MH i2c: E2 08 00 4A 9D 80 13 01 00 00 00 00 00 64 [10:45:03]Write i2c OK [10:45:03]MH_I2C_Read... [10:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:03]Read from MH i2c: E2 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: E2 0E 00 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: E2 0E 00 4A 9D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C9 [10:45:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:45:03]wFMCommunicate OK [10:45:03]SAM_PROTO_GetShiftState done [10:45:03]FM_GetShiftState done [10:45:03]opened in 1729642905 [10:45:03]opened+sec_in_day 1729729305 [10:45:03]quantity*price = 26000 [10:45:03]sum+1 = 26001 [10:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 104 23.10.2024 10:45 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75371 ФПД: 94174859415841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104510&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75371&fm=94174859415841&tin=02508201610067®Number=0000000000161154&sum=26000 0 [10:45:04]StoreToDocumentArchive [10:45:04]shift 173 fd 75371 [10:45:04]save to /storage/0173/doc_00075371 [10:45:04]save last doc name /storage/0173/doc_00075371 to /storage/kkm_last_doc_name [10:45:04]save OK [10:45:04]Clear old archive folders... [10:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=281 [10:45:04]tlvbuf is 00F8ECE0 [10:45:04]SAM_PROTO_ClearQueue [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 09 00 00 [10:45:04]Write to MH i2c: E2 08 00 57 9D 80 09 00 00 00 00 00 00 66 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 57 9D 00 90 00 68 [10:45:04]RAPDU: 90 00 [10:45:04]wFMCommunicate OK [10:45:04]SAM_PROTO_ClearQueue done [10:45:04]KKMCreateOFDPacket [10:45:04]OFDProtocolAddRootSTLVToBuf [10:45:04]FM_MakeSignedData [10:45:04]FM_MakeSignedData [10:45:04]SAM_PROTO_SignData [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 0D 01 02 [10:45:04]Write to MH i2c: E2 08 00 58 9D 80 0D 01 02 00 00 00 00 6E [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 58 9D 00 90 00 69 [10:45:04]RAPDU: 90 00 [10:45:04]wFMCommunicate OK [10:45:04]wFMCommunicate request_size=255 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B6 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 [10:45:04]Write to MH i2c: E2 02 01 59 9D 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B6 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 AF [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:05]Read from MH i2c: E2 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 03 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 03 00 59 9D 00 90 00 6A [10:45:05]RAPDU: 90 00 [10:45:05]wFMCommunicate OK [10:45:05]wFMCommunicate request_size=40 [10:45:05]MH_SAM_APDU [10:45:05]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6B 26 01 00 35 04 06 00 55 A6 CB 0A D1 21 [10:45:05]Write to MH i2c: E2 2B 00 5A 9D 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6B 26 01 00 35 04 06 00 55 A6 CB 0A D1 21 00 00 7C [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:05]Read from MH i2c: E2 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 03 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 03 00 5A 9D 00 90 00 6B [10:45:05]RAPDU: 90 00 [10:45:05]wFMCommunicate OK [10:45:05]wFMCommunicate request_size=4 [10:45:05]MH_SAM_APDU [10:45:05]CAPDU: 80 0D 03 02 [10:45:05]Write to MH i2c: E2 08 00 5B 9D 80 0D 03 02 00 00 00 00 73 [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:05]Read from MH i2c: E2 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 0B 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 0B 00 5B 9D 00 E2 E2 F8 56 CE 72 E2 49 90 00 F1 [10:45:05]RAPDU: E2 E2 F8 56 CE 72 E2 49 90 00 [10:45:05]wFMCommunicate OK [10:45:05]SAM_PROTO_SignData done [10:45:05]FM_MakeSignedData done [10:45:05]CreateOFDProtocolMessage [10:45:05]wFMCommunicate request_size=4 [10:45:05]MH_SAM_APDU [10:45:05]CAPDU: 80 11 00 00 [10:45:05]Write to MH i2c: E2 08 00 5C 9D 80 11 00 00 00 00 00 00 73 [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:05]Read from MH i2c: E2 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 17 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 17 00 5C 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C0 [10:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:45:05]wFMCommunicate OK [10:45:05]CreateOFDProtocolMessage done [10:45:05]OFDSenderStorePacket 75371 [10:45:05]StoreOFDPacket docnum=75371 [10:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2D 01 00 00 7D 20 25 01 A7 7B 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B6 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6B 26 01 00 35 04 06 00 55 A6 CB 0A D1 21 E2 E2 F8 56 CE 72 E2 49 [10:45:05]CheckFolder [10:45:05]dirname=/storage/ofd_packets [10:45:05]CheckFolder done [10:45:05]ProducePacketName [10:45:05]name=ofd_packets/00075371 [10:45:05]NVStorageSaveData ofd_packets/00075371 [10:45:05]File name is /storage/ofd_packets/00075371 [10:45:05]Write 331 bytes [10:45:05]NVStorageSaveData done [10:45:05]OFDSenderStorePacket done [10:45:05]KKMCreateOFDPacket done [10:45:05]NVStorageSaveData kkm_last_timestamp [10:45:05]File name is /storage/kkm_last_timestamp [10:45:05]Write 4 bytes [10:45:05]NVStorageSaveData done [10:45:05]ExternCall_PrintAddStr [10:45:05]wPrintStart [10:45:05]Write to MH i2c: 01 00 00 5D 9D FA [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: 01 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: 01 07 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: 01 07 00 5D 9D 00 00 00 00 00 FF 0F 0F [10:45:05]RasterBufferAndPrint [10:45:05]line Счет N : (3)273225 [10:45:05]line ИНН: 02508201610067 [10:45:05]line Контрольно-Кассовый Чек [10:45:05]line ПРОДАЖА [10:45:05]line Товар: 48745307 [10:45:05]line Сигареты Parliament Soho Compact Mix [10:45:05]line 2.000 * 130.00 [10:45:05]line = 260.00 [10:45:05]line НДС 12% НСП 1% [10:45:05]line > о реализуемом товаре [10:45:05]line ИТОГО: 260.00 [10:45:05]line НСП 1% : 2.30 [10:45:05]line НДС 12% : 27.61 [10:45:05]line Наличными: 260.00 [10:45:05]line Безнал.: 0.00 [10:45:05]line Место: АЗС № 133 "Партнер Нефть" [10:45:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:45:05]line СНО: Общий режим [10:45:05]line Чек 104 23.10.2024 10:45 [10:45:05]line Смена: 173 ФФД: 1.0 [10:45:05]line ЗНМ: 0300000020 [10:45:05]line РНМ: 0000000000161154 [10:45:05]line Версия ККМ: v1.0 [10:45:05]line ФМ: 0000000000963323 [10:45:05]line ФД: 75371 [10:45:05]line ФПД: 94174859415841 [10:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104510&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75371&fm=94174859415841&tin=02508201610067®Number=0000000000161154&sum=26000 [10:45:05]line 0 [10:45:05]written 0, free lines is 4095 [10:45:05]OFD Sender: Processing packet 75371 [packets to send 15, broken 14] [10:45:05]ProducePacketName [10:45:05]name=ofd_packets/00075371 [10:45:05]OFD Sender: To server: pG, [10:45:05]CommunicateWithHost lk.salyk.kg:30040 [10:45:05]ConnectInit lk.salyk.kg [10:45:05]Connected sock=11 [10:45:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2D 01 00 00 7D 20 25 01 A7 7B 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B6 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6B 26 01 00 35 04 06 00 55 A6 CB 0A D1 21 E2 E2 F8 56 CE 72 E2 49 [10:45:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EF EB 47 00 9E 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6B 26 01 00 F4 03 04 00 91 7C 18 67 B6 04 01 00 00 43 3A EE D5 CB 02 59 15 [10:45:05]CommunicateWithHost err = 0 [10:45:05]CheckOFDResponse [10:45:05]1017 (14) - 77093643461234 [10:45:05]1041 (16) - 0000000000963323 [10:45:05]1040 (4) - 75371 [10:45:05]1012 (4) - 23.10.2024 04:33 [10:45:05]1206 (1) - 0 [10:45:05]OFD Sender: Remove packet 75371 [10:45:05]ProducePacketName [10:45:05]name=ofd_packets/00075371 [10:45:05]NVStorageDeleteData [10:45:05]Write to MH i2c: 01 00 00 85 9D 22 [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: 01 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: 01 07 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: 01 07 00 85 9D 00 00 00 00 00 E6 0C 1B [10:45:05]RasterBufferAndPrint [10:45:05]line [10:45:05]line [10:45:05]line [10:45:05]line [10:45:05]line [10:45:05]written 0, free lines is 3312 [10:45:05]MH_Cut [10:45:05]Write to MH i2c: D1 01 00 8C 9D 01 FB [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: D1 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: D1 01 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: D1 01 00 8C 9D 00 FA [10:45:05]Write to MH i2c: 01 00 00 8D 9D 2A [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:06]OFD Sender: No OFD packet to send [10:45:06]*** Cut start [10:45:06]*** Partial cut [10:45:06]*** CUTSNS_PIN = 1 [10:45:06]*** CUTSNS_PIN = 0 [10:45:06]*** Brake cut motor [10:45:07]Read from MH i2c: 01 [10:45:07]MH_I2C_Read... [10:45:07]*** Stop cut motor [10:45:07]*** Cut end [10:45:07]Read from MH i2c: 01 07 00 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: 01 07 00 8D 9D 00 00 00 00 00 FF 0F 3F [10:45:07]process_action close_receipt done [10:45:07]requested_data is exist [10:45:07]produce_requested_data [10:45:07]requested_item fm.sn is exist - process it [10:45:07]wFMCommunicate request_size=4 [10:45:07]MH_SAM_APDU [10:45:07]CAPDU: 80 11 00 00 [10:45:07]Write to MH i2c: E2 08 00 8E 9D 80 11 00 00 00 00 00 00 A5 [10:45:07]Write i2c OK [10:45:07]MH_I2C_Read... [10:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:07]Read from MH i2c: E2 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: E2 17 00 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: E2 17 00 8E 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F2 [10:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:45:07]wFMCommunicate OK [10:45:07]requested_item fd.num is exist - process it [10:45:07]SAM_PROTO_GetFieldsCounters [10:45:07]wFMCommunicate request_size=4 [10:45:07]MH_SAM_APDU [10:45:07]CAPDU: 80 13 00 00 [10:45:07]Write to MH i2c: E2 08 00 8F 9D 80 13 00 00 00 00 00 00 A8 [10:45:07]Write i2c OK [10:45:07]MH_I2C_Read... [10:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:07]Read from MH i2c: E2 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: E2 62 00 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: E2 62 00 8F 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6B 26 01 00 0E 04 04 00 AD 00 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 33 [10:45:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6B 26 01 00 0E 04 04 00 AD 00 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 [10:45:07]wFMCommunicate OK [10:45:07]SAM_PROTO_GetFieldsCounters done [10:45:07]requested_item shift.num is exist - process it [10:45:07]requested_item shift.opened is exist - process it [10:45:07]req_shift_opened [10:45:07]FM_GetShiftState [10:45:07]SAM_PROTO_GetShiftState [10:45:07]wFMCommunicate request_size=4 [10:45:07]MH_SAM_APDU [10:45:07]CAPDU: 80 13 01 00 [10:45:07]Write to MH i2c: E2 08 00 90 9D 80 13 01 00 00 00 00 00 AA [10:45:07]Write i2c OK [10:45:07]MH_I2C_Read... [10:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:07]Read from MH i2c: E2 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: E2 0E 00 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: E2 0E 00 90 9D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 0F [10:45:07]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:45:07]wFMCommunicate OK [10:45:07]SAM_PROTO_GetShiftState done [10:45:07]FM_GetShiftState done [10:45:07]req_shift_opened done [10:45:07]requested_item shift.open_date is exist - process it [10:45:07]req_shift_open_date [10:45:07]req_shift_open_date done [10:45:07]produce_requested_data done [10:45:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75371,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:45:07]process_action_free close_receipt [10:45:07]json_value_free [10:45:07]json_value_free done [10:45:07]process_json_proto returns [10:45:07]Send response to host [10:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75371,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:45:07]free response buf [10:45:07]execute_script done [10:45:07]execute_script returns [10:45:07]free content buf [10:45:07]Sock 7.Close socket [10:45:07]Sock 7.Thread stoped [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:28]accept exits with 9 [10:45:28]New connection [10:45:28]New thread 3067321700 created [10:45:28]Thread 3067465060 joined [10:45:28]Waiting for new connection... [10:45:28] Sock 9.Parse request [10:45:28]Sock 9.Check first char [10:45:28]Sock 9.First char is OK [10:45:28]request: POST /json_proto HTTP/1.0 [10:45:28]Method: POST [10:45:28]URL: /json_proto [10:45:28]Method is POST - this is cgi request [10:45:28]url: /json_proto [10:45:28]query_string will be loaded in cgi processing [10:45:28]execute_cgi json_proto POST (null) [10:45:28]execute_cgi path=json_proto method=POST [10:45:28]POST find Content-Length [10:45:28]Host: 172.17.44.196:8080 [10:45:28]Content-Length: 680 [10:45:28]Content-Type: application/json [10:45:28] [10:45:28]POST finish read [10:45:28]Found Content-Length = 680 [10:45:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.850, "sum" : 1360.17, "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" ] } } [10:45:28]execute_script... [10:45: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)1965348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.850, "sum" : 1360.17, "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" ] } } [10:45:28]POST & json_proto [10:45:28]process_json_proto [10:45:28]json parsed OK: [10:45:28]protocol is kg_v1.0 [10:45:28]action value=close_receipt [10:45:28]process_action close_receipt [10:45:28]cmd_close_receipt [10:45:28]MH_GetDate [10:45:28]Write to MH i2c: F0 00 00 91 9D 1D [10:45:28]Write i2c OK [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: F0 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: F0 09 00 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: F0 09 00 91 9D 00 CF D3 18 67 E7 19 F8 65 A4 [10:45:28]GetLastDocTimeStamp 1729680310 [10:45:28]current date 1729680335 [10:45:28]FM_GetShiftState [10:45:28]SAM_PROTO_GetShiftState [10:45:28]wFMCommunicate request_size=4 [10:45:28]MH_SAM_APDU [10:45:28]CAPDU: 80 13 01 00 [10:45:28]Write to MH i2c: E2 08 00 92 9D 80 13 01 00 00 00 00 00 AC [10:45:28]Write i2c OK [10:45:28]MH_I2C_Read... [10:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:28]Read from MH i2c: E2 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: E2 0E 00 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: E2 0E 00 92 9D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 11 [10:45:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:45:28]wFMCommunicate OK [10:45:28]SAM_PROTO_GetShiftState done [10:45:28]FM_GetShiftState done [10:45:28]opened in 1729642905 [10:45:28]opened+sec_in_day 1729729305 [10:45:28]quantity*price = 136017 [10:45:28]sum+1 = 136018 [10:45:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1360.00 Внесено: 1360.00 СДАЧА: 0.00 НСП 1% : 12.04 НДС 12% : 144.44 Наличными: 1360.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 105 23.10.2024 10:45 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75372 ФПД: 90429991746340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104535&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75372&fm=90429991746340&tin=02508201610067®Number=0000000000161154&sum=136000 [10:45:29]StoreToDocumentArchive [10:45:29]shift 173 fd 75372 [10:45:29]save to /storage/0173/doc_00075372 [10:45:29]save last doc name /storage/0173/doc_00075372 to /storage/kkm_last_doc_name [10:45:29]save OK [10:45:29]Clear old archive folders... [10:45:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:45:29]tlvbuf is 00E1D3C0 [10:45:29]SAM_PROTO_ClearQueue [10:45:29]wFMCommunicate request_size=4 [10:45:29]MH_SAM_APDU [10:45:29]CAPDU: 80 09 00 00 [10:45:29]Write to MH i2c: E2 08 00 9F 9D 80 09 00 00 00 00 00 00 AE [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:29]Read from MH i2c: E2 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 03 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 03 00 9F 9D 00 90 00 B0 [10:45:29]RAPDU: 90 00 [10:45:29]wFMCommunicate OK [10:45:29]SAM_PROTO_ClearQueue done [10:45:29]KKMCreateOFDPacket [10:45:29]OFDProtocolAddRootSTLVToBuf [10:45:29]FM_MakeSignedData [10:45:29]FM_MakeSignedData [10:45:29]SAM_PROTO_SignData [10:45:29]wFMCommunicate request_size=4 [10:45:29]MH_SAM_APDU [10:45:29]CAPDU: 80 0D 01 02 [10:45:29]Write to MH i2c: E2 08 00 A0 9D 80 0D 01 02 00 00 00 00 B6 [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:29]Read from MH i2c: E2 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 03 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 03 00 A0 9D 00 90 00 B1 [10:45:29]RAPDU: 90 00 [10:45:29]wFMCommunicate OK [10:45:29]wFMCommunicate request_size=255 [10:45:29]MH_SAM_APDU [10:45:29]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 BA 45 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 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 6C 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 69 00 00 00 F4 03 04 00 CF D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6C 26 01 00 35 04 06 00 52 3E DF 88 [10:45:29]Write to MH i2c: E2 02 01 A1 9D 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 BA 45 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 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 6C 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 69 00 00 00 F4 03 04 00 CF D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6C 26 01 00 35 04 06 00 52 3E DF 88 00 00 13 [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:29]Read from MH i2c: E2 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 03 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 03 00 A1 9D 00 90 00 B2 [10:45:29]RAPDU: 90 00 [10:45:29]wFMCommunicate OK [10:45:29]wFMCommunicate request_size=7 [10:45:29]MH_SAM_APDU [10:45:29]CAPDU: 80 0D 02 02 02 FB 24 [10:45:29]Write to MH i2c: E2 0A 00 A2 9D 80 0D 02 02 02 00 FB 24 00 00 DC [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:29]Read from MH i2c: E2 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 03 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 03 00 A2 9D 00 90 00 B3 [10:45:29]RAPDU: 90 00 [10:45:29]wFMCommunicate OK [10:45:29]wFMCommunicate request_size=4 [10:45:29]MH_SAM_APDU [10:45:29]CAPDU: 80 0D 03 02 [10:45:29]Write to MH i2c: E2 08 00 A3 9D 80 0D 03 02 00 00 00 00 BB [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:29]Read from MH i2c: E2 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 0B 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 0B 00 A3 9D 00 AB 25 95 2D 67 72 84 EF 90 00 9A [10:45:29]RAPDU: AB 25 95 2D 67 72 84 EF 90 00 [10:45:29]wFMCommunicate OK [10:45:29]SAM_PROTO_SignData done [10:45:29]FM_MakeSignedData done [10:45:29]CreateOFDProtocolMessage [10:45:29]wFMCommunicate request_size=4 [10:45:29]MH_SAM_APDU [10:45:29]CAPDU: 80 11 00 00 [10:45:29]Write to MH i2c: E2 08 00 A4 9D 80 11 00 00 00 00 00 00 BB [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:29]Read from MH i2c: E2 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 17 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 17 00 A4 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 08 [10:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:45:29]wFMCommunicate OK [10:45:29]CreateOFDProtocolMessage done [10:45:29]OFDSenderStorePacket 75372 [10:45:29]StoreOFDPacket docnum=75372 [10:45:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 CE 50 04 01 9C C9 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 BA 45 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 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 6C 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 69 00 00 00 F4 03 04 00 CF D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6C 26 01 00 35 04 06 00 52 3E DF 88 FB 24 AB 25 95 2D 67 72 84 EF [10:45:29]CheckFolder [10:45:29]dirname=/storage/ofd_packets [10:45:29]CheckFolder done [10:45:29]ProducePacketName [10:45:29]name=ofd_packets/00075372 [10:45:29]NVStorageSaveData ofd_packets/00075372 [10:45:29]File name is /storage/ofd_packets/00075372 [10:45:29]Write 298 bytes [10:45:29]NVStorageSaveData done [10:45:29]OFDSenderStorePacket done [10:45:29]KKMCreateOFDPacket done [10:45:29]NVStorageSaveData kkm_last_timestamp [10:45:29]File name is /storage/kkm_last_timestamp [10:45:29]Write 4 bytes [10:45:29]NVStorageSaveData done [10:45:29]ExternCall_PrintAddStr [10:45:29]wPrintStart [10:45:29]Write to MH i2c: 01 00 00 A5 9D 42 [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: 01 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: 01 07 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: 01 07 00 A5 9D 00 00 00 00 00 FF 0F 57 [10:45:29]RasterBufferAndPrint [10:45:29]line Счет N : (1)1965348 [10:45:29]line ИНН: 02508201610067 [10:45:29]line Контрольно-Кассовый Чек [10:45:29]line ПРОДАЖА [10:45:29]line ТРК (МРК, ГНК) : 11 [10:45:29]line Товар: 2710194210 [10:45:29]line ДТ-К-5 [10:45:29]line 17.850 * 76.20 [10:45:29]line = 1360.17 [10:45:29]line НДС 12% НСП 1% [10:45:29]line > о реализуемом товаре [10:45:29]line ОКРУГЛЕНИЕ: -0.17 [10:45:29]line ИТОГО: 1360.00 [10:45:29]line Внесено: 1360.00 [10:45:29]line СДАЧА: 0.00 [10:45:29]line НСП 1% : 12.04 [10:45:29]line НДС 12% : 144.44 [10:45:29]line Наличными: 1360.00 [10:45:29]line Безнал.: 0.00 [10:45:29]line Место: АЗС № 133 "Партнер Нефть" [10:45:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:45:29]line СНО: Общий режим [10:45:29]line Чек 105 23.10.2024 10:45 [10:45:29]line Смена: 173 ФФД: 1.0 [10:45:29]line ЗНМ: 0300000020 [10:45:29]line РНМ: 0000000000161154 [10:45:29]line Версия ККМ: v1.0 [10:45:29]line ФМ: 0000000000963323 [10:45:29]line ФД: 75372 [10:45:29]line ФПД: 90429991746340 [10:45:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104535&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75372&fm=90429991746340&tin=02508201610067®Number=0000000000161154&sum=136000 [10:45:30]OFD Sender: Processing packet 75372 [packets to send 15, broken 14] [10:45:30]ProducePacketName [10:45:30]name=ofd_packets/00075372 [10:45:30]OFD Sender: To server: pG, [10:45:30]CommunicateWithHost lk.salyk.kg:30040 [10:45:30]ConnectInit lk.salyk.kg [10:45:30]written 0, free lines is 4095 [10:45:30]Connected sock=10 [10:45:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 CE 50 04 01 9C C9 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 BA 45 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 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 6C 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 69 00 00 00 F4 03 04 00 CF D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6C 26 01 00 35 04 06 00 52 3E DF 88 FB 24 AB 25 95 2D 67 72 84 EF [10:45:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 72 EC 47 00 2A 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 39 36 33 33 32 33 10 04 04 00 6C 26 01 00 F4 03 04 00 AA 7C 18 67 B6 04 01 00 00 B2 C5 8D 3E B9 ED C4 71 [10:45:30]CommunicateWithHost err = 0 [10:45:30]CheckOFDResponse [10:45:30]1017 (14) - 77093643461234 [10:45:30]1041 (16) - 0000000000963323 [10:45:30]1040 (4) - 75372 [10:45:30]1012 (4) - 23.10.2024 04:33 [10:45:30]1206 (1) - 0 [10:45:30]OFD Sender: Remove packet 75372 [10:45:30]ProducePacketName [10:45:30]name=ofd_packets/00075372 [10:45:30]NVStorageDeleteData [10:45:30]Write to MH i2c: 01 00 00 CF 9D 6C [10:45:30]Write i2c OK [10:45:30]MH_I2C_Read... [10:45:30]Read from MH i2c: 01 [10:45:30]MH_I2C_Read... [10:45:30]Read from MH i2c: 01 07 00 [10:45:30]MH_I2C_Read... [10:45:30]Read from MH i2c: 01 07 00 CF 9D 00 00 00 00 00 B8 0C 37 [10:45:30]RasterBufferAndPrint [10:45:30]line [10:45:30]line [10:45:30]line [10:45:30]line [10:45:30]line [10:45:30]written 0, free lines is 3262 [10:45:30]MH_Cut [10:45:30]Write to MH i2c: D1 01 00 D6 9D 01 45 [10:45:30]Write i2c OK [10:45:30]MH_I2C_Read... [10:45:30]Read from MH i2c: D1 [10:45:30]MH_I2C_Read... [10:45:30]Read from MH i2c: D1 01 00 [10:45:30]MH_I2C_Read... [10:45:30]Read from MH i2c: D1 01 00 D6 9D 00 44 [10:45:30]Write to MH i2c: 01 00 00 D7 9D 74 [10:45:30]Write i2c OK [10:45:30]MH_I2C_Read... [10:45:31]OFD Sender: No OFD packet to send [10:45:31]*** Cut start [10:45:31]*** Partial cut [10:45:31]*** CUTSNS_PIN = 1 [10:45:31]*** CUTSNS_PIN = 0 [10:45:31]*** Brake cut motor [10:45:32]Read from MH i2c: 01 [10:45:32]MH_I2C_Read... [10:45:32]*** Stop cut motor [10:45:32]*** Cut end [10:45:32]Read from MH i2c: 01 07 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: 01 07 00 D7 9D 00 00 00 00 00 FF 0F 89 [10:45:32]process_action close_receipt done [10:45:32]requested_data is exist [10:45:32]produce_requested_data [10:45:32]requested_item fm.sn is exist - process it [10:45:32]wFMCommunicate request_size=4 [10:45:32]MH_SAM_APDU [10:45:32]CAPDU: 80 11 00 00 [10:45:32]Write to MH i2c: E2 08 00 D8 9D 80 11 00 00 00 00 00 00 EF [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:32]Read from MH i2c: E2 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 17 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 17 00 D8 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3C [10:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:45:32]wFMCommunicate OK [10:45:32]requested_item fd.num is exist - process it [10:45:32]SAM_PROTO_GetFieldsCounters [10:45:32]wFMCommunicate request_size=4 [10:45:32]MH_SAM_APDU [10:45:32]CAPDU: 80 13 00 00 [10:45:32]Write to MH i2c: E2 08 00 D9 9D 80 13 00 00 00 00 00 00 F2 [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:32]Read from MH i2c: E2 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 62 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 62 00 D9 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6C 26 01 00 0E 04 04 00 AD 00 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 81 [10:45:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6C 26 01 00 0E 04 04 00 AD 00 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 [10:45:32]wFMCommunicate OK [10:45:32]SAM_PROTO_GetFieldsCounters done [10:45:32]requested_item shift.num is exist - process it [10:45:32]requested_item shift.opened is exist - process it [10:45:32]req_shift_opened [10:45:32]FM_GetShiftState [10:45:32]SAM_PROTO_GetShiftState [10:45:32]wFMCommunicate request_size=4 [10:45:32]MH_SAM_APDU [10:45:32]CAPDU: 80 13 01 00 [10:45:32]Write to MH i2c: E2 08 00 DA 9D 80 13 01 00 00 00 00 00 F4 [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 [10:45:32]MH_I2C_Read... [10:45:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:32]Read from MH i2c: E2 0E 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 0E 00 DA 9D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 59 [10:45:32]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:45:32]wFMCommunicate OK [10:45:32]SAM_PROTO_GetShiftState done [10:45:32]FM_GetShiftState done [10:45:32]req_shift_opened done [10:45:32]requested_item shift.open_date is exist - process it [10:45:32]req_shift_open_date [10:45:32]req_shift_open_date done [10:45:32]produce_requested_data done [10:45:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75372,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:45:32]process_action_free close_receipt [10:45:32]json_value_free [10:45:32]json_value_free done [10:45:32]process_json_proto returns [10:45:32]Send response to host [10:45:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75372,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:45:32]free response buf [10:45:32]execute_script done [10:45:32]execute_script returns [10:45:32]free content buf [10:45:32]Sock 9.Close socket [10:45:32]Sock 9.Thread stoped [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:05]accept exits with 7 [10:46:05]New connection [10:46:05]New thread 3067465060 created [10:46:05]Thread 3067321700 joined [10:46:05]Waiting for new connection... [10:46:05] Sock 7.Parse request [10:46:05]Sock 7.Check first char [10:46:05]Sock 7.First char is OK [10:46:05]request: POST /json_proto HTTP/1.0 [10:46:05]Method: POST [10:46:05]URL: /json_proto [10:46:05]Method is POST - this is cgi request [10:46:05]url: /json_proto [10:46:05]query_string will be loaded in cgi processing [10:46:05]execute_cgi json_proto POST (null) [10:46:05]execute_cgi path=json_proto method=POST [10:46:05]POST find Content-Length [10:46:05]Host: 172.17.44.196:8080 [10:46:05]Content-Length: 675 [10:46:05]Content-Type: application/json [10:46:05] [10:46:05]POST finish read [10:46:05]Found Content-Length = 675 [10:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:46:05]execute_script... [10:46: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)1965350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:46:05]POST & json_proto [10:46:05]process_json_proto [10:46:05]json parsed OK: [10:46:05]protocol is kg_v1.0 [10:46:05]action value=close_receipt [10:46:05]process_action close_receipt [10:46:05]cmd_close_receipt [10:46:05]MH_GetDate [10:46:05]Write to MH i2c: F0 00 00 DB 9D 67 [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: F0 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: F0 09 00 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: F0 09 00 DB 9D 00 F4 D3 18 67 E7 19 F8 65 13 [10:46:05]GetLastDocTimeStamp 1729680335 [10:46:05]current date 1729680372 [10:46:05]FM_GetShiftState [10:46:05]SAM_PROTO_GetShiftState [10:46:05]wFMCommunicate request_size=4 [10:46:05]MH_SAM_APDU [10:46:05]CAPDU: 80 13 01 00 [10:46:05]Write to MH i2c: E2 08 00 DC 9D 80 13 01 00 00 00 00 00 F6 [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:05]Read from MH i2c: E2 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: E2 0E 00 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: E2 0E 00 DC 9D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5B [10:46:05]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:46:05]wFMCommunicate OK [10:46:05]SAM_PROTO_GetShiftState done [10:46:05]FM_GetShiftState done [10:46:05]opened in 1729642905 [10:46:05]opened+sec_in_day 1729729305 [10:46:05]quantity*price = 50063 [10:46:05]sum+1 = 50064 [10:46:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 106 23.10.2024 10:46 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75373 ФПД: 75191309669648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104612&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75373&fm=75191309669648&tin=02508201610067®Number=0000000000161154&sum=50000 [10:46:06]StoreToDocumentArchive [10:46:06]shift 173 fd 75373 [10:46:06]save to /storage/0173/doc_00075373 [10:46:06]save last doc name /storage/0173/doc_00075373 to /storage/kkm_last_doc_name [10:46:06]save OK [10:46:06]Clear old archive folders... [10:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:46:06]tlvbuf is 00DC5410 [10:46:06]SAM_PROTO_ClearQueue [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 09 00 00 [10:46:06]Write to MH i2c: E2 08 00 E9 9D 80 09 00 00 00 00 00 00 F8 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:07]Read from MH i2c: E2 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 03 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 03 00 E9 9D 00 90 00 FA [10:46:07]RAPDU: 90 00 [10:46:07]wFMCommunicate OK [10:46:07]SAM_PROTO_ClearQueue done [10:46:07]KKMCreateOFDPacket [10:46:07]OFDProtocolAddRootSTLVToBuf [10:46:07]FM_MakeSignedData [10:46:07]FM_MakeSignedData [10:46:07]SAM_PROTO_SignData [10:46:07]wFMCommunicate request_size=4 [10:46:07]MH_SAM_APDU [10:46:07]CAPDU: 80 0D 01 02 [10:46:07]Write to MH i2c: E2 08 00 EA 9D 80 0D 01 02 00 00 00 00 00 [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:07]Read from MH i2c: E2 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 03 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 03 00 EA 9D 00 90 00 FB [10:46:07]RAPDU: 90 00 [10:46:07]wFMCommunicate OK [10:46:07]wFMCommunicate request_size=255 [10:46:07]MH_SAM_APDU [10:46: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 6A 00 00 00 F4 03 04 00 F4 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6D 26 01 00 35 04 06 00 44 62 D7 4D [10:46:07]Write to MH i2c: E2 02 01 EB 9D 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 6A 00 00 00 F4 03 04 00 F4 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6D 26 01 00 35 04 06 00 44 62 D7 4D 00 00 BB [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:07]Read from MH i2c: E2 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 03 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 03 00 EB 9D 00 90 00 FC [10:46:07]RAPDU: 90 00 [10:46:07]wFMCommunicate OK [10:46:07]wFMCommunicate request_size=7 [10:46:07]MH_SAM_APDU [10:46:07]CAPDU: 80 0D 02 02 02 95 10 [10:46:07]Write to MH i2c: E2 0A 00 EC 9D 80 0D 02 02 02 00 95 10 00 00 AC [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:07]Read from MH i2c: E2 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 03 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 03 00 EC 9D 00 90 00 FD [10:46:07]RAPDU: 90 00 [10:46:07]wFMCommunicate OK [10:46:07]wFMCommunicate request_size=4 [10:46:07]MH_SAM_APDU [10:46:07]CAPDU: 80 0D 03 02 [10:46:07]Write to MH i2c: E2 08 00 ED 9D 80 0D 03 02 00 00 00 00 05 [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:07]Read from MH i2c: E2 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 0B 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 0B 00 ED 9D 00 4A 53 A2 7F 09 C6 DC 78 90 00 E7 [10:46:07]RAPDU: 4A 53 A2 7F 09 C6 DC 78 90 00 [10:46:07]wFMCommunicate OK [10:46:07]SAM_PROTO_SignData done [10:46:07]FM_MakeSignedData done [10:46:07]CreateOFDProtocolMessage [10:46:07]wFMCommunicate request_size=4 [10:46:07]MH_SAM_APDU [10:46:07]CAPDU: 80 11 00 00 [10:46:07]Write to MH i2c: E2 08 00 EE 9D 80 11 00 00 00 00 00 00 05 [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:07]Read from MH i2c: E2 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 17 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: E2 17 00 EE 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 52 [10:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:46:07]wFMCommunicate OK [10:46:07]CreateOFDProtocolMessage done [10:46:07]OFDSenderStorePacket 75373 [10:46:07]StoreOFDPacket docnum=75373 [10:46:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 FE 72 04 01 1D E5 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 6A 00 00 00 F4 03 04 00 F4 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6D 26 01 00 35 04 06 00 44 62 D7 4D 95 10 4A 53 A2 7F 09 C6 DC 78 [10:46:07]CheckFolder [10:46:07]dirname=/storage/ofd_packets [10:46:07]CheckFolder done [10:46:07]ProducePacketName [10:46:07]name=ofd_packets/00075373 [10:46:07]NVStorageSaveData ofd_packets/00075373 [10:46:07]File name is /storage/ofd_packets/00075373 [10:46:07]Write 298 bytes [10:46:07]NVStorageSaveData done [10:46:07]OFDSenderStorePacket done [10:46:07]KKMCreateOFDPacket done [10:46:07]NVStorageSaveData kkm_last_timestamp [10:46:07]File name is /storage/kkm_last_timestamp [10:46:07]Write 4 bytes [10:46:07]NVStorageSaveData done [10:46:07]ExternCall_PrintAddStr [10:46:07]wPrintStart [10:46:07]Write to MH i2c: 01 00 00 EF 9D 8C [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: 01 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: 01 07 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: 01 07 00 EF 9D 00 00 00 00 00 FF 0F A1 [10:46:07]RasterBufferAndPrint [10:46:07]line Счет N : (1)1965350 [10:46:07]line ИНН: 02508201610067 [10:46:07]line Контрольно-Кассовый Чек [10:46:07]line ПРОДАЖА [10:46:07]line ТРК (МРК, ГНК) : 21 [10:46:07]line Товар: 2710194210 [10:46:07]line ДТ-К-5 [10:46:07]line 6.570 * 76.20 [10:46:07]line = 500.63 [10:46:07]line НДС 12% НСП 1% [10:46:07]line > о реализуемом товаре [10:46:07]line ОКРУГЛЕНИЕ: -0.63 [10:46:07]line ИТОГО: 500.00 [10:46:07]line Внесено: 500.00 [10:46:07]line СДАЧА: 0.00 [10:46:07]line НСП 1% : 4.43 [10:46:07]line НДС 12% : 53.16 [10:46:07]line Наличными: 500.00 [10:46:07]line Безнал.: 0.00 [10:46:07]line Место: АЗС № 133 "Партнер Нефть" [10:46:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:46:07]line СНО: Общий режим [10:46:07]line Чек 106 23.10.2024 10:46 [10:46:07]line Смена: 173 ФФД: 1.0 [10:46:07]line ЗНМ: 0300000020 [10:46:07]line РНМ: 0000000000161154 [10:46:07]line Версия ККМ: v1.0 [10:46:07]line ФМ: 0000000000963323 [10:46:07]line ФД: 75373 [10:46:07]line ФПД: 75191309669648 [10:46:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104612&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75373&fm=75191309669648&tin=02508201610067®Number=0000000000161154&sum=50000 [10:46:07]OFD Sender: Processing packet 75373 [packets to send 15, broken 14] [10:46:07]ProducePacketName [10:46:07]name=ofd_packets/00075373 [10:46:07]OFD Sender: To server: pG, [10:46:07]CommunicateWithHost lk.salyk.kg:30040 [10:46:07]ConnectInit lk.salyk.kg [10:46:07]written 0, free lines is 4095 [10:46:07]Connected sock=10 [10:46:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 FE 72 04 01 1D E5 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 6A 00 00 00 F4 03 04 00 F4 D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6D 26 01 00 35 04 06 00 44 62 D7 4D 95 10 4A 53 A2 7F 09 C6 DC 78 [10:46:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 98 06 47 00 2A BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6D 26 01 00 F4 03 04 00 D0 7C 18 67 B6 04 01 00 00 6D BA 6A DD A8 FC 40 63 [10:46:08]CommunicateWithHost err = 0 [10:46:08]CheckOFDResponse [10:46:08]1017 (14) - 77093643461234 [10:46:08]1041 (16) - 0000000000963323 [10:46:08]1040 (4) - 75373 [10:46:08]1012 (4) - 23.10.2024 04:34 [10:46:08]1206 (1) - 0 [10:46:08]OFD Sender: Remove packet 75373 [10:46:08]ProducePacketName [10:46:08]name=ofd_packets/00075373 [10:46:08]NVStorageDeleteData [10:46:08]Write to MH i2c: 01 00 00 19 9E B7 [10:46:08]Write i2c OK [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: 01 [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: 01 07 00 [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: 01 07 00 19 9E 00 00 00 00 00 AD 0C 77 [10:46:08]RasterBufferAndPrint [10:46:08]line [10:46:08]line [10:46:08]line [10:46:08]line [10:46:08]line [10:46:08]written 0, free lines is 3249 [10:46:08]MH_Cut [10:46:08]Write to MH i2c: D1 01 00 20 9E 01 90 [10:46:08]Write i2c OK [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: D1 [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: D1 01 00 [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: D1 01 00 20 9E 00 8F [10:46:08]Write to MH i2c: 01 00 00 21 9E BF [10:46:08]Write i2c OK [10:46:08]MH_I2C_Read... [10:46:08]OFD Sender: No OFD packet to send [10:46:09]*** Cut start [10:46:09]*** Partial cut [10:46:09]*** CUTSNS_PIN = 1 [10:46:09]*** CUTSNS_PIN = 0 [10:46:09]*** Brake cut motor [10:46:09]Read from MH i2c: 01 [10:46:09]MH_I2C_Read... [10:46:09]*** Stop cut motor [10:46:09]*** Cut end [10:46:09]Read from MH i2c: 01 07 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: 01 07 00 21 9E 00 00 00 00 00 FF 0F D4 [10:46:09]process_action close_receipt done [10:46:09]requested_data is exist [10:46:09]produce_requested_data [10:46:09]requested_item fm.sn is exist - process it [10:46:09]wFMCommunicate request_size=4 [10:46:09]MH_SAM_APDU [10:46:09]CAPDU: 80 11 00 00 [10:46:09]Write to MH i2c: E2 08 00 22 9E 80 11 00 00 00 00 00 00 3A [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:09]Read from MH i2c: E2 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 17 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 17 00 22 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 87 [10:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:46:09]wFMCommunicate OK [10:46:09]requested_item fd.num is exist - process it [10:46:09]SAM_PROTO_GetFieldsCounters [10:46:09]wFMCommunicate request_size=4 [10:46:09]MH_SAM_APDU [10:46:09]CAPDU: 80 13 00 00 [10:46:09]Write to MH i2c: E2 08 00 23 9E 80 13 00 00 00 00 00 00 3D [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:09]Read from MH i2c: E2 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 62 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 62 00 23 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6D 26 01 00 0E 04 04 00 AD 00 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 D0 [10:46:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6D 26 01 00 0E 04 04 00 AD 00 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 [10:46:09]wFMCommunicate OK [10:46:09]SAM_PROTO_GetFieldsCounters done [10:46:09]requested_item shift.num is exist - process it [10:46:09]requested_item shift.opened is exist - process it [10:46:09]req_shift_opened [10:46:09]FM_GetShiftState [10:46:09]SAM_PROTO_GetShiftState [10:46:09]wFMCommunicate request_size=4 [10:46:09]MH_SAM_APDU [10:46:09]CAPDU: 80 13 01 00 [10:46:09]Write to MH i2c: E2 08 00 24 9E 80 13 01 00 00 00 00 00 3F [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:10]Read from MH i2c: E2 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 0E 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 0E 00 24 9E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A4 [10:46:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:46:10]wFMCommunicate OK [10:46:10]SAM_PROTO_GetShiftState done [10:46:10]FM_GetShiftState done [10:46:10]req_shift_opened done [10:46:10]requested_item shift.open_date is exist - process it [10:46:10]req_shift_open_date [10:46:10]req_shift_open_date done [10:46:10]produce_requested_data done [10:46:10]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75373,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:46:10]process_action_free close_receipt [10:46:10]json_value_free [10:46:10]json_value_free done [10:46:10]process_json_proto returns [10:46:10]Send response to host [10:46:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75373,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:46:10]free response buf [10:46:10]execute_script done [10:46:10]execute_script returns [10:46:10]free content buf [10:46:10]Sock 7.Close socket [10:46:10]Sock 7.Thread stoped [10:46:11]accept exits with 9 [10:46:11]New connection [10:46:11]New thread 3067321700 created [10:46:11]Thread 3067465060 joined [10:46:11]Waiting for new connection... [10:46:11] Sock 9.Parse request [10:46:11]Sock 9.Check first char [10:46:11]Sock 9.First char is OK [10:46:11]request: POST /json_proto HTTP/1.0 [10:46:11]Method: POST [10:46:11]URL: /json_proto [10:46:11]Method is POST - this is cgi request [10:46:11]url: /json_proto [10:46:11]query_string will be loaded in cgi processing [10:46:11]execute_cgi json_proto POST (null) [10:46:11]execute_cgi path=json_proto method=POST [10:46:11]POST find Content-Length [10:46:11]Host: 172.17.44.196:8080 [10:46:11]Content-Length: 677 [10:46:11]Content-Type: application/json [10:46:11] [10:46:11]POST finish read [10:46:11]Found Content-Length = 677 [10:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:46:11]execute_script... [10:46: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)1965346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:46:11]POST & json_proto [10:46:11]process_json_proto [10:46:11]json parsed OK: [10:46:11]protocol is kg_v1.0 [10:46:11]action value=close_receipt [10:46:11]process_action close_receipt [10:46:11]cmd_close_receipt [10:46:11]MH_GetDate [10:46:11]Write to MH i2c: F0 00 00 25 9E B2 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: F0 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: F0 09 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: F0 09 00 25 9E 00 FB D3 18 67 E7 19 F8 65 65 [10:46:11]GetLastDocTimeStamp 1729680372 [10:46:11]current date 1729680379 [10:46:11]FM_GetShiftState [10:46:11]SAM_PROTO_GetShiftState [10:46:11]wFMCommunicate request_size=4 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 13 01 00 [10:46:11]Write to MH i2c: E2 08 00 26 9E 80 13 01 00 00 00 00 00 41 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 0E 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 0E 00 26 9E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A6 [10:46:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:46:11]wFMCommunicate OK [10:46:11]SAM_PROTO_GetShiftState done [10:46:11]FM_GetShiftState done [10:46:11]opened in 1729642905 [10:46:11]opened+sec_in_day 1729729305 [10:46:11]quantity*price = 100011 [10:46:11]sum+1 = 100013 [10:46:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 107 23.10.2024 10:46 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75374 ФПД: 103430481248078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104619&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75374&fm=103430481248078&tin=02508201610067®Number=0000000000161154&sum=100000 [10:46:13]StoreToDocumentArchive [10:46:13]shift 173 fd 75374 [10:46:13]save to /storage/0173/doc_00075374 [10:46:13]save last doc name /storage/0173/doc_00075374 to /storage/kkm_last_doc_name [10:46:13]save OK [10:46:13]Clear old archive folders... [10:46:13]ProcessDocumentItem done err = 0, tmpTLVsize=245 [10:46:13]tlvbuf is 00EA91F0 [10:46:13]SAM_PROTO_ClearQueue [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 09 00 00 [10:46:13]Write to MH i2c: E2 08 00 33 9E 80 09 00 00 00 00 00 00 43 [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 33 9E 00 90 00 45 [10:46:13]RAPDU: 90 00 [10:46:13]wFMCommunicate OK [10:46:13]SAM_PROTO_ClearQueue done [10:46:13]KKMCreateOFDPacket [10:46:13]OFDProtocolAddRootSTLVToBuf [10:46:13]FM_MakeSignedData [10:46:13]FM_MakeSignedData [10:46:13]SAM_PROTO_SignData [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 0D 01 02 [10:46:13]Write to MH i2c: E2 08 00 34 9E 80 0D 01 02 00 00 00 00 4B [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 34 9E 00 90 00 46 [10:46:13]RAPDU: 90 00 [10:46:13]wFMCommunicate OK [10:46:13]wFMCommunicate request_size=254 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6B 00 00 00 F4 03 04 00 FB D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6E 26 01 00 35 04 06 00 5E 11 C9 17 FF 4E [10:46:13]Write to MH i2c: E2 01 01 35 9E 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6B 00 00 00 F4 03 04 00 FB D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6E 26 01 00 35 04 06 00 5E 11 C9 17 FF 4E 00 00 36 [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 03 00 35 9E 00 90 00 47 [10:46:13]RAPDU: 90 00 [10:46:13]wFMCommunicate OK [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 0D 03 02 [10:46:13]Write to MH i2c: E2 08 00 36 9E 80 0D 03 02 00 00 00 00 4F [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0B 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0B 00 36 9E 00 D7 F9 CA 19 41 2F 08 03 90 00 7E [10:46:13]RAPDU: D7 F9 CA 19 41 2F 08 03 90 00 [10:46:13]wFMCommunicate OK [10:46:13]SAM_PROTO_SignData done [10:46:13]FM_MakeSignedData done [10:46:13]CreateOFDProtocolMessage [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 11 00 00 [10:46:13]Write to MH i2c: E2 08 00 37 9E 80 11 00 00 00 00 00 00 4F [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 17 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 17 00 37 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9C [10:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:46:13]wFMCommunicate OK [10:46:13]CreateOFDProtocolMessage done [10:46:13]OFDSenderStorePacket 75374 [10:46:13]StoreOFDPacket docnum=75374 [10:46:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 4C 59 01 01 5B E4 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6B 00 00 00 F4 03 04 00 FB D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6E 26 01 00 35 04 06 00 5E 11 C9 17 FF 4E D7 F9 CA 19 41 2F 08 03 [10:46:13]CheckFolder [10:46:13]dirname=/storage/ofd_packets [10:46:13]CheckFolder done [10:46:13]ProducePacketName [10:46:13]name=ofd_packets/00075374 [10:46:13]NVStorageSaveData ofd_packets/00075374 [10:46:13]File name is /storage/ofd_packets/00075374 [10:46:13]Write 295 bytes [10:46:13]NVStorageSaveData done [10:46:13]OFDSenderStorePacket done [10:46:13]KKMCreateOFDPacket done [10:46:13]NVStorageSaveData kkm_last_timestamp [10:46:13]File name is /storage/kkm_last_timestamp [10:46:13]Write 4 bytes [10:46:13]NVStorageSaveData done [10:46:13]ExternCall_PrintAddStr [10:46:13]wPrintStart [10:46:13]Write to MH i2c: 01 00 00 38 9E D6 [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: 01 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: 01 07 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: 01 07 00 38 9E 00 00 00 00 00 FF 0F EB [10:46:13]RasterBufferAndPrint [10:46:13]line Счет N : (1)1965346 [10:46:13]line ИНН: 02508201610067 [10:46:13]line Контрольно-Кассовый Чек [10:46:13]line ПРОДАЖА [10:46:13]line ТРК (МРК, ГНК) : 71 [10:46:13]line Товар: 2711129700 [10:46:13]line ГАЗ [10:46:13]line 25.710 * 38.90 [10:46:13]line = 1000.12 [10:46:13]line НДС 12% НСП 1% [10:46:13]line > о реализуемом товаре [10:46:13]line ОКРУГЛЕНИЕ: -0.12 [10:46:13]line ИТОГО: 1000.00 [10:46:13]line Внесено: 1000.00 [10:46:13]line СДАЧА: 0.00 [10:46:13]line НСП 1% : 8.85 [10:46:13]line НДС 12% : 106.21 [10:46:13]line Наличными: 1000.00 [10:46:13]line Безнал.: 0.00 [10:46:13]line Место: АЗС № 133 "Партнер Нефть" [10:46:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:46:13]line СНО: Общий режим [10:46:13]line Чек 107 23.10.2024 10:46 [10:46:13]line Смена: 173 ФФД: 1.0 [10:46:13]line ЗНМ: 0300000020 [10:46:13]line РНМ: 0000000000161154 [10:46:13]line Версия ККМ: v1.0 [10:46:13]line ФМ: 0000000000963323 [10:46:13]line ФД: 75374 [10:46:13]line ФПД: 103430481248078 [10:46:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104619&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75374&fm=103430481248078&tin=02508201610067®Number=0000000000161154&sum=100000 [10:46:13]written 0, free lines is 4095 [10:46:13]OFD Sender: Processing packet 75374 [packets to send 15, broken 14] [10:46:13]ProducePacketName [10:46:13]name=ofd_packets/00075374 [10:46:13]OFD Sender: To server: pG, [10:46:13]CommunicateWithHost lk.salyk.kg:30040 [10:46:13]ConnectInit lk.salyk.kg [10:46:13]Connected sock=10 [10:46:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 4C 59 01 01 5B E4 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6B 00 00 00 F4 03 04 00 FB D3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6E 26 01 00 35 04 06 00 5E 11 C9 17 FF 4E D7 F9 CA 19 41 2F 08 03 [10:46:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 17 8F 47 00 32 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6E 26 01 00 F4 03 04 00 D6 7C 18 67 B6 04 01 00 00 E3 32 1D 4B 31 F2 07 C5 [10:46:14]CommunicateWithHost err = 0 [10:46:14]CheckOFDResponse [10:46:14]1017 (14) - 77093643461234 [10:46:14]1041 (16) - 0000000000963323 [10:46:14]1040 (4) - 75374 [10:46:14]1012 (4) - 23.10.2024 04:34 [10:46:14]1206 (1) - 0 [10:46:14]OFD Sender: Remove packet 75374 [10:46:14]ProducePacketName [10:46:14]name=ofd_packets/00075374 [10:46:14]NVStorageDeleteData [10:46:14]Write to MH i2c: 01 00 00 62 9E 00 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: 01 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: 01 07 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: 01 07 00 62 9E 00 00 00 00 00 B8 0C CB [10:46:14]RasterBufferAndPrint [10:46:14]line [10:46:14]line [10:46:14]line [10:46:14]line [10:46:14]line [10:46:14]written 0, free lines is 3263 [10:46:14]MH_Cut [10:46:14]Write to MH i2c: D1 01 00 69 9E 01 D9 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: D1 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: D1 01 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: D1 01 00 69 9E 00 D8 [10:46:14]Write to MH i2c: 01 00 00 6A 9E 08 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]OFD Sender: No OFD packet to send [10:46:15]*** Cut start [10:46:15]*** Partial cut [10:46:15]*** CUTSNS_PIN = 1 [10:46:15]*** CUTSNS_PIN = 0 [10:46:15]*** Brake cut motor [10:46:15]Read from MH i2c: 01 [10:46:15]MH_I2C_Read... [10:46:15]*** Stop cut motor [10:46:15]*** Cut end [10:46:15]Read from MH i2c: 01 07 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 6A 9E 00 00 00 00 00 FF 0F 1D [10:46:15]process_action close_receipt done [10:46:15]requested_data is exist [10:46:15]produce_requested_data [10:46:15]requested_item fm.sn is exist - process it [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 11 00 00 [10:46:15]Write to MH i2c: E2 08 00 6B 9E 80 11 00 00 00 00 00 00 83 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 6B 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D0 [10:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:46:15]wFMCommunicate OK [10:46:15]requested_item fd.num is exist - process it [10:46:15]SAM_PROTO_GetFieldsCounters [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 13 00 00 [10:46:15]Write to MH i2c: E2 08 00 6C 9E 80 13 00 00 00 00 00 00 86 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 62 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 62 00 6C 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6E 26 01 00 0E 04 04 00 AD 00 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 1D [10:46:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6E 26 01 00 0E 04 04 00 AD 00 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 [10:46:15]wFMCommunicate OK [10:46:15]SAM_PROTO_GetFieldsCounters done [10:46:15]requested_item shift.num is exist - process it [10:46:15]requested_item shift.opened is exist - process it [10:46:15]req_shift_opened [10:46:15]FM_GetShiftState [10:46:15]SAM_PROTO_GetShiftState [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 13 01 00 [10:46:15]Write to MH i2c: E2 08 00 6D 9E 80 13 01 00 00 00 00 00 88 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0E 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0E 00 6D 9E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 ED [10:46:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:46:15]wFMCommunicate OK [10:46:15]SAM_PROTO_GetShiftState done [10:46:15]FM_GetShiftState done [10:46:15]req_shift_opened done [10:46:15]requested_item shift.open_date is exist - process it [10:46:15]req_shift_open_date [10:46:15]req_shift_open_date done [10:46:15]produce_requested_data done [10:46:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75374,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:46:15]process_action_free close_receipt [10:46:15]json_value_free [10:46:15]json_value_free done [10:46:15]process_json_proto returns [10:46:15]Send response to host [10:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75374,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:46:15]free response buf [10:46:15]execute_script done [10:46:15]execute_script returns [10:46:15]free content buf [10:46:15]Sock 9.Close socket [10:46:15]Sock 9.Thread stoped [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:14]accept exits with 7 [10:47:14]New connection [10:47:14]New thread 3067465060 created [10:47:14]Thread 3067321700 joined [10:47:14]Waiting for new connection... [10:47:14] Sock 7.Parse request [10:47:14]Sock 7.Check first char [10:47:14]Sock 7.First char is OK [10:47:14]request: POST /json_proto HTTP/1.0 [10:47:14]Method: POST [10:47:14]URL: /json_proto [10:47:14]Method is POST - this is cgi request [10:47:14]url: /json_proto [10:47:14]query_string will be loaded in cgi processing [10:47:14]execute_cgi json_proto POST (null) [10:47:14]execute_cgi path=json_proto method=POST [10:47:14]POST find Content-Length [10:47:14]Host: 172.17.44.196:8080 [10:47:14]Content-Length: 768 [10:47:14]Content-Type: application/json [10:47:14] [10:47:14]POST finish read [10:47:14]Found Content-Length = 768 [10:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.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: Mbank", "payments": [ { "type": 1, "sum" : 750.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:14]execute_script... [10:47: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)1965351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.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: Mbank", "payments": [ { "type": 1, "sum" : 750.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:14]POST & json_proto [10:47:14]process_json_proto [10:47:14]json parsed OK: [10:47:14]protocol is kg_v1.0 [10:47:14]action value=close_receipt [10:47:14]process_action close_receipt [10:47:14]cmd_close_receipt [10:47:14]MH_GetDate [10:47:14]Write to MH i2c: F0 00 00 6E 9E FB [10:47:14]Write i2c OK [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: F0 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: F0 09 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: F0 09 00 6E 9E 00 3A D4 18 67 E7 19 F8 65 EE [10:47:14]GetLastDocTimeStamp 1729680379 [10:47:14]current date 1729680442 [10:47:14]FM_GetShiftState [10:47:14]SAM_PROTO_GetShiftState [10:47:14]wFMCommunicate request_size=4 [10:47:14]MH_SAM_APDU [10:47:14]CAPDU: 80 13 01 00 [10:47:14]Write to MH i2c: E2 08 00 6F 9E 80 13 01 00 00 00 00 00 8A [10:47:14]Write i2c OK [10:47:14]MH_I2C_Read... [10:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:14]Read from MH i2c: E2 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 0E 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 0E 00 6F 9E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EF [10:47:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:47:14]wFMCommunicate OK [10:47:14]SAM_PROTO_GetShiftState done [10:47:14]FM_GetShiftState done [10:47:14]opened in 1729642905 [10:47:14]opened+sec_in_day 1729729305 [10:47:14]quantity*price = 75016 [10:47:14]sum+1 = 75017 [10:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.16 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 0.00 Безнал.: 750.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 108 23.10.2024 10:47 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75375 ФПД: 81083614913897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104722&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75375&fm=81083614913897&tin=02508201610067®Number=0000000000161154&sum=75016 [10:47:16]StoreToDocumentArchive [10:47:16]shift 173 fd 75375 [10:47:16]save to /storage/0173/doc_00075375 [10:47:16]save last doc name /storage/0173/doc_00075375 to /storage/kkm_last_doc_name [10:47:16]save OK [10:47:16]Clear old archive folders... [10:47:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:16]tlvbuf is 00E8DC20 [10:47:16]SAM_PROTO_ClearQueue [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 09 00 00 [10:47:16]Write to MH i2c: E2 08 00 7C 9E 80 09 00 00 00 00 00 00 8C [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 7C 9E 00 90 00 8E [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]SAM_PROTO_ClearQueue done [10:47:16]KKMCreateOFDPacket [10:47:16]OFDProtocolAddRootSTLVToBuf [10:47:16]FM_MakeSignedData [10:47:16]FM_MakeSignedData [10:47:16]SAM_PROTO_SignData [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 0D 01 02 [10:47:16]Write to MH i2c: E2 08 00 7D 9E 80 0D 01 02 00 00 00 00 94 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 7D 9E 00 90 00 8F [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]wFMCommunicate request_size=255 [10:47:16]MH_SAM_APDU [10:47: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 3A D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6F 26 01 00 35 04 06 00 49 [10:47:16]Write to MH i2c: E2 02 01 7E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 3A D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6F 26 01 00 35 04 06 00 49 00 00 38 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 7E 9E 00 90 00 90 [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]wFMCommunicate request_size=10 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 0D 02 02 05 BE C0 10 65 69 [10:47:16]Write to MH i2c: E2 0D 00 7F 9E 80 0D 02 02 05 00 BE C0 10 65 69 00 00 FD [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 7F 9E 00 90 00 91 [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 0D 03 02 [10:47:16]Write to MH i2c: E2 08 00 80 9E 80 0D 03 02 00 00 00 00 99 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 0B 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 0B 00 80 9E 00 6A 19 32 85 5E 1F F5 5A 90 00 A0 [10:47:16]RAPDU: 6A 19 32 85 5E 1F F5 5A 90 00 [10:47:16]wFMCommunicate OK [10:47:16]SAM_PROTO_SignData done [10:47:16]FM_MakeSignedData done [10:47:16]CreateOFDProtocolMessage [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 11 00 00 [10:47:16]Write to MH i2c: E2 08 00 81 9E 80 11 00 00 00 00 00 00 99 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 17 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 17 00 81 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E6 [10:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:16]wFMCommunicate OK [10:47:16]CreateOFDProtocolMessage done [10:47:16]OFDSenderStorePacket 75375 [10:47:16]StoreOFDPacket docnum=75375 [10:47:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8B 4C 07 01 44 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 3A D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6F 26 01 00 35 04 06 00 49 BE C0 10 65 69 6A 19 32 85 5E 1F F5 5A [10:47:16]CheckFolder [10:47:16]dirname=/storage/ofd_packets [10:47:16]CheckFolder done [10:47:16]ProducePacketName [10:47:16]name=ofd_packets/00075375 [10:47:16]NVStorageSaveData ofd_packets/00075375 [10:47:16]File name is /storage/ofd_packets/00075375 [10:47:16]Write 301 bytes [10:47:16]NVStorageSaveData done [10:47:16]OFDSenderStorePacket done [10:47:16]KKMCreateOFDPacket done [10:47:16]NVStorageSaveData kkm_last_timestamp [10:47:16]File name is /storage/kkm_last_timestamp [10:47:16]Write 4 bytes [10:47:16]NVStorageSaveData done [10:47:16]ExternCall_PrintAddStr [10:47:16]wPrintStart [10:47:16]Write to MH i2c: 01 00 00 82 9E 20 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 07 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 07 00 82 9E 00 00 00 00 00 FF 0F 35 [10:47:16]RasterBufferAndPrint [10:47:16]line Счет N : (1)1965351 [10:47:16]line ИНН: 02508201610067 [10:47:16]line Контрольно-Кассовый Чек [10:47:16]line ПРОДАЖА [10:47:16]line ТРК (МРК, ГНК) : 64 [10:47:16]line Товар: 2710124500 [10:47:16]line Аи-95-К-5 [10:47:16]line 10.110 * 74.20 [10:47:16]line = 750.16 [10:47:16]line НДС 12% НСП 1% [10:47:16]line > о реализуемом товаре [10:47:16]line ИТОГО: 750.16 [10:47:16]line НСП 1% : 6.64 [10:47:16]line НДС 12% : 79.66 [10:47:16]line Наличными: 0.00 [10:47:16]line Безнал.: 750.16 [10:47:16]line Место: АЗС № 133 "Партнер Нефть" [10:47:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:47:16]line СНО: Общий режим [10:47:16]line Чек 108 23.10.2024 10:47 [10:47:16]line Смена: 173 ФФД: 1.0 [10:47:16]line ЗНМ: 0300000020 [10:47:16]line РНМ: 0000000000161154 [10:47:16]line Версия ККМ: v1.0 [10:47:16]line Платежная система: Mbank [10:47:16]line ФМ: 0000000000963323 [10:47:16]line ФД: 75375 [10:47:16]line ФПД: 81083614913897 [10:47:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104722&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75375&fm=81083614913897&tin=02508201610067®Number=0000000000161154&sum=75016 [10:47:16]OFD Sender: Processing packet 75375 [packets to send 15, broken 14] [10:47:16]ProducePacketName [10:47:16]name=ofd_packets/00075375 [10:47:16]OFD Sender: To server: pG, [10:47:16]CommunicateWithHost lk.salyk.kg:30040 [10:47:16]ConnectInit lk.salyk.kg [10:47:16]written 0, free lines is 4095 [10:47:17]Connected sock=10 [10:47:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8B 4C 07 01 44 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 3A D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6F 26 01 00 35 04 06 00 49 BE C0 10 65 69 6A 19 32 85 5E 1F F5 5A [10:47:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 48 43 47 00 09 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 6F 26 01 00 F4 03 04 00 15 7D 18 67 B6 04 01 00 00 2C 35 9F 57 46 DA CE F2 [10:47:17]CommunicateWithHost err = 0 [10:47:17]CheckOFDResponse [10:47:17]1017 (14) - 77093643461234 [10:47:17]1041 (16) - 0000000000963323 [10:47:17]1040 (4) - 75375 [10:47:17]1012 (4) - 23.10.2024 04:35 [10:47:17]1206 (1) - 0 [10:47:17]OFD Sender: Remove packet 75375 [10:47:17]ProducePacketName [10:47:17]name=ofd_packets/00075375 [10:47:17]NVStorageDeleteData [10:47:17]Write to MH i2c: 01 00 00 AA 9E 48 [10:47:17]Write i2c OK [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: 01 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: 01 07 00 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: 01 07 00 AA 9E 00 00 00 00 00 E9 0C 44 [10:47:17]RasterBufferAndPrint [10:47:17]line [10:47:17]line [10:47:17]line [10:47:17]line [10:47:17]line [10:47:17]written 0, free lines is 3310 [10:47:17]MH_Cut [10:47:17]Write to MH i2c: D1 01 00 B1 9E 01 21 [10:47:17]Write i2c OK [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: D1 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: D1 01 00 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: D1 01 00 B1 9E 00 20 [10:47:17]Write to MH i2c: 01 00 00 B2 9E 50 [10:47:17]Write i2c OK [10:47:17]MH_I2C_Read... [10:47:17]OFD Sender: No OFD packet to send [10:47:18]*** Cut start [10:47:18]*** Partial cut [10:47:18]*** CUTSNS_PIN = 1 [10:47:18]*** CUTSNS_PIN = 0 [10:47:18]*** Brake cut motor [10:47:18]Read from MH i2c: 01 [10:47:18]MH_I2C_Read... [10:47:18]*** Stop cut motor [10:47:18]*** Cut end [10:47:18]Read from MH i2c: 01 07 00 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: 01 07 00 B2 9E 00 00 00 00 00 FF 0F 65 [10:47:18]process_action close_receipt done [10:47:18]requested_data is exist [10:47:18]produce_requested_data [10:47:18]requested_item fm.sn is exist - process it [10:47:18]wFMCommunicate request_size=4 [10:47:18]MH_SAM_APDU [10:47:18]CAPDU: 80 11 00 00 [10:47:18]Write to MH i2c: E2 08 00 B3 9E 80 11 00 00 00 00 00 00 CB [10:47:18]Write i2c OK [10:47:18]MH_I2C_Read... [10:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:18]Read from MH i2c: E2 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: E2 17 00 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: E2 17 00 B3 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 18 [10:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:18]wFMCommunicate OK [10:47:18]requested_item fd.num is exist - process it [10:47:18]SAM_PROTO_GetFieldsCounters [10:47:18]wFMCommunicate request_size=4 [10:47:18]MH_SAM_APDU [10:47:18]CAPDU: 80 13 00 00 [10:47:18]Write to MH i2c: E2 08 00 B4 9E 80 13 00 00 00 00 00 00 CE [10:47:18]Write i2c OK [10:47:18]MH_I2C_Read... [10:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:19]Read from MH i2c: E2 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 62 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 62 00 B4 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6F 26 01 00 0E 04 04 00 AD 00 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 69 [10:47:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 6F 26 01 00 0E 04 04 00 AD 00 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 [10:47:19]wFMCommunicate OK [10:47:19]SAM_PROTO_GetFieldsCounters done [10:47:19]requested_item shift.num is exist - process it [10:47:19]requested_item shift.opened is exist - process it [10:47:19]req_shift_opened [10:47:19]FM_GetShiftState [10:47:19]SAM_PROTO_GetShiftState [10:47:19]wFMCommunicate request_size=4 [10:47:19]MH_SAM_APDU [10:47:19]CAPDU: 80 13 01 00 [10:47:19]Write to MH i2c: E2 08 00 B5 9E 80 13 01 00 00 00 00 00 D0 [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:19]Read from MH i2c: E2 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 0E 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 0E 00 B5 9E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 35 [10:47:19]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:47:19]wFMCommunicate OK [10:47:19]SAM_PROTO_GetShiftState done [10:47:19]FM_GetShiftState done [10:47:19]req_shift_opened done [10:47:19]requested_item shift.open_date is exist - process it [10:47:19]req_shift_open_date [10:47:19]req_shift_open_date done [10:47:19]produce_requested_data done [10:47:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75375,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:47:19]process_action_free close_receipt [10:47:19]json_value_free [10:47:19]json_value_free done [10:47:19]process_json_proto returns [10:47:19]Send response to host [10:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75375,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:47:19]free response buf [10:47:19]execute_script done [10:47:19]execute_script returns [10:47:19]free content buf [10:47:19]Sock 7.Close socket [10:47:19]Sock 7.Thread stoped [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]accept exits with 9 [10:47:37]New connection [10:47:37]New thread 3067321700 created [10:47:37]Thread 3067465060 joined [10:47:37]Waiting for new connection... [10:47:37] Sock 9.Parse request [10:47:37]Sock 9.Check first char [10:47:37]Sock 9.First char is OK [10:47:37]request: POST /json_proto HTTP/1.0 [10:47:37]Method: POST [10:47:37]URL: /json_proto [10:47:37]Method is POST - this is cgi request [10:47:37]url: /json_proto [10:47:37]query_string will be loaded in cgi processing [10:47:37]execute_cgi json_proto POST (null) [10:47:37]execute_cgi path=json_proto method=POST [10:47:37]POST find Content-Length [10:47:37]Host: 172.17.44.196:8080 [10:47:37]Content-Length: 1002 [10:47:37]Content-Type: application/json [10:47:37] [10:47:37]POST finish read [10:47:37]Found Content-Length = 1002 [10:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273226", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.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: Mbank", "payments": [ { "type": 1, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:37]execute_script... [10:47:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273226", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.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: Mbank", "payments": [ { "type": 1, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:37]POST & json_proto [10:47:37]process_json_proto [10:47:37]json parsed OK: [10:47:37]protocol is kg_v1.0 [10:47:37]action value=close_receipt [10:47:37]process_action close_receipt [10:47:37]cmd_close_receipt [10:47:37]MH_GetDate [10:47:37]Write to MH i2c: F0 00 00 B6 9E 43 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: F0 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: F0 09 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: F0 09 00 B6 9E 00 50 D4 18 67 E7 19 F8 65 4C [10:47:37]GetLastDocTimeStamp 1729680442 [10:47:37]current date 1729680464 [10:47:37]FM_GetShiftState [10:47:37]SAM_PROTO_GetShiftState [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 13 01 00 [10:47:37]Write to MH i2c: E2 08 00 B7 9E 80 13 01 00 00 00 00 00 D2 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 0E 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 0E 00 B7 9E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 37 [10:47:37]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:47:37]wFMCommunicate OK [10:47:37]SAM_PROTO_GetShiftState done [10:47:37]FM_GetShiftState done [10:47:37]opened in 1729642905 [10:47:37]opened+sec_in_day 1729729305 [10:47:37]quantity*price = 11500 [10:47:37]sum+1 = 11501 [10:47:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 0.00 Безнал.: 195.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 109 23.10.2024 10:47 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75376 ФПД: 264658092449844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104744&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75376&fm=264658092449844&tin=02508201610067®Number=0000000000161154&sum=19500 0 [10:47:38]StoreToDocumentArchive [10:47:38]shift 173 fd 75376 [10:47:38]save to /storage/0173/doc_00075376 [10:47:38]save last doc name /storage/0173/doc_00075376 to /storage/kkm_last_doc_name [10:47:38]save OK [10:47:38]Clear old archive folders... [10:47:38]ProcessDocumentItem done err = 0, tmpTLVsize=375 [10:47:38]tlvbuf is 00FA3990 [10:47:38]SAM_PROTO_ClearQueue [10:47:38]wFMCommunicate request_size=4 [10:47:38]MH_SAM_APDU [10:47:38]CAPDU: 80 09 00 00 [10:47:38]Write to MH i2c: E2 08 00 C4 9E 80 09 00 00 00 00 00 00 D4 [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:38]Read from MH i2c: E2 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: E2 03 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: E2 03 00 C4 9E 00 90 00 D6 [10:47:38]RAPDU: 90 00 [10:47:38]wFMCommunicate OK [10:47:38]SAM_PROTO_ClearQueue done [10:47:38]KKMCreateOFDPacket [10:47:38]OFDProtocolAddRootSTLVToBuf [10:47:38]FM_MakeSignedData [10:47:38]FM_MakeSignedData [10:47:38]SAM_PROTO_SignData [10:47:38]wFMCommunicate request_size=4 [10:47:38]MH_SAM_APDU [10:47:38]CAPDU: 80 0D 01 02 [10:47:38]Write to MH i2c: E2 08 00 C5 9E 80 0D 01 02 00 00 00 00 DC [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:38]Read from MH i2c: E2 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: E2 03 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: E2 03 00 C5 9E 00 90 00 D7 [10:47:38]RAPDU: 90 00 [10:47:38]wFMCommunicate OK [10:47:38]wFMCommunicate request_size=255 [10:47:38]MH_SAM_APDU [10:47:38]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F [10:47:38]Write to MH i2c: E2 02 01 C6 9E 80 0D 02 02 FA 00 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 00 7A [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 03 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 03 00 C6 9E 00 90 00 D8 [10:47:39]RAPDU: 90 00 [10:47:39]wFMCommunicate OK [10:47:39]wFMCommunicate request_size=134 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 50 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 70 26 01 00 35 04 06 00 F0 B4 83 96 60 34 [10:47:39]Write to MH i2c: E2 89 00 C7 9E 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 50 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 70 26 01 00 35 04 06 00 F0 B4 83 96 60 34 00 00 3D [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 03 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 03 00 C7 9E 00 90 00 D9 [10:47:39]RAPDU: 90 00 [10:47:39]wFMCommunicate OK [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 0D 03 02 [10:47:39]Write to MH i2c: E2 08 00 C8 9E 80 0D 03 02 00 00 00 00 E1 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 0B 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 0B 00 C8 9E 00 CD 43 DB 23 F3 BC 93 24 90 00 56 [10:47:39]RAPDU: CD 43 DB 23 F3 BC 93 24 90 00 [10:47:39]wFMCommunicate OK [10:47:39]SAM_PROTO_SignData done [10:47:39]FM_MakeSignedData done [10:47:39]CreateOFDProtocolMessage [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 11 00 00 [10:47:39]Write to MH i2c: E2 08 00 C9 9E 80 11 00 00 00 00 00 00 E1 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 17 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 17 00 C9 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2E [10:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:39]wFMCommunicate OK [10:47:39]CreateOFDProtocolMessage done [10:47:39]OFDSenderStorePacket 75376 [10:47:39]StoreOFDPacket docnum=75376 [10:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 8B 01 00 00 3F FD 83 01 EE 9B 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 50 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 70 26 01 00 35 04 06 00 F0 B4 83 96 60 34 CD 43 DB 23 F3 BC 93 24 [10:47:39]CheckFolder [10:47:39]dirname=/storage/ofd_packets [10:47:39]CheckFolder done [10:47:39]ProducePacketName [10:47:39]name=ofd_packets/00075376 [10:47:39]NVStorageSaveData ofd_packets/00075376 [10:47:39]File name is /storage/ofd_packets/00075376 [10:47:39]Write 425 bytes [10:47:39]NVStorageSaveData done [10:47:39]OFDSenderStorePacket done [10:47:39]KKMCreateOFDPacket done [10:47:39]NVStorageSaveData kkm_last_timestamp [10:47:39]File name is /storage/kkm_last_timestamp [10:47:39]Write 4 bytes [10:47:39]NVStorageSaveData done [10:47:39]ExternCall_PrintAddStr [10:47:39]wPrintStart [10:47:39]Write to MH i2c: 01 00 00 CA 9E 68 [10:47:39]OFD Sender: Processing packet 75376 [packets to send 15, broken 14] [10:47:39]ProducePacketName [10:47:39]name=ofd_packets/00075376 [10:47:39]OFD Sender: To server: pG, [10:47:39]CommunicateWithHost lk.salyk.kg:30040 [10:47:39]ConnectInit lk.salyk.kg [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 07 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 07 00 CA 9E 00 00 00 00 00 FF 0F 7D [10:47:39]RasterBufferAndPrint [10:47:39]line Счет N : (3)273226 [10:47:39]line ИНН: 02508201610067 [10:47:39]line Контрольно-Кассовый Чек [10:47:39]line ПРОДАЖА [10:47:39]line Товар: 2000036240010 [10:47:39]line Кофе Латте (GABB TRADE) [10:47:39]line 1.000 * 115.00 [10:47:39]line = 115.00 [10:47:39]line НДС 12% НСП 1% [10:47:39]line > о реализуемом товаре [10:47:39]line Товар: 4700000160211 [10:47:39]line Вода Легенда 0,5л [10:47:39]line 2.000 * 40.00 [10:47:39]line = 80.00 [10:47:39]line НДС 12% НСП 1% [10:47:39]line > о реализуемом товаре [10:47:39]line ИТОГО: 195.00 [10:47:39]line НСП 1% : 1.73 [10:47:39]line НДС 12% : 20.71 [10:47:39]line Наличными: 0.00 [10:47:39]line Безнал.: 195.00 [10:47:39]line Место: АЗС № 133 "Партнер Нефть" [10:47:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:47:39]line СНО: Общий режим [10:47:39]line Чек 109 23.10.2024 10:47 [10:47:39]line Смена: 173 ФФД: 1.0 [10:47:39]line ЗНМ: 0300000020 [10:47:39]line РНМ: 0000000000161154 [10:47:39]line Версия ККМ: v1.0 [10:47:39]line Платежная система: Mbank [10:47:39]line ФМ: 0000000000963323 [10:47:39]line ФД: 75376 [10:47:39]line ФПД: 264658092449844 [10:47:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104744&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75376&fm=264658092449844&tin=02508201610067®Number=0000000000161154&sum=19500 [10:47:39]line 0 [10:47:39]written 0, free lines is 4095 [10:47:39]Connected sock=10 [10:47:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 8B 01 00 00 3F FD 83 01 EE 9B 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 50 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 70 26 01 00 35 04 06 00 F0 B4 83 96 60 34 CD 43 DB 23 F3 BC 93 24 [10:47:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4A 06 47 00 61 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 70 26 01 00 F4 03 04 00 2C 7D 18 67 B6 04 01 00 00 30 31 A7 27 8D 7A 4D 68 [10:47:40]CommunicateWithHost err = 0 [10:47:40]CheckOFDResponse [10:47:40]1017 (14) - 77093643461234 [10:47:40]1041 (16) - 0000000000963323 [10:47:40]1040 (4) - 75376 [10:47:40]1012 (4) - 23.10.2024 04:35 [10:47:40]1206 (1) - 0 [10:47:40]OFD Sender: Remove packet 75376 [10:47:40]ProducePacketName [10:47:40]name=ofd_packets/00075376 [10:47:40]NVStorageDeleteData [10:47:40]Write to MH i2c: 01 00 00 F8 9E 96 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: 01 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: 01 07 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: 01 07 00 F8 9E 00 00 00 00 00 6D 0C 16 [10:47:40]RasterBufferAndPrint [10:47:40]line [10:47:40]line [10:47:40]line [10:47:40]line [10:47:40]line [10:47:40]written 0, free lines is 3188 [10:47:40]MH_Cut [10:47:40]Write to MH i2c: D1 01 00 FF 9E 01 6F [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: D1 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: D1 01 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: D1 01 00 FF 9E 00 6E [10:47:40]Write to MH i2c: 01 00 00 00 9F 9F [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]OFD Sender: No OFD packet to send [10:47:41]*** Cut start [10:47:41]*** Partial cut [10:47:41]*** CUTSNS_PIN = 1 [10:47:41]*** CUTSNS_PIN = 0 [10:47:41]*** Brake cut motor [10:47:41]Read from MH i2c: 01 [10:47:41]MH_I2C_Read... [10:47:41]*** Stop cut motor [10:47:41]*** Cut end [10:47:41]Read from MH i2c: 01 07 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 00 9F 00 00 00 00 00 FF 0F B4 [10:47:41]process_action close_receipt done [10:47:41]requested_data is exist [10:47:41]produce_requested_data [10:47:41]requested_item fm.sn is exist - process it [10:47:41]wFMCommunicate request_size=4 [10:47:41]MH_SAM_APDU [10:47:41]CAPDU: 80 11 00 00 [10:47:41]Write to MH i2c: E2 08 00 01 9F 80 11 00 00 00 00 00 00 1A [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:41]Read from MH i2c: E2 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 17 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 17 00 01 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 67 [10:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:41]wFMCommunicate OK [10:47:41]requested_item fd.num is exist - process it [10:47:41]SAM_PROTO_GetFieldsCounters [10:47:41]wFMCommunicate request_size=4 [10:47:41]MH_SAM_APDU [10:47:41]CAPDU: 80 13 00 00 [10:47:41]Write to MH i2c: E2 08 00 02 9F 80 13 00 00 00 00 00 00 1D [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:41]Read from MH i2c: E2 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 62 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 62 00 02 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 70 26 01 00 0E 04 04 00 AD 00 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 BC [10:47:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 70 26 01 00 0E 04 04 00 AD 00 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 [10:47:41]wFMCommunicate OK [10:47:41]SAM_PROTO_GetFieldsCounters done [10:47:41]requested_item shift.num is exist - process it [10:47:41]requested_item shift.opened is exist - process it [10:47:41]req_shift_opened [10:47:41]FM_GetShiftState [10:47:41]SAM_PROTO_GetShiftState [10:47:41]wFMCommunicate request_size=4 [10:47:41]MH_SAM_APDU [10:47:41]CAPDU: 80 13 01 00 [10:47:41]Write to MH i2c: E2 08 00 03 9F 80 13 01 00 00 00 00 00 1F [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:42]Read from MH i2c: E2 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: E2 0E 00 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: E2 0E 00 03 9F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 84 [10:47:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:47:42]wFMCommunicate OK [10:47:42]SAM_PROTO_GetShiftState done [10:47:42]FM_GetShiftState done [10:47:42]req_shift_opened done [10:47:42]requested_item shift.open_date is exist - process it [10:47:42]req_shift_open_date [10:47:42]req_shift_open_date done [10:47:42]produce_requested_data done [10:47:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75376,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:47:42]process_action_free close_receipt [10:47:42]json_value_free [10:47:42]json_value_free done [10:47:42]process_json_proto returns [10:47:42]Send response to host [10:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75376,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:47:42]free response buf [10:47:42]execute_script done [10:47:42]execute_script returns [10:47:42]free content buf [10:47:42]Sock 9.Close socket [10:47:42]Sock 9.Thread stoped [10:47:42]accept exits with 7 [10:47:42]New connection [10:47:42]New thread 3067465060 created [10:47:42]Thread 3067321700 joined [10:47:42]Waiting for new connection... [10:47:42] Sock 7.Parse request [10:47:42]Sock 7.Check first char [10:47:42]Sock 7.First char is OK [10:47:42]request: POST /json_proto HTTP/1.0 [10:47:42]Method: POST [10:47:42]URL: /json_proto [10:47:42]Method is POST - this is cgi request [10:47:42]url: /json_proto [10:47:42]query_string will be loaded in cgi processing [10:47:42]execute_cgi json_proto POST (null) [10:47:42]execute_cgi path=json_proto method=POST [10:47:42]POST find Content-Length [10:47:42]Host: 172.17.44.196:8080 [10:47:42]Content-Length: 770 [10:47:42]Content-Type: application/json [10:47:42] [10:47:42]POST finish read [10:47:42]Found Content-Length = 770 [10:47:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 67.390, "sum" : 5000.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: Mbank", "payments": [ { "type": 1, "sum" : 5000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:42]execute_script... [10:47: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)1965349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 67.390, "sum" : 5000.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: Mbank", "payments": [ { "type": 1, "sum" : 5000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:42]POST & json_proto [10:47:42]process_json_proto [10:47:42]json parsed OK: [10:47:42]protocol is kg_v1.0 [10:47:42]action value=close_receipt [10:47:42]process_action close_receipt [10:47:42]cmd_close_receipt [10:47:42]MH_GetDate [10:47:42]Write to MH i2c: F0 00 00 04 9F 92 [10:47:42]Write i2c OK [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: F0 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: F0 09 00 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: F0 09 00 04 9F 00 55 D4 18 67 E7 19 F8 65 A0 [10:47:42]GetLastDocTimeStamp 1729680464 [10:47:42]current date 1729680469 [10:47:42]FM_GetShiftState [10:47:42]SAM_PROTO_GetShiftState [10:47:42]wFMCommunicate request_size=4 [10:47:42]MH_SAM_APDU [10:47:42]CAPDU: 80 13 01 00 [10:47:42]Write to MH i2c: E2 08 00 05 9F 80 13 01 00 00 00 00 00 21 [10:47:42]Write i2c OK [10:47:42]MH_I2C_Read... [10:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:42]Read from MH i2c: E2 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: E2 0E 00 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: E2 0E 00 05 9F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 86 [10:47:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:47:42]wFMCommunicate OK [10:47:42]SAM_PROTO_GetShiftState done [10:47:42]FM_GetShiftState done [10:47:42]opened in 1729642905 [10:47:42]opened+sec_in_day 1729729305 [10:47:42]quantity*price = 500033 [10:47:42]sum+1 = 500035 [10:47:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.34 НСП 1% : 44.25 НДС 12% : 531.01 Наличными: 0.00 Безнал.: 5000.34 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 110 23.10.2024 10:47 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75377 ФПД: 279822998047278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104749&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75377&fm=279822998047278&tin=02508201610067®Number=0000000000161154&sum=500034 [10:47:43]StoreToDocumentArchive [10:47:43]shift 173 fd 75377 [10:47:43]save to /storage/0173/doc_00075377 [10:47:43]save last doc name /storage/0173/doc_00075377 to /storage/kkm_last_doc_name [10:47:43]save OK [10:47:43]Clear old archive folders... [10:47:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:43]tlvbuf is 00D123C0 [10:47:43]SAM_PROTO_ClearQueue [10:47:43]wFMCommunicate request_size=4 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 09 00 00 [10:47:43]Write to MH i2c: E2 08 00 12 9F 80 09 00 00 00 00 00 00 23 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 12 9F 00 90 00 25 [10:47:44]RAPDU: 90 00 [10:47:44]wFMCommunicate OK [10:47:44]SAM_PROTO_ClearQueue done [10:47:44]KKMCreateOFDPacket [10:47:44]OFDProtocolAddRootSTLVToBuf [10:47:44]FM_MakeSignedData [10:47:44]FM_MakeSignedData [10:47:44]SAM_PROTO_SignData [10:47:44]wFMCommunicate request_size=4 [10:47:44]MH_SAM_APDU [10:47:44]CAPDU: 80 0D 01 02 [10:47:44]Write to MH i2c: E2 08 00 13 9F 80 0D 01 02 00 00 00 00 2B [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 13 9F 00 90 00 26 [10:47:44]RAPDU: 90 00 [10:47:44]wFMCommunicate OK [10:47:44]wFMCommunicate request_size=255 [10:47:44]MH_SAM_APDU [10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 55 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 71 26 01 00 35 04 06 00 FE [10:47:44]Write to MH i2c: E2 02 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 55 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 71 26 01 00 35 04 06 00 FE 00 00 37 [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 14 9F 00 90 00 27 [10:47:44]RAPDU: 90 00 [10:47:44]wFMCommunicate OK [10:47:44]wFMCommunicate request_size=10 [10:47:44]MH_SAM_APDU [10:47:44]CAPDU: 80 0D 02 02 05 7F 5E 66 0A 2E [10:47:44]Write to MH i2c: E2 0D 00 15 9F 80 0D 02 02 05 00 7F 5E 66 0A 2E 00 00 B3 [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 15 9F 00 90 00 28 [10:47:44]RAPDU: 90 00 [10:47:44]wFMCommunicate OK [10:47:44]wFMCommunicate request_size=4 [10:47:44]MH_SAM_APDU [10:47:44]CAPDU: 80 0D 03 02 [10:47:44]Write to MH i2c: E2 08 00 16 9F 80 0D 03 02 00 00 00 00 30 [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 0B 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 0B 00 16 9F 00 BF 8F C8 16 FF 8A 56 D9 90 00 15 [10:47:44]RAPDU: BF 8F C8 16 FF 8A 56 D9 90 00 [10:47:44]wFMCommunicate OK [10:47:44]SAM_PROTO_SignData done [10:47:44]FM_MakeSignedData done [10:47:44]CreateOFDProtocolMessage [10:47:44]wFMCommunicate request_size=4 [10:47:44]MH_SAM_APDU [10:47:44]CAPDU: 80 11 00 00 [10:47:44]Write to MH i2c: E2 08 00 17 9F 80 11 00 00 00 00 00 00 30 [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 17 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 17 00 17 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7D [10:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:44]wFMCommunicate OK [10:47:44]CreateOFDProtocolMessage done [10:47:44]OFDSenderStorePacket 75377 [10:47:44]StoreOFDPacket docnum=75377 [10:47:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 77 8F 07 01 82 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 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 55 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 71 26 01 00 35 04 06 00 FE 7F 5E 66 0A 2E BF 8F C8 16 FF 8A 56 D9 [10:47:44]CheckFolder [10:47:44]dirname=/storage/ofd_packets [10:47:44]CheckFolder done [10:47:44]ProducePacketName [10:47:44]name=ofd_packets/00075377 [10:47:44]NVStorageSaveData ofd_packets/00075377 [10:47:44]File name is /storage/ofd_packets/00075377 [10:47:44]Write 301 bytes [10:47:44]NVStorageSaveData done [10:47:44]OFDSenderStorePacket done [10:47:44]KKMCreateOFDPacket done [10:47:44]NVStorageSaveData kkm_last_timestamp [10:47:44]File name is /storage/kkm_last_timestamp [10:47:44]Write 4 bytes [10:47:44]NVStorageSaveData done [10:47:44]ExternCall_PrintAddStr [10:47:44]wPrintStart [10:47:44]Write to MH i2c: 01 00 00 18 9F B7 [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: 01 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: 01 07 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: 01 07 00 18 9F 00 00 00 00 00 FF 0F CC [10:47:44]RasterBufferAndPrint [10:47:44]line Счет N : (1)1965349 [10:47:44]line ИНН: 02508201610067 [10:47:44]line Контрольно-Кассовый Чек [10:47:44]line ПРОДАЖА [10:47:44]line ТРК (МРК, ГНК) : 34 [10:47:44]line Товар: 2710124500 [10:47:44]line Аи-95-К-5 [10:47:44]line 67.390 * 74.20 [10:47:44]line = 5000.34 [10:47:44]line НДС 12% НСП 1% [10:47:44]line > о реализуемом товаре [10:47:44]line ИТОГО: 5000.34 [10:47:44]line НСП 1% : 44.25 [10:47:44]line НДС 12% : 531.01 [10:47:44]line Наличными: 0.00 [10:47:44]line Безнал.: 5000.34 [10:47:44]line Место: АЗС № 133 "Партнер Нефть" [10:47:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:47:44]line СНО: Общий режим [10:47:44]line Чек 110 23.10.2024 10:47 [10:47:44]line Смена: 173 ФФД: 1.0 [10:47:44]line ЗНМ: 0300000020 [10:47:44]line РНМ: 0000000000161154 [10:47:44]line Версия ККМ: v1.0 [10:47:44]line Платежная система: Mbank [10:47:44]line ФМ: 0000000000963323 [10:47:44]line ФД: 75377 [10:47:44]line ФПД: 279822998047278 [10:47:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104749&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75377&fm=279822998047278&tin=02508201610067®Number=0000000000161154&sum=500034 [10:47:44]written 0, free lines is 4095 [10:47:44]OFD Sender: Processing packet 75377 [packets to send 15, broken 14] [10:47:44]ProducePacketName [10:47:44]name=ofd_packets/00075377 [10:47:44]OFD Sender: To server: pG, [10:47:44]CommunicateWithHost lk.salyk.kg:30040 [10:47:44]ConnectInit lk.salyk.kg [10:47:44]Connected sock=10 [10:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 77 8F 07 01 82 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 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 55 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 71 26 01 00 35 04 06 00 FE 7F 5E 66 0A 2E BF 8F C8 16 FF 8A 56 D9 [10:47:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E9 0C 47 00 F0 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 71 26 01 00 F4 03 04 00 31 7D 18 67 B6 04 01 00 00 BC 99 85 6E 43 BD F4 BF [10:47:45]CommunicateWithHost err = 0 [10:47:45]CheckOFDResponse [10:47:45]1017 (14) - 77093643461234 [10:47:45]1041 (16) - 0000000000963323 [10:47:45]1040 (4) - 75377 [10:47:45]1012 (4) - 23.10.2024 04:36 [10:47:45]1206 (1) - 0 [10:47:45]OFD Sender: Remove packet 75377 [10:47:45]ProducePacketName [10:47:45]name=ofd_packets/00075377 [10:47:45]NVStorageDeleteData [10:47:45]Write to MH i2c: 01 00 00 40 9F DF [10:47:45]Write i2c OK [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: 01 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: 01 07 00 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: 01 07 00 40 9F 00 00 00 00 00 F3 0C E5 [10:47:45]RasterBufferAndPrint [10:47:45]line [10:47:45]line [10:47:45]line [10:47:45]line [10:47:45]line [10:47:45]written 0, free lines is 3325 [10:47:45]MH_Cut [10:47:45]Write to MH i2c: D1 01 00 47 9F 01 B8 [10:47:45]Write i2c OK [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: D1 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: D1 01 00 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: D1 01 00 47 9F 00 B7 [10:47:45]Write to MH i2c: 01 00 00 48 9F E7 [10:47:45]Write i2c OK [10:47:45]MH_I2C_Read... [10:47:45]OFD Sender: No OFD packet to send [10:47:45]*** Cut start [10:47:45]*** Partial cut [10:47:45]*** CUTSNS_PIN = 1 [10:47:45]*** CUTSNS_PIN = 0 [10:47:46]*** Brake cut motor [10:47:46]Read from MH i2c: 01 [10:47:46]MH_I2C_Read... [10:47:46]*** Stop cut motor [10:47:46]*** Cut end [10:47:46]Read from MH i2c: 01 07 00 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: 01 07 00 48 9F 00 00 00 00 00 FF 0F FC [10:47:46]process_action close_receipt done [10:47:46]requested_data is exist [10:47:46]produce_requested_data [10:47:46]requested_item fm.sn is exist - process it [10:47:46]wFMCommunicate request_size=4 [10:47:46]MH_SAM_APDU [10:47:46]CAPDU: 80 11 00 00 [10:47:46]Write to MH i2c: E2 08 00 49 9F 80 11 00 00 00 00 00 00 62 [10:47:46]Write i2c OK [10:47:46]MH_I2C_Read... [10:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:46]Read from MH i2c: E2 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: E2 17 00 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: E2 17 00 49 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AF [10:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:47:46]wFMCommunicate OK [10:47:46]requested_item fd.num is exist - process it [10:47:46]SAM_PROTO_GetFieldsCounters [10:47:46]wFMCommunicate request_size=4 [10:47:46]MH_SAM_APDU [10:47:46]CAPDU: 80 13 00 00 [10:47:46]Write to MH i2c: E2 08 00 4A 9F 80 13 00 00 00 00 00 00 65 [10:47:46]Write i2c OK [10:47:46]MH_I2C_Read... [10:47:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:46]Read from MH i2c: E2 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: E2 62 00 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: E2 62 00 4A 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 71 26 01 00 0E 04 04 00 AD 00 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 08 [10:47:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 71 26 01 00 0E 04 04 00 AD 00 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 [10:47:46]wFMCommunicate OK [10:47:46]SAM_PROTO_GetFieldsCounters done [10:47:46]requested_item shift.num is exist - process it [10:47:46]requested_item shift.opened is exist - process it [10:47:46]req_shift_opened [10:47:46]FM_GetShiftState [10:47:46]SAM_PROTO_GetShiftState [10:47:46]wFMCommunicate request_size=4 [10:47:46]MH_SAM_APDU [10:47:46]CAPDU: 80 13 01 00 [10:47:46]Write to MH i2c: E2 08 00 4B 9F 80 13 01 00 00 00 00 00 67 [10:47:46]Write i2c OK [10:47:46]MH_I2C_Read... [10:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:46]Read from MH i2c: E2 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: E2 0E 00 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: E2 0E 00 4B 9F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CC [10:47:46]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:47:46]wFMCommunicate OK [10:47:46]SAM_PROTO_GetShiftState done [10:47:46]FM_GetShiftState done [10:47:46]req_shift_opened done [10:47:46]requested_item shift.open_date is exist - process it [10:47:46]req_shift_open_date [10:47:46]req_shift_open_date done [10:47:46]produce_requested_data done [10:47:46]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75377,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:47:46]process_action_free close_receipt [10:47:46]json_value_free [10:47:46]json_value_free done [10:47:46]process_json_proto returns [10:47:46]Send response to host [10:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75377,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:47:46]free response buf [10:47:46]execute_script done [10:47:46]execute_script returns [10:47:46]free content buf [10:47:46]Sock 7.Close socket [10:47:46]Sock 7.Thread stoped [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:10]accept exits with 9 [10:49:10]New connection [10:49:10]New thread 3067321700 created [10:49:10]Thread 3067465060 joined [10:49:10]Waiting for new connection... [10:49:10] Sock 9.Parse request [10:49:10]Sock 9.Check first char [10:49:10]Sock 9.First char is OK [10:49:10]request: POST /json_proto HTTP/1.0 [10:49:10]Method: POST [10:49:10]URL: /json_proto [10:49:10]Method is POST - this is cgi request [10:49:10]url: /json_proto [10:49:10]query_string will be loaded in cgi processing [10:49:10]execute_cgi json_proto POST (null) [10:49:10]execute_cgi path=json_proto method=POST [10:49:10]POST find Content-Length [10:49:10]Host: 172.17.44.196:8080 [10:49:10]Content-Length: 680 [10:49:10]Content-Type: application/json [10:49:10] [10:49:10]POST finish read [10:49:10]Found Content-Length = 680 [10:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965352", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:49:10]execute_script... [10:49: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)1965352", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:49:10]POST & json_proto [10:49:10]process_json_proto [10:49:10]json parsed OK: [10:49:10]protocol is kg_v1.0 [10:49:10]action value=close_receipt [10:49:10]process_action close_receipt [10:49:10]cmd_close_receipt [10:49:10]MH_GetDate [10:49:10]Write to MH i2c: F0 00 00 4C 9F DA [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: F0 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: F0 09 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: F0 09 00 4C 9F 00 AD D4 18 67 E7 19 F8 65 40 [10:49:10]GetLastDocTimeStamp 1729680469 [10:49:10]current date 1729680557 [10:49:10]FM_GetShiftState [10:49:10]SAM_PROTO_GetShiftState [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 13 01 00 [10:49:10]Write to MH i2c: E2 08 00 4D 9F 80 13 01 00 00 00 00 00 69 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0E 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0E 00 4D 9F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CE [10:49:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_GetShiftState done [10:49:10]FM_GetShiftState done [10:49:10]opened in 1729642905 [10:49:10]opened+sec_in_day 1729729305 [10:49:10]quantity*price = 100050 [10:49:10]sum+1 = 100052 [10:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 111 23.10.2024 10:49 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75378 ФПД: 143757955030337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104917&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75378&fm=143757955030337&tin=02508201610067®Number=0000000000161154&sum=100000 [10:49:11]StoreToDocumentArchive [10:49:11]shift 173 fd 75378 [10:49:11]save to /storage/0173/doc_00075378 [10:49:11]save last doc name /storage/0173/doc_00075378 to /storage/kkm_last_doc_name [10:49:11]save OK [10:49:11]Clear old archive folders... [10:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:49:11]tlvbuf is 00E5F0F0 [10:49:11]SAM_PROTO_ClearQueue [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 09 00 00 [10:49:11]Write to MH i2c: E2 08 00 5A 9F 80 09 00 00 00 00 00 00 6B [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 5A 9F 00 90 00 6D [10:49:12]RAPDU: 90 00 [10:49:12]wFMCommunicate OK [10:49:12]SAM_PROTO_ClearQueue done [10:49:12]KKMCreateOFDPacket [10:49:12]OFDProtocolAddRootSTLVToBuf [10:49:12]FM_MakeSignedData [10:49:12]FM_MakeSignedData [10:49:12]SAM_PROTO_SignData [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 0D 01 02 [10:49:12]Write to MH i2c: E2 08 00 5B 9F 80 0D 01 02 00 00 00 00 73 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 5B 9F 00 90 00 6E [10:49:12]RAPDU: 90 00 [10:49:12]wFMCommunicate OK [10:49:12]wFMCommunicate request_size=255 [10:49:12]MH_SAM_APDU [10:49:12]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AD D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 72 26 01 00 35 04 06 00 82 BF 41 D7 [10:49:12]Write to MH i2c: E2 02 01 5C 9F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AD D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 72 26 01 00 35 04 06 00 82 BF 41 D7 00 00 F9 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 5C 9F 00 90 00 6F [10:49:12]RAPDU: 90 00 [10:49:12]wFMCommunicate OK [10:49:12]wFMCommunicate request_size=7 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 0D 02 02 02 DD 41 [10:49:12]Write to MH i2c: E2 0A 00 5D 9F 80 0D 02 02 02 00 DD 41 00 00 98 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 03 00 5D 9F 00 90 00 70 [10:49:12]RAPDU: 90 00 [10:49:12]wFMCommunicate OK [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 0D 03 02 [10:49:12]Write to MH i2c: E2 08 00 5E 9F 80 0D 03 02 00 00 00 00 78 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 0B 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 0B 00 5E 9F 00 ED FF 6F B8 F6 CD 1F DF 90 00 4D [10:49:12]RAPDU: ED FF 6F B8 F6 CD 1F DF 90 00 [10:49:12]wFMCommunicate OK [10:49:12]SAM_PROTO_SignData done [10:49:12]FM_MakeSignedData done [10:49:12]CreateOFDProtocolMessage [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 11 00 00 [10:49:12]Write to MH i2c: E2 08 00 5F 9F 80 11 00 00 00 00 00 00 78 [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 17 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 17 00 5F 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C5 [10:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:49:12]wFMCommunicate OK [10:49:12]CreateOFDProtocolMessage done [10:49:12]OFDSenderStorePacket 75378 [10:49:12]StoreOFDPacket docnum=75378 [10:49:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 56 1A 04 01 3D 8D 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AD D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 72 26 01 00 35 04 06 00 82 BF 41 D7 DD 41 ED FF 6F B8 F6 CD 1F DF [10:49:12]CheckFolder [10:49:12]dirname=/storage/ofd_packets [10:49:12]CheckFolder done [10:49:12]ProducePacketName [10:49:12]name=ofd_packets/00075378 [10:49:12]NVStorageSaveData ofd_packets/00075378 [10:49:12]File name is /storage/ofd_packets/00075378 [10:49:12]Write 298 bytes [10:49:12]NVStorageSaveData done [10:49:12]OFDSenderStorePacket done [10:49:12]KKMCreateOFDPacket done [10:49:12]NVStorageSaveData kkm_last_timestamp [10:49:12]File name is /storage/kkm_last_timestamp [10:49:12]Write 4 bytes [10:49:12]NVStorageSaveData done [10:49:12]ExternCall_PrintAddStr [10:49:12]wPrintStart [10:49:12]Write to MH i2c: 01 00 00 60 9F FF [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 07 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 07 00 60 9F 00 00 00 00 00 FF 0F 14 [10:49:12]RasterBufferAndPrint [10:49:12]line Счет N : (1)1965352 [10:49:12]line ИНН: 02508201610067 [10:49:12]line Контрольно-Кассовый Чек [10:49:12]line ПРОДАЖА [10:49:12]line ТРК (МРК, ГНК) : 51 [10:49:12]line Товар: 2710194210 [10:49:12]line ДТ-К-5 [10:49:12]line 13.130 * 76.20 [10:49:12]line = 1000.51 [10:49:12]line НДС 12% НСП 1% [10:49:12]line > о реализуемом товаре [10:49:12]line ОКРУГЛЕНИЕ: -0.51 [10:49:12]line ИТОГО: 1000.00 [10:49:12]line Внесено: 1000.00 [10:49:12]line СДАЧА: 0.00 [10:49:12]line НСП 1% : 8.85 [10:49:12]line НДС 12% : 106.25 [10:49:12]line Наличными: 1000.00 [10:49:12]line Безнал.: 0.00 [10:49:12]line Место: АЗС № 133 "Партнер Нефть" [10:49:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:49:12]line СНО: Общий режим [10:49:12]line Чек 111 23.10.2024 10:49 [10:49:12]line Смена: 173 ФФД: 1.0 [10:49:12]line ЗНМ: 0300000020 [10:49:12]line РНМ: 0000000000161154 [10:49:12]line Версия ККМ: v1.0 [10:49:12]line ФМ: 0000000000963323 [10:49:12]line ФД: 75378 [10:49:12]line ФПД: 143757955030337 [10:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104917&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75378&fm=143757955030337&tin=02508201610067®Number=0000000000161154&sum=100000 [10:49:12]OFD Sender: Processing packet 75378 [packets to send 15, broken 14] [10:49:12]ProducePacketName [10:49:12]name=ofd_packets/00075378 [10:49:12]OFD Sender: To server: pG, [10:49:12]CommunicateWithHost lk.salyk.kg:30040 [10:49:12]ConnectInit lk.salyk.kg [10:49:12]written 0, free lines is 4095 [10:49:12]Connected sock=10 [10:49:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 56 1A 04 01 3D 8D 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AD D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 72 26 01 00 35 04 06 00 82 BF 41 D7 DD 41 ED FF 6F B8 F6 CD 1F DF [10:49:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5F DC 47 00 3E 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 72 26 01 00 F4 03 04 00 89 7D 18 67 B6 04 01 00 00 14 6A 0F 61 3B D2 FE E6 [10:49:13]CommunicateWithHost err = 0 [10:49:13]CheckOFDResponse [10:49:13]1017 (14) - 77093643461234 [10:49:13]1041 (16) - 0000000000963323 [10:49:13]1040 (4) - 75378 [10:49:13]1012 (4) - 23.10.2024 04:37 [10:49:13]1206 (1) - 0 [10:49:13]OFD Sender: Remove packet 75378 [10:49:13]ProducePacketName [10:49:13]name=ofd_packets/00075378 [10:49:13]NVStorageDeleteData [10:49:13]Write to MH i2c: 01 00 00 8A 9F 29 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: 01 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: 01 07 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: 01 07 00 8A 9F 00 00 00 00 00 B1 0C ED [10:49:13]RasterBufferAndPrint [10:49:13]line [10:49:13]line [10:49:13]line [10:49:13]line [10:49:13]line [10:49:13]written 0, free lines is 3255 [10:49:13]MH_Cut [10:49:13]Write to MH i2c: D1 01 00 91 9F 01 02 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: D1 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: D1 01 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: D1 01 00 91 9F 00 01 [10:49:13]Write to MH i2c: 01 00 00 92 9F 31 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]OFD Sender: No OFD packet to send [10:49:14]*** Cut start [10:49:14]*** Partial cut [10:49:14]*** CUTSNS_PIN = 1 [10:49:14]*** CUTSNS_PIN = 0 [10:49:14]*** Brake cut motor [10:49:14]Read from MH i2c: 01 [10:49:14]MH_I2C_Read... [10:49:14]*** Stop cut motor [10:49:14]*** Cut end [10:49:14]Read from MH i2c: 01 07 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: 01 07 00 92 9F 00 00 00 00 00 FF 0F 46 [10:49:14]process_action close_receipt done [10:49:14]requested_data is exist [10:49:14]produce_requested_data [10:49:14]requested_item fm.sn is exist - process it [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 11 00 00 [10:49:14]Write to MH i2c: E2 08 00 93 9F 80 11 00 00 00 00 00 00 AC [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 17 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 17 00 93 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F9 [10:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:49:14]wFMCommunicate OK [10:49:14]requested_item fd.num is exist - process it [10:49:14]SAM_PROTO_GetFieldsCounters [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 13 00 00 [10:49:14]Write to MH i2c: E2 08 00 94 9F 80 13 00 00 00 00 00 00 AF [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 62 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 62 00 94 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 72 26 01 00 0E 04 04 00 AD 00 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 56 [10:49:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 72 26 01 00 0E 04 04 00 AD 00 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 [10:49:15]wFMCommunicate OK [10:49:15]SAM_PROTO_GetFieldsCounters done [10:49:15]requested_item shift.num is exist - process it [10:49:15]requested_item shift.opened is exist - process it [10:49:15]req_shift_opened [10:49:15]FM_GetShiftState [10:49:15]SAM_PROTO_GetShiftState [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 13 01 00 [10:49:15]Write to MH i2c: E2 08 00 95 9F 80 13 01 00 00 00 00 00 B1 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0E 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0E 00 95 9F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 16 [10:49:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:49:15]wFMCommunicate OK [10:49:15]SAM_PROTO_GetShiftState done [10:49:15]FM_GetShiftState done [10:49:15]req_shift_opened done [10:49:15]requested_item shift.open_date is exist - process it [10:49:15]req_shift_open_date [10:49:15]req_shift_open_date done [10:49:15]produce_requested_data done [10:49:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75378,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:49:15]process_action_free close_receipt [10:49:15]json_value_free [10:49:15]json_value_free done [10:49:15]process_json_proto returns [10:49:15]Send response to host [10:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75378,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:49:15]free response buf [10:49:15]execute_script done [10:49:15]execute_script returns [10:49:15]free content buf [10:49:15]Sock 9.Close socket [10:49:15]Sock 9.Thread stoped [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:47]accept exits with 7 [10:49:47]New connection [10:49:47]New thread 3067465060 created [10:49:47]Thread 3067321700 joined [10:49:47]Waiting for new connection... [10:49:47] Sock 7.Parse request [10:49:47]Sock 7.Check first char [10:49:47]Sock 7.First char is OK [10:49:47]request: POST /json_proto HTTP/1.0 [10:49:47]Method: POST [10:49:47]URL: /json_proto [10:49:47]Method is POST - this is cgi request [10:49:47]url: /json_proto [10:49:47]query_string will be loaded in cgi processing [10:49:47]execute_cgi json_proto POST (null) [10:49:47]execute_cgi path=json_proto method=POST [10:49:47]POST find Content-Length [10:49:47]Host: 172.17.44.196:8080 [10:49:47]Content-Length: 683 [10:49:47]Content-Type: application/json [10:49:47] [10:49:47]POST finish read [10:49:47]Found Content-Length = 683 [10:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:47]execute_script... [10:49: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)1965353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:47]POST & json_proto [10:49:47]process_json_proto [10:49:47]json parsed OK: [10:49:47]protocol is kg_v1.0 [10:49:47]action value=close_receipt [10:49:47]process_action close_receipt [10:49:47]cmd_close_receipt [10:49:47]MH_GetDate [10:49:47]Write to MH i2c: F0 00 00 96 9F 24 [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: F0 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: F0 09 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: F0 09 00 96 9F 00 D2 D4 18 67 E7 19 F8 65 AF [10:49:47]GetLastDocTimeStamp 1729680557 [10:49:47]current date 1729680594 [10:49:47]FM_GetShiftState [10:49:47]SAM_PROTO_GetShiftState [10:49:47]wFMCommunicate request_size=4 [10:49:47]MH_SAM_APDU [10:49:47]CAPDU: 80 13 01 00 [10:49:47]Write to MH i2c: E2 08 00 97 9F 80 13 01 00 00 00 00 00 B3 [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:47]Read from MH i2c: E2 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: E2 0E 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: E2 0E 00 97 9F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 18 [10:49:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:49:47]wFMCommunicate OK [10:49:47]SAM_PROTO_GetShiftState done [10:49:47]FM_GetShiftState done [10:49:47]opened in 1729642905 [10:49:47]opened+sec_in_day 1729729305 [10:49:47]quantity*price = 100015 [10:49:47]sum+1 = 100017 [10:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 112 23.10.2024 10:49 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75379 ФПД: 273657812098349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104954&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75379&fm=273657812098349&tin=02508201610067®Number=0000000000161154&sum=100000 [10:49:48]StoreToDocumentArchive [10:49:48]shift 173 fd 75379 [10:49:48]save to /storage/0173/doc_00075379 [10:49:48]save last doc name /storage/0173/doc_00075379 to /storage/kkm_last_doc_name [10:49:48]save OK [10:49:48]Clear old archive folders... [10:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:48]tlvbuf is 00E8D440 [10:49:48]SAM_PROTO_ClearQueue [10:49:48]wFMCommunicate request_size=4 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 09 00 00 [10:49:48]Write to MH i2c: E2 08 00 A4 9F 80 09 00 00 00 00 00 00 B5 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:48]Read from MH i2c: E2 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 03 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 03 00 A4 9F 00 90 00 B7 [10:49:48]RAPDU: 90 00 [10:49:48]wFMCommunicate OK [10:49:48]SAM_PROTO_ClearQueue done [10:49:48]KKMCreateOFDPacket [10:49:48]OFDProtocolAddRootSTLVToBuf [10:49:48]FM_MakeSignedData [10:49:48]FM_MakeSignedData [10:49:48]SAM_PROTO_SignData [10:49:48]wFMCommunicate request_size=4 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 0D 01 02 [10:49:48]Write to MH i2c: E2 08 00 A5 9F 80 0D 01 02 00 00 00 00 BD [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:48]Read from MH i2c: E2 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 03 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 03 00 A5 9F 00 90 00 B8 [10:49:48]RAPDU: 90 00 [10:49:48]wFMCommunicate OK [10:49:48]wFMCommunicate request_size=255 [10:49:48]MH_SAM_APDU [10:49: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D2 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 73 26 01 00 35 04 06 00 F8 [10:49:48]Write to MH i2c: E2 02 01 A6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D2 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 73 26 01 00 35 04 06 00 F8 00 00 0D [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:48]Read from MH i2c: E2 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 03 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 03 00 A6 9F 00 90 00 B9 [10:49:48]RAPDU: 90 00 [10:49:48]wFMCommunicate OK [10:49:48]wFMCommunicate request_size=10 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 0D 02 02 05 E3 EC AE 1D 2D [10:49:48]Write to MH i2c: E2 0D 00 A7 9F 80 0D 02 02 05 00 E3 EC AE 1D 2D 00 00 91 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:48]Read from MH i2c: E2 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 03 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 03 00 A7 9F 00 90 00 BA [10:49:48]RAPDU: 90 00 [10:49:48]wFMCommunicate OK [10:49:48]wFMCommunicate request_size=4 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 0D 03 02 [10:49:48]Write to MH i2c: E2 08 00 A8 9F 80 0D 03 02 00 00 00 00 C2 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:48]OFD Sender: No OFD packet to send [10:49:48]Read from MH i2c: E2 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 0B 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 0B 00 A8 9F 00 3E D6 E3 FC 26 5D F2 CB 90 00 F6 [10:49:48]RAPDU: 3E D6 E3 FC 26 5D F2 CB 90 00 [10:49:48]wFMCommunicate OK [10:49:48]SAM_PROTO_SignData done [10:49:48]FM_MakeSignedData done [10:49:48]CreateOFDProtocolMessage [10:49:48]wFMCommunicate request_size=4 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 11 00 00 [10:49:48]Write to MH i2c: E2 08 00 A9 9F 80 11 00 00 00 00 00 00 C2 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:48]Read from MH i2c: E2 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 17 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 17 00 A9 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0F [10:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:49:48]wFMCommunicate OK [10:49:48]CreateOFDProtocolMessage done [10:49:48]OFDSenderStorePacket 75379 [10:49:48]StoreOFDPacket docnum=75379 [10:49:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CA 20 07 01 38 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D2 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 73 26 01 00 35 04 06 00 F8 E3 EC AE 1D 2D 3E D6 E3 FC 26 5D F2 CB [10:49:48]CheckFolder [10:49:48]dirname=/storage/ofd_packets [10:49:48]CheckFolder done [10:49:48]ProducePacketName [10:49:48]name=ofd_packets/00075379 [10:49:48]NVStorageSaveData ofd_packets/00075379 [10:49:48]File name is /storage/ofd_packets/00075379 [10:49:48]Write 301 bytes [10:49:48]NVStorageSaveData done [10:49:48]OFDSenderStorePacket done [10:49:48]KKMCreateOFDPacket done [10:49:48]NVStorageSaveData kkm_last_timestamp [10:49:48]File name is /storage/kkm_last_timestamp [10:49:48]Write 4 bytes [10:49:48]NVStorageSaveData done [10:49:48]ExternCall_PrintAddStr [10:49:48]wPrintStart [10:49:48]Write to MH i2c: 01 00 00 AA 9F 49 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: 01 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: 01 07 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: 01 07 00 AA 9F 00 00 00 00 00 FF 0F 5E [10:49:48]RasterBufferAndPrint [10:49:48]line Счет N : (1)1965353 [10:49:48]line ИНН: 02508201610067 [10:49:48]line Контрольно-Кассовый Чек [10:49:48]line ПРОДАЖА [10:49:48]line ТРК (МРК, ГНК) : 43 [10:49:48]line Товар: 2710124130 [10:49:48]line Аи-92-К-5 [10:49:48]line 14.950 * 66.90 [10:49:48]line = 1000.16 [10:49:48]line НДС 12% НСП 1% [10:49:48]line > о реализуемом товаре [10:49:48]line ОКРУГЛЕНИЕ: -0.16 [10:49:48]line ИТОГО: 1000.00 [10:49:48]line Внесено: 1000.00 [10:49:48]line СДАЧА: 0.00 [10:49:48]line НСП 1% : 8.85 [10:49:48]line НДС 12% : 106.21 [10:49:48]line Наличными: 1000.00 [10:49:48]line Безнал.: 0.00 [10:49:48]line Место: АЗС № 133 "Партнер Нефть" [10:49:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:49:48]line СНО: Общий режим [10:49:48]line Чек 112 23.10.2024 10:49 [10:49:48]line Смена: 173 ФФД: 1.0 [10:49:48]line ЗНМ: 0300000020 [10:49:48]line РНМ: 0000000000161154 [10:49:48]line Версия ККМ: v1.0 [10:49:48]line ФМ: 0000000000963323 [10:49:48]line ФД: 75379 [10:49:48]line ФПД: 273657812098349 [10:49:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104954&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75379&fm=273657812098349&tin=02508201610067®Number=0000000000161154&sum=100000 [10:49:49]OFD Sender: Processing packet 75379 [packets to send 15, broken 14] [10:49:49]ProducePacketName [10:49:49]name=ofd_packets/00075379 [10:49:49]OFD Sender: To server: pG, [10:49:49]CommunicateWithHost lk.salyk.kg:30040 [10:49:49]ConnectInit lk.salyk.kg [10:49:49]written 0, free lines is 4095 [10:49:49]Connected sock=10 [10:49:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CA 20 07 01 38 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D2 D4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 73 26 01 00 35 04 06 00 F8 E3 EC AE 1D 2D 3E D6 E3 FC 26 5D F2 CB [10:49:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3D FF 47 00 F8 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 39 36 33 33 32 33 10 04 04 00 73 26 01 00 F4 03 04 00 AD 7D 18 67 B6 04 01 00 00 FE 6E 6D 3D F2 AB BC F9 [10:49:49]CommunicateWithHost err = 0 [10:49:49]CheckOFDResponse [10:49:49]1017 (14) - 77093643461234 [10:49:49]1041 (16) - 0000000000963323 [10:49:49]1040 (4) - 75379 [10:49:49]1012 (4) - 23.10.2024 04:38 [10:49:49]1206 (1) - 0 [10:49:49]OFD Sender: Remove packet 75379 [10:49:49]ProducePacketName [10:49:49]name=ofd_packets/00075379 [10:49:49]NVStorageDeleteData [10:49:49]Write to MH i2c: 01 00 00 D4 9F 73 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 07 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 07 00 D4 9F 00 00 00 00 00 B7 0C 3D [10:49:49]RasterBufferAndPrint [10:49:49]line [10:49:49]line [10:49:49]line [10:49:49]line [10:49:49]line [10:49:49]written 0, free lines is 3261 [10:49:49]MH_Cut [10:49:49]Write to MH i2c: D1 01 00 DB 9F 01 4C [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: D1 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: D1 01 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: D1 01 00 DB 9F 00 4B [10:49:49]Write to MH i2c: 01 00 00 DC 9F 7B [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:50]OFD Sender: No OFD packet to send [10:49:50]*** Cut start [10:49:50]*** Partial cut [10:49:50]*** CUTSNS_PIN = 1 [10:49:50]*** CUTSNS_PIN = 0 [10:49:50]*** Brake cut motor [10:49:51]Read from MH i2c: 01 [10:49:51]MH_I2C_Read... [10:49:51]*** Stop cut motor [10:49:51]*** Cut end [10:49:51]Read from MH i2c: 01 07 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 DC 9F 00 00 00 00 00 FF 0F 90 [10:49:51]process_action close_receipt done [10:49:51]requested_data is exist [10:49:51]produce_requested_data [10:49:51]requested_item fm.sn is exist - process it [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 11 00 00 [10:49:51]Write to MH i2c: E2 08 00 DD 9F 80 11 00 00 00 00 00 00 F6 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 DD 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 43 [10:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:49:51]wFMCommunicate OK [10:49:51]requested_item fd.num is exist - process it [10:49:51]SAM_PROTO_GetFieldsCounters [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 13 00 00 [10:49:51]Write to MH i2c: E2 08 00 DE 9F 80 13 00 00 00 00 00 00 F9 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 62 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 62 00 DE 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 73 26 01 00 0E 04 04 00 AD 00 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 A4 [10:49:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 73 26 01 00 0E 04 04 00 AD 00 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 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_GetFieldsCounters done [10:49:51]requested_item shift.num is exist - process it [10:49:51]requested_item shift.opened is exist - process it [10:49:51]req_shift_opened [10:49:51]FM_GetShiftState [10:49:51]SAM_PROTO_GetShiftState [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 13 01 00 [10:49:51]Write to MH i2c: E2 08 00 DF 9F 80 13 01 00 00 00 00 00 FB [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 DF 9F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 60 [10:49:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_GetShiftState done [10:49:51]FM_GetShiftState done [10:49:51]req_shift_opened done [10:49:51]requested_item shift.open_date is exist - process it [10:49:51]req_shift_open_date [10:49:51]req_shift_open_date done [10:49:51]produce_requested_data done [10:49:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75379,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:49:51]process_action_free close_receipt [10:49:51]json_value_free [10:49:51]json_value_free done [10:49:51]process_json_proto returns [10:49:51]Send response to host [10:49:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75379,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:49:51]free response buf [10:49:51]execute_script done [10:49:51]execute_script returns [10:49:51]free content buf [10:49:51]Sock 7.Close socket [10:49:51]Sock 7.Thread stoped [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:03]accept exits with 9 [10:51:03]New connection [10:51:03]New thread 3067321700 created [10:51:03]Thread 3067465060 joined [10:51:03]Waiting for new connection... [10:51:03] Sock 9.Parse request [10:51:03]Sock 9.Check first char [10:51:03]Sock 9.First char is OK [10:51:03]request: POST /json_proto HTTP/1.0 [10:51:03]Method: POST [10:51:03]URL: /json_proto [10:51:03]Method is POST - this is cgi request [10:51:03]url: /json_proto [10:51:03]query_string will be loaded in cgi processing [10:51:03]execute_cgi json_proto POST (null) [10:51:03]execute_cgi path=json_proto method=POST [10:51:03]POST find Content-Length [10:51:03]Host: 172.17.44.196:8080 [10:51:03]Content-Length: 678 [10:51:03]Content-Type: application/json [10:51:03] [10:51:03]POST finish read [10:51:03]Found Content-Length = 678 [10:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:51:03]execute_script... [10:51: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)1965354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:51:03]POST & json_proto [10:51:03]process_json_proto [10:51:03]json parsed OK: [10:51:03]protocol is kg_v1.0 [10:51:03]action value=close_receipt [10:51:03]process_action close_receipt [10:51:03]cmd_close_receipt [10:51:03]MH_GetDate [10:51:03]Write to MH i2c: F0 00 00 E0 9F 6E [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: F0 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: F0 09 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: F0 09 00 E0 9F 00 1E D5 18 67 E7 19 F8 65 46 [10:51:03]GetLastDocTimeStamp 1729680594 [10:51:03]current date 1729680670 [10:51:03]FM_GetShiftState [10:51:03]SAM_PROTO_GetShiftState [10:51:03]wFMCommunicate request_size=4 [10:51:03]MH_SAM_APDU [10:51:03]CAPDU: 80 13 01 00 [10:51:03]Write to MH i2c: E2 08 00 E1 9F 80 13 01 00 00 00 00 00 FD [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 0E 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 0E 00 E1 9F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 62 [10:51:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:51:03]wFMCommunicate OK [10:51:03]SAM_PROTO_GetShiftState done [10:51:03]FM_GetShiftState done [10:51:03]opened in 1729642905 [10:51:03]opened+sec_in_day 1729729305 [10:51:03]quantity*price = 50041 [10:51:03]sum+1 = 50042 [10:51:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 113 23.10.2024 10:51 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75380 ФПД: 236601412932118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105110&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75380&fm=236601412932118&tin=02508201610067®Number=0000000000161154&sum=50000 [10:51:04]StoreToDocumentArchive [10:51:04]shift 173 fd 75380 [10:51:04]save to /storage/0173/doc_00075380 [10:51:04]save last doc name /storage/0173/doc_00075380 to /storage/kkm_last_doc_name [10:51:04]save OK [10:51:04]Clear old archive folders... [10:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:04]tlvbuf is 00E8D540 [10:51:04]SAM_PROTO_ClearQueue [10:51:04]wFMCommunicate request_size=4 [10:51:04]MH_SAM_APDU [10:51:04]CAPDU: 80 09 00 00 [10:51:04]Write to MH i2c: E2 08 00 EE 9F 80 09 00 00 00 00 00 00 FF [10:51:04]Write i2c OK [10:51:04]MH_I2C_Read... [10:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:04]Read from MH i2c: E2 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: E2 03 00 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: E2 03 00 EE 9F 00 90 00 01 [10:51:04]RAPDU: 90 00 [10:51:04]wFMCommunicate OK [10:51:04]SAM_PROTO_ClearQueue done [10:51:04]KKMCreateOFDPacket [10:51:04]OFDProtocolAddRootSTLVToBuf [10:51:04]FM_MakeSignedData [10:51:04]FM_MakeSignedData [10:51:04]SAM_PROTO_SignData [10:51:04]wFMCommunicate request_size=4 [10:51:04]MH_SAM_APDU [10:51:04]CAPDU: 80 0D 01 02 [10:51:04]Write to MH i2c: E2 08 00 EF 9F 80 0D 01 02 00 00 00 00 07 [10:51:04]Write i2c OK [10:51:04]MH_I2C_Read... [10:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:05]Read from MH i2c: E2 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 03 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 03 00 EF 9F 00 90 00 02 [10:51:05]RAPDU: 90 00 [10:51:05]wFMCommunicate OK [10:51:05]wFMCommunicate request_size=255 [10:51:05]MH_SAM_APDU [10:51: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 71 00 00 00 F4 03 04 00 1E D5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 74 26 01 00 35 04 06 00 D7 [10:51:05]Write to MH i2c: E2 02 01 F0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 71 00 00 00 F4 03 04 00 1E D5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 74 26 01 00 35 04 06 00 D7 00 00 8B [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]OFD Sender: No OFD packet to send [10:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:05]Read from MH i2c: E2 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 03 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 03 00 F0 9F 00 90 00 03 [10:51:05]RAPDU: 90 00 [10:51:05]wFMCommunicate OK [10:51:05]wFMCommunicate request_size=10 [10:51:05]MH_SAM_APDU [10:51:05]CAPDU: 80 0D 02 02 05 30 0F 2B D2 16 [10:51:05]Write to MH i2c: E2 0D 00 F1 9F 80 0D 02 02 05 00 30 0F 2B D2 16 00 00 66 [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:05]Read from MH i2c: E2 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 03 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 03 00 F1 9F 00 90 00 04 [10:51:05]RAPDU: 90 00 [10:51:05]wFMCommunicate OK [10:51:05]wFMCommunicate request_size=4 [10:51:05]MH_SAM_APDU [10:51:05]CAPDU: 80 0D 03 02 [10:51:05]Write to MH i2c: E2 08 00 F2 9F 80 0D 03 02 00 00 00 00 0C [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:05]Read from MH i2c: E2 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 0B 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 0B 00 F2 9F 00 7E 01 94 A3 BF 84 6F 82 90 00 F7 [10:51:05]RAPDU: 7E 01 94 A3 BF 84 6F 82 90 00 [10:51:05]wFMCommunicate OK [10:51:05]SAM_PROTO_SignData done [10:51:05]FM_MakeSignedData done [10:51:05]CreateOFDProtocolMessage [10:51:05]wFMCommunicate request_size=4 [10:51:05]MH_SAM_APDU [10:51:05]CAPDU: 80 11 00 00 [10:51:05]Write to MH i2c: E2 08 00 F3 9F 80 11 00 00 00 00 00 00 0C [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:05]Read from MH i2c: E2 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 17 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 17 00 F3 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 59 [10:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:51:05]wFMCommunicate OK [10:51:05]CreateOFDProtocolMessage done [10:51:05]OFDSenderStorePacket 75380 [10:51:05]StoreOFDPacket docnum=75380 [10:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 2C 3F 07 01 F5 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 71 00 00 00 F4 03 04 00 1E D5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 74 26 01 00 35 04 06 00 D7 30 0F 2B D2 16 7E 01 94 A3 BF 84 6F 82 [10:51:05]CheckFolder [10:51:05]dirname=/storage/ofd_packets [10:51:05]CheckFolder done [10:51:05]ProducePacketName [10:51:05]name=ofd_packets/00075380 [10:51:05]NVStorageSaveData ofd_packets/00075380 [10:51:05]File name is /storage/ofd_packets/00075380 [10:51:05]Write 301 bytes [10:51:05]NVStorageSaveData done [10:51:05]OFDSenderStorePacket done [10:51:05]KKMCreateOFDPacket done [10:51:05]NVStorageSaveData kkm_last_timestamp [10:51:05]File name is /storage/kkm_last_timestamp [10:51:05]Write 4 bytes [10:51:05]NVStorageSaveData done [10:51:05]ExternCall_PrintAddStr [10:51:05]wPrintStart [10:51:05]Write to MH i2c: 01 00 00 F4 9F 93 [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 07 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 07 00 F4 9F 00 00 00 00 00 FF 0F A8 [10:51:05]RasterBufferAndPrint [10:51:05]line Счет N : (1)1965354 [10:51:05]line ИНН: 02508201610067 [10:51:05]line Контрольно-Кассовый Чек [10:51:05]line ПРОДАЖА [10:51:05]line ТРК (МРК, ГНК) : 53 [10:51:05]line Товар: 2710124130 [10:51:05]line Аи-92-К-5 [10:51:05]line 7.480 * 66.90 [10:51:05]line = 500.41 [10:51:05]line НДС 12% НСП 1% [10:51:05]line > о реализуемом товаре [10:51:05]line ОКРУГЛЕНИЕ: -0.41 [10:51:05]line ИТОГО: 500.00 [10:51:05]line Внесено: 500.00 [10:51:05]line СДАЧА: 0.00 [10:51:05]line НСП 1% : 4.43 [10:51:05]line НДС 12% : 53.14 [10:51:05]line Наличными: 500.00 [10:51:05]line Безнал.: 0.00 [10:51:05]line Место: АЗС № 133 "Партнер Нефть" [10:51:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:51:05]line СНО: Общий режим [10:51:05]line Чек 113 23.10.2024 10:51 [10:51:05]line Смена: 173 ФФД: 1.0 [10:51:05]line ЗНМ: 0300000020 [10:51:05]line РНМ: 0000000000161154 [10:51:05]line Версия ККМ: v1.0 [10:51:05]line ФМ: 0000000000963323 [10:51:05]line ФД: 75380 [10:51:05]line ФПД: 236601412932118 [10:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105110&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75380&fm=236601412932118&tin=02508201610067®Number=0000000000161154&sum=50000 [10:51:05]OFD Sender: Processing packet 75380 [packets to send 15, broken 14] [10:51:05]ProducePacketName [10:51:05]name=ofd_packets/00075380 [10:51:05]OFD Sender: To server: pG, [10:51:05]CommunicateWithHost lk.salyk.kg:30040 [10:51:05]ConnectInit lk.salyk.kg [10:51:05]written 0, free lines is 4095 [10:51:05]Connected sock=10 [10:51:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 2C 3F 07 01 F5 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 71 00 00 00 F4 03 04 00 1E D5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 74 26 01 00 35 04 06 00 D7 30 0F 2B D2 16 7E 01 94 A3 BF 84 6F 82 [10:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 43 84 47 00 DD 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 74 26 01 00 F4 03 04 00 FA 7D 18 67 B6 04 01 00 00 C0 B8 E4 1A C1 AA 01 41 [10:51:06]CommunicateWithHost err = 0 [10:51:06]CheckOFDResponse [10:51:06]1017 (14) - 77093643461234 [10:51:06]1041 (16) - 0000000000963323 [10:51:06]1040 (4) - 75380 [10:51:06]1012 (4) - 23.10.2024 04:39 [10:51:06]1206 (1) - 0 [10:51:06]OFD Sender: Remove packet 75380 [10:51:06]ProducePacketName [10:51:06]name=ofd_packets/00075380 [10:51:06]NVStorageDeleteData [10:51:06]Write to MH i2c: 01 00 00 1E A0 BE [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 07 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 07 00 1E A0 00 00 00 00 00 B2 0C 83 [10:51:06]RasterBufferAndPrint [10:51:06]line [10:51:06]line [10:51:06]line [10:51:06]line [10:51:06]line [10:51:06]written 0, free lines is 3254 [10:51:06]MH_Cut [10:51:06]Write to MH i2c: D1 01 00 25 A0 01 97 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: D1 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: D1 01 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: D1 01 00 25 A0 00 96 [10:51:06]Write to MH i2c: 01 00 00 26 A0 C6 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]OFD Sender: No OFD packet to send [10:51:07]*** Cut start [10:51:07]*** Partial cut [10:51:07]*** CUTSNS_PIN = 1 [10:51:07]*** CUTSNS_PIN = 0 [10:51:07]*** Brake cut motor [10:51:07]Read from MH i2c: 01 [10:51:07]MH_I2C_Read... [10:51:07]*** Stop cut motor [10:51:07]*** Cut end [10:51:07]Read from MH i2c: 01 07 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: 01 07 00 26 A0 00 00 00 00 00 FF 0F DB [10:51:07]process_action close_receipt done [10:51:07]requested_data is exist [10:51:07]produce_requested_data [10:51:07]requested_item fm.sn is exist - process it [10:51:07]wFMCommunicate request_size=4 [10:51:07]MH_SAM_APDU [10:51:07]CAPDU: 80 11 00 00 [10:51:07]Write to MH i2c: E2 08 00 27 A0 80 11 00 00 00 00 00 00 41 [10:51:07]Write i2c OK [10:51:07]MH_I2C_Read... [10:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:07]Read from MH i2c: E2 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 17 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 17 00 27 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8E [10:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:51:07]wFMCommunicate OK [10:51:07]requested_item fd.num is exist - process it [10:51:07]SAM_PROTO_GetFieldsCounters [10:51:07]wFMCommunicate request_size=4 [10:51:07]MH_SAM_APDU [10:51:07]CAPDU: 80 13 00 00 [10:51:07]Write to MH i2c: E2 08 00 28 A0 80 13 00 00 00 00 00 00 44 [10:51:07]Write i2c OK [10:51:07]MH_I2C_Read... [10:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:07]Read from MH i2c: E2 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 62 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 62 00 28 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 74 26 01 00 0E 04 04 00 AD 00 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 F3 [10:51:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 74 26 01 00 0E 04 04 00 AD 00 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 [10:51:07]wFMCommunicate OK [10:51:07]SAM_PROTO_GetFieldsCounters done [10:51:07]requested_item shift.num is exist - process it [10:51:07]requested_item shift.opened is exist - process it [10:51:07]req_shift_opened [10:51:07]FM_GetShiftState [10:51:07]SAM_PROTO_GetShiftState [10:51:07]wFMCommunicate request_size=4 [10:51:07]MH_SAM_APDU [10:51:07]CAPDU: 80 13 01 00 [10:51:07]Write to MH i2c: E2 08 00 29 A0 80 13 01 00 00 00 00 00 46 [10:51:07]Write i2c OK [10:51:07]MH_I2C_Read... [10:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:07]Read from MH i2c: E2 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 0E 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 0E 00 29 A0 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AB [10:51:07]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:51:07]wFMCommunicate OK [10:51:07]SAM_PROTO_GetShiftState done [10:51:07]FM_GetShiftState done [10:51:07]req_shift_opened done [10:51:07]requested_item shift.open_date is exist - process it [10:51:07]req_shift_open_date [10:51:07]req_shift_open_date done [10:51:07]produce_requested_data done [10:51:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75380,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:51:07]process_action_free close_receipt [10:51:07]json_value_free [10:51:07]json_value_free done [10:51:07]process_json_proto returns [10:51:07]Send response to host [10:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75380,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:51:07]free response buf [10:51:07]execute_script done [10:51:07]execute_script returns [10:51:07]free content buf [10:51:07]Sock 9.Close socket [10:51:07]Sock 9.Thread stoped [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]accept exits with 7 [10:53:16]New connection [10:53:16]New thread 3067465060 created [10:53:16]Thread 3067321700 joined [10:53:16]Waiting for new connection... [10:53:16] Sock 7.Parse request [10:53:16]Sock 7.Check first char [10:53:16]Sock 7.First char is OK [10:53:16]request: POST /json_proto HTTP/1.0 [10:53:16]Method: POST [10:53:16]URL: /json_proto [10:53:16]Method is POST - this is cgi request [10:53:16]url: /json_proto [10:53:16]query_string will be loaded in cgi processing [10:53:16]execute_cgi json_proto POST (null) [10:53:16]execute_cgi path=json_proto method=POST [10:53:16]POST find Content-Length [10:53:16]Host: 172.17.44.196:8080 [10:53:16]Content-Length: 678 [10:53:16]Content-Type: application/json [10:53:16] [10:53:16]POST finish read [10:53:16]Found Content-Length = 678 [10:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:16]execute_script... [10:53: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)1965355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:16]POST & json_proto [10:53:16]process_json_proto [10:53:16]json parsed OK: [10:53:16]protocol is kg_v1.0 [10:53:16]action value=close_receipt [10:53:16]process_action close_receipt [10:53:16]cmd_close_receipt [10:53:16]MH_GetDate [10:53:16]Write to MH i2c: F0 00 00 2A A0 B9 [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: F0 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: F0 09 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: F0 09 00 2A A0 00 A3 D5 18 67 E7 19 F8 65 16 [10:53:16]GetLastDocTimeStamp 1729680670 [10:53:16]current date 1729680803 [10:53:16]FM_GetShiftState [10:53:16]SAM_PROTO_GetShiftState [10:53:16]wFMCommunicate request_size=4 [10:53:16]MH_SAM_APDU [10:53:16]CAPDU: 80 13 01 00 [10:53:16]Write to MH i2c: E2 08 00 2B A0 80 13 01 00 00 00 00 00 48 [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:16]Read from MH i2c: E2 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 0E 00 [10:53:16]MH_I2C_Read... [10:53:16]Read from MH i2c: E2 0E 00 2B A0 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AD [10:53:16]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:53:16]wFMCommunicate OK [10:53:16]SAM_PROTO_GetShiftState done [10:53:16]FM_GetShiftState done [10:53:16]opened in 1729642905 [10:53:16]opened+sec_in_day 1729729305 [10:53:16]quantity*price = 30038 [10:53:16]sum+1 = 30039 [10:53:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 114 23.10.2024 10:53 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75381 ФПД: 95816507493112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105323&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75381&fm=95816507493112&tin=02508201610067®Number=0000000000161154&sum=30000 [10:53:17]StoreToDocumentArchive [10:53:17]shift 173 fd 75381 [10:53:17]save to /storage/0173/doc_00075381 [10:53:17]save last doc name /storage/0173/doc_00075381 to /storage/kkm_last_doc_name [10:53:17]save OK [10:53:17]Clear old archive folders... [10:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:17]tlvbuf is 01002470 [10:53:17]SAM_PROTO_ClearQueue [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 09 00 00 [10:53:17]Write to MH i2c: E2 08 00 38 A0 80 09 00 00 00 00 00 00 4A [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 38 A0 00 90 00 4C [10:53:17]RAPDU: 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_ClearQueue done [10:53:17]KKMCreateOFDPacket [10:53:17]OFDProtocolAddRootSTLVToBuf [10:53:17]FM_MakeSignedData [10:53:17]FM_MakeSignedData [10:53:17]SAM_PROTO_SignData [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 0D 01 02 [10:53:17]Write to MH i2c: E2 08 00 39 A0 80 0D 01 02 00 00 00 00 52 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 39 A0 00 90 00 4D [10:53:17]RAPDU: 90 00 [10:53:17]wFMCommunicate OK [10:53:17]wFMCommunicate request_size=255 [10:53:17]MH_SAM_APDU [10:53: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A3 D5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 75 26 01 00 35 04 06 00 57 [10:53:17]Write to MH i2c: E2 02 01 3A A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A3 D5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 75 26 01 00 35 04 06 00 57 00 00 D1 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 3A A0 00 90 00 4E [10:53:17]RAPDU: 90 00 [10:53:17]wFMCommunicate OK [10:53:17]wFMCommunicate request_size=10 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 0D 02 02 05 25 04 E4 8A F8 [10:53:17]Write to MH i2c: E2 0D 00 3B A0 80 0D 02 02 05 00 25 04 E4 8A F8 00 00 EE [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 3B A0 00 90 00 4F [10:53:17]RAPDU: 90 00 [10:53:17]wFMCommunicate OK [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 0D 03 02 [10:53:17]Write to MH i2c: E2 08 00 3C A0 80 0D 03 02 00 00 00 00 57 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0B 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0B 00 3C A0 00 B4 CA CD 92 19 B5 E7 7C 90 00 66 [10:53:17]RAPDU: B4 CA CD 92 19 B5 E7 7C 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_SignData done [10:53:17]FM_MakeSignedData done [10:53:17]CreateOFDProtocolMessage [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 11 00 00 [10:53:17]Write to MH i2c: E2 08 00 3D A0 80 11 00 00 00 00 00 00 57 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 3D A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A4 [10:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:53:17]wFMCommunicate OK [10:53:17]CreateOFDProtocolMessage done [10:53:17]OFDSenderStorePacket 75381 [10:53:17]StoreOFDPacket docnum=75381 [10:53:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 9A 20 07 01 D7 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A3 D5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 75 26 01 00 35 04 06 00 57 25 04 E4 8A F8 B4 CA CD 92 19 B5 E7 7C [10:53:17]CheckFolder [10:53:17]dirname=/storage/ofd_packets [10:53:17]CheckFolder done [10:53:17]ProducePacketName [10:53:17]name=ofd_packets/00075381 [10:53:17]NVStorageSaveData ofd_packets/00075381 [10:53:17]File name is /storage/ofd_packets/00075381 [10:53:17]Write 301 bytes [10:53:17]NVStorageSaveData done [10:53:17]OFDSenderStorePacket done [10:53:17]KKMCreateOFDPacket done [10:53:17]NVStorageSaveData kkm_last_timestamp [10:53:17]File name is /storage/kkm_last_timestamp [10:53:17]Write 4 bytes [10:53:17]NVStorageSaveData done [10:53:17]ExternCall_PrintAddStr [10:53:17]wPrintStart [10:53:17]Write to MH i2c: 01 00 00 3E A0 DE [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 07 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 07 00 3E A0 00 00 00 00 00 FF 0F F3 [10:53:17]RasterBufferAndPrint [10:53:17]line Счет N : (1)1965355 [10:53:17]line ИНН: 02508201610067 [10:53:17]line Контрольно-Кассовый Чек [10:53:17]line ПРОДАЖА [10:53:17]line ТРК (МРК, ГНК) : 43 [10:53:17]line Товар: 2710124130 [10:53:17]line Аи-92-К-5 [10:53:17]line 4.490 * 66.90 [10:53:17]line = 300.38 [10:53:17]line НДС 12% НСП 1% [10:53:17]line > о реализуемом товаре [10:53:17]line ОКРУГЛЕНИЕ: -0.38 [10:53:17]line ИТОГО: 300.00 [10:53:17]line Внесено: 300.00 [10:53:17]line СДАЧА: 0.00 [10:53:17]line НСП 1% : 2.66 [10:53:17]line НДС 12% : 31.90 [10:53:17]line Наличными: 300.00 [10:53:17]line Безнал.: 0.00 [10:53:17]line Место: АЗС № 133 "Партнер Нефть" [10:53:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:53:17]line СНО: Общий режим [10:53:17]line Чек 114 23.10.2024 10:53 [10:53:17]line Смена: 173 ФФД: 1.0 [10:53:17]line ЗНМ: 0300000020 [10:53:17]line РНМ: 0000000000161154 [10:53:17]line Версия ККМ: v1.0 [10:53:17]line ФМ: 0000000000963323 [10:53:17]line ФД: 75381 [10:53:17]line ФПД: 95816507493112 [10:53:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105323&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75381&fm=95816507493112&tin=02508201610067®Number=0000000000161154&sum=30000 [10:53:18]OFD Sender: Processing packet 75381 [packets to send 15, broken 14] [10:53:18]ProducePacketName [10:53:18]name=ofd_packets/00075381 [10:53:18]OFD Sender: To server: pG, [10:53:18]CommunicateWithHost lk.salyk.kg:30040 [10:53:18]ConnectInit lk.salyk.kg [10:53:18]written 0, free lines is 4095 [10:53:18]Connected sock=10 [10:53:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 9A 20 07 01 D7 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A3 D5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 75 26 01 00 35 04 06 00 57 25 04 E4 8A F8 B4 CA CD 92 19 B5 E7 7C [10:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F1 50 47 00 B6 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 75 26 01 00 F4 03 04 00 7E 7E 18 67 B6 04 01 00 00 45 AC 23 48 28 79 98 78 [10:53:18]CommunicateWithHost err = 0 [10:53:18]CheckOFDResponse [10:53:18]1017 (14) - 77093643461234 [10:53:18]1041 (16) - 0000000000963323 [10:53:18]1040 (4) - 75381 [10:53:18]1012 (4) - 23.10.2024 04:41 [10:53:18]1206 (1) - 0 [10:53:18]OFD Sender: Remove packet 75381 [10:53:18]ProducePacketName [10:53:18]name=ofd_packets/00075381 [10:53:18]NVStorageDeleteData [10:53:18]Write to MH i2c: 01 00 00 68 A0 08 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: 01 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: 01 07 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: 01 07 00 68 A0 00 00 00 00 00 AA 0C C5 [10:53:18]RasterBufferAndPrint [10:53:18]line [10:53:18]line [10:53:18]line [10:53:18]line [10:53:18]line [10:53:18]written 0, free lines is 3246 [10:53:18]MH_Cut [10:53:18]Write to MH i2c: D1 01 00 6F A0 01 E1 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: D1 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: D1 01 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: D1 01 00 6F A0 00 E0 [10:53:18]Write to MH i2c: 01 00 00 70 A0 10 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]OFD Sender: No OFD packet to send [10:53:19]*** Cut start [10:53:19]*** Partial cut [10:53:19]*** CUTSNS_PIN = 1 [10:53:19]*** CUTSNS_PIN = 0 [10:53:19]*** Brake cut motor [10:53:20]Read from MH i2c: 01 [10:53:20]MH_I2C_Read... [10:53:20]*** Stop cut motor [10:53:20]*** Cut end [10:53:20]Read from MH i2c: 01 07 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: 01 07 00 70 A0 00 00 00 00 00 FF 0F 25 [10:53:20]process_action close_receipt done [10:53:20]requested_data is exist [10:53:20]produce_requested_data [10:53:20]requested_item fm.sn is exist - process it [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 11 00 00 [10:53:20]Write to MH i2c: E2 08 00 71 A0 80 11 00 00 00 00 00 00 8B [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 17 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 17 00 71 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D8 [10:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:53:20]wFMCommunicate OK [10:53:20]requested_item fd.num is exist - process it [10:53:20]SAM_PROTO_GetFieldsCounters [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 13 00 00 [10:53:20]Write to MH i2c: E2 08 00 72 A0 80 13 00 00 00 00 00 00 8E [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 62 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 62 00 72 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 75 26 01 00 0E 04 04 00 AD 00 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 41 [10:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 75 26 01 00 0E 04 04 00 AD 00 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 [10:53:20]wFMCommunicate OK [10:53:20]SAM_PROTO_GetFieldsCounters done [10:53:20]requested_item shift.num is exist - process it [10:53:20]requested_item shift.opened is exist - process it [10:53:20]req_shift_opened [10:53:20]FM_GetShiftState [10:53:20]SAM_PROTO_GetShiftState [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 13 01 00 [10:53:20]Write to MH i2c: E2 08 00 73 A0 80 13 01 00 00 00 00 00 90 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 0E 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 0E 00 73 A0 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F5 [10:53:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:53:20]wFMCommunicate OK [10:53:20]SAM_PROTO_GetShiftState done [10:53:20]FM_GetShiftState done [10:53:20]req_shift_opened done [10:53:20]requested_item shift.open_date is exist - process it [10:53:20]req_shift_open_date [10:53:20]req_shift_open_date done [10:53:20]produce_requested_data done [10:53:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75381,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:53:20]process_action_free close_receipt [10:53:20]json_value_free [10:53:20]json_value_free done [10:53:20]process_json_proto returns [10:53:20]Send response to host [10:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75381,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:53:20]free response buf [10:53:20]execute_script done [10:53:20]execute_script returns [10:53:20]free content buf [10:53:20]Sock 7.Close socket [10:53:20]Sock 7.Thread stoped [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:54:59]accept exits with 9 [10:54:59]New connection [10:54:59]New thread 3067321700 created [10:54:59]Thread 3067465060 joined [10:54:59]Waiting for new connection... [10:54:59] Sock 9.Parse request [10:54:59]Sock 9.Check first char [10:54:59]Sock 9.First char is OK [10:54:59]request: POST /json_proto HTTP/1.0 [10:54:59]Method: POST [10:54:59]URL: /json_proto [10:54:59]Method is POST - this is cgi request [10:54:59]url: /json_proto [10:54:59]query_string will be loaded in cgi processing [10:54:59]execute_cgi json_proto POST (null) [10:54:59]execute_cgi path=json_proto method=POST [10:54:59]POST find Content-Length [10:54:59]Host: 172.17.44.196:8080 [10:54:59]Content-Length: 660 [10:54:59]Content-Type: application/json [10:54:59] [10:54:59]POST finish read [10:54:59]Found Content-Length = 660 [10:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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:54:59]execute_script... [10:54: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)1965356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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:54:59]POST & json_proto [10:54:59]process_json_proto [10:54:59]json parsed OK: [10:54:59]protocol is kg_v1.0 [10:54:59]action value=close_receipt [10:54:59]process_action close_receipt [10:54:59]cmd_close_receipt [10:54:59]MH_GetDate [10:54:59]Write to MH i2c: F0 00 00 74 A0 03 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: F0 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: F0 09 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: F0 09 00 74 A0 00 0A D6 18 67 E7 19 F8 65 C8 [10:54:59]GetLastDocTimeStamp 1729680803 [10:54:59]current date 1729680906 [10:54:59]FM_GetShiftState [10:54:59]SAM_PROTO_GetShiftState [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 13 01 00 [10:54:59]Write to MH i2c: E2 08 00 75 A0 80 13 01 00 00 00 00 00 92 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 75 A0 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F7 [10:54:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_GetShiftState done [10:54:59]FM_GetShiftState done [10:54:59]opened in 1729642905 [10:54:59]opened+sec_in_day 1729729305 [10:54:59]quantity*price = 70041 [10:54:59]sum+1 = 70043 [10:54:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 115 23.10.2024 10:55 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75382 ФПД: 270646745162024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105506&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75382&fm=270646745162024&tin=02508201610067®Number=0000000000161154&sum=70000 [10:55:00]StoreToDocumentArchive [10:55:00]shift 173 fd 75382 [10:55:00]save to /storage/0173/doc_00075382 [10:55:00]save last doc name /storage/0173/doc_00075382 to /storage/kkm_last_doc_name [10:55:00]save OK [10:55:00]Clear old archive folders... [10:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:55:00]tlvbuf is 00D95BF0 [10:55:00]SAM_PROTO_ClearQueue [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 09 00 00 [10:55:00]Write to MH i2c: E2 08 00 82 A0 80 09 00 00 00 00 00 00 94 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 82 A0 00 90 00 96 [10:55:00]RAPDU: 90 00 [10:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_ClearQueue done [10:55:00]KKMCreateOFDPacket [10:55:00]OFDProtocolAddRootSTLVToBuf [10:55:00]FM_MakeSignedData [10:55:00]FM_MakeSignedData [10:55:00]SAM_PROTO_SignData [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 0D 01 02 [10:55:00]Write to MH i2c: E2 08 00 83 A0 80 0D 01 02 00 00 00 00 9C [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 83 A0 00 90 00 97 [10:55:00]RAPDU: 90 00 [10:55:00]wFMCommunicate OK [10:55:00]wFMCommunicate request_size=253 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 73 00 00 00 F4 03 04 00 0A D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 76 26 01 00 35 04 06 00 F6 26 DB 1A E1 28 [10:55:00]Write to MH i2c: E2 00 01 84 A0 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 73 00 00 00 F4 03 04 00 0A D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 76 26 01 00 35 04 06 00 F6 26 DB 1A E1 28 00 00 C0 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 03 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 03 00 84 A0 00 90 00 98 [10:55:01]RAPDU: 90 00 [10:55:01]wFMCommunicate OK [10:55:01]wFMCommunicate request_size=4 [10:55:01]MH_SAM_APDU [10:55:01]CAPDU: 80 0D 03 02 [10:55:01]Write to MH i2c: E2 08 00 85 A0 80 0D 03 02 00 00 00 00 A0 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 0B 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 0B 00 85 A0 00 69 D4 DA 51 D8 5B 7C 35 90 00 ED [10:55:01]RAPDU: 69 D4 DA 51 D8 5B 7C 35 90 00 [10:55:01]wFMCommunicate OK [10:55:01]SAM_PROTO_SignData done [10:55:01]FM_MakeSignedData done [10:55:01]CreateOFDProtocolMessage [10:55:01]wFMCommunicate request_size=4 [10:55:01]MH_SAM_APDU [10:55:01]CAPDU: 80 11 00 00 [10:55:01]Write to MH i2c: E2 08 00 86 A0 80 11 00 00 00 00 00 00 A0 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 17 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 17 00 86 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 ED [10:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:55:01]wFMCommunicate OK [10:55:01]CreateOFDProtocolMessage done [10:55:01]OFDSenderStorePacket 75382 [10:55:01]StoreOFDPacket docnum=75382 [10:55:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 F7 07 00 01 C0 73 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 73 00 00 00 F4 03 04 00 0A D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 76 26 01 00 35 04 06 00 F6 26 DB 1A E1 28 69 D4 DA 51 D8 5B 7C 35 [10:55:01]CheckFolder [10:55:01]dirname=/storage/ofd_packets [10:55:01]CheckFolder done [10:55:01]ProducePacketName [10:55:01]name=ofd_packets/00075382 [10:55:01]NVStorageSaveData ofd_packets/00075382 [10:55:01]File name is /storage/ofd_packets/00075382 [10:55:01]Write 294 bytes [10:55:01]NVStorageSaveData done [10:55:01]OFDSenderStorePacket done [10:55:01]KKMCreateOFDPacket done [10:55:01]NVStorageSaveData kkm_last_timestamp [10:55:01]File name is /storage/kkm_last_timestamp [10:55:01]Write 4 bytes [10:55:01]NVStorageSaveData done [10:55:01]ExternCall_PrintAddStr [10:55:01]wPrintStart [10:55:01]Write to MH i2c: 01 00 00 87 A0 27 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 07 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 07 00 87 A0 00 00 00 00 00 FF 0F 3C [10:55:01]RasterBufferAndPrint [10:55:01]line Счет N : (1)1965356 [10:55:01]line ИНН: 02508201610067 [10:55:01]line Контрольно-Кассовый Чек [10:55:01]line ПРОДАЖА [10:55:01]line ТРК (МРК, ГНК) : 52 [10:55:01]line Товар: 2710124130 [10:55:01]line SU-92 [10:55:01]line 10.240 * 68.40 [10:55:01]line = 700.42 [10:55:01]line НДС 12% НСП 1% [10:55:01]line > о реализуемом товаре [10:55:01]line ОКРУГЛЕНИЕ: -0.42 [10:55:01]line ИТОГО: 700.00 [10:55:01]line Внесено: 700.00 [10:55:01]line СДАЧА: 0.00 [10:55:01]line НСП 1% : 6.20 [10:55:01]line НДС 12% : 74.38 [10:55:01]line Наличными: 700.00 [10:55:01]line Безнал.: 0.00 [10:55:01]line Место: АЗС № 133 "Партнер Нефть" [10:55:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:55:01]line СНО: Общий режим [10:55:01]line Чек 115 23.10.2024 10:55 [10:55:01]line Смена: 173 ФФД: 1.0 [10:55:01]line ЗНМ: 0300000020 [10:55:01]line РНМ: 0000000000161154 [10:55:01]line Версия ККМ: v1.0 [10:55:01]line ФМ: 0000000000963323 [10:55:01]line ФД: 75382 [10:55:01]line ФПД: 270646745162024 [10:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105506&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75382&fm=270646745162024&tin=02508201610067®Number=0000000000161154&sum=70000 [10:55:01]OFD Sender: Processing packet 75382 [packets to send 15, broken 14] [10:55:01]ProducePacketName [10:55:01]name=ofd_packets/00075382 [10:55:01]OFD Sender: To server: pG, [10:55:01]CommunicateWithHost lk.salyk.kg:30040 [10:55:01]ConnectInit lk.salyk.kg [10:55:01]written 0, free lines is 4095 [10:55:01]Connected sock=10 [10:55:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 F7 07 00 01 C0 73 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 73 00 00 00 F4 03 04 00 0A D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 76 26 01 00 35 04 06 00 F6 26 DB 1A E1 28 69 D4 DA 51 D8 5B 7C 35 [10:55:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F3 B0 47 00 CF 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 76 26 01 00 F4 03 04 00 E5 7E 18 67 B6 04 01 00 00 3F 82 9C FF AD 65 14 40 [10:55:01]CommunicateWithHost err = 0 [10:55:01]CheckOFDResponse [10:55:01]1017 (14) - 77093643461234 [10:55:01]1041 (16) - 0000000000963323 [10:55:01]1040 (4) - 75382 [10:55:01]1012 (4) - 23.10.2024 04:43 [10:55:01]1206 (1) - 0 [10:55:01]OFD Sender: Remove packet 75382 [10:55:01]ProducePacketName [10:55:01]name=ofd_packets/00075382 [10:55:01]NVStorageDeleteData [10:55:02]Write to MH i2c: 01 00 00 B1 A0 51 [10:55:02]Write i2c OK [10:55:02]MH_I2C_Read... [10:55:02]Read from MH i2c: 01 [10:55:02]MH_I2C_Read... [10:55:02]Read from MH i2c: 01 07 00 [10:55:02]MH_I2C_Read... [10:55:02]Read from MH i2c: 01 07 00 B1 A0 00 00 00 00 00 B1 0C 15 [10:55:02]RasterBufferAndPrint [10:55:02]line [10:55:02]line [10:55:02]line [10:55:02]line [10:55:02]line [10:55:02]written 0, free lines is 3255 [10:55:02]MH_Cut [10:55:02]Write to MH i2c: D1 01 00 B8 A0 01 2A [10:55:02]Write i2c OK [10:55:02]MH_I2C_Read... [10:55:02]Read from MH i2c: D1 [10:55:02]MH_I2C_Read... [10:55:02]Read from MH i2c: D1 01 00 [10:55:02]MH_I2C_Read... [10:55:02]Read from MH i2c: D1 01 00 B8 A0 00 29 [10:55:02]Write to MH i2c: 01 00 00 B9 A0 59 [10:55:02]Write i2c OK [10:55:02]MH_I2C_Read... [10:55:02]OFD Sender: No OFD packet to send [10:55:02]*** Cut start [10:55:02]*** Partial cut [10:55:02]*** CUTSNS_PIN = 1 [10:55:02]*** CUTSNS_PIN = 0 [10:55:03]*** Brake cut motor [10:55:03]Read from MH i2c: 01 [10:55:03]MH_I2C_Read... [10:55:03]*** Stop cut motor [10:55:03]*** Cut end [10:55:03]Read from MH i2c: 01 07 00 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: 01 07 00 B9 A0 00 00 00 00 00 FF 0F 6E [10:55:03]process_action close_receipt done [10:55:03]requested_data is exist [10:55:03]produce_requested_data [10:55:03]requested_item fm.sn is exist - process it [10:55:03]wFMCommunicate request_size=4 [10:55:03]MH_SAM_APDU [10:55:03]CAPDU: 80 11 00 00 [10:55:03]Write to MH i2c: E2 08 00 BA A0 80 11 00 00 00 00 00 00 D4 [10:55:03]Write i2c OK [10:55:03]MH_I2C_Read... [10:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:03]Read from MH i2c: E2 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 17 00 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 17 00 BA A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 21 [10:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:55:03]wFMCommunicate OK [10:55:03]requested_item fd.num is exist - process it [10:55:03]SAM_PROTO_GetFieldsCounters [10:55:03]wFMCommunicate request_size=4 [10:55:03]MH_SAM_APDU [10:55:03]CAPDU: 80 13 00 00 [10:55:03]Write to MH i2c: E2 08 00 BB A0 80 13 00 00 00 00 00 00 D7 [10:55:03]Write i2c OK [10:55:03]MH_I2C_Read... [10:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:03]Read from MH i2c: E2 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 62 00 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 62 00 BB A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 76 26 01 00 0E 04 04 00 AD 00 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 8E [10:55:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 76 26 01 00 0E 04 04 00 AD 00 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 [10:55:03]wFMCommunicate OK [10:55:03]SAM_PROTO_GetFieldsCounters done [10:55:03]requested_item shift.num is exist - process it [10:55:03]requested_item shift.opened is exist - process it [10:55:03]req_shift_opened [10:55:03]FM_GetShiftState [10:55:03]SAM_PROTO_GetShiftState [10:55:03]wFMCommunicate request_size=4 [10:55:03]MH_SAM_APDU [10:55:03]CAPDU: 80 13 01 00 [10:55:03]Write to MH i2c: E2 08 00 BC A0 80 13 01 00 00 00 00 00 D9 [10:55:03]Write i2c OK [10:55:03]MH_I2C_Read... [10:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:03]Read from MH i2c: E2 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 0E 00 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 0E 00 BC A0 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3E [10:55:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:55:03]wFMCommunicate OK [10:55:03]SAM_PROTO_GetShiftState done [10:55:03]FM_GetShiftState done [10:55:03]req_shift_opened done [10:55:03]requested_item shift.open_date is exist - process it [10:55:03]req_shift_open_date [10:55:03]req_shift_open_date done [10:55:03]produce_requested_data done [10:55:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75382,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:55:03]process_action_free close_receipt [10:55:03]json_value_free [10:55:03]json_value_free done [10:55:03]process_json_proto returns [10:55:03]Send response to host [10:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75382,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:55:03]free response buf [10:55:03]execute_script done [10:55:03]execute_script returns [10:55:03]free content buf [10:55:03]Sock 9.Close socket [10:55:03]Sock 9.Thread stoped [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:10]accept exits with 7 [10:56:10]New connection [10:56:10]New thread 3067465060 created [10:56:10]Thread 3067321700 joined [10:56:10]Waiting for new connection... [10:56:10] Sock 7.Parse request [10:56:10]Sock 7.Check first char [10:56:10]Sock 7.First char is OK [10:56:10]request: POST /json_proto HTTP/1.0 [10:56:10]Method: POST [10:56:10]URL: /json_proto [10:56:10]Method is POST - this is cgi request [10:56:10]url: /json_proto [10:56:10]query_string will be loaded in cgi processing [10:56:10]execute_cgi json_proto POST (null) [10:56:10]execute_cgi path=json_proto method=POST [10:56:10]POST find Content-Length [10:56:10]Host: 172.17.44.196:8080 [10:56:10]Content-Length: 678 [10:56:10]Content-Type: application/json [10:56:10] [10:56:10]POST finish read [10:56:10]Found Content-Length = 678 [10:56:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:10]execute_script... [10:56: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)1965358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:10]POST & json_proto [10:56:10]process_json_proto [10:56:10]json parsed OK: [10:56:10]protocol is kg_v1.0 [10:56:10]action value=close_receipt [10:56:10]process_action close_receipt [10:56:10]cmd_close_receipt [10:56:10]MH_GetDate [10:56:10]Write to MH i2c: F0 00 00 BD A0 4C [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: F0 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: F0 09 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: F0 09 00 BD A0 00 51 D6 18 67 E7 19 F8 65 58 [10:56:10]GetLastDocTimeStamp 1729680906 [10:56:10]current date 1729680977 [10:56:10]FM_GetShiftState [10:56:10]SAM_PROTO_GetShiftState [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 13 01 00 [10:56:10]Write to MH i2c: E2 08 00 BE A0 80 13 01 00 00 00 00 00 DB [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 0E 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 0E 00 BE A0 00 09 00 01 99 41 18 67 00 00 00 00 90 00 40 [10:56:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:56:10]wFMCommunicate OK [10:56:10]SAM_PROTO_GetShiftState done [10:56:10]FM_GetShiftState done [10:56:10]opened in 1729642905 [10:56:10]opened+sec_in_day 1729729305 [10:56:10]quantity*price = 30038 [10:56:10]sum+1 = 30039 [10:56:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 116 23.10.2024 10:56 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75383 ФПД: 139376812241515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105617&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75383&fm=139376812241515&tin=02508201610067®Number=0000000000161154&sum=30000 [10:56:11]StoreToDocumentArchive [10:56:11]shift 173 fd 75383 [10:56:11]save to /storage/0173/doc_00075383 [10:56:11]save last doc name /storage/0173/doc_00075383 to /storage/kkm_last_doc_name [10:56:11]save OK [10:56:11]Clear old archive folders... [10:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:11]tlvbuf is 00CD1070 [10:56:11]SAM_PROTO_ClearQueue [10:56:11]wFMCommunicate request_size=4 [10:56:11]MH_SAM_APDU [10:56:11]CAPDU: 80 09 00 00 [10:56:11]Write to MH i2c: E2 08 00 CB A0 80 09 00 00 00 00 00 00 DD [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:11]Read from MH i2c: E2 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 03 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 03 00 CB A0 00 90 00 DF [10:56:11]RAPDU: 90 00 [10:56:11]wFMCommunicate OK [10:56:11]SAM_PROTO_ClearQueue done [10:56:11]KKMCreateOFDPacket [10:56:11]OFDProtocolAddRootSTLVToBuf [10:56:11]FM_MakeSignedData [10:56:11]FM_MakeSignedData [10:56:11]SAM_PROTO_SignData [10:56:11]wFMCommunicate request_size=4 [10:56:11]MH_SAM_APDU [10:56:11]CAPDU: 80 0D 01 02 [10:56:11]Write to MH i2c: E2 08 00 CC A0 80 0D 01 02 00 00 00 00 E5 [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:11]Read from MH i2c: E2 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 03 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 03 00 CC A0 00 90 00 E0 [10:56:11]RAPDU: 90 00 [10:56:11]wFMCommunicate OK [10:56:11]wFMCommunicate request_size=255 [10:56:11]MH_SAM_APDU [10:56: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 51 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 77 26 01 00 35 04 06 00 7E [10:56:11]Write to MH i2c: E2 02 01 CD A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 51 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 77 26 01 00 35 04 06 00 7E 00 00 3E [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:11]Read from MH i2c: E2 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 03 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 03 00 CD A0 00 90 00 E1 [10:56:11]RAPDU: 90 00 [10:56:11]wFMCommunicate OK [10:56:11]wFMCommunicate request_size=10 [10:56:11]MH_SAM_APDU [10:56:11]CAPDU: 80 0D 02 02 05 C3 31 62 32 6B [10:56:11]Write to MH i2c: E2 0D 00 CE A0 80 0D 02 02 05 00 C3 31 62 32 6B 00 00 E5 [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:11]Read from MH i2c: E2 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 03 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 03 00 CE A0 00 90 00 E2 [10:56:11]RAPDU: 90 00 [10:56:11]wFMCommunicate OK [10:56:11]wFMCommunicate request_size=4 [10:56:11]MH_SAM_APDU [10:56:11]CAPDU: 80 0D 03 02 [10:56:11]Write to MH i2c: E2 08 00 CF A0 80 0D 03 02 00 00 00 00 EA [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:12]Read from MH i2c: E2 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 0B 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 0B 00 CF A0 00 6B CE E2 86 9B 4B AB A2 90 00 BF [10:56:12]RAPDU: 6B CE E2 86 9B 4B AB A2 90 00 [10:56:12]wFMCommunicate OK [10:56:12]SAM_PROTO_SignData done [10:56:12]FM_MakeSignedData done [10:56:12]CreateOFDProtocolMessage [10:56:12]wFMCommunicate request_size=4 [10:56:12]MH_SAM_APDU [10:56:12]CAPDU: 80 11 00 00 [10:56:12]Write to MH i2c: E2 08 00 D0 A0 80 11 00 00 00 00 00 00 EA [10:56:12]Write i2c OK [10:56:12]MH_I2C_Read... [10:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:12]Read from MH i2c: E2 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 17 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 17 00 D0 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 37 [10:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:56:12]wFMCommunicate OK [10:56:12]CreateOFDProtocolMessage done [10:56:12]OFDSenderStorePacket 75383 [10:56:12]StoreOFDPacket docnum=75383 [10:56:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C3 D5 07 01 27 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 51 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 77 26 01 00 35 04 06 00 7E C3 31 62 32 6B 6B CE E2 86 9B 4B AB A2 [10:56:12]CheckFolder [10:56:12]dirname=/storage/ofd_packets [10:56:12]CheckFolder done [10:56:12]ProducePacketName [10:56:12]name=ofd_packets/00075383 [10:56:12]NVStorageSaveData ofd_packets/00075383 [10:56:12]File name is /storage/ofd_packets/00075383 [10:56:12]Write 301 bytes [10:56:12]NVStorageSaveData done [10:56:12]OFDSenderStorePacket done [10:56:12]KKMCreateOFDPacket done [10:56:12]NVStorageSaveData kkm_last_timestamp [10:56:12]File name is /storage/kkm_last_timestamp [10:56:12]Write 4 bytes [10:56:12]NVStorageSaveData done [10:56:12]ExternCall_PrintAddStr [10:56:12]wPrintStart [10:56:12]Write to MH i2c: 01 00 00 D1 A0 71 [10:56:12]Write i2c OK [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: 01 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: 01 07 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: 01 07 00 D1 A0 00 00 00 00 00 FF 0F 86 [10:56:12]RasterBufferAndPrint [10:56:12]line Счет N : (1)1965358 [10:56:12]line ИНН: 02508201610067 [10:56:12]line Контрольно-Кассовый Чек [10:56:12]line ПРОДАЖА [10:56:12]line ТРК (МРК, ГНК) : 33 [10:56:12]line Товар: 2710124130 [10:56:12]line Аи-92-К-5 [10:56:12]line 4.490 * 66.90 [10:56:12]line = 300.38 [10:56:12]line НДС 12% НСП 1% [10:56:12]line > о реализуемом товаре [10:56:12]line ОКРУГЛЕНИЕ: -0.38 [10:56:12]line ИТОГО: 300.00 [10:56:12]line Внесено: 300.00 [10:56:12]line СДАЧА: 0.00 [10:56:12]line НСП 1% : 2.66 [10:56:12]line НДС 12% : 31.90 [10:56:12]line Наличными: 300.00 [10:56:12]line Безнал.: 0.00 [10:56:12]line Место: АЗС № 133 "Партнер Нефть" [10:56:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:56:12]line СНО: Общий режим [10:56:12]line Чек 116 23.10.2024 10:56 [10:56:12]line Смена: 173 ФФД: 1.0 [10:56:12]line ЗНМ: 0300000020 [10:56:12]line РНМ: 0000000000161154 [10:56:12]line Версия ККМ: v1.0 [10:56:12]line ФМ: 0000000000963323 [10:56:12]line ФД: 75383 [10:56:12]line ФПД: 139376812241515 [10:56:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105617&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75383&fm=139376812241515&tin=02508201610067®Number=0000000000161154&sum=30000 [10:56:12]OFD Sender: Processing packet 75383 [packets to send 15, broken 14] [10:56:12]ProducePacketName [10:56:12]name=ofd_packets/00075383 [10:56:12]OFD Sender: To server: pG, [10:56:12]CommunicateWithHost lk.salyk.kg:30040 [10:56:12]ConnectInit lk.salyk.kg [10:56:12]written 0, free lines is 4095 [10:56:12]Connected sock=10 [10:56:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C3 D5 07 01 27 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 51 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 77 26 01 00 35 04 06 00 7E C3 31 62 32 6B 6B CE E2 86 9B 4B AB A2 [10:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 78 EC 47 00 D0 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 77 26 01 00 F4 03 04 00 2C 7F 18 67 B6 04 01 00 00 F6 3E 10 0B FF BC C1 41 [10:56:12]CommunicateWithHost err = 0 [10:56:12]CheckOFDResponse [10:56:12]1017 (14) - 77093643461234 [10:56:12]1041 (16) - 0000000000963323 [10:56:12]1040 (4) - 75383 [10:56:12]1012 (4) - 23.10.2024 04:44 [10:56:12]1206 (1) - 0 [10:56:12]OFD Sender: Remove packet 75383 [10:56:12]ProducePacketName [10:56:12]name=ofd_packets/00075383 [10:56:12]NVStorageDeleteData [10:56:12]Write to MH i2c: 01 00 00 FB A0 9B [10:56:12]Write i2c OK [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: 01 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: 01 07 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: 01 07 00 FB A0 00 00 00 00 00 B9 0C 67 [10:56:12]RasterBufferAndPrint [10:56:12]line [10:56:12]line [10:56:12]line [10:56:12]line [10:56:12]line [10:56:12]written 0, free lines is 3261 [10:56:12]MH_Cut [10:56:12]Write to MH i2c: D1 01 00 02 A1 01 75 [10:56:12]Write i2c OK [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: D1 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: D1 01 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: D1 01 00 02 A1 00 74 [10:56:12]Write to MH i2c: 01 00 00 03 A1 A4 [10:56:12]Write i2c OK [10:56:12]MH_I2C_Read... [10:56:13]OFD Sender: No OFD packet to send [10:56:13]*** Cut start [10:56:13]*** Partial cut [10:56:13]*** CUTSNS_PIN = 1 [10:56:13]*** CUTSNS_PIN = 0 [10:56:14]*** Brake cut motor [10:56:14]Read from MH i2c: 01 [10:56:14]MH_I2C_Read... [10:56:14]*** Stop cut motor [10:56:14]*** Cut end [10:56:14]Read from MH i2c: 01 07 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 07 00 03 A1 00 00 00 00 00 FF 0F B9 [10:56:14]process_action close_receipt done [10:56:14]requested_data is exist [10:56:14]produce_requested_data [10:56:14]requested_item fm.sn is exist - process it [10:56:14]wFMCommunicate request_size=4 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 11 00 00 [10:56:14]Write to MH i2c: E2 08 00 04 A1 80 11 00 00 00 00 00 00 1F [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 17 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 17 00 04 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6C [10:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:56:14]wFMCommunicate OK [10:56:14]requested_item fd.num is exist - process it [10:56:14]SAM_PROTO_GetFieldsCounters [10:56:14]wFMCommunicate request_size=4 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 13 00 00 [10:56:14]Write to MH i2c: E2 08 00 05 A1 80 13 00 00 00 00 00 00 22 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 62 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 62 00 05 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 77 26 01 00 0E 04 04 00 AD 00 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 DD [10:56:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 77 26 01 00 0E 04 04 00 AD 00 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 [10:56:14]wFMCommunicate OK [10:56:14]SAM_PROTO_GetFieldsCounters done [10:56:14]requested_item shift.num is exist - process it [10:56:14]requested_item shift.opened is exist - process it [10:56:14]req_shift_opened [10:56:14]FM_GetShiftState [10:56:14]SAM_PROTO_GetShiftState [10:56:14]wFMCommunicate request_size=4 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 13 01 00 [10:56:14]Write to MH i2c: E2 08 00 06 A1 80 13 01 00 00 00 00 00 24 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:14]Read from MH i2c: E2 0E 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 0E 00 06 A1 00 09 00 01 99 41 18 67 00 00 00 00 90 00 89 [10:56:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:56:14]wFMCommunicate OK [10:56:14]SAM_PROTO_GetShiftState done [10:56:14]FM_GetShiftState done [10:56:14]req_shift_opened done [10:56:14]requested_item shift.open_date is exist - process it [10:56:14]req_shift_open_date [10:56:14]req_shift_open_date done [10:56:14]produce_requested_data done [10:56:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75383,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:56:14]process_action_free close_receipt [10:56:14]json_value_free [10:56:14]json_value_free done [10:56:14]process_json_proto returns [10:56:14]Send response to host [10:56:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75383,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:56:14]free response buf [10:56:14]execute_script done [10:56:14]execute_script returns [10:56:14]free content buf [10:56:14]Sock 7.Close socket [10:56:14]Sock 7.Thread stoped [10:56:18]OFD Sender: No OFD packet to send [10:56:23]accept exits with 9 [10:56:23]New connection [10:56:23]New thread 3067321700 created [10:56:23]Thread 3067465060 joined [10:56:23]Waiting for new connection... [10:56:23] Sock 9.Parse request [10:56:23]Sock 9.Check first char [10:56:23]Sock 9.First char is OK [10:56:23]request: POST /json_proto HTTP/1.0 [10:56:23]Method: POST [10:56:23]URL: /json_proto [10:56:23]Method is POST - this is cgi request [10:56:23]url: /json_proto [10:56:23]query_string will be loaded in cgi processing [10:56:23]execute_cgi json_proto POST (null) [10:56:23]execute_cgi path=json_proto method=POST [10:56:23]POST find Content-Length [10:56:23]Host: 172.17.44.196:8080 [10:56:23]Content-Length: 678 [10:56:23]Content-Type: application/json [10:56:23] [10:56:23]POST finish read [10:56:23]Found Content-Length = 678 [10:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:56:23]execute_script... [10:56: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)1965357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:56:23]POST & json_proto [10:56:23]process_json_proto [10:56:23]json parsed OK: [10:56:23]protocol is kg_v1.0 [10:56:23]action value=close_receipt [10:56:23]process_action close_receipt [10:56:23]cmd_close_receipt [10:56:23]MH_GetDate [10:56:23]Write to MH i2c: F0 00 00 07 A1 97 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: F0 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: F0 09 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: F0 09 00 07 A1 00 5E D6 18 67 E7 19 F8 65 B0 [10:56:23]GetLastDocTimeStamp 1729680977 [10:56:23]current date 1729680990 [10:56:23]FM_GetShiftState [10:56:23]SAM_PROTO_GetShiftState [10:56:23]wFMCommunicate request_size=4 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 13 01 00 [10:56:23]Write to MH i2c: E2 08 00 08 A1 80 13 01 00 00 00 00 00 26 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 0E 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 0E 00 08 A1 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8B [10:56:23]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:56:23]wFMCommunicate OK [10:56:23]SAM_PROTO_GetShiftState done [10:56:23]FM_GetShiftState done [10:56:23]opened in 1729642905 [10:56:23]opened+sec_in_day 1729729305 [10:56:23]quantity*price = 50041 [10:56:23]sum+1 = 50042 [10:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 117 23.10.2024 10:56 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75384 ФПД: 112710400398760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105630&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75384&fm=112710400398760&tin=02508201610067®Number=0000000000161154&sum=50000 [10:56:24]StoreToDocumentArchive [10:56:24]shift 173 fd 75384 [10:56:24]save to /storage/0173/doc_00075384 [10:56:24]save last doc name /storage/0173/doc_00075384 to /storage/kkm_last_doc_name [10:56:24]save OK [10:56:24]Clear old archive folders... [10:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:24]tlvbuf is 00E5A160 [10:56:24]SAM_PROTO_ClearQueue [10:56:24]wFMCommunicate request_size=4 [10:56:24]MH_SAM_APDU [10:56:24]CAPDU: 80 09 00 00 [10:56:24]Write to MH i2c: E2 08 00 15 A1 80 09 00 00 00 00 00 00 28 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 15 A1 00 90 00 2A [10:56:24]RAPDU: 90 00 [10:56:24]wFMCommunicate OK [10:56:24]SAM_PROTO_ClearQueue done [10:56:24]KKMCreateOFDPacket [10:56:24]OFDProtocolAddRootSTLVToBuf [10:56:24]FM_MakeSignedData [10:56:24]FM_MakeSignedData [10:56:24]SAM_PROTO_SignData [10:56:24]wFMCommunicate request_size=4 [10:56:24]MH_SAM_APDU [10:56:24]CAPDU: 80 0D 01 02 [10:56:24]Write to MH i2c: E2 08 00 16 A1 80 0D 01 02 00 00 00 00 30 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 16 A1 00 90 00 2B [10:56:24]RAPDU: 90 00 [10:56:24]wFMCommunicate OK [10:56:24]wFMCommunicate request_size=255 [10:56:24]MH_SAM_APDU [10:56: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 00 00 00 F4 03 04 00 5E D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 78 26 01 00 35 04 06 00 66 [10:56:24]Write to MH i2c: E2 02 01 17 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 00 00 00 F4 03 04 00 5E D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 78 26 01 00 35 04 06 00 66 00 00 8C [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 17 A1 00 90 00 2C [10:56:24]RAPDU: 90 00 [10:56:24]wFMCommunicate OK [10:56:24]wFMCommunicate request_size=10 [10:56:24]MH_SAM_APDU [10:56:24]CAPDU: 80 0D 02 02 05 82 6F 60 D5 A8 [10:56:24]Write to MH i2c: E2 0D 00 18 A1 80 0D 02 02 05 00 82 6F 60 D5 A8 00 00 0B [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 18 A1 00 90 00 2D [10:56:24]RAPDU: 90 00 [10:56:24]wFMCommunicate OK [10:56:24]wFMCommunicate request_size=4 [10:56:24]MH_SAM_APDU [10:56:24]CAPDU: 80 0D 03 02 [10:56:24]Write to MH i2c: E2 08 00 19 A1 80 0D 03 02 00 00 00 00 35 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 0B 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 0B 00 19 A1 00 AE F6 1C 13 82 65 58 D8 90 00 20 [10:56:24]RAPDU: AE F6 1C 13 82 65 58 D8 90 00 [10:56:24]wFMCommunicate OK [10:56:24]SAM_PROTO_SignData done [10:56:24]FM_MakeSignedData done [10:56:24]CreateOFDProtocolMessage [10:56:24]wFMCommunicate request_size=4 [10:56:24]MH_SAM_APDU [10:56:24]CAPDU: 80 11 00 00 [10:56:24]Write to MH i2c: E2 08 00 1A A1 80 11 00 00 00 00 00 00 35 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 17 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 17 00 1A A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 82 [10:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:56:24]wFMCommunicate OK [10:56:24]CreateOFDProtocolMessage done [10:56:24]OFDSenderStorePacket 75384 [10:56:24]StoreOFDPacket docnum=75384 [10:56:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F2 D8 07 01 8F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 00 00 00 F4 03 04 00 5E D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 78 26 01 00 35 04 06 00 66 82 6F 60 D5 A8 AE F6 1C 13 82 65 58 D8 [10:56:24]CheckFolder [10:56:24]dirname=/storage/ofd_packets [10:56:24]CheckFolder done [10:56:24]ProducePacketName [10:56:24]name=ofd_packets/00075384 [10:56:24]NVStorageSaveData ofd_packets/00075384 [10:56:24]File name is /storage/ofd_packets/00075384 [10:56:24]Write 301 bytes [10:56:24]NVStorageSaveData done [10:56:24]OFDSenderStorePacket done [10:56:24]KKMCreateOFDPacket done [10:56:24]NVStorageSaveData kkm_last_timestamp [10:56:24]File name is /storage/kkm_last_timestamp [10:56:24]Write 4 bytes [10:56:24]NVStorageSaveData done [10:56:24]ExternCall_PrintAddStr [10:56:24]wPrintStart [10:56:24]Write to MH i2c: 01 00 00 1B A1 BC [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 07 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 07 00 1B A1 00 00 00 00 00 FF 0F D1 [10:56:24]RasterBufferAndPrint [10:56:24]line Счет N : (1)1965357 [10:56:24]line ИНН: 02508201610067 [10:56:24]line Контрольно-Кассовый Чек [10:56:24]line ПРОДАЖА [10:56:24]line ТРК (МРК, ГНК) : 43 [10:56:24]line Товар: 2710124130 [10:56:24]line Аи-92-К-5 [10:56:24]line 7.480 * 66.90 [10:56:24]line = 500.41 [10:56:24]line НДС 12% НСП 1% [10:56:24]line > о реализуемом товаре [10:56:24]line ОКРУГЛЕНИЕ: -0.41 [10:56:24]line ИТОГО: 500.00 [10:56:24]line Внесено: 500.00 [10:56:24]line СДАЧА: 0.00 [10:56:24]line НСП 1% : 4.43 [10:56:24]line НДС 12% : 53.14 [10:56:24]line Наличными: 500.00 [10:56:24]line Безнал.: 0.00 [10:56:24]line Место: АЗС № 133 "Партнер Нефть" [10:56:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:56:24]line СНО: Общий режим [10:56:24]line Чек 117 23.10.2024 10:56 [10:56:24]line Смена: 173 ФФД: 1.0 [10:56:24]line ЗНМ: 0300000020 [10:56:24]line РНМ: 0000000000161154 [10:56:24]line Версия ККМ: v1.0 [10:56:24]line ФМ: 0000000000963323 [10:56:24]line ФД: 75384 [10:56:24]line ФПД: 112710400398760 [10:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105630&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75384&fm=112710400398760&tin=02508201610067®Number=0000000000161154&sum=50000 [10:56:25]OFD Sender: Processing packet 75384 [packets to send 15, broken 14] [10:56:25]ProducePacketName [10:56:25]name=ofd_packets/00075384 [10:56:25]OFD Sender: To server: pG, [10:56:25]CommunicateWithHost lk.salyk.kg:30040 [10:56:25]ConnectInit lk.salyk.kg [10:56:25]written 0, free lines is 4095 [10:56:25]Connected sock=10 [10:56:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F2 D8 07 01 8F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 75 00 00 00 F4 03 04 00 5E D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 78 26 01 00 35 04 06 00 66 82 6F 60 D5 A8 AE F6 1C 13 82 65 58 D8 [10:56:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1D B3 47 00 DA 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 39 36 33 33 32 33 10 04 04 00 78 26 01 00 F4 03 04 00 39 7F 18 67 B6 04 01 00 00 DA 56 83 A5 17 FC 7B C5 [10:56:25]CommunicateWithHost err = 0 [10:56:25]CheckOFDResponse [10:56:25]1017 (14) - 77093643461234 [10:56:25]1041 (16) - 0000000000963323 [10:56:25]1040 (4) - 75384 [10:56:25]1012 (4) - 23.10.2024 04:44 [10:56:25]1206 (1) - 0 [10:56:25]OFD Sender: Remove packet 75384 [10:56:25]ProducePacketName [10:56:25]name=ofd_packets/00075384 [10:56:25]NVStorageDeleteData [10:56:25]Write to MH i2c: 01 00 00 45 A1 E6 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 45 A1 00 00 00 00 00 B6 0C AF [10:56:25]RasterBufferAndPrint [10:56:25]line [10:56:25]line [10:56:25]line [10:56:25]line [10:56:25]line [10:56:25]written 0, free lines is 3259 [10:56:25]MH_Cut [10:56:25]Write to MH i2c: D1 01 00 4C A1 01 BF [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: D1 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: D1 01 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: D1 01 00 4C A1 00 BE [10:56:25]Write to MH i2c: 01 00 00 4D A1 EE [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:26]OFD Sender: No OFD packet to send [10:56:26]*** Cut start [10:56:26]*** Partial cut [10:56:26]*** CUTSNS_PIN = 1 [10:56:26]*** CUTSNS_PIN = 0 [10:56:26]*** Brake cut motor [10:56:27]Read from MH i2c: 01 [10:56:27]MH_I2C_Read... [10:56:27]*** Stop cut motor [10:56:27]*** Cut end [10:56:27]Read from MH i2c: 01 07 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 4D A1 00 00 00 00 00 FF 0F 03 [10:56:27]process_action close_receipt done [10:56:27]requested_data is exist [10:56:27]produce_requested_data [10:56:27]requested_item fm.sn is exist - process it [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 11 00 00 [10:56:27]Write to MH i2c: E2 08 00 4E A1 80 11 00 00 00 00 00 00 69 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 17 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 17 00 4E A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B6 [10:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:56:27]wFMCommunicate OK [10:56:27]requested_item fd.num is exist - process it [10:56:27]SAM_PROTO_GetFieldsCounters [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 13 00 00 [10:56:27]Write to MH i2c: E2 08 00 4F A1 80 13 00 00 00 00 00 00 6C [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 62 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 62 00 4F A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 78 26 01 00 0E 04 04 00 AD 00 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 2B [10:56:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 78 26 01 00 0E 04 04 00 AD 00 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 [10:56:27]wFMCommunicate OK [10:56:27]SAM_PROTO_GetFieldsCounters done [10:56:27]requested_item shift.num is exist - process it [10:56:27]requested_item shift.opened is exist - process it [10:56:27]req_shift_opened [10:56:27]FM_GetShiftState [10:56:27]SAM_PROTO_GetShiftState [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 13 01 00 [10:56:27]Write to MH i2c: E2 08 00 50 A1 80 13 01 00 00 00 00 00 6E [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 0E 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 0E 00 50 A1 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D3 [10:56:27]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:56:27]wFMCommunicate OK [10:56:27]SAM_PROTO_GetShiftState done [10:56:27]FM_GetShiftState done [10:56:27]req_shift_opened done [10:56:27]requested_item shift.open_date is exist - process it [10:56:27]req_shift_open_date [10:56:27]req_shift_open_date done [10:56:27]produce_requested_data done [10:56:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75384,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:56:27]process_action_free close_receipt [10:56:27]json_value_free [10:56:27]json_value_free done [10:56:27]process_json_proto returns [10:56:27]Send response to host [10:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75384,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:56:27]free response buf [10:56:27]execute_script done [10:56:27]execute_script returns [10:56:27]free content buf [10:56:27]Sock 9.Close socket [10:56:27]Sock 9.Thread stoped [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:27]accept exits with 7 [10:58:27]New connection [10:58:27]New thread 3067465060 created [10:58:27]Thread 3067321700 joined [10:58:27]Waiting for new connection... [10:58:27] Sock 7.Parse request [10:58:27]Sock 7.Check first char [10:58:27]Sock 7.First char is OK [10:58:27]request: POST /json_proto HTTP/1.0 [10:58:27]Method: POST [10:58:27]URL: /json_proto [10:58:27]Method is POST - this is cgi request [10:58:27]url: /json_proto [10:58:27]query_string will be loaded in cgi processing [10:58:27]execute_cgi json_proto POST (null) [10:58:27]execute_cgi path=json_proto method=POST [10:58:27]POST find Content-Length [10:58:27]Host: 172.17.44.196:8080 [10:58:27]Content-Length: 678 [10:58:27]Content-Type: application/json [10:58:27] [10:58:27]POST finish read [10:58:27]Found Content-Length = 678 [10:58:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:27]execute_script... [10:58: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)1965359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:27]POST & json_proto [10:58:27]process_json_proto [10:58:27]json parsed OK: [10:58:27]protocol is kg_v1.0 [10:58:27]action value=close_receipt [10:58:27]process_action close_receipt [10:58:27]cmd_close_receipt [10:58:27]MH_GetDate [10:58:27]Write to MH i2c: F0 00 00 51 A1 E1 [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: F0 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: F0 09 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: F0 09 00 51 A1 00 DA D6 18 67 E7 19 F8 65 76 [10:58:27]GetLastDocTimeStamp 1729680990 [10:58:27]current date 1729681114 [10:58:27]FM_GetShiftState [10:58:27]SAM_PROTO_GetShiftState [10:58:27]wFMCommunicate request_size=4 [10:58:27]MH_SAM_APDU [10:58:27]CAPDU: 80 13 01 00 [10:58:27]Write to MH i2c: E2 08 00 52 A1 80 13 01 00 00 00 00 00 70 [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:27]Read from MH i2c: E2 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 0E 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 0E 00 52 A1 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D5 [10:58:27]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:58:27]wFMCommunicate OK [10:58:27]SAM_PROTO_GetShiftState done [10:58:27]FM_GetShiftState done [10:58:27]opened in 1729642905 [10:58:27]opened+sec_in_day 1729729305 [10:58:27]quantity*price = 50010 [10:58:27]sum+1 = 50012 [10:58:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 118 23.10.2024 10:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75385 ФПД: 109251922194499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105834&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75385&fm=109251922194499&tin=02508201610067®Number=0000000000161154&sum=50000 [10:58:28]StoreToDocumentArchive [10:58:28]shift 173 fd 75385 [10:58:28]save to /storage/0173/doc_00075385 [10:58:28]save last doc name /storage/0173/doc_00075385 to /storage/kkm_last_doc_name [10:58:28]save OK [10:58:28]Clear old archive folders... [10:58:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:28]tlvbuf is 00EDE7D0 [10:58:28]SAM_PROTO_ClearQueue [10:58:28]wFMCommunicate request_size=4 [10:58:28]MH_SAM_APDU [10:58:28]CAPDU: 80 09 00 00 [10:58:28]Write to MH i2c: E2 08 00 5F A1 80 09 00 00 00 00 00 00 72 [10:58:28]Write i2c OK [10:58:28]MH_I2C_Read... [10:58:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:28]Read from MH i2c: E2 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 03 00 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 03 00 5F A1 00 90 00 74 [10:58:28]RAPDU: 90 00 [10:58:28]wFMCommunicate OK [10:58:28]SAM_PROTO_ClearQueue done [10:58:28]KKMCreateOFDPacket [10:58:28]OFDProtocolAddRootSTLVToBuf [10:58:28]FM_MakeSignedData [10:58:28]FM_MakeSignedData [10:58:28]SAM_PROTO_SignData [10:58:28]wFMCommunicate request_size=4 [10:58:28]MH_SAM_APDU [10:58:28]CAPDU: 80 0D 01 02 [10:58:28]Write to MH i2c: E2 08 00 60 A1 80 0D 01 02 00 00 00 00 7A [10:58:28]Write i2c OK [10:58:28]MH_I2C_Read... [10:58:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:28]Read from MH i2c: E2 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 03 00 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 03 00 60 A1 00 90 00 75 [10:58:28]RAPDU: 90 00 [10:58:28]wFMCommunicate OK [10:58:28]wFMCommunicate request_size=255 [10:58:28]MH_SAM_APDU [10:58: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 DA D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 79 26 01 00 35 04 06 00 63 [10:58:28]Write to MH i2c: E2 02 01 61 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 DA D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 79 26 01 00 35 04 06 00 63 00 00 29 [10:58:28]Write i2c OK [10:58:28]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 61 A1 00 90 00 76 [10:58:29]RAPDU: 90 00 [10:58:29]wFMCommunicate OK [10:58:29]wFMCommunicate request_size=10 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 0D 02 02 05 5D 32 03 70 43 [10:58:29]Write to MH i2c: E2 0D 00 62 A1 80 0D 02 02 05 00 5D 32 03 70 43 00 00 CC [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 62 A1 00 90 00 77 [10:58:29]RAPDU: 90 00 [10:58:29]wFMCommunicate OK [10:58:29]wFMCommunicate request_size=4 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 0D 03 02 [10:58:29]Write to MH i2c: E2 08 00 63 A1 80 0D 03 02 00 00 00 00 7F [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 0B 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 0B 00 63 A1 00 ED AB 53 EC 81 75 9C AC 90 00 95 [10:58:29]RAPDU: ED AB 53 EC 81 75 9C AC 90 00 [10:58:29]wFMCommunicate OK [10:58:29]SAM_PROTO_SignData done [10:58:29]FM_MakeSignedData done [10:58:29]CreateOFDProtocolMessage [10:58:29]wFMCommunicate request_size=4 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 11 00 00 [10:58:29]Write to MH i2c: E2 08 00 64 A1 80 11 00 00 00 00 00 00 7F [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 17 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 17 00 64 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CC [10:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:58:29]wFMCommunicate OK [10:58:29]CreateOFDProtocolMessage done [10:58:29]OFDSenderStorePacket 75385 [10:58:29]StoreOFDPacket docnum=75385 [10:58:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AD 88 07 01 58 26 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 DA D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 79 26 01 00 35 04 06 00 63 5D 32 03 70 43 ED AB 53 EC 81 75 9C AC [10:58:29]CheckFolder [10:58:29]dirname=/storage/ofd_packets [10:58:29]CheckFolder done [10:58:29]ProducePacketName [10:58:29]name=ofd_packets/00075385 [10:58:29]NVStorageSaveData ofd_packets/00075385 [10:58:29]File name is /storage/ofd_packets/00075385 [10:58:29]Write 301 bytes [10:58:29]NVStorageSaveData done [10:58:29]OFDSenderStorePacket done [10:58:29]KKMCreateOFDPacket done [10:58:29]NVStorageSaveData kkm_last_timestamp [10:58:29]File name is /storage/kkm_last_timestamp [10:58:29]Write 4 bytes [10:58:29]NVStorageSaveData done [10:58:29]ExternCall_PrintAddStr [10:58:29]wPrintStart [10:58:29]Write to MH i2c: 01 00 00 65 A1 06 [10:58:29]OFD Sender: Processing packet 75385 [packets to send 15, broken 14] [10:58:29]ProducePacketName [10:58:29]name=ofd_packets/00075385 [10:58:29]OFD Sender: To server: pG, [10:58:29]CommunicateWithHost lk.salyk.kg:30040 [10:58:29]ConnectInit lk.salyk.kg [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: 01 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: 01 07 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: 01 07 00 65 A1 00 00 00 00 00 FF 0F 1B [10:58:29]RasterBufferAndPrint [10:58:29]line Счет N : (1)1965359 [10:58:29]line ИНН: 02508201610067 [10:58:29]line Контрольно-Кассовый Чек [10:58:29]line ПРОДАЖА [10:58:29]line ТРК (МРК, ГНК) : 64 [10:58:29]line Товар: 2710124500 [10:58:29]line Аи-95-К-5 [10:58:29]line 6.740 * 74.20 [10:58:29]line = 500.11 [10:58:29]line НДС 12% НСП 1% [10:58:29]line > о реализуемом товаре [10:58:29]line ОКРУГЛЕНИЕ: -0.11 [10:58:29]line ИТОГО: 500.00 [10:58:29]line Внесено: 500.00 [10:58:29]line СДАЧА: 0.00 [10:58:29]line НСП 1% : 4.43 [10:58:29]line НДС 12% : 53.11 [10:58:29]line Наличными: 500.00 [10:58:29]line Безнал.: 0.00 [10:58:29]line Место: АЗС № 133 "Партнер Нефть" [10:58:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:58:29]line СНО: Общий режим [10:58:29]line Чек 118 23.10.2024 10:58 [10:58:29]line Смена: 173 ФФД: 1.0 [10:58:29]line ЗНМ: 0300000020 [10:58:29]line РНМ: 0000000000161154 [10:58:29]line Версия ККМ: v1.0 [10:58:29]line ФМ: 0000000000963323 [10:58:29]line ФД: 75385 [10:58:29]line ФПД: 109251922194499 [10:58:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105834&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75385&fm=109251922194499&tin=02508201610067®Number=0000000000161154&sum=50000 [10:58:29]Connected sock=10 [10:58:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AD 88 07 01 58 26 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 DA D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 79 26 01 00 35 04 06 00 63 5D 32 03 70 43 ED AB 53 EC 81 75 9C AC [10:58:29]written 0, free lines is 4095 [10:58:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AA 83 47 00 EA 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 39 36 33 33 32 33 10 04 04 00 79 26 01 00 F4 03 04 00 B5 7F 18 67 B6 04 01 00 00 56 05 CA 2A 11 21 30 87 [10:58:29]CommunicateWithHost err = 0 [10:58:29]CheckOFDResponse [10:58:29]1017 (14) - 77093643461234 [10:58:29]1041 (16) - 0000000000963323 [10:58:29]1040 (4) - 75385 [10:58:29]1012 (4) - 23.10.2024 04:46 [10:58:29]1206 (1) - 0 [10:58:29]OFD Sender: Remove packet 75385 [10:58:29]ProducePacketName [10:58:29]name=ofd_packets/00075385 [10:58:29]NVStorageDeleteData [10:58:29]Write to MH i2c: 01 00 00 8F A1 30 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 07 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 07 00 8F A1 00 00 00 00 00 B2 0C F5 [10:58:30]RasterBufferAndPrint [10:58:30]line [10:58:30]line [10:58:30]line [10:58:30]line [10:58:30]line [10:58:30]written 0, free lines is 3256 [10:58:30]MH_Cut [10:58:30]Write to MH i2c: D1 01 00 96 A1 01 09 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: D1 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: D1 01 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: D1 01 00 96 A1 00 08 [10:58:30]Write to MH i2c: 01 00 00 97 A1 38 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]OFD Sender: No OFD packet to send [10:58:30]*** Cut start [10:58:30]*** Partial cut [10:58:30]*** CUTSNS_PIN = 1 [10:58:30]*** CUTSNS_PIN = 0 [10:58:31]*** Brake cut motor [10:58:31]Read from MH i2c: 01 [10:58:31]MH_I2C_Read... [10:58:31]*** Stop cut motor [10:58:31]*** Cut end [10:58:31]Read from MH i2c: 01 07 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 07 00 97 A1 00 00 00 00 00 FF 0F 4D [10:58:31]process_action close_receipt done [10:58:31]requested_data is exist [10:58:31]produce_requested_data [10:58:31]requested_item fm.sn is exist - process it [10:58:31]wFMCommunicate request_size=4 [10:58:31]MH_SAM_APDU [10:58:31]CAPDU: 80 11 00 00 [10:58:31]Write to MH i2c: E2 08 00 98 A1 80 11 00 00 00 00 00 00 B3 [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:31]Read from MH i2c: E2 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 17 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 17 00 98 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 00 [10:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:58:31]wFMCommunicate OK [10:58:31]requested_item fd.num is exist - process it [10:58:31]SAM_PROTO_GetFieldsCounters [10:58:31]wFMCommunicate request_size=4 [10:58:31]MH_SAM_APDU [10:58:31]CAPDU: 80 13 00 00 [10:58:31]Write to MH i2c: E2 08 00 99 A1 80 13 00 00 00 00 00 00 B6 [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:31]Read from MH i2c: E2 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 62 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 62 00 99 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 79 26 01 00 0E 04 04 00 AD 00 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 79 [10:58:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 79 26 01 00 0E 04 04 00 AD 00 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 [10:58:31]wFMCommunicate OK [10:58:31]SAM_PROTO_GetFieldsCounters done [10:58:31]requested_item shift.num is exist - process it [10:58:31]requested_item shift.opened is exist - process it [10:58:31]req_shift_opened [10:58:31]FM_GetShiftState [10:58:31]SAM_PROTO_GetShiftState [10:58:31]wFMCommunicate request_size=4 [10:58:31]MH_SAM_APDU [10:58:31]CAPDU: 80 13 01 00 [10:58:31]Write to MH i2c: E2 08 00 9A A1 80 13 01 00 00 00 00 00 B8 [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:31]Read from MH i2c: E2 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 0E 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 0E 00 9A A1 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1D [10:58:31]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:58:31]wFMCommunicate OK [10:58:31]SAM_PROTO_GetShiftState done [10:58:31]FM_GetShiftState done [10:58:31]req_shift_opened done [10:58:31]requested_item shift.open_date is exist - process it [10:58:31]req_shift_open_date [10:58:31]req_shift_open_date done [10:58:31]produce_requested_data done [10:58:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75385,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:58:31]process_action_free close_receipt [10:58:31]json_value_free [10:58:31]json_value_free done [10:58:31]process_json_proto returns [10:58:31]Send response to host [10:58:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75385,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:58:31]free response buf [10:58:31]execute_script done [10:58:31]execute_script returns [10:58:31]free content buf [10:58:31]Sock 7.Close socket [10:58:31]Sock 7.Thread stoped [10:58:33]accept exits with 9 [10:58:33]New connection [10:58:33]New thread 3067321700 created [10:58:33]Thread 3067465060 joined [10:58:33]Waiting for new connection... [10:58:33] Sock 9.Parse request [10:58:33]Sock 9.Check first char [10:58:33]Sock 9.First char is OK [10:58:33]request: POST /json_proto HTTP/1.0 [10:58:33]Method: POST [10:58:33]URL: /json_proto [10:58:33]Method is POST - this is cgi request [10:58:33]url: /json_proto [10:58:33]query_string will be loaded in cgi processing [10:58:33]execute_cgi json_proto POST (null) [10:58:33]execute_cgi path=json_proto method=POST [10:58:33]POST find Content-Length [10:58:33]Host: 172.17.44.196:8080 [10:58:33]Content-Length: 675 [10:58:33]Content-Type: application/json [10:58:33] [10:58:33]POST finish read [10:58:33]Found Content-Length = 675 [10:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:58:33]execute_script... [10:58: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)1965360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:58:33]POST & json_proto [10:58:33]process_json_proto [10:58:33]json parsed OK: [10:58:33]protocol is kg_v1.0 [10:58:33]action value=close_receipt [10:58:33]process_action close_receipt [10:58:33]cmd_close_receipt [10:58:33]MH_GetDate [10:58:33]Write to MH i2c: F0 00 00 9B A1 2B [10:58:33]Write i2c OK [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: F0 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: F0 09 00 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: F0 09 00 9B A1 00 E0 D6 18 67 E7 19 F8 65 C6 [10:58:33]GetLastDocTimeStamp 1729681114 [10:58:33]current date 1729681120 [10:58:33]FM_GetShiftState [10:58:33]SAM_PROTO_GetShiftState [10:58:33]wFMCommunicate request_size=4 [10:58:33]MH_SAM_APDU [10:58:33]CAPDU: 80 13 01 00 [10:58:33]Write to MH i2c: E2 08 00 9C A1 80 13 01 00 00 00 00 00 BA [10:58:33]Write i2c OK [10:58:33]MH_I2C_Read... [10:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:33]Read from MH i2c: E2 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 0E 00 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 0E 00 9C A1 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1F [10:58:33]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:58:33]wFMCommunicate OK [10:58:33]SAM_PROTO_GetShiftState done [10:58:33]FM_GetShiftState done [10:58:33]opened in 1729642905 [10:58:33]opened+sec_in_day 1729729305 [10:58:33]quantity*price = 50063 [10:58:33]sum+1 = 50064 [10:58:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 119 23.10.2024 10:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75386 ФПД: 9732066146609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105840&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75386&fm=9732066146609&tin=02508201610067®Number=0000000000161154&sum=50000 [10:58:34]StoreToDocumentArchive [10:58:34]shift 173 fd 75386 [10:58:34]save to /storage/0173/doc_00075386 [10:58:34]save last doc name /storage/0173/doc_00075386 to /storage/kkm_last_doc_name [10:58:34]save OK [10:58:34]Clear old archive folders... [10:58:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:58:34]tlvbuf is 00D4B180 [10:58:34]SAM_PROTO_ClearQueue [10:58:34]wFMCommunicate request_size=4 [10:58:34]MH_SAM_APDU [10:58:34]CAPDU: 80 09 00 00 [10:58:34]Write to MH i2c: E2 08 00 A9 A1 80 09 00 00 00 00 00 00 BC [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:34]Read from MH i2c: E2 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 03 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 03 00 A9 A1 00 90 00 BE [10:58:34]RAPDU: 90 00 [10:58:34]wFMCommunicate OK [10:58:34]SAM_PROTO_ClearQueue done [10:58:34]KKMCreateOFDPacket [10:58:34]OFDProtocolAddRootSTLVToBuf [10:58:34]FM_MakeSignedData [10:58:34]FM_MakeSignedData [10:58:34]SAM_PROTO_SignData [10:58:34]wFMCommunicate request_size=4 [10:58:34]MH_SAM_APDU [10:58:34]CAPDU: 80 0D 01 02 [10:58:34]Write to MH i2c: E2 08 00 AA A1 80 0D 01 02 00 00 00 00 C4 [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:34]Read from MH i2c: E2 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 03 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 03 00 AA A1 00 90 00 BF [10:58:34]RAPDU: 90 00 [10:58:34]wFMCommunicate OK [10:58:34]wFMCommunicate request_size=255 [10:58:34]MH_SAM_APDU [10:58: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 77 00 00 00 F4 03 04 00 E0 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7A 26 01 00 35 04 06 00 08 D9 EC 58 [10:58:35]Write to MH i2c: E2 02 01 AB A1 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 77 00 00 00 F4 03 04 00 E0 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7A 26 01 00 35 04 06 00 08 D9 EC 58 00 00 E3 [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]OFD Sender: No OFD packet to send [10:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:35]Read from MH i2c: E2 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 AB A1 00 90 00 C0 [10:58:35]RAPDU: 90 00 [10:58:35]wFMCommunicate OK [10:58:35]wFMCommunicate request_size=7 [10:58:35]MH_SAM_APDU [10:58:35]CAPDU: 80 0D 02 02 02 79 31 [10:58:35]Write to MH i2c: E2 0A 00 AC A1 80 0D 02 02 02 00 79 31 00 00 75 [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:35]Read from MH i2c: E2 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 AC A1 00 90 00 C1 [10:58:35]RAPDU: 90 00 [10:58:35]wFMCommunicate OK [10:58:35]wFMCommunicate request_size=4 [10:58:35]MH_SAM_APDU [10:58:35]CAPDU: 80 0D 03 02 [10:58:35]Write to MH i2c: E2 08 00 AD A1 80 0D 03 02 00 00 00 00 C9 [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:35]Read from MH i2c: E2 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 0B 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 0B 00 AD A1 00 D9 34 20 B2 F4 F6 87 2D 90 00 47 [10:58:35]RAPDU: D9 34 20 B2 F4 F6 87 2D 90 00 [10:58:35]wFMCommunicate OK [10:58:35]SAM_PROTO_SignData done [10:58:35]FM_MakeSignedData done [10:58:35]CreateOFDProtocolMessage [10:58:35]wFMCommunicate request_size=4 [10:58:35]MH_SAM_APDU [10:58:35]CAPDU: 80 11 00 00 [10:58:35]Write to MH i2c: E2 08 00 AE A1 80 11 00 00 00 00 00 00 C9 [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:35]Read from MH i2c: E2 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 17 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 17 00 AE A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 16 [10:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:58:35]wFMCommunicate OK [10:58:35]CreateOFDProtocolMessage done [10:58:35]OFDSenderStorePacket 75386 [10:58:35]StoreOFDPacket docnum=75386 [10:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 EE 9E 04 01 39 0B 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 77 00 00 00 F4 03 04 00 E0 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7A 26 01 00 35 04 06 00 08 D9 EC 58 79 31 D9 34 20 B2 F4 F6 87 2D [10:58:35]CheckFolder [10:58:35]dirname=/storage/ofd_packets [10:58:35]CheckFolder done [10:58:35]ProducePacketName [10:58:35]name=ofd_packets/00075386 [10:58:35]NVStorageSaveData ofd_packets/00075386 [10:58:35]File name is /storage/ofd_packets/00075386 [10:58:35]Write 298 bytes [10:58:35]NVStorageSaveData done [10:58:35]OFDSenderStorePacket done [10:58:35]KKMCreateOFDPacket done [10:58:35]NVStorageSaveData kkm_last_timestamp [10:58:35]File name is /storage/kkm_last_timestamp [10:58:35]Write 4 bytes [10:58:35]NVStorageSaveData done [10:58:35]ExternCall_PrintAddStr [10:58:35]wPrintStart [10:58:35]Write to MH i2c: 01 00 00 AF A1 50 [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: 01 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: 01 07 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: 01 07 00 AF A1 00 00 00 00 00 FF 0F 65 [10:58:35]RasterBufferAndPrint [10:58:35]line Счет N : (1)1965360 [10:58:35]line ИНН: 02508201610067 [10:58:35]line Контрольно-Кассовый Чек [10:58:35]line ПРОДАЖА [10:58:35]line ТРК (МРК, ГНК) : 41 [10:58:35]line Товар: 2710194210 [10:58:35]line ДТ-К-5 [10:58:35]line 6.570 * 76.20 [10:58:35]line = 500.63 [10:58:35]line НДС 12% НСП 1% [10:58:35]line > о реализуемом товаре [10:58:35]line ОКРУГЛЕНИЕ: -0.63 [10:58:35]line ИТОГО: 500.00 [10:58:35]line Внесено: 500.00 [10:58:35]line СДАЧА: 0.00 [10:58:35]line НСП 1% : 4.43 [10:58:35]line НДС 12% : 53.16 [10:58:35]line Наличными: 500.00 [10:58:35]line Безнал.: 0.00 [10:58:35]line Место: АЗС № 133 "Партнер Нефть" [10:58:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:58:35]line СНО: Общий режим [10:58:35]line Чек 119 23.10.2024 10:58 [10:58:35]line Смена: 173 ФФД: 1.0 [10:58:35]line ЗНМ: 0300000020 [10:58:35]line РНМ: 0000000000161154 [10:58:35]line Версия ККМ: v1.0 [10:58:35]line ФМ: 0000000000963323 [10:58:35]line ФД: 75386 [10:58:35]line ФПД: 9732066146609 [10:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105840&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75386&fm=9732066146609&tin=02508201610067®Number=0000000000161154&sum=50000 [10:58:35]written 0, free lines is 4095 [10:58:35]OFD Sender: Processing packet 75386 [packets to send 15, broken 14] [10:58:35]ProducePacketName [10:58:35]name=ofd_packets/00075386 [10:58:35]OFD Sender: To server: pG, [10:58:35]CommunicateWithHost lk.salyk.kg:30040 [10:58:35]ConnectInit lk.salyk.kg [10:58:35]Connected sock=10 [10:58:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 EE 9E 04 01 39 0B 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 77 00 00 00 F4 03 04 00 E0 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7A 26 01 00 35 04 06 00 08 D9 EC 58 79 31 D9 34 20 B2 F4 F6 87 2D [10:58:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FA 94 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 39 36 33 33 32 33 10 04 04 00 7A 26 01 00 F4 03 04 00 BB 7F 18 67 B6 04 01 00 00 DC 83 03 84 7F 72 96 20 [10:58:35]CommunicateWithHost err = 0 [10:58:35]CheckOFDResponse [10:58:35]1017 (14) - 77093643461234 [10:58:35]1041 (16) - 0000000000963323 [10:58:35]1040 (4) - 75386 [10:58:35]1012 (4) - 23.10.2024 04:46 [10:58:35]1206 (1) - 0 [10:58:35]OFD Sender: Remove packet 75386 [10:58:35]ProducePacketName [10:58:35]name=ofd_packets/00075386 [10:58:35]NVStorageDeleteData [10:58:35]Write to MH i2c: 01 00 00 D9 A1 7A [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: 01 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: 01 07 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: 01 07 00 D9 A1 00 00 00 00 00 BF 0C 4C [10:58:35]RasterBufferAndPrint [10:58:35]line [10:58:35]line [10:58:35]line [10:58:35]line [10:58:35]line [10:58:35]written 0, free lines is 3270 [10:58:35]MH_Cut [10:58:35]Write to MH i2c: D1 01 00 E0 A1 01 53 [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: D1 [10:58:35]MH_I2C_Read... [10:58:36]Read from MH i2c: D1 01 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: D1 01 00 E0 A1 00 52 [10:58:36]Write to MH i2c: 01 00 00 E1 A1 82 [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]OFD Sender: No OFD packet to send [10:58:36]*** Cut start [10:58:36]*** Partial cut [10:58:36]*** CUTSNS_PIN = 1 [10:58:36]*** CUTSNS_PIN = 0 [10:58:37]*** Brake cut motor [10:58:37]Read from MH i2c: 01 [10:58:37]MH_I2C_Read... [10:58:37]*** Stop cut motor [10:58:37]*** Cut end [10:58:37]Read from MH i2c: 01 07 00 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: 01 07 00 E1 A1 00 00 00 00 00 FF 0F 97 [10:58:37]process_action close_receipt done [10:58:37]requested_data is exist [10:58:37]produce_requested_data [10:58:37]requested_item fm.sn is exist - process it [10:58:37]wFMCommunicate request_size=4 [10:58:37]MH_SAM_APDU [10:58:37]CAPDU: 80 11 00 00 [10:58:37]Write to MH i2c: E2 08 00 E2 A1 80 11 00 00 00 00 00 00 FD [10:58:37]Write i2c OK [10:58:37]MH_I2C_Read... [10:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:37]Read from MH i2c: E2 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 17 00 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 17 00 E2 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4A [10:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:58:37]wFMCommunicate OK [10:58:37]requested_item fd.num is exist - process it [10:58:37]SAM_PROTO_GetFieldsCounters [10:58:37]wFMCommunicate request_size=4 [10:58:37]MH_SAM_APDU [10:58:37]CAPDU: 80 13 00 00 [10:58:37]Write to MH i2c: E2 08 00 E3 A1 80 13 00 00 00 00 00 00 00 [10:58:37]Write i2c OK [10:58:37]MH_I2C_Read... [10:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:37]Read from MH i2c: E2 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 62 00 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 62 00 E3 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7A 26 01 00 0E 04 04 00 AD 00 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 C7 [10:58:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7A 26 01 00 0E 04 04 00 AD 00 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 [10:58:37]wFMCommunicate OK [10:58:37]SAM_PROTO_GetFieldsCounters done [10:58:37]requested_item shift.num is exist - process it [10:58:37]requested_item shift.opened is exist - process it [10:58:37]req_shift_opened [10:58:37]FM_GetShiftState [10:58:37]SAM_PROTO_GetShiftState [10:58:37]wFMCommunicate request_size=4 [10:58:37]MH_SAM_APDU [10:58:37]CAPDU: 80 13 01 00 [10:58:37]Write to MH i2c: E2 08 00 E4 A1 80 13 01 00 00 00 00 00 02 [10:58:37]Write i2c OK [10:58:37]MH_I2C_Read... [10:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:37]Read from MH i2c: E2 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 0E 00 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 0E 00 E4 A1 00 09 00 01 99 41 18 67 00 00 00 00 90 00 67 [10:58:37]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:58:37]wFMCommunicate OK [10:58:37]SAM_PROTO_GetShiftState done [10:58:37]FM_GetShiftState done [10:58:37]req_shift_opened done [10:58:37]requested_item shift.open_date is exist - process it [10:58:37]req_shift_open_date [10:58:37]req_shift_open_date done [10:58:37]produce_requested_data done [10:58:37]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75386,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:58:37]process_action_free close_receipt [10:58:37]json_value_free [10:58:37]json_value_free done [10:58:37]process_json_proto returns [10:58:37]Send response to host [10:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75386,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:58:37]free response buf [10:58:37]execute_script done [10:58:37]execute_script returns [10:58:37]free content buf [10:58:37]Sock 9.Close socket [10:58:37]Sock 9.Thread stoped [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:52]accept exits with 7 [10:58:52]New connection [10:58:52]New thread 3067465060 created [10:58:52]Thread 3067321700 joined [10:58:52]Waiting for new connection... [10:58:52] Sock 7.Parse request [10:58:52]Sock 7.Check first char [10:58:52]Sock 7.First char is OK [10:58:52]request: POST /json_proto HTTP/1.0 [10:58:52]Method: POST [10:58:52]URL: /json_proto [10:58:52]Method is POST - this is cgi request [10:58:52]url: /json_proto [10:58:52]query_string will be loaded in cgi processing [10:58:52]execute_cgi json_proto POST (null) [10:58:52]execute_cgi path=json_proto method=POST [10:58:52]POST find Content-Length [10:58:52]Host: 172.17.44.196:8080 [10:58:52]Content-Length: 678 [10:58:52]Content-Type: application/json [10:58:52] [10:58:52]POST finish read [10:58:52]Found Content-Length = 678 [10:58:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:58:52]execute_script... [10:58: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)1965361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:58:52]POST & json_proto [10:58:52]process_json_proto [10:58:52]json parsed OK: [10:58:52]protocol is kg_v1.0 [10:58:52]action value=close_receipt [10:58:52]process_action close_receipt [10:58:52]cmd_close_receipt [10:58:52]MH_GetDate [10:58:52]Write to MH i2c: F0 00 00 E5 A1 75 [10:58:52]Write i2c OK [10:58:52]MH_I2C_Read... [10:58:52]Read from MH i2c: F0 [10:58:52]MH_I2C_Read... [10:58:52]Read from MH i2c: F0 09 00 [10:58:52]MH_I2C_Read... [10:58:52]Read from MH i2c: F0 09 00 E5 A1 00 F3 D6 18 67 E7 19 F8 65 23 [10:58:52]GetLastDocTimeStamp 1729681120 [10:58:52]current date 1729681139 [10:58:52]FM_GetShiftState [10:58:52]SAM_PROTO_GetShiftState [10:58:52]wFMCommunicate request_size=4 [10:58:52]MH_SAM_APDU [10:58:52]CAPDU: 80 13 01 00 [10:58:52]Write to MH i2c: E2 08 00 E6 A1 80 13 01 00 00 00 00 00 04 [10:58:52]Write i2c OK [10:58:52]MH_I2C_Read... [10:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:52]Read from MH i2c: E2 [10:58:52]MH_I2C_Read... [10:58:52]Read from MH i2c: E2 0E 00 [10:58:52]MH_I2C_Read... [10:58:52]Read from MH i2c: E2 0E 00 E6 A1 00 09 00 01 99 41 18 67 00 00 00 00 90 00 69 [10:58:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:58:52]wFMCommunicate OK [10:58:52]SAM_PROTO_GetShiftState done [10:58:52]FM_GetShiftState done [10:58:52]opened in 1729642905 [10:58:52]opened+sec_in_day 1729729305 [10:58:52]quantity*price = 40006 [10:58:52]sum+1 = 40007 [10:58:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 120 23.10.2024 10:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75387 ФПД: 217826414141090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105859&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75387&fm=217826414141090&tin=02508201610067®Number=0000000000161154&sum=40000 [10:58:53]StoreToDocumentArchive [10:58:53]shift 173 fd 75387 [10:58:53]save to /storage/0173/doc_00075387 [10:58:53]save last doc name /storage/0173/doc_00075387 to /storage/kkm_last_doc_name [10:58:53]save OK [10:58:53]Clear old archive folders... [10:58:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:53]tlvbuf is 00FF7AA0 [10:58:53]SAM_PROTO_ClearQueue [10:58:53]wFMCommunicate request_size=4 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 09 00 00 [10:58:53]Write to MH i2c: E2 08 00 F3 A1 80 09 00 00 00 00 00 00 06 [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 F3 A1 00 90 00 08 [10:58:53]RAPDU: 90 00 [10:58:53]wFMCommunicate OK [10:58:53]SAM_PROTO_ClearQueue done [10:58:53]KKMCreateOFDPacket [10:58:53]OFDProtocolAddRootSTLVToBuf [10:58:53]FM_MakeSignedData [10:58:53]FM_MakeSignedData [10:58:53]SAM_PROTO_SignData [10:58:53]wFMCommunicate request_size=4 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 0D 01 02 [10:58:53]Write to MH i2c: E2 08 00 F4 A1 80 0D 01 02 00 00 00 00 0E [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 F4 A1 00 90 00 09 [10:58:53]RAPDU: 90 00 [10:58:53]wFMCommunicate OK [10:58:53]wFMCommunicate request_size=255 [10:58:53]MH_SAM_APDU [10:58: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 78 00 00 00 F4 03 04 00 F3 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7B 26 01 00 35 04 06 00 C6 [10:58:53]Write to MH i2c: E2 02 01 F5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 78 00 00 00 F4 03 04 00 F3 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7B 26 01 00 35 04 06 00 C6 00 00 34 [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:53]Read from MH i2c: E2 03 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 F5 A1 00 90 00 0A [10:58:53]RAPDU: 90 00 [10:58:53]wFMCommunicate OK [10:58:53]wFMCommunicate request_size=10 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 0D 02 02 05 1C AA 09 9E A2 [10:58:53]Write to MH i2c: E2 0D 00 F6 A1 80 0D 02 02 05 00 1C AA 09 9E A2 00 00 2A [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 F6 A1 00 90 00 0B [10:58:53]RAPDU: 90 00 [10:58:53]wFMCommunicate OK [10:58:53]wFMCommunicate request_size=4 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 0D 03 02 [10:58:53]Write to MH i2c: E2 08 00 F7 A1 80 0D 03 02 00 00 00 00 13 [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 0B 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 0B 00 F7 A1 00 59 94 84 58 06 B5 E1 B7 90 00 30 [10:58:53]RAPDU: 59 94 84 58 06 B5 E1 B7 90 00 [10:58:53]wFMCommunicate OK [10:58:53]SAM_PROTO_SignData done [10:58:53]FM_MakeSignedData done [10:58:53]CreateOFDProtocolMessage [10:58:53]wFMCommunicate request_size=4 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 11 00 00 [10:58:53]Write to MH i2c: E2 08 00 F8 A1 80 11 00 00 00 00 00 00 13 [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 17 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 17 00 F8 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 60 [10:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:58:53]wFMCommunicate OK [10:58:53]CreateOFDProtocolMessage done [10:58:53]OFDSenderStorePacket 75387 [10:58:53]StoreOFDPacket docnum=75387 [10:58:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 10 A6 07 01 34 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 78 00 00 00 F4 03 04 00 F3 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7B 26 01 00 35 04 06 00 C6 1C AA 09 9E A2 59 94 84 58 06 B5 E1 B7 [10:58:54]CheckFolder [10:58:54]dirname=/storage/ofd_packets [10:58:54]CheckFolder done [10:58:54]ProducePacketName [10:58:54]name=ofd_packets/00075387 [10:58:54]NVStorageSaveData ofd_packets/00075387 [10:58:54]File name is /storage/ofd_packets/00075387 [10:58:54]Write 301 bytes [10:58:54]NVStorageSaveData done [10:58:54]OFDSenderStorePacket done [10:58:54]KKMCreateOFDPacket done [10:58:54]NVStorageSaveData kkm_last_timestamp [10:58:54]File name is /storage/kkm_last_timestamp [10:58:54]Write 4 bytes [10:58:54]NVStorageSaveData done [10:58:54]ExternCall_PrintAddStr [10:58:54]wPrintStart [10:58:54]Write to MH i2c: 01 00 00 F9 A1 9A [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 07 00 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 07 00 F9 A1 00 00 00 00 00 FF 0F AF [10:58:54]RasterBufferAndPrint [10:58:54]line Счет N : (1)1965361 [10:58:54]line ИНН: 02508201610067 [10:58:54]line Контрольно-Кассовый Чек [10:58:54]line ПРОДАЖА [10:58:54]line ТРК (МРК, ГНК) : 53 [10:58:54]line Товар: 2710124130 [10:58:54]line Аи-92-К-5 [10:58:54]line 5.980 * 66.90 [10:58:54]line = 400.06 [10:58:54]line НДС 12% НСП 1% [10:58:54]line > о реализуемом товаре [10:58:54]line ОКРУГЛЕНИЕ: -0.06 [10:58:54]line ИТОГО: 400.00 [10:58:54]line Внесено: 400.00 [10:58:54]line СДАЧА: 0.00 [10:58:54]line НСП 1% : 3.54 [10:58:54]line НДС 12% : 42.48 [10:58:54]line Наличными: 400.00 [10:58:54]line Безнал.: 0.00 [10:58:54]line Место: АЗС № 133 "Партнер Нефть" [10:58:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:58:54]line СНО: Общий режим [10:58:54]line Чек 120 23.10.2024 10:58 [10:58:54]line Смена: 173 ФФД: 1.0 [10:58:54]line ЗНМ: 0300000020 [10:58:54]line РНМ: 0000000000161154 [10:58:54]line Версия ККМ: v1.0 [10:58:54]line ФМ: 0000000000963323 [10:58:54]line ФД: 75387 [10:58:54]line ФПД: 217826414141090 [10:58:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105859&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75387&fm=217826414141090&tin=02508201610067®Number=0000000000161154&sum=40000 [10:58:54]written 0, free lines is 4095 [10:58:54]OFD Sender: Processing packet 75387 [packets to send 15, broken 14] [10:58:54]ProducePacketName [10:58:54]name=ofd_packets/00075387 [10:58:54]OFD Sender: To server: pG, [10:58:54]CommunicateWithHost lk.salyk.kg:30040 [10:58:54]ConnectInit lk.salyk.kg [10:58:54]Connected sock=10 [10:58:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 10 A6 07 01 34 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 78 00 00 00 F4 03 04 00 F3 D6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7B 26 01 00 35 04 06 00 C6 1C AA 09 9E A2 59 94 84 58 06 B5 E1 B7 [10:58:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 03 9D 47 00 C9 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7B 26 01 00 F4 03 04 00 CE 7F 18 67 B6 04 01 00 00 5E 2D CF D5 D3 31 9C 42 [10:58:54]CommunicateWithHost err = 0 [10:58:54]CheckOFDResponse [10:58:54]1017 (14) - 77093643461234 [10:58:54]1041 (16) - 0000000000963323 [10:58:54]1040 (4) - 75387 [10:58:54]1012 (4) - 23.10.2024 04:47 [10:58:54]1206 (1) - 0 [10:58:54]OFD Sender: Remove packet 75387 [10:58:54]ProducePacketName [10:58:54]name=ofd_packets/00075387 [10:58:54]NVStorageDeleteData [10:58:54]Write to MH i2c: 01 00 00 23 A2 C5 [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 07 00 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 07 00 23 A2 00 00 00 00 00 B8 0C 90 [10:58:54]RasterBufferAndPrint [10:58:54]line [10:58:54]line [10:58:54]line [10:58:54]line [10:58:54]line [10:58:54]written 0, free lines is 3265 [10:58:54]MH_Cut [10:58:54]Write to MH i2c: D1 01 00 2A A2 01 9E [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: D1 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: D1 01 00 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: D1 01 00 2A A2 00 9D [10:58:54]Write to MH i2c: 01 00 00 2B A2 CD [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:54]OFD Sender: No OFD packet to send [10:58:55]*** Cut start [10:58:55]*** Partial cut [10:58:55]*** CUTSNS_PIN = 1 [10:58:55]*** CUTSNS_PIN = 0 [10:58:55]*** Brake cut motor [10:58:55]Read from MH i2c: 01 [10:58:55]MH_I2C_Read... [10:58:55]*** Stop cut motor [10:58:55]*** Cut end [10:58:55]Read from MH i2c: 01 07 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: 01 07 00 2B A2 00 00 00 00 00 FF 0F E2 [10:58:55]process_action close_receipt done [10:58:55]requested_data is exist [10:58:55]produce_requested_data [10:58:55]requested_item fm.sn is exist - process it [10:58:55]wFMCommunicate request_size=4 [10:58:55]MH_SAM_APDU [10:58:55]CAPDU: 80 11 00 00 [10:58:55]Write to MH i2c: E2 08 00 2C A2 80 11 00 00 00 00 00 00 48 [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:56]Read from MH i2c: E2 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 17 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 17 00 2C A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 95 [10:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:58:56]wFMCommunicate OK [10:58:56]requested_item fd.num is exist - process it [10:58:56]SAM_PROTO_GetFieldsCounters [10:58:56]wFMCommunicate request_size=4 [10:58:56]MH_SAM_APDU [10:58:56]CAPDU: 80 13 00 00 [10:58:56]Write to MH i2c: E2 08 00 2D A2 80 13 00 00 00 00 00 00 4B [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:56]Read from MH i2c: E2 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 62 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 62 00 2D A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7B 26 01 00 0E 04 04 00 AD 00 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 [10:58:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7B 26 01 00 0E 04 04 00 AD 00 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 [10:58:56]wFMCommunicate OK [10:58:56]SAM_PROTO_GetFieldsCounters done [10:58:56]requested_item shift.num is exist - process it [10:58:56]requested_item shift.opened is exist - process it [10:58:56]req_shift_opened [10:58:56]FM_GetShiftState [10:58:56]SAM_PROTO_GetShiftState [10:58:56]wFMCommunicate request_size=4 [10:58:56]MH_SAM_APDU [10:58:56]CAPDU: 80 13 01 00 [10:58:56]Write to MH i2c: E2 08 00 2E A2 80 13 01 00 00 00 00 00 4D [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:56]Read from MH i2c: E2 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 0E 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 0E 00 2E A2 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B2 [10:58:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:58:56]wFMCommunicate OK [10:58:56]SAM_PROTO_GetShiftState done [10:58:56]FM_GetShiftState done [10:58:56]req_shift_opened done [10:58:56]requested_item shift.open_date is exist - process it [10:58:56]req_shift_open_date [10:58:56]req_shift_open_date done [10:58:56]produce_requested_data done [10:58:56]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75387,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:58:56]process_action_free close_receipt [10:58:56]json_value_free [10:58:56]json_value_free done [10:58:56]process_json_proto returns [10:58:56]Send response to host [10:58:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75387,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:58:56]free response buf [10:58:56]execute_script done [10:58:56]execute_script returns [10:58:56]free content buf [10:58:56]Sock 7.Close socket [10:58:56]Sock 7.Thread stoped [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:41]accept exits with 9 [10:59:41]New connection [10:59:41]New thread 3067321700 created [10:59:41]Thread 3067465060 joined [10:59:41]Waiting for new connection... [10:59:41] Sock 9.Parse request [10:59:41]Sock 9.Check first char [10:59:41]Sock 9.First char is OK [10:59:41]request: POST /json_proto HTTP/1.0 [10:59:41]Method: POST [10:59:41]URL: /json_proto [10:59:41]Method is POST - this is cgi request [10:59:41]url: /json_proto [10:59:41]query_string will be loaded in cgi processing [10:59:41]execute_cgi json_proto POST (null) [10:59:41]execute_cgi path=json_proto method=POST [10:59:41]POST find Content-Length [10:59:41]Host: 172.17.44.196:8080 [10:59:41]Content-Length: 678 [10:59:41]Content-Type: application/json [10:59:41] [10:59:41]POST finish read [10:59:41]Found Content-Length = 678 [10:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:59:41]execute_script... [10:59: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)1965362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:59:41]POST & json_proto [10:59:41]process_json_proto [10:59:41]json parsed OK: [10:59:41]protocol is kg_v1.0 [10:59:41]action value=close_receipt [10:59:41]process_action close_receipt [10:59:41]cmd_close_receipt [10:59:41]MH_GetDate [10:59:41]Write to MH i2c: F0 00 00 2F A2 C0 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: F0 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: F0 09 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: F0 09 00 2F A2 00 24 D7 18 67 E7 19 F8 65 A0 [10:59:41]GetLastDocTimeStamp 1729681139 [10:59:41]current date 1729681188 [10:59:41]FM_GetShiftState [10:59:41]SAM_PROTO_GetShiftState [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 13 01 00 [10:59:41]Write to MH i2c: E2 08 00 30 A2 80 13 01 00 00 00 00 00 4F [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0E 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0E 00 30 A2 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B4 [10:59:41]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:59:41]wFMCommunicate OK [10:59:41]SAM_PROTO_GetShiftState done [10:59:41]FM_GetShiftState done [10:59:41]opened in 1729642905 [10:59:41]opened+sec_in_day 1729729305 [10:59:41]quantity*price = 50041 [10:59:41]sum+1 = 50042 [10:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 121 23.10.2024 10:59 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75388 ФПД: 21015703437219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105948&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75388&fm=21015703437219&tin=02508201610067®Number=0000000000161154&sum=50000 [10:59:42]StoreToDocumentArchive [10:59:42]shift 173 fd 75388 [10:59:42]save to /storage/0173/doc_00075388 [10:59:42]save last doc name /storage/0173/doc_00075388 to /storage/kkm_last_doc_name [10:59:42]save OK [10:59:42]Clear old archive folders... [10:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:42]tlvbuf is 00EAB240 [10:59:42]SAM_PROTO_ClearQueue [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 09 00 00 [10:59:42]Write to MH i2c: E2 08 00 3D A2 80 09 00 00 00 00 00 00 51 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 3D A2 00 90 00 53 [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]SAM_PROTO_ClearQueue done [10:59:42]KKMCreateOFDPacket [10:59:42]OFDProtocolAddRootSTLVToBuf [10:59:42]FM_MakeSignedData [10:59:42]FM_MakeSignedData [10:59:42]SAM_PROTO_SignData [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 01 02 [10:59:42]Write to MH i2c: E2 08 00 3E A2 80 0D 01 02 00 00 00 00 59 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 3E A2 00 90 00 54 [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=255 [10:59:42]MH_SAM_APDU [10:59: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 79 00 00 00 F4 03 04 00 24 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7C 26 01 00 35 04 06 00 13 [10:59:42]Write to MH i2c: E2 02 01 3F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 79 00 00 00 F4 03 04 00 24 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7C 26 01 00 35 04 06 00 13 00 00 31 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 3F A2 00 90 00 55 [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=10 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 02 02 05 1D 19 89 BF A3 [10:59:42]Write to MH i2c: E2 0D 00 40 A2 80 0D 02 02 05 00 1D 19 89 BF A3 00 00 87 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 40 A2 00 90 00 56 [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 03 02 [10:59:42]Write to MH i2c: E2 08 00 41 A2 80 0D 03 02 00 00 00 00 5E [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 0B 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 0B 00 41 A2 00 E9 AC C6 8F 21 7A 57 C3 90 00 FE [10:59:42]RAPDU: E9 AC C6 8F 21 7A 57 C3 90 00 [10:59:42]wFMCommunicate OK [10:59:42]SAM_PROTO_SignData done [10:59:42]FM_MakeSignedData done [10:59:42]CreateOFDProtocolMessage [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 11 00 00 [10:59:42]Write to MH i2c: E2 08 00 42 A2 80 11 00 00 00 00 00 00 5E [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 17 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 17 00 42 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AB [10:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:59:42]wFMCommunicate OK [10:59:42]CreateOFDProtocolMessage done [10:59:42]OFDSenderStorePacket 75388 [10:59:42]StoreOFDPacket docnum=75388 [10:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D1 61 07 01 D2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 79 00 00 00 F4 03 04 00 24 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7C 26 01 00 35 04 06 00 13 1D 19 89 BF A3 E9 AC C6 8F 21 7A 57 C3 [10:59:42]CheckFolder [10:59:42]dirname=/storage/ofd_packets [10:59:42]CheckFolder done [10:59:42]ProducePacketName [10:59:42]name=ofd_packets/00075388 [10:59:42]NVStorageSaveData ofd_packets/00075388 [10:59:42]File name is /storage/ofd_packets/00075388 [10:59:42]Write 301 bytes [10:59:42]NVStorageSaveData done [10:59:42]OFDSenderStorePacket done [10:59:42]KKMCreateOFDPacket done [10:59:42]NVStorageSaveData kkm_last_timestamp [10:59:42]File name is /storage/kkm_last_timestamp [10:59:42]Write 4 bytes [10:59:42]NVStorageSaveData done [10:59:42]ExternCall_PrintAddStr [10:59:42]wPrintStart [10:59:42]Write to MH i2c: 01 00 00 43 A2 E5 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 43 A2 00 00 00 00 00 FF 0F FA [10:59:42]RasterBufferAndPrint [10:59:42]line Счет N : (1)1965362 [10:59:42]line ИНН: 02508201610067 [10:59:42]line Контрольно-Кассовый Чек [10:59:42]line ПРОДАЖА [10:59:42]line ТРК (МРК, ГНК) : 33 [10:59:42]line Товар: 2710124130 [10:59:42]line Аи-92-К-5 [10:59:42]line 7.480 * 66.90 [10:59:42]line = 500.41 [10:59:42]line НДС 12% НСП 1% [10:59:42]line > о реализуемом товаре [10:59:42]line ОКРУГЛЕНИЕ: -0.41 [10:59:42]line ИТОГО: 500.00 [10:59:42]line Внесено: 500.00 [10:59:42]line СДАЧА: 0.00 [10:59:42]line НСП 1% : 4.43 [10:59:42]line НДС 12% : 53.14 [10:59:42]line Наличными: 500.00 [10:59:42]line Безнал.: 0.00 [10:59:42]line Место: АЗС № 133 "Партнер Нефть" [10:59:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [10:59:42]line СНО: Общий режим [10:59:42]line Чек 121 23.10.2024 10:59 [10:59:42]line Смена: 173 ФФД: 1.0 [10:59:42]line ЗНМ: 0300000020 [10:59:42]line РНМ: 0000000000161154 [10:59:42]line Версия ККМ: v1.0 [10:59:42]line ФМ: 0000000000963323 [10:59:42]line ФД: 75388 [10:59:42]line ФПД: 21015703437219 [10:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105948&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75388&fm=21015703437219&tin=02508201610067®Number=0000000000161154&sum=50000 [10:59:43]OFD Sender: Processing packet 75388 [packets to send 15, broken 14] [10:59:43]ProducePacketName [10:59:43]name=ofd_packets/00075388 [10:59:43]OFD Sender: To server: pG, [10:59:43]CommunicateWithHost lk.salyk.kg:30040 [10:59:43]ConnectInit lk.salyk.kg [10:59:43]written 0, free lines is 4095 [10:59:43]Connected sock=10 [10:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D1 61 07 01 D2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 79 00 00 00 F4 03 04 00 24 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7C 26 01 00 35 04 06 00 13 1D 19 89 BF A3 E9 AC C6 8F 21 7A 57 C3 [10:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E8 EC 47 00 0E 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 39 36 33 33 32 33 10 04 04 00 7C 26 01 00 F4 03 04 00 FF 7F 18 67 B6 04 01 00 00 F5 6D D9 56 E8 5B 8F B7 [10:59:43]CommunicateWithHost err = 0 [10:59:43]CheckOFDResponse [10:59:43]1017 (14) - 77093643461234 [10:59:43]1041 (16) - 0000000000963323 [10:59:43]1040 (4) - 75388 [10:59:43]1012 (4) - 23.10.2024 04:47 [10:59:43]1206 (1) - 0 [10:59:43]OFD Sender: Remove packet 75388 [10:59:43]ProducePacketName [10:59:43]name=ofd_packets/00075388 [10:59:43]NVStorageDeleteData [10:59:43]Write to MH i2c: 01 00 00 6D A2 0F [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 6D A2 00 00 00 00 00 B7 0C D9 [10:59:43]RasterBufferAndPrint [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]written 0, free lines is 3260 [10:59:43]MH_Cut [10:59:43]Write to MH i2c: D1 01 00 74 A2 01 E8 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 01 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 01 00 74 A2 00 E7 [10:59:43]Write to MH i2c: 01 00 00 75 A2 17 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:44]OFD Sender: No OFD packet to send [10:59:44]*** Cut start [10:59:44]*** Partial cut [10:59:44]*** CUTSNS_PIN = 1 [10:59:44]*** CUTSNS_PIN = 0 [10:59:44]*** Brake cut motor [10:59:45]Read from MH i2c: 01 [10:59:45]MH_I2C_Read... [10:59:45]*** Stop cut motor [10:59:45]*** Cut end [10:59:45]Read from MH i2c: 01 07 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 07 00 75 A2 00 00 00 00 00 FF 0F 2C [10:59:45]process_action close_receipt done [10:59:45]requested_data is exist [10:59:45]produce_requested_data [10:59:45]requested_item fm.sn is exist - process it [10:59:45]wFMCommunicate request_size=4 [10:59:45]MH_SAM_APDU [10:59:45]CAPDU: 80 11 00 00 [10:59:45]Write to MH i2c: E2 08 00 76 A2 80 11 00 00 00 00 00 00 92 [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 17 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 17 00 76 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DF [10:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [10:59:45]wFMCommunicate OK [10:59:45]requested_item fd.num is exist - process it [10:59:45]SAM_PROTO_GetFieldsCounters [10:59:45]wFMCommunicate request_size=4 [10:59:45]MH_SAM_APDU [10:59:45]CAPDU: 80 13 00 00 [10:59:45]Write to MH i2c: E2 08 00 77 A2 80 13 00 00 00 00 00 00 95 [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 62 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 62 00 77 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7C 26 01 00 0E 04 04 00 AD 00 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 64 [10:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7C 26 01 00 0E 04 04 00 AD 00 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 [10:59:45]wFMCommunicate OK [10:59:45]SAM_PROTO_GetFieldsCounters done [10:59:45]requested_item shift.num is exist - process it [10:59:45]requested_item shift.opened is exist - process it [10:59:45]req_shift_opened [10:59:45]FM_GetShiftState [10:59:45]SAM_PROTO_GetShiftState [10:59:45]wFMCommunicate request_size=4 [10:59:45]MH_SAM_APDU [10:59:45]CAPDU: 80 13 01 00 [10:59:45]Write to MH i2c: E2 08 00 78 A2 80 13 01 00 00 00 00 00 97 [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 0E 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 0E 00 78 A2 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FC [10:59:45]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [10:59:45]wFMCommunicate OK [10:59:45]SAM_PROTO_GetShiftState done [10:59:45]FM_GetShiftState done [10:59:45]req_shift_opened done [10:59:45]requested_item shift.open_date is exist - process it [10:59:45]req_shift_open_date [10:59:45]req_shift_open_date done [10:59:45]produce_requested_data done [10:59:45]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75388,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [10:59:45]process_action_free close_receipt [10:59:45]json_value_free [10:59:45]json_value_free done [10:59:45]process_json_proto returns [10:59:45]Send response to host [10:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75388,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [10:59:45]free response buf [10:59:45]execute_script done [10:59:45]execute_script returns [10:59:45]free content buf [10:59:45]Sock 9.Close socket [10:59:45]Sock 9.Thread stoped [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:38]accept exits with 7 [11:01:38]New connection [11:01:38]New thread 3067465060 created [11:01:38]Thread 3067321700 joined [11:01:38]Waiting for new connection... [11:01:38] Sock 7.Parse request [11:01:38]Sock 7.Check first char [11:01:38]Sock 7.First char is OK [11:01:38]request: POST /json_proto HTTP/1.0 [11:01:38]Method: POST [11:01:38]URL: /json_proto [11:01:38]Method is POST - this is cgi request [11:01:38]url: /json_proto [11:01:38]query_string will be loaded in cgi processing [11:01:38]execute_cgi json_proto POST (null) [11:01:38]execute_cgi path=json_proto method=POST [11:01:38]POST find Content-Length [11:01:38]Host: 172.17.44.196:8080 [11:01:38]Content-Length: 796 [11:01:38]Content-Type: application/json [11:01:38] [11:01:38]POST finish read [11:01:38]Found Content-Length = 796 [11:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273227", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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: Mbank", "payments": [ { "type": 1, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:38]execute_script... [11:01:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273227", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.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: Mbank", "payments": [ { "type": 1, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:38]POST & json_proto [11:01:38]process_json_proto [11:01:38]json parsed OK: [11:01:38]protocol is kg_v1.0 [11:01:38]action value=close_receipt [11:01:38]process_action close_receipt [11:01:38]cmd_close_receipt [11:01:38]MH_GetDate [11:01:38]Write to MH i2c: F0 00 00 79 A2 0A [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: F0 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: F0 09 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: F0 09 00 79 A2 00 99 D7 18 67 E7 19 F8 65 5F [11:01:38]GetLastDocTimeStamp 1729681188 [11:01:38]current date 1729681305 [11:01:38]FM_GetShiftState [11:01:38]SAM_PROTO_GetShiftState [11:01:38]wFMCommunicate request_size=4 [11:01:38]MH_SAM_APDU [11:01:38]CAPDU: 80 13 01 00 [11:01:38]Write to MH i2c: E2 08 00 7A A2 80 13 01 00 00 00 00 00 99 [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:38]Read from MH i2c: E2 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 0E 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 0E 00 7A A2 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FE [11:01:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:01:38]wFMCommunicate OK [11:01:38]SAM_PROTO_GetShiftState done [11:01:38]FM_GetShiftState done [11:01:38]opened in 1729642905 [11:01:38]opened+sec_in_day 1729729305 [11:01:38]quantity*price = 11000 [11:01:38]sum+1 = 11001 [11:01:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 0.00 Безнал.: 110.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 122 23.10.2024 11:01 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75389 ФПД: 187456519053087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110145&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75389&fm=187456519053087&tin=02508201610067®Number=0000000000161154&sum=11000 0 [11:01:39]StoreToDocumentArchive [11:01:39]shift 173 fd 75389 [11:01:39]save to /storage/0173/doc_00075389 [11:01:39]save last doc name /storage/0173/doc_00075389 to /storage/kkm_last_doc_name [11:01:39]save OK [11:01:39]Clear old archive folders... [11:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:01:39]tlvbuf is 00EDE950 [11:01:39]SAM_PROTO_ClearQueue [11:01:39]wFMCommunicate request_size=4 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 09 00 00 [11:01:39]Write to MH i2c: E2 08 00 87 A2 80 09 00 00 00 00 00 00 9B [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 87 A2 00 90 00 9D [11:01:39]RAPDU: 90 00 [11:01:39]wFMCommunicate OK [11:01:39]SAM_PROTO_ClearQueue done [11:01:39]KKMCreateOFDPacket [11:01:39]OFDProtocolAddRootSTLVToBuf [11:01:39]FM_MakeSignedData [11:01:39]FM_MakeSignedData [11:01:39]SAM_PROTO_SignData [11:01:39]wFMCommunicate request_size=4 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 0D 01 02 [11:01:39]Write to MH i2c: E2 08 00 88 A2 80 0D 01 02 00 00 00 00 A3 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 88 A2 00 90 00 9E [11:01:39]RAPDU: 90 00 [11:01:39]wFMCommunicate OK [11:01:39]wFMCommunicate request_size=255 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 99 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:01:39]Write to MH i2c: E2 02 01 89 A2 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 99 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 D3 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 89 A2 00 90 00 9F [11:01:39]RAPDU: 90 00 [11:01:39]wFMCommunicate OK [11:01:39]wFMCommunicate request_size=52 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 0D 02 02 2F 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7D 26 01 00 35 04 06 00 AA 7D 9F 3A 9F 1F [11:01:39]Write to MH i2c: E2 37 00 8A A2 80 0D 02 02 2F 00 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7D 26 01 00 35 04 06 00 AA 7D 9F 3A 9F 1F 00 00 BE [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 03 00 8A A2 00 90 00 A0 [11:01:39]RAPDU: 90 00 [11:01:39]wFMCommunicate OK [11:01:39]wFMCommunicate request_size=4 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 0D 03 02 [11:01:39]Write to MH i2c: E2 08 00 8B A2 80 0D 03 02 00 00 00 00 A8 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:40]Read from MH i2c: E2 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: E2 0B 00 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: E2 0B 00 8B A2 00 9F 7F 94 DA 75 92 55 7D 90 00 0E [11:01:40]RAPDU: 9F 7F 94 DA 75 92 55 7D 90 00 [11:01:40]wFMCommunicate OK [11:01:40]SAM_PROTO_SignData done [11:01:40]FM_MakeSignedData done [11:01:40]CreateOFDProtocolMessage [11:01:40]wFMCommunicate request_size=4 [11:01:40]MH_SAM_APDU [11:01:40]CAPDU: 80 11 00 00 [11:01:40]Write to MH i2c: E2 08 00 8C A2 80 11 00 00 00 00 00 00 A8 [11:01:40]Write i2c OK [11:01:40]MH_I2C_Read... [11:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:40]Read from MH i2c: E2 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: E2 17 00 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: E2 17 00 8C A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F5 [11:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:01:40]wFMCommunicate OK [11:01:40]CreateOFDProtocolMessage done [11:01:40]OFDSenderStorePacket 75389 [11:01:40]StoreOFDPacket docnum=75389 [11:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 DA 7E 31 01 55 BF 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 99 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7D 26 01 00 35 04 06 00 AA 7D 9F 3A 9F 1F 9F 7F 94 DA 75 92 55 7D [11:01:40]CheckFolder [11:01:40]dirname=/storage/ofd_packets [11:01:40]CheckFolder done [11:01:40]ProducePacketName [11:01:40]name=ofd_packets/00075389 [11:01:40]NVStorageSaveData ofd_packets/00075389 [11:01:40]File name is /storage/ofd_packets/00075389 [11:01:40]Write 343 bytes [11:01:40]NVStorageSaveData done [11:01:40]OFDSenderStorePacket done [11:01:40]KKMCreateOFDPacket done [11:01:40]NVStorageSaveData kkm_last_timestamp [11:01:40]File name is /storage/kkm_last_timestamp [11:01:40]Write 4 bytes [11:01:40]NVStorageSaveData done [11:01:40]ExternCall_PrintAddStr [11:01:40]wPrintStart [11:01:40]Write to MH i2c: 01 00 00 8D A2 2F [11:01:40]Write i2c OK [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: 01 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: 01 07 00 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: 01 07 00 8D A2 00 00 00 00 00 FF 0F 44 [11:01:40]RasterBufferAndPrint [11:01:40]line Счет N : (3)273227 [11:01:40]line ИНН: 02508201610067 [11:01:40]line Контрольно-Кассовый Чек [11:01:40]line ПРОДАЖА [11:01:40]line Товар: 4870022003305 [11:01:40]line Напиток Gorilla эн нат ж/б 0,5/0,45л [11:01:40]line 1.000 * 110.00 [11:01:40]line = 110.00 [11:01:40]line НДС 12% НСП 1% [11:01:40]line > о реализуемом товаре [11:01:40]line ИТОГО: 110.00 [11:01:40]line НСП 1% : 0.97 [11:01:40]line НДС 12% : 11.68 [11:01:40]line Наличными: 0.00 [11:01:40]line Безнал.: 110.00 [11:01:40]line Место: АЗС № 133 "Партнер Нефть" [11:01:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:01:40]line СНО: Общий режим [11:01:40]line Чек 122 23.10.2024 11:01 [11:01:40]line Смена: 173 ФФД: 1.0 [11:01:40]line ЗНМ: 0300000020 [11:01:40]line РНМ: 0000000000161154 [11:01:40]line Версия ККМ: v1.0 [11:01:40]line Платежная система: Mbank [11:01:40]line ФМ: 0000000000963323 [11:01:40]line ФД: 75389 [11:01:40]line ФПД: 187456519053087 [11:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110145&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75389&fm=187456519053087&tin=02508201610067®Number=0000000000161154&sum=11000 [11:01:40]line 0 [11:01:40]OFD Sender: Processing packet 75389 [packets to send 15, broken 14] [11:01:40]ProducePacketName [11:01:40]name=ofd_packets/00075389 [11:01:40]OFD Sender: To server: pG, [11:01:40]CommunicateWithHost lk.salyk.kg:30040 [11:01:40]ConnectInit lk.salyk.kg [11:01:40]written 0, free lines is 4095 [11:01:40]Connected sock=10 [11:01:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 DA 7E 31 01 55 BF 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 99 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7D 26 01 00 35 04 06 00 AA 7D 9F 3A 9F 1F 9F 7F 94 DA 75 92 55 7D [11:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 83 55 47 00 04 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 39 36 33 33 32 33 10 04 04 00 7D 26 01 00 F4 03 04 00 74 80 18 67 B6 04 01 00 00 B0 5B 4E A2 DD 23 6F 8D [11:01:40]CommunicateWithHost err = 0 [11:01:40]CheckOFDResponse [11:01:40]1017 (14) - 77093643461234 [11:01:40]1041 (16) - 0000000000963323 [11:01:40]1040 (4) - 75389 [11:01:40]1012 (4) - 23.10.2024 04:49 [11:01:40]1206 (1) - 0 [11:01:40]OFD Sender: Remove packet 75389 [11:01:40]ProducePacketName [11:01:40]name=ofd_packets/00075389 [11:01:40]NVStorageDeleteData [11:01:40]Write to MH i2c: 01 00 00 B6 A2 58 [11:01:40]Write i2c OK [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: 01 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: 01 07 00 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: 01 07 00 B6 A2 00 00 00 00 00 C1 0C 2C [11:01:40]RasterBufferAndPrint [11:01:40]line [11:01:40]line [11:01:40]line [11:01:40]line [11:01:40]line [11:01:40]written 0, free lines is 3272 [11:01:40]MH_Cut [11:01:40]Write to MH i2c: D1 01 00 BD A2 01 31 [11:01:40]Write i2c OK [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: D1 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: D1 01 00 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: D1 01 00 BD A2 00 30 [11:01:40]Write to MH i2c: 01 00 00 BE A2 60 [11:01:40]Write i2c OK [11:01:40]MH_I2C_Read... [11:01:41]OFD Sender: No OFD packet to send [11:01:41]*** Cut start [11:01:41]*** Partial cut [11:01:41]*** CUTSNS_PIN = 1 [11:01:41]*** CUTSNS_PIN = 0 [11:01:41]*** Brake cut motor [11:01:42]Read from MH i2c: 01 [11:01:42]MH_I2C_Read... [11:01:42]*** Stop cut motor [11:01:42]*** Cut end [11:01:42]Read from MH i2c: 01 07 00 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: 01 07 00 BE A2 00 00 00 00 00 FF 0F 75 [11:01:42]process_action close_receipt done [11:01:42]requested_data is exist [11:01:42]produce_requested_data [11:01:42]requested_item fm.sn is exist - process it [11:01:42]wFMCommunicate request_size=4 [11:01:42]MH_SAM_APDU [11:01:42]CAPDU: 80 11 00 00 [11:01:42]Write to MH i2c: E2 08 00 BF A2 80 11 00 00 00 00 00 00 DB [11:01:42]Write i2c OK [11:01:42]MH_I2C_Read... [11:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:42]Read from MH i2c: E2 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: E2 17 00 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: E2 17 00 BF A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 28 [11:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:01:42]wFMCommunicate OK [11:01:42]requested_item fd.num is exist - process it [11:01:42]SAM_PROTO_GetFieldsCounters [11:01:42]wFMCommunicate request_size=4 [11:01:42]MH_SAM_APDU [11:01:42]CAPDU: 80 13 00 00 [11:01:42]Write to MH i2c: E2 08 00 C0 A2 80 13 00 00 00 00 00 00 DE [11:01:42]Write i2c OK [11:01:42]MH_I2C_Read... [11:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:42]Read from MH i2c: E2 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: E2 62 00 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: E2 62 00 C0 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7D 26 01 00 0E 04 04 00 AD 00 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 B1 [11:01:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7D 26 01 00 0E 04 04 00 AD 00 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 [11:01:42]wFMCommunicate OK [11:01:42]SAM_PROTO_GetFieldsCounters done [11:01:42]requested_item shift.num is exist - process it [11:01:42]requested_item shift.opened is exist - process it [11:01:42]req_shift_opened [11:01:42]FM_GetShiftState [11:01:42]SAM_PROTO_GetShiftState [11:01:42]wFMCommunicate request_size=4 [11:01:42]MH_SAM_APDU [11:01:42]CAPDU: 80 13 01 00 [11:01:42]Write to MH i2c: E2 08 00 C1 A2 80 13 01 00 00 00 00 00 E0 [11:01:42]Write i2c OK [11:01:42]MH_I2C_Read... [11:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:42]Read from MH i2c: E2 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: E2 0E 00 [11:01:42]MH_I2C_Read... [11:01:42]Read from MH i2c: E2 0E 00 C1 A2 00 09 00 01 99 41 18 67 00 00 00 00 90 00 45 [11:01:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:01:42]wFMCommunicate OK [11:01:42]SAM_PROTO_GetShiftState done [11:01:42]FM_GetShiftState done [11:01:42]req_shift_opened done [11:01:42]requested_item shift.open_date is exist - process it [11:01:42]req_shift_open_date [11:01:42]req_shift_open_date done [11:01:42]produce_requested_data done [11:01:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75389,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:01:42]process_action_free close_receipt [11:01:42]json_value_free [11:01:42]json_value_free done [11:01:42]process_json_proto returns [11:01:42]Send response to host [11:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75389,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:01:42]free response buf [11:01:42]execute_script done [11:01:42]execute_script returns [11:01:42]free content buf [11:01:42]Sock 7.Close socket [11:01:42]Sock 7.Thread stoped [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:28]accept exits with 9 [11:02:28]New connection [11:02:28]New thread 3067321700 created [11:02:28]Thread 3067465060 joined [11:02:28]Waiting for new connection... [11:02:28] Sock 9.Parse request [11:02:28]Sock 9.Check first char [11:02:28]Sock 9.First char is OK [11:02:28]request: POST /json_proto HTTP/1.0 [11:02:28]Method: POST [11:02:28]URL: /json_proto [11:02:28]Method is POST - this is cgi request [11:02:28]url: /json_proto [11:02:28]query_string will be loaded in cgi processing [11:02:28]execute_cgi json_proto POST (null) [11:02:28]execute_cgi path=json_proto method=POST [11:02:28]POST find Content-Length [11:02:28]Host: 172.17.44.196:8080 [11:02:28]Content-Length: 678 [11:02:28]Content-Type: application/json [11:02:28] [11:02:28]POST finish read [11:02:28]Found Content-Length = 678 [11:02:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:28]execute_script... [11:02: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)1965363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:28]POST & json_proto [11:02:28]process_json_proto [11:02:28]json parsed OK: [11:02:28]protocol is kg_v1.0 [11:02:28]action value=close_receipt [11:02:28]process_action close_receipt [11:02:28]cmd_close_receipt [11:02:28]MH_GetDate [11:02:28]Write to MH i2c: F0 00 00 C2 A2 53 [11:02:28]Write i2c OK [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: F0 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: F0 09 00 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: F0 09 00 C2 A2 00 CC D7 18 67 E7 19 F8 65 DB [11:02:28]GetLastDocTimeStamp 1729681305 [11:02:28]current date 1729681356 [11:02:28]FM_GetShiftState [11:02:28]SAM_PROTO_GetShiftState [11:02:28]wFMCommunicate request_size=4 [11:02:28]MH_SAM_APDU [11:02:28]CAPDU: 80 13 01 00 [11:02:28]Write to MH i2c: E2 08 00 C3 A2 80 13 01 00 00 00 00 00 E2 [11:02:28]Write i2c OK [11:02:28]MH_I2C_Read... [11:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:28]Read from MH i2c: E2 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: E2 0E 00 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: E2 0E 00 C3 A2 00 09 00 01 99 41 18 67 00 00 00 00 90 00 47 [11:02:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:02:28]wFMCommunicate OK [11:02:28]SAM_PROTO_GetShiftState done [11:02:28]FM_GetShiftState done [11:02:28]opened in 1729642905 [11:02:28]opened+sec_in_day 1729729305 [11:02:28]quantity*price = 30038 [11:02:28]sum+1 = 30039 [11:02:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 123 23.10.2024 11:02 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75390 ФПД: 67021517251215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110236&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75390&fm=67021517251215&tin=02508201610067®Number=0000000000161154&sum=30000 [11:02:30]StoreToDocumentArchive [11:02:30]shift 173 fd 75390 [11:02:30]save to /storage/0173/doc_00075390 [11:02:30]save last doc name /storage/0173/doc_00075390 to /storage/kkm_last_doc_name [11:02:30]save OK [11:02:30]Clear old archive folders... [11:02:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:30]tlvbuf is 00E9BDD0 [11:02:30]SAM_PROTO_ClearQueue [11:02:30]wFMCommunicate request_size=4 [11:02:30]MH_SAM_APDU [11:02:30]CAPDU: 80 09 00 00 [11:02:30]Write to MH i2c: E2 08 00 D0 A2 80 09 00 00 00 00 00 00 E4 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:30]Read from MH i2c: E2 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 03 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 03 00 D0 A2 00 90 00 E6 [11:02:30]RAPDU: 90 00 [11:02:30]wFMCommunicate OK [11:02:30]SAM_PROTO_ClearQueue done [11:02:30]KKMCreateOFDPacket [11:02:30]OFDProtocolAddRootSTLVToBuf [11:02:30]FM_MakeSignedData [11:02:30]FM_MakeSignedData [11:02:30]SAM_PROTO_SignData [11:02:30]wFMCommunicate request_size=4 [11:02:30]MH_SAM_APDU [11:02:30]CAPDU: 80 0D 01 02 [11:02:30]Write to MH i2c: E2 08 00 D1 A2 80 0D 01 02 00 00 00 00 EC [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:30]Read from MH i2c: E2 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 03 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 03 00 D1 A2 00 90 00 E7 [11:02:30]RAPDU: 90 00 [11:02:30]wFMCommunicate OK [11:02:30]wFMCommunicate request_size=255 [11:02:30]MH_SAM_APDU [11:02: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 CC D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7E 26 01 00 35 04 06 00 3C [11:02:30]Write to MH i2c: E2 02 01 D2 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 CC D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7E 26 01 00 35 04 06 00 3C 00 00 8D [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:30]Read from MH i2c: E2 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 03 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 03 00 D2 A2 00 90 00 E8 [11:02:30]RAPDU: 90 00 [11:02:30]wFMCommunicate OK [11:02:30]wFMCommunicate request_size=10 [11:02:30]MH_SAM_APDU [11:02:30]CAPDU: 80 0D 02 02 05 F4 A9 BA 62 8F [11:02:30]Write to MH i2c: E2 0D 00 D3 A2 80 0D 02 02 05 00 F4 A9 BA 62 8F 00 00 41 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:30]Read from MH i2c: E2 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 03 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 03 00 D3 A2 00 90 00 E9 [11:02:30]RAPDU: 90 00 [11:02:30]wFMCommunicate OK [11:02:30]wFMCommunicate request_size=4 [11:02:30]MH_SAM_APDU [11:02:30]CAPDU: 80 0D 03 02 [11:02:30]Write to MH i2c: E2 08 00 D4 A2 80 0D 03 02 00 00 00 00 F1 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:30]Read from MH i2c: E2 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 0B 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 0B 00 D4 A2 00 B2 1A BB AD DD 20 9E F7 90 00 B8 [11:02:30]RAPDU: B2 1A BB AD DD 20 9E F7 90 00 [11:02:30]wFMCommunicate OK [11:02:30]SAM_PROTO_SignData done [11:02:30]FM_MakeSignedData done [11:02:30]CreateOFDProtocolMessage [11:02:30]wFMCommunicate request_size=4 [11:02:30]MH_SAM_APDU [11:02:30]CAPDU: 80 11 00 00 [11:02:30]Write to MH i2c: E2 08 00 D5 A2 80 11 00 00 00 00 00 00 F1 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:30]Read from MH i2c: E2 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 17 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 17 00 D5 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3E [11:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:02:30]wFMCommunicate OK [11:02:30]CreateOFDProtocolMessage done [11:02:30]OFDSenderStorePacket 75390 [11:02:30]StoreOFDPacket docnum=75390 [11:02:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C1 DB 07 01 2B 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 CC D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7E 26 01 00 35 04 06 00 3C F4 A9 BA 62 8F B2 1A BB AD DD 20 9E F7 [11:02:30]CheckFolder [11:02:30]dirname=/storage/ofd_packets [11:02:30]CheckFolder done [11:02:30]ProducePacketName [11:02:30]name=ofd_packets/00075390 [11:02:30]NVStorageSaveData ofd_packets/00075390 [11:02:30]File name is /storage/ofd_packets/00075390 [11:02:30]Write 301 bytes [11:02:30]NVStorageSaveData done [11:02:30]OFDSenderStorePacket done [11:02:30]KKMCreateOFDPacket done [11:02:30]NVStorageSaveData kkm_last_timestamp [11:02:30]File name is /storage/kkm_last_timestamp [11:02:30]Write 4 bytes [11:02:30]NVStorageSaveData done [11:02:30]ExternCall_PrintAddStr [11:02:30]wPrintStart [11:02:30]Write to MH i2c: 01 00 00 D6 A2 78 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: 01 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: 01 07 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: 01 07 00 D6 A2 00 00 00 00 00 FF 0F 8D [11:02:30]RasterBufferAndPrint [11:02:30]line Счет N : (1)1965363 [11:02:30]line ИНН: 02508201610067 [11:02:30]line Контрольно-Кассовый Чек [11:02:30]line ПРОДАЖА [11:02:30]line ТРК (МРК, ГНК) : 33 [11:02:30]line Товар: 2710124130 [11:02:30]line Аи-92-К-5 [11:02:30]line 4.490 * 66.90 [11:02:30]line = 300.38 [11:02:30]line НДС 12% НСП 1% [11:02:30]line > о реализуемом товаре [11:02:30]line ОКРУГЛЕНИЕ: -0.38 [11:02:30]line ИТОГО: 300.00 [11:02:30]line Внесено: 300.00 [11:02:30]line СДАЧА: 0.00 [11:02:30]line НСП 1% : 2.66 [11:02:30]line НДС 12% : 31.90 [11:02:30]line Наличными: 300.00 [11:02:30]line Безнал.: 0.00 [11:02:30]line Место: АЗС № 133 "Партнер Нефть" [11:02:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:02:30]line СНО: Общий режим [11:02:30]line Чек 123 23.10.2024 11:02 [11:02:30]line Смена: 173 ФФД: 1.0 [11:02:30]line ЗНМ: 0300000020 [11:02:30]line РНМ: 0000000000161154 [11:02:30]line Версия ККМ: v1.0 [11:02:30]line ФМ: 0000000000963323 [11:02:30]line ФД: 75390 [11:02:30]line ФПД: 67021517251215 [11:02:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110236&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75390&fm=67021517251215&tin=02508201610067®Number=0000000000161154&sum=30000 [11:02:30]OFD Sender: Processing packet 75390 [packets to send 15, broken 14] [11:02:30]ProducePacketName [11:02:30]name=ofd_packets/00075390 [11:02:30]OFD Sender: To server: pG, [11:02:30]CommunicateWithHost lk.salyk.kg:30040 [11:02:30]ConnectInit lk.salyk.kg [11:02:30]written 0, free lines is 4095 [11:02:31]Connected sock=10 [11:02:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C1 DB 07 01 2B 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 CC D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7E 26 01 00 35 04 06 00 3C F4 A9 BA 62 8F B2 1A BB AD DD 20 9E F7 [11:02:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 31 18 47 00 4F 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 39 36 33 33 32 33 10 04 04 00 7E 26 01 00 F4 03 04 00 A7 80 18 67 B6 04 01 00 00 16 15 42 56 69 18 CC 9C [11:02:31]CommunicateWithHost err = 0 [11:02:31]CheckOFDResponse [11:02:31]1017 (14) - 77093643461234 [11:02:31]1041 (16) - 0000000000963323 [11:02:31]1040 (4) - 75390 [11:02:31]1012 (4) - 23.10.2024 04:50 [11:02:31]1206 (1) - 0 [11:02:31]OFD Sender: Remove packet 75390 [11:02:31]ProducePacketName [11:02:31]name=ofd_packets/00075390 [11:02:31]NVStorageDeleteData [11:02:31]Write to MH i2c: 01 00 00 00 A3 A3 [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: 01 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: 01 07 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: 01 07 00 00 A3 00 00 00 00 00 B3 0C 69 [11:02:31]RasterBufferAndPrint [11:02:31]line [11:02:31]line [11:02:31]line [11:02:31]line [11:02:31]line [11:02:31]written 0, free lines is 3257 [11:02:31]MH_Cut [11:02:31]Write to MH i2c: D1 01 00 07 A3 01 7C [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: D1 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: D1 01 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: D1 01 00 07 A3 00 7B [11:02:31]Write to MH i2c: 01 00 00 08 A3 AB [11:02:31]Write i2c OK [11:02:31]MH_I2C_Read... [11:02:31]OFD Sender: No OFD packet to send [11:02:32]*** Cut start [11:02:32]*** Partial cut [11:02:32]*** CUTSNS_PIN = 1 [11:02:32]*** CUTSNS_PIN = 0 [11:02:32]*** Brake cut motor [11:02:32]Read from MH i2c: 01 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: 01 07 00 [11:02:32]MH_I2C_Read... [11:02:32]*** Stop cut motor [11:02:32]Read from MH i2c: 01 07 00 08 A3 00 00 00 00 00 FF 0F C0 [11:02:32]process_action close_receipt done [11:02:32]requested_data is exist [11:02:32]produce_requested_data [11:02:32]requested_item fm.sn is exist - process it [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 11 00 00 [11:02:32]Write to MH i2c: E2 08 00 09 A3 80 11 00 00 00 00 00 00 26 [11:02:32]*** Cut end [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 17 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 17 00 09 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 73 [11:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:02:33]wFMCommunicate OK [11:02:33]requested_item fd.num is exist - process it [11:02:33]SAM_PROTO_GetFieldsCounters [11:02:33]wFMCommunicate request_size=4 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 13 00 00 [11:02:33]Write to MH i2c: E2 08 00 0A A3 80 13 00 00 00 00 00 00 29 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 62 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 62 00 0A A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7E 26 01 00 0E 04 04 00 AD 00 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 00 [11:02:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7E 26 01 00 0E 04 04 00 AD 00 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 [11:02:33]wFMCommunicate OK [11:02:33]SAM_PROTO_GetFieldsCounters done [11:02:33]requested_item shift.num is exist - process it [11:02:33]requested_item shift.opened is exist - process it [11:02:33]req_shift_opened [11:02:33]FM_GetShiftState [11:02:33]SAM_PROTO_GetShiftState [11:02:33]wFMCommunicate request_size=4 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 13 01 00 [11:02:33]Write to MH i2c: E2 08 00 0B A3 80 13 01 00 00 00 00 00 2B [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 0E 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 0E 00 0B A3 00 09 00 01 99 41 18 67 00 00 00 00 90 00 90 [11:02:33]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:02:33]wFMCommunicate OK [11:02:33]SAM_PROTO_GetShiftState done [11:02:33]FM_GetShiftState done [11:02:33]req_shift_opened done [11:02:33]requested_item shift.open_date is exist - process it [11:02:33]req_shift_open_date [11:02:33]req_shift_open_date done [11:02:33]produce_requested_data done [11:02:33]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75390,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:02:33]process_action_free close_receipt [11:02:33]json_value_free [11:02:33]json_value_free done [11:02:33]process_json_proto returns [11:02:33]Send response to host [11:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75390,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:02:33]free response buf [11:02:33]execute_script done [11:02:33]execute_script returns [11:02:33]free content buf [11:02:33]Sock 9.Close socket [11:02:33]Sock 9.Thread stoped [11:02:36]OFD Sender: No OFD packet to send [11:02:38]accept exits with 7 [11:02:38]New connection [11:02:38]New thread 3067465060 created [11:02:38]Thread 3067321700 joined [11:02:38]Waiting for new connection... [11:02:38] Sock 7.Parse request [11:02:38]Sock 7.Check first char [11:02:38]Sock 7.First char is OK [11:02:38]request: POST /json_proto HTTP/1.0 [11:02:38]Method: POST [11:02:38]URL: /json_proto [11:02:38]Method is POST - this is cgi request [11:02:38]url: /json_proto [11:02:38]query_string will be loaded in cgi processing [11:02:38]execute_cgi json_proto POST (null) [11:02:38]execute_cgi path=json_proto method=POST [11:02:38]POST find Content-Length [11:02:38]Host: 172.17.44.196:8080 [11:02:38]Content-Length: 767 [11:02:38]Content-Type: application/json [11:02:38] [11:02:38]POST finish read [11:02:38]Found Content-Length = 767 [11:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:38]execute_script... [11:02: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)1965364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:38]POST & json_proto [11:02:38]process_json_proto [11:02:38]json parsed OK: [11:02:38]protocol is kg_v1.0 [11:02:38]action value=close_receipt [11:02:38]process_action close_receipt [11:02:38]cmd_close_receipt [11:02:38]MH_GetDate [11:02:38]Write to MH i2c: F0 00 00 0C A3 9E [11:02:38]Write i2c OK [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: F0 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: F0 09 00 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: F0 09 00 0C A3 00 D5 D7 18 67 E7 19 F8 65 2F [11:02:38]GetLastDocTimeStamp 1729681356 [11:02:38]current date 1729681365 [11:02:38]FM_GetShiftState [11:02:38]SAM_PROTO_GetShiftState [11:02:38]wFMCommunicate request_size=4 [11:02:38]MH_SAM_APDU [11:02:38]CAPDU: 80 13 01 00 [11:02:38]Write to MH i2c: E2 08 00 0D A3 80 13 01 00 00 00 00 00 2D [11:02:38]Write i2c OK [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: E2 [11:02:38]MH_I2C_Read... [11:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:38]Read from MH i2c: E2 0E 00 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: E2 0E 00 0D A3 00 09 00 01 99 41 18 67 00 00 00 00 90 00 92 [11:02:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:02:38]wFMCommunicate OK [11:02:38]SAM_PROTO_GetShiftState done [11:02:38]FM_GetShiftState done [11:02:38]opened in 1729642905 [11:02:38]opened+sec_in_day 1729729305 [11:02:38]quantity*price = 30038 [11:02:38]sum+1 = 30039 [11:02:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 124 23.10.2024 11:02 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75391 ФПД: 241675465845824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110245&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75391&fm=241675465845824&tin=02508201610067®Number=0000000000161154&sum=30038 [11:02:39]StoreToDocumentArchive [11:02:39]shift 173 fd 75391 [11:02:39]save to /storage/0173/doc_00075391 [11:02:39]save last doc name /storage/0173/doc_00075391 to /storage/kkm_last_doc_name [11:02:39]save OK [11:02:39]Clear old archive folders... [11:02:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:39]tlvbuf is 01091540 [11:02:39]SAM_PROTO_ClearQueue [11:02:39]wFMCommunicate request_size=4 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 09 00 00 [11:02:39]Write to MH i2c: E2 08 00 1A A3 80 09 00 00 00 00 00 00 2F [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 1A A3 00 90 00 31 [11:02:39]RAPDU: 90 00 [11:02:39]wFMCommunicate OK [11:02:39]SAM_PROTO_ClearQueue done [11:02:39]KKMCreateOFDPacket [11:02:39]OFDProtocolAddRootSTLVToBuf [11:02:39]FM_MakeSignedData [11:02:39]FM_MakeSignedData [11:02:39]SAM_PROTO_SignData [11:02:39]wFMCommunicate request_size=4 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 0D 01 02 [11:02:39]Write to MH i2c: E2 08 00 1B A3 80 0D 01 02 00 00 00 00 37 [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 1B A3 00 90 00 32 [11:02:39]RAPDU: 90 00 [11:02:39]wFMCommunicate OK [11:02:39]wFMCommunicate request_size=255 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 D5 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7F 26 01 00 35 04 06 00 DB [11:02:39]Write to MH i2c: E2 02 01 1C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 D5 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7F 26 01 00 35 04 06 00 DB 00 00 CE [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 1C A3 00 90 00 33 [11:02:39]RAPDU: 90 00 [11:02:39]wFMCommunicate OK [11:02:39]wFMCommunicate request_size=10 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 0D 02 02 05 CD 74 4A EC 40 [11:02:39]Write to MH i2c: E2 0D 00 1D A3 80 0D 02 02 05 00 CD 74 4A EC 40 00 00 FB [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 1D A3 00 90 00 34 [11:02:39]RAPDU: 90 00 [11:02:39]wFMCommunicate OK [11:02:39]wFMCommunicate request_size=4 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 0D 03 02 [11:02:39]Write to MH i2c: E2 08 00 1E A3 80 0D 03 02 00 00 00 00 3C [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 0B 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 0B 00 1E A3 00 BE 78 54 C6 4B 3B C4 0F 90 00 E6 [11:02:39]RAPDU: BE 78 54 C6 4B 3B C4 0F 90 00 [11:02:39]wFMCommunicate OK [11:02:39]SAM_PROTO_SignData done [11:02:39]FM_MakeSignedData done [11:02:39]CreateOFDProtocolMessage [11:02:39]wFMCommunicate request_size=4 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 11 00 00 [11:02:39]Write to MH i2c: E2 08 00 1F A3 80 11 00 00 00 00 00 00 3C [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 17 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 17 00 1F A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 89 [11:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:02:39]wFMCommunicate OK [11:02:39]CreateOFDProtocolMessage done [11:02:39]OFDSenderStorePacket 75391 [11:02:39]StoreOFDPacket docnum=75391 [11:02:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 55 1C 07 01 21 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 D5 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7F 26 01 00 35 04 06 00 DB CD 74 4A EC 40 BE 78 54 C6 4B 3B C4 0F [11:02:39]CheckFolder [11:02:39]dirname=/storage/ofd_packets [11:02:39]CheckFolder done [11:02:39]ProducePacketName [11:02:39]name=ofd_packets/00075391 [11:02:39]NVStorageSaveData ofd_packets/00075391 [11:02:39]File name is /storage/ofd_packets/00075391 [11:02:39]Write 301 bytes [11:02:39]NVStorageSaveData done [11:02:39]OFDSenderStorePacket done [11:02:39]KKMCreateOFDPacket done [11:02:39]NVStorageSaveData kkm_last_timestamp [11:02:39]File name is /storage/kkm_last_timestamp [11:02:39]Write 4 bytes [11:02:39]NVStorageSaveData done [11:02:39]ExternCall_PrintAddStr [11:02:39]wPrintStart [11:02:39]Write to MH i2c: 01 00 00 20 A3 C3 [11:02:39]OFD Sender: Processing packet 75391 [packets to send 15, broken 14] [11:02:39]ProducePacketName [11:02:39]name=ofd_packets/00075391 [11:02:39]OFD Sender: To server: pG, [11:02:39]CommunicateWithHost lk.salyk.kg:30040 [11:02:39]ConnectInit lk.salyk.kg [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: 01 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: 01 07 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: 01 07 00 20 A3 00 00 00 00 00 FF 0F D8 [11:02:39]RasterBufferAndPrint [11:02:39]line Счет N : (1)1965364 [11:02:39]line ИНН: 02508201610067 [11:02:39]line Контрольно-Кассовый Чек [11:02:39]line ПРОДАЖА [11:02:39]line ТРК (МРК, ГНК) : 53 [11:02:39]line Товар: 2710124130 [11:02:39]line Аи-92-К-5 [11:02:39]line 4.490 * 66.90 [11:02:39]line = 300.38 [11:02:39]line НДС 12% НСП 1% [11:02:39]line > о реализуемом товаре [11:02:39]line ИТОГО: 300.38 [11:02:39]line НСП 1% : 2.66 [11:02:39]line НДС 12% : 31.90 [11:02:39]line Наличными: 0.00 [11:02:39]line Безнал.: 300.38 [11:02:39]line Место: АЗС № 133 "Партнер Нефть" [11:02:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:02:39]line СНО: Общий режим [11:02:39]line Чек 124 23.10.2024 11:02 [11:02:39]line Смена: 173 ФФД: 1.0 [11:02:39]line ЗНМ: 0300000020 [11:02:39]line РНМ: 0000000000161154 [11:02:39]line Версия ККМ: v1.0 [11:02:39]line Платежная система: Mbank [11:02:39]line ФМ: 0000000000963323 [11:02:39]line ФД: 75391 [11:02:39]line ФПД: 241675465845824 [11:02:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110245&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75391&fm=241675465845824&tin=02508201610067®Number=0000000000161154&sum=30038 [11:02:39]written 0, free lines is 4095 [11:02:40]Connected sock=10 [11:02:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 55 1C 07 01 21 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 D5 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7F 26 01 00 35 04 06 00 DB CD 74 4A EC 40 BE 78 54 C6 4B 3B C4 0F [11:02:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 28 F4 47 00 05 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 7F 26 01 00 F4 03 04 00 B0 80 18 67 B6 04 01 00 00 60 C7 3D 90 09 77 00 94 [11:02:40]CommunicateWithHost err = 0 [11:02:40]CheckOFDResponse [11:02:40]1017 (14) - 77093643461234 [11:02:40]1041 (16) - 0000000000963323 [11:02:40]1040 (4) - 75391 [11:02:40]1012 (4) - 23.10.2024 04:50 [11:02:40]1206 (1) - 0 [11:02:40]OFD Sender: Remove packet 75391 [11:02:40]ProducePacketName [11:02:40]name=ofd_packets/00075391 [11:02:40]NVStorageDeleteData [11:02:40]Write to MH i2c: 01 00 00 48 A3 EB [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: 01 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: 01 07 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: 01 07 00 48 A3 00 00 00 00 00 F3 0C F1 [11:02:40]RasterBufferAndPrint [11:02:40]line [11:02:40]line [11:02:40]line [11:02:40]line [11:02:40]line [11:02:40]written 0, free lines is 3325 [11:02:40]MH_Cut [11:02:40]Write to MH i2c: D1 01 00 4F A3 01 C4 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: D1 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: D1 01 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: D1 01 00 4F A3 00 C3 [11:02:40]Write to MH i2c: 01 00 00 50 A3 F3 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]OFD Sender: No OFD packet to send [11:02:41]*** Cut start [11:02:41]*** Partial cut [11:02:41]*** CUTSNS_PIN = 1 [11:02:41]*** CUTSNS_PIN = 0 [11:02:41]*** Brake cut motor [11:02:41]Read from MH i2c: 01 [11:02:41]MH_I2C_Read... [11:02:41]*** Stop cut motor [11:02:41]*** Cut end [11:02:41]Read from MH i2c: 01 07 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 07 00 50 A3 00 00 00 00 00 FF 0F 08 [11:02:41]process_action close_receipt done [11:02:41]requested_data is exist [11:02:41]produce_requested_data [11:02:41]requested_item fm.sn is exist - process it [11:02:41]wFMCommunicate request_size=4 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 11 00 00 [11:02:41]Write to MH i2c: E2 08 00 51 A3 80 11 00 00 00 00 00 00 6E [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:41]Read from MH i2c: E2 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 17 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 17 00 51 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BB [11:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:02:41]wFMCommunicate OK [11:02:41]requested_item fd.num is exist - process it [11:02:41]SAM_PROTO_GetFieldsCounters [11:02:41]wFMCommunicate request_size=4 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 13 00 00 [11:02:41]Write to MH i2c: E2 08 00 52 A3 80 13 00 00 00 00 00 00 71 [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:42]Read from MH i2c: E2 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: E2 62 00 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: E2 62 00 52 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7F 26 01 00 0E 04 04 00 AD 00 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 4C [11:02:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 7F 26 01 00 0E 04 04 00 AD 00 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 [11:02:42]wFMCommunicate OK [11:02:42]SAM_PROTO_GetFieldsCounters done [11:02:42]requested_item shift.num is exist - process it [11:02:42]requested_item shift.opened is exist - process it [11:02:42]req_shift_opened [11:02:42]FM_GetShiftState [11:02:42]SAM_PROTO_GetShiftState [11:02:42]wFMCommunicate request_size=4 [11:02:42]MH_SAM_APDU [11:02:42]CAPDU: 80 13 01 00 [11:02:42]Write to MH i2c: E2 08 00 53 A3 80 13 01 00 00 00 00 00 73 [11:02:42]Write i2c OK [11:02:42]MH_I2C_Read... [11:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:42]Read from MH i2c: E2 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: E2 0E 00 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: E2 0E 00 53 A3 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D8 [11:02:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:02:42]wFMCommunicate OK [11:02:42]SAM_PROTO_GetShiftState done [11:02:42]FM_GetShiftState done [11:02:42]req_shift_opened done [11:02:42]requested_item shift.open_date is exist - process it [11:02:42]req_shift_open_date [11:02:42]req_shift_open_date done [11:02:42]produce_requested_data done [11:02:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75391,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:02:42]process_action_free close_receipt [11:02:42]json_value_free [11:02:42]json_value_free done [11:02:42]process_json_proto returns [11:02:42]Send response to host [11:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75391,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:02:42]free response buf [11:02:42]execute_script done [11:02:42]execute_script returns [11:02:42]free content buf [11:02:42]Sock 7.Close socket [11:02:42]Sock 7.Thread stoped [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:52]accept exits with 9 [11:02:52]New connection [11:02:52]New thread 3067321700 created [11:02:52]Thread 3067465060 joined [11:02:52]Waiting for new connection... [11:02:52] Sock 9.Parse request [11:02:52]Sock 9.Check first char [11:02:52]Sock 9.First char is OK [11:02:52]request: POST /json_proto HTTP/1.0 [11:02:52]Method: POST [11:02:52]URL: /json_proto [11:02:52]Method is POST - this is cgi request [11:02:52]url: /json_proto [11:02:52]query_string will be loaded in cgi processing [11:02:52]execute_cgi json_proto POST (null) [11:02:52]execute_cgi path=json_proto method=POST [11:02:52]POST find Content-Length [11:02:52]Host: 172.17.44.196:8080 [11:02:52]Content-Length: 621 [11:02:52]Content-Type: application/json [11:02:52] [11:02:52]POST finish read [11:02:52]Found Content-Length = 621 [11:02:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273228", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:52]execute_script... [11:02:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273228", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:52]POST & json_proto [11:02:52]process_json_proto [11:02:52]json parsed OK: [11:02:52]protocol is kg_v1.0 [11:02:52]action value=close_receipt [11:02:52]process_action close_receipt [11:02:52]cmd_close_receipt [11:02:52]MH_GetDate [11:02:52]Write to MH i2c: F0 00 00 54 A3 E6 [11:02:52]Write i2c OK [11:02:52]MH_I2C_Read... [11:02:52]Read from MH i2c: F0 [11:02:52]MH_I2C_Read... [11:02:52]Read from MH i2c: F0 09 00 [11:02:52]MH_I2C_Read... [11:02:52]Read from MH i2c: F0 09 00 54 A3 00 E3 D7 18 67 E7 19 F8 65 85 [11:02:52]GetLastDocTimeStamp 1729681365 [11:02:52]current date 1729681379 [11:02:52]FM_GetShiftState [11:02:52]SAM_PROTO_GetShiftState [11:02:52]wFMCommunicate request_size=4 [11:02:52]MH_SAM_APDU [11:02:52]CAPDU: 80 13 01 00 [11:02:52]Write to MH i2c: E2 08 00 55 A3 80 13 01 00 00 00 00 00 75 [11:02:52]Write i2c OK [11:02:52]MH_I2C_Read... [11:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:52]Read from MH i2c: E2 [11:02:52]MH_I2C_Read... [11:02:52]Read from MH i2c: E2 0E 00 [11:02:52]MH_I2C_Read... [11:02:52]Read from MH i2c: E2 0E 00 55 A3 00 09 00 01 99 41 18 67 00 00 00 00 90 00 DA [11:02:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:02:52]wFMCommunicate OK [11:02:52]SAM_PROTO_GetShiftState done [11:02:52]FM_GetShiftState done [11:02:52]opened in 1729642905 [11:02:52]opened+sec_in_day 1729729305 [11:02:52]quantity*price = 14000 [11:02:52]sum+1 = 14001 [11:02:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 125 23.10.2024 11:02 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75392 ФПД: 154617460600598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110259&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75392&fm=154617460600598&tin=02508201610067®Number=0000000000161154&sum=14000 0 [11:02:53]StoreToDocumentArchive [11:02:53]shift 173 fd 75392 [11:02:53]save to /storage/0173/doc_00075392 [11:02:53]save last doc name /storage/0173/doc_00075392 to /storage/kkm_last_doc_name [11:02:53]save OK [11:02:53]Clear old archive folders... [11:02:53]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:02:53]tlvbuf is 00F54210 [11:02:53]SAM_PROTO_ClearQueue [11:02:53]wFMCommunicate request_size=4 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 09 00 00 [11:02:53]Write to MH i2c: E2 08 00 62 A3 80 09 00 00 00 00 00 00 77 [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 62 A3 00 90 00 79 [11:02:53]RAPDU: 90 00 [11:02:53]wFMCommunicate OK [11:02:53]SAM_PROTO_ClearQueue done [11:02:53]KKMCreateOFDPacket [11:02:53]OFDProtocolAddRootSTLVToBuf [11:02:53]FM_MakeSignedData [11:02:53]FM_MakeSignedData [11:02:53]SAM_PROTO_SignData [11:02:53]wFMCommunicate request_size=4 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 0D 01 02 [11:02:53]Write to MH i2c: E2 08 00 63 A3 80 0D 01 02 00 00 00 00 7F [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 63 A3 00 90 00 7A [11:02:53]RAPDU: 90 00 [11:02:53]wFMCommunicate OK [11:02:53]wFMCommunicate request_size=255 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E3 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [11:02:53]Write to MH i2c: E2 02 01 64 A3 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E3 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 D0 [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 64 A3 00 90 00 7B [11:02:54]RAPDU: 90 00 [11:02:54]wFMCommunicate OK [11:02:54]wFMCommunicate request_size=32 [11:02:54]MH_SAM_APDU [11:02:54]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 80 26 01 00 35 04 06 00 8C 9F AE D0 AF 16 [11:02:54]Write to MH i2c: E2 23 00 65 A3 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 80 26 01 00 35 04 06 00 8C 9F AE D0 AF 16 00 00 EE [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 65 A3 00 90 00 7C [11:02:54]RAPDU: 90 00 [11:02:54]wFMCommunicate OK [11:02:54]wFMCommunicate request_size=4 [11:02:54]MH_SAM_APDU [11:02:54]CAPDU: 80 0D 03 02 [11:02:54]Write to MH i2c: E2 08 00 66 A3 80 0D 03 02 00 00 00 00 84 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 0B 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 0B 00 66 A3 00 1E 29 DC 0F 91 7C F5 D2 90 00 8B [11:02:54]RAPDU: 1E 29 DC 0F 91 7C F5 D2 90 00 [11:02:54]wFMCommunicate OK [11:02:54]SAM_PROTO_SignData done [11:02:54]FM_MakeSignedData done [11:02:54]CreateOFDProtocolMessage [11:02:54]wFMCommunicate request_size=4 [11:02:54]MH_SAM_APDU [11:02:54]CAPDU: 80 11 00 00 [11:02:54]Write to MH i2c: E2 08 00 67 A3 80 11 00 00 00 00 00 00 84 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 17 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 17 00 67 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D1 [11:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:02:54]wFMCommunicate OK [11:02:54]CreateOFDProtocolMessage done [11:02:54]OFDSenderStorePacket 75392 [11:02:54]StoreOFDPacket docnum=75392 [11:02:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 2B 9F 1D 01 2A 91 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E3 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 80 26 01 00 35 04 06 00 8C 9F AE D0 AF 16 1E 29 DC 0F 91 7C F5 D2 [11:02:54]CheckFolder [11:02:54]dirname=/storage/ofd_packets [11:02:54]CheckFolder done [11:02:54]ProducePacketName [11:02:54]name=ofd_packets/00075392 [11:02:54]NVStorageSaveData ofd_packets/00075392 [11:02:54]File name is /storage/ofd_packets/00075392 [11:02:54]Write 323 bytes [11:02:54]NVStorageSaveData done [11:02:54]OFDSenderStorePacket done [11:02:54]KKMCreateOFDPacket done [11:02:54]NVStorageSaveData kkm_last_timestamp [11:02:54]File name is /storage/kkm_last_timestamp [11:02:54]Write 4 bytes [11:02:54]NVStorageSaveData done [11:02:54]ExternCall_PrintAddStr [11:02:54]wPrintStart [11:02:54]Write to MH i2c: 01 00 00 68 A3 0B [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 07 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 07 00 68 A3 00 00 00 00 00 FF 0F 20 [11:02:54]RasterBufferAndPrint [11:02:54]line Счет N : (3)273228 [11:02:54]line ИНН: 02508201610067 [11:02:54]line Контрольно-Кассовый Чек [11:02:54]line ПРОДАЖА [11:02:54]line Товар: 48743570 [11:02:54]line Сигареты Winston XStyle Blue [11:02:54]line 1.000 * 140.00 [11:02:54]line = 140.00 [11:02:54]line НДС 12% НСП 1% [11:02:54]line > о реализуемом товаре [11:02:54]line ИТОГО: 140.00 [11:02:54]line НСП 1% : 1.24 [11:02:54]line НДС 12% : 14.87 [11:02:54]line Наличными: 140.00 [11:02:54]line Безнал.: 0.00 [11:02:54]line Место: АЗС № 133 "Партнер Нефть" [11:02:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:02:54]line СНО: Общий режим [11:02:54]line Чек 125 23.10.2024 11:02 [11:02:54]line Смена: 173 ФФД: 1.0 [11:02:54]line ЗНМ: 0300000020 [11:02:54]line РНМ: 0000000000161154 [11:02:54]line Версия ККМ: v1.0 [11:02:54]line ФМ: 0000000000963323 [11:02:54]line ФД: 75392 [11:02:54]line ФПД: 154617460600598 [11:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110259&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75392&fm=154617460600598&tin=02508201610067®Number=0000000000161154&sum=14000 [11:02:54]line 0 [11:02:54]written 0, free lines is 4095 [11:02:54]OFD Sender: Processing packet 75392 [packets to send 15, broken 14] [11:02:54]ProducePacketName [11:02:54]name=ofd_packets/00075392 [11:02:54]OFD Sender: To server: pG, [11:02:54]CommunicateWithHost lk.salyk.kg:30040 [11:02:54]ConnectInit lk.salyk.kg [11:02:54]Connected sock=10 [11:02:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 2B 9F 1D 01 2A 91 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E3 D7 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 80 26 01 00 35 04 06 00 8C 9F AE D0 AF 16 1E 29 DC 0F 91 7C F5 D2 [11:02:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 12 D6 47 00 6D 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 39 36 33 33 32 33 10 04 04 00 80 26 01 00 F4 03 04 00 BE 80 18 67 B6 04 01 00 00 51 F7 36 1B A9 70 AA 24 [11:02:54]CommunicateWithHost err = 0 [11:02:54]CheckOFDResponse [11:02:54]1017 (14) - 77093643461234 [11:02:54]1041 (16) - 0000000000963323 [11:02:54]1040 (4) - 75392 [11:02:54]1012 (4) - 23.10.2024 04:51 [11:02:54]1206 (1) - 0 [11:02:54]OFD Sender: Remove packet 75392 [11:02:54]ProducePacketName [11:02:54]name=ofd_packets/00075392 [11:02:54]NVStorageDeleteData [11:02:54]Write to MH i2c: 01 00 00 8F A3 32 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 07 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 07 00 8F A3 00 00 00 00 00 22 0D 68 [11:02:54]RasterBufferAndPrint [11:02:54]line [11:02:54]line [11:02:54]line [11:02:54]line [11:02:54]line [11:02:54]written 0, free lines is 3377 [11:02:54]MH_Cut [11:02:54]Write to MH i2c: D1 01 00 96 A3 01 0B [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: D1 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: D1 01 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: D1 01 00 96 A3 00 0A [11:02:54]Write to MH i2c: 01 00 00 97 A3 3A [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:55]OFD Sender: No OFD packet to send [11:02:55]*** Cut start [11:02:55]*** Partial cut [11:02:55]*** CUTSNS_PIN = 1 [11:02:55]*** CUTSNS_PIN = 0 [11:02:55]*** Brake cut motor [11:02:56]Read from MH i2c: 01 [11:02:56]MH_I2C_Read... [11:02:56]*** Stop cut motor [11:02:56]*** Cut end [11:02:56]Read from MH i2c: 01 07 00 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: 01 07 00 97 A3 00 00 00 00 00 FF 0F 4F [11:02:56]process_action close_receipt done [11:02:56]requested_data is exist [11:02:56]produce_requested_data [11:02:56]requested_item fm.sn is exist - process it [11:02:56]wFMCommunicate request_size=4 [11:02:56]MH_SAM_APDU [11:02:56]CAPDU: 80 11 00 00 [11:02:56]Write to MH i2c: E2 08 00 98 A3 80 11 00 00 00 00 00 00 B5 [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:56]Read from MH i2c: E2 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 17 00 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 17 00 98 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 02 [11:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:02:56]wFMCommunicate OK [11:02:56]requested_item fd.num is exist - process it [11:02:56]SAM_PROTO_GetFieldsCounters [11:02:56]wFMCommunicate request_size=4 [11:02:56]MH_SAM_APDU [11:02:56]CAPDU: 80 13 00 00 [11:02:56]Write to MH i2c: E2 08 00 99 A3 80 13 00 00 00 00 00 00 B8 [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:56]Read from MH i2c: E2 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 62 00 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 62 00 99 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 80 26 01 00 0E 04 04 00 AD 00 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 97 [11:02:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 80 26 01 00 0E 04 04 00 AD 00 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 [11:02:56]wFMCommunicate OK [11:02:56]SAM_PROTO_GetFieldsCounters done [11:02:56]requested_item shift.num is exist - process it [11:02:56]requested_item shift.opened is exist - process it [11:02:56]req_shift_opened [11:02:56]FM_GetShiftState [11:02:56]SAM_PROTO_GetShiftState [11:02:56]wFMCommunicate request_size=4 [11:02:56]MH_SAM_APDU [11:02:56]CAPDU: 80 13 01 00 [11:02:56]Write to MH i2c: E2 08 00 9A A3 80 13 01 00 00 00 00 00 BA [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:56]Read from MH i2c: E2 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 0E 00 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 0E 00 9A A3 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1F [11:02:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:02:56]wFMCommunicate OK [11:02:56]SAM_PROTO_GetShiftState done [11:02:56]FM_GetShiftState done [11:02:56]req_shift_opened done [11:02:56]requested_item shift.open_date is exist - process it [11:02:56]req_shift_open_date [11:02:56]req_shift_open_date done [11:02:56]produce_requested_data done [11:02:56]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75392,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:02:56]process_action_free close_receipt [11:02:56]json_value_free [11:02:56]json_value_free done [11:02:56]process_json_proto returns [11:02:56]Send response to host [11:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75392,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:02:56]free response buf [11:02:56]execute_script done [11:02:56]execute_script returns [11:02:56]free content buf [11:02:56]Sock 9.Close socket [11:02:56]Sock 9.Thread stoped [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:14]accept exits with 7 [11:05:14]New connection [11:05:14]New thread 3067465060 created [11:05:14]Thread 3067321700 joined [11:05:14]Waiting for new connection... [11:05:14] Sock 7.Parse request [11:05:14]Sock 7.Check first char [11:05:14]Sock 7.First char is OK [11:05:14]request: POST /json_proto HTTP/1.0 [11:05:14]Method: POST [11:05:14]URL: /json_proto [11:05:14]Method is POST - this is cgi request [11:05:14]url: /json_proto [11:05:14]query_string will be loaded in cgi processing [11:05:14]execute_cgi json_proto POST (null) [11:05:14]execute_cgi path=json_proto method=POST [11:05:14]POST find Content-Length [11:05:14]Host: 172.17.44.196:8080 [11:05:14]Content-Length: 683 [11:05:14]Content-Type: application/json [11:05:14] [11:05:14]POST finish read [11:05:14]Found Content-Length = 683 [11:05:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:14]execute_script... [11:05: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)1965365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:14]POST & json_proto [11:05:14]process_json_proto [11:05:14]json parsed OK: [11:05:14]protocol is kg_v1.0 [11:05:14]action value=close_receipt [11:05:14]process_action close_receipt [11:05:14]cmd_close_receipt [11:05:14]MH_GetDate [11:05:14]Write to MH i2c: F0 00 00 9B A3 2D [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: F0 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: F0 09 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: F0 09 00 9B A3 00 71 D8 18 67 E7 19 F8 65 5B [11:05:14]GetLastDocTimeStamp 1729681379 [11:05:14]current date 1729681521 [11:05:14]FM_GetShiftState [11:05:14]SAM_PROTO_GetShiftState [11:05:14]wFMCommunicate request_size=4 [11:05:14]MH_SAM_APDU [11:05:14]CAPDU: 80 13 01 00 [11:05:14]Write to MH i2c: E2 08 00 9C A3 80 13 01 00 00 00 00 00 BC [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:14]Read from MH i2c: E2 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 0E 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 0E 00 9C A3 00 09 00 01 99 41 18 67 00 00 00 00 90 00 21 [11:05:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:05:14]wFMCommunicate OK [11:05:14]SAM_PROTO_GetShiftState done [11:05:14]FM_GetShiftState done [11:05:14]opened in 1729642905 [11:05:14]opened+sec_in_day 1729729305 [11:05:14]quantity*price = 100015 [11:05:14]sum+1 = 100017 [11:05:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 126 23.10.2024 11:05 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75393 ФПД: 163136079639340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110521&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75393&fm=163136079639340&tin=02508201610067®Number=0000000000161154&sum=100000 [11:05:15]StoreToDocumentArchive [11:05:15]shift 173 fd 75393 [11:05:15]save to /storage/0173/doc_00075393 [11:05:15]save last doc name /storage/0173/doc_00075393 to /storage/kkm_last_doc_name [11:05:15]save OK [11:05:15]Clear old archive folders... [11:05:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:15]tlvbuf is 00FABE20 [11:05:15]SAM_PROTO_ClearQueue [11:05:15]wFMCommunicate request_size=4 [11:05:15]MH_SAM_APDU [11:05:15]CAPDU: 80 09 00 00 [11:05:15]Write to MH i2c: E2 08 00 A9 A3 80 09 00 00 00 00 00 00 BE [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:15]Read from MH i2c: E2 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 03 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 03 00 A9 A3 00 90 00 C0 [11:05:15]RAPDU: 90 00 [11:05:15]wFMCommunicate OK [11:05:15]SAM_PROTO_ClearQueue done [11:05:15]KKMCreateOFDPacket [11:05:15]OFDProtocolAddRootSTLVToBuf [11:05:15]FM_MakeSignedData [11:05:15]FM_MakeSignedData [11:05:15]SAM_PROTO_SignData [11:05:15]wFMCommunicate request_size=4 [11:05:15]MH_SAM_APDU [11:05:15]CAPDU: 80 0D 01 02 [11:05:15]Write to MH i2c: E2 08 00 AA A3 80 0D 01 02 00 00 00 00 C6 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]OFD Sender: No OFD packet to send [11:05:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:15]Read from MH i2c: E2 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 03 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 03 00 AA A3 00 90 00 C1 [11:05:15]RAPDU: 90 00 [11:05:15]wFMCommunicate OK [11:05:15]wFMCommunicate request_size=255 [11:05:15]MH_SAM_APDU [11:05: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 71 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 81 26 01 00 35 04 06 00 94 [11:05:15]Write to MH i2c: E2 02 01 AB 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 71 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 81 26 01 00 35 04 06 00 94 00 00 71 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:15]Read from MH i2c: E2 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 03 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 03 00 AB A3 00 90 00 C2 [11:05:15]RAPDU: 90 00 [11:05:15]wFMCommunicate OK [11:05:15]wFMCommunicate request_size=10 [11:05:15]MH_SAM_APDU [11:05:15]CAPDU: 80 0D 02 02 05 5F 14 13 B3 2C [11:05:15]Write to MH i2c: E2 0D 00 AC A3 80 0D 02 02 05 00 5F 14 13 B3 2C 00 00 38 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:15]Read from MH i2c: E2 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 03 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 03 00 AC A3 00 90 00 C3 [11:05:15]RAPDU: 90 00 [11:05:15]wFMCommunicate OK [11:05:15]wFMCommunicate request_size=4 [11:05:15]MH_SAM_APDU [11:05:15]CAPDU: 80 0D 03 02 [11:05:15]Write to MH i2c: E2 08 00 AD A3 80 0D 03 02 00 00 00 00 CB [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:15]Read from MH i2c: E2 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 0B 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 0B 00 AD A3 00 F6 03 56 13 65 96 23 2C 90 00 78 [11:05:15]RAPDU: F6 03 56 13 65 96 23 2C 90 00 [11:05:15]wFMCommunicate OK [11:05:15]SAM_PROTO_SignData done [11:05:15]FM_MakeSignedData done [11:05:15]CreateOFDProtocolMessage [11:05:15]wFMCommunicate request_size=4 [11:05:15]MH_SAM_APDU [11:05:15]CAPDU: 80 11 00 00 [11:05:15]Write to MH i2c: E2 08 00 AE A3 80 11 00 00 00 00 00 00 CB [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:15]Read from MH i2c: E2 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 17 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 17 00 AE A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 18 [11:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:05:15]wFMCommunicate OK [11:05:15]CreateOFDProtocolMessage done [11:05:15]OFDSenderStorePacket 75393 [11:05:15]StoreOFDPacket docnum=75393 [11:05:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A3 2C 07 01 B8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 71 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 81 26 01 00 35 04 06 00 94 5F 14 13 B3 2C F6 03 56 13 65 96 23 2C [11:05:15]CheckFolder [11:05:15]dirname=/storage/ofd_packets [11:05:15]CheckFolder done [11:05:15]ProducePacketName [11:05:15]name=ofd_packets/00075393 [11:05:15]NVStorageSaveData ofd_packets/00075393 [11:05:15]File name is /storage/ofd_packets/00075393 [11:05:15]Write 301 bytes [11:05:15]NVStorageSaveData done [11:05:15]OFDSenderStorePacket done [11:05:15]KKMCreateOFDPacket done [11:05:15]NVStorageSaveData kkm_last_timestamp [11:05:15]File name is /storage/kkm_last_timestamp [11:05:15]Write 4 bytes [11:05:15]NVStorageSaveData done [11:05:15]ExternCall_PrintAddStr [11:05:15]wPrintStart [11:05:15]Write to MH i2c: 01 00 00 AF A3 52 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 AF A3 00 00 00 00 00 FF 0F 67 [11:05:15]RasterBufferAndPrint [11:05:15]line Счет N : (1)1965365 [11:05:15]line ИНН: 02508201610067 [11:05:15]line Контрольно-Кассовый Чек [11:05:15]line ПРОДАЖА [11:05:15]line ТРК (МРК, ГНК) : 33 [11:05:15]line Товар: 2710124130 [11:05:15]line Аи-92-К-5 [11:05:15]line 14.950 * 66.90 [11:05:15]line = 1000.16 [11:05:15]line НДС 12% НСП 1% [11:05:15]line > о реализуемом товаре [11:05:15]line ОКРУГЛЕНИЕ: -0.16 [11:05:15]line ИТОГО: 1000.00 [11:05:15]line Внесено: 1000.00 [11:05:15]line СДАЧА: 0.00 [11:05:15]line НСП 1% : 8.85 [11:05:15]line НДС 12% : 106.21 [11:05:15]line Наличными: 1000.00 [11:05:15]line Безнал.: 0.00 [11:05:15]line Место: АЗС № 133 "Партнер Нефть" [11:05:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:05:15]line СНО: Общий режим [11:05:15]line Чек 126 23.10.2024 11:05 [11:05:15]line Смена: 173 ФФД: 1.0 [11:05:15]line ЗНМ: 0300000020 [11:05:15]line РНМ: 0000000000161154 [11:05:15]line Версия ККМ: v1.0 [11:05:15]line ФМ: 0000000000963323 [11:05:15]line ФД: 75393 [11:05:15]line ФПД: 163136079639340 [11:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110521&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75393&fm=163136079639340&tin=02508201610067®Number=0000000000161154&sum=100000 [11:05:16]OFD Sender: Processing packet 75393 [packets to send 15, broken 14] [11:05:16]ProducePacketName [11:05:16]name=ofd_packets/00075393 [11:05:16]OFD Sender: To server: pG, [11:05:16]CommunicateWithHost lk.salyk.kg:30040 [11:05:16]ConnectInit lk.salyk.kg [11:05:16]written 0, free lines is 4095 [11:05:16]Connected sock=10 [11:05:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A3 2C 07 01 B8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 71 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 81 26 01 00 35 04 06 00 94 5F 14 13 B3 2C F6 03 56 13 65 96 23 2C [11:05:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 83 09 47 00 ED 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 81 26 01 00 F4 03 04 00 4C 81 18 67 B6 04 01 00 00 CA A1 66 3D B3 30 E7 AB [11:05:16]CommunicateWithHost err = 0 [11:05:16]CheckOFDResponse [11:05:16]1017 (14) - 77093643461234 [11:05:16]1041 (16) - 0000000000963323 [11:05:16]1040 (4) - 75393 [11:05:16]1012 (4) - 23.10.2024 04:53 [11:05:16]1206 (1) - 0 [11:05:16]OFD Sender: Remove packet 75393 [11:05:16]ProducePacketName [11:05:16]name=ofd_packets/00075393 [11:05:16]NVStorageDeleteData [11:05:16]Write to MH i2c: 01 00 00 D9 A3 7C [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: 01 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: 01 07 00 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: 01 07 00 D9 A3 00 00 00 00 00 AA 0C 39 [11:05:16]RasterBufferAndPrint [11:05:16]line [11:05:16]line [11:05:16]line [11:05:16]line [11:05:16]line [11:05:16]written 0, free lines is 3247 [11:05:16]MH_Cut [11:05:16]Write to MH i2c: D1 01 00 E0 A3 01 55 [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: D1 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: D1 01 00 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: D1 01 00 E0 A3 00 54 [11:05:16]Write to MH i2c: 01 00 00 E1 A3 84 [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:17]OFD Sender: No OFD packet to send [11:05:17]*** Cut start [11:05:17]*** Partial cut [11:05:17]*** CUTSNS_PIN = 1 [11:05:17]*** CUTSNS_PIN = 0 [11:05:17]*** Brake cut motor [11:05:18]Read from MH i2c: 01 [11:05:18]MH_I2C_Read... [11:05:18]*** Stop cut motor [11:05:18]*** Cut end [11:05:18]Read from MH i2c: 01 07 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 E1 A3 00 00 00 00 00 FF 0F 99 [11:05:18]process_action close_receipt done [11:05:18]requested_data is exist [11:05:18]produce_requested_data [11:05:18]requested_item fm.sn is exist - process it [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 11 00 00 [11:05:18]Write to MH i2c: E2 08 00 E2 A3 80 11 00 00 00 00 00 00 FF [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 17 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 17 00 E2 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4C [11:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:05:18]wFMCommunicate OK [11:05:18]requested_item fd.num is exist - process it [11:05:18]SAM_PROTO_GetFieldsCounters [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 13 00 00 [11:05:18]Write to MH i2c: E2 08 00 E3 A3 80 13 00 00 00 00 00 00 02 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 62 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 62 00 E3 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 81 26 01 00 0E 04 04 00 AD 00 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 E5 [11:05:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 81 26 01 00 0E 04 04 00 AD 00 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 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_GetFieldsCounters done [11:05:18]requested_item shift.num is exist - process it [11:05:18]requested_item shift.opened is exist - process it [11:05:18]req_shift_opened [11:05:18]FM_GetShiftState [11:05:18]SAM_PROTO_GetShiftState [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 13 01 00 [11:05:18]Write to MH i2c: E2 08 00 E4 A3 80 13 01 00 00 00 00 00 04 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 0E 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 0E 00 E4 A3 00 09 00 01 99 41 18 67 00 00 00 00 90 00 69 [11:05:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_GetShiftState done [11:05:18]FM_GetShiftState done [11:05:18]req_shift_opened done [11:05:18]requested_item shift.open_date is exist - process it [11:05:18]req_shift_open_date [11:05:18]req_shift_open_date done [11:05:18]produce_requested_data done [11:05:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75393,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:05:18]process_action_free close_receipt [11:05:18]json_value_free [11:05:18]json_value_free done [11:05:18]process_json_proto returns [11:05:18]Send response to host [11:05:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75393,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:05:18]free response buf [11:05:18]execute_script done [11:05:18]execute_script returns [11:05:18]free content buf [11:05:18]Sock 7.Close socket [11:05:18]Sock 7.Thread stoped [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:05:59]accept exits with 9 [11:05:59]New connection [11:05:59]New thread 3067321700 created [11:05:59]Thread 3067465060 joined [11:05:59]Waiting for new connection... [11:05:59] Sock 9.Parse request [11:05:59]Sock 9.Check first char [11:05:59]Sock 9.First char is OK [11:05:59]request: POST /json_proto HTTP/1.0 [11:05:59]Method: POST [11:05:59]URL: /json_proto [11:05:59]Method is POST - this is cgi request [11:05:59]url: /json_proto [11:05:59]query_string will be loaded in cgi processing [11:05:59]execute_cgi json_proto POST (null) [11:05:59]execute_cgi path=json_proto method=POST [11:05:59]POST find Content-Length [11:05:59]Host: 172.17.44.196:8080 [11:05:59]Content-Length: 678 [11:05:59]Content-Type: application/json [11:05:59] [11:05:59]POST finish read [11:05:59]Found Content-Length = 678 [11:05:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.340, "sum" : 357.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 357.00, "payments": [ { "type": 0, "sum" : 357.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:59]execute_script... [11:05: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)1965366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.340, "sum" : 357.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 357.00, "payments": [ { "type": 0, "sum" : 357.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:59]POST & json_proto [11:05:59]process_json_proto [11:05:59]json parsed OK: [11:05:59]protocol is kg_v1.0 [11:05:59]action value=close_receipt [11:05:59]process_action close_receipt [11:05:59]cmd_close_receipt [11:05:59]MH_GetDate [11:05:59]Write to MH i2c: F0 00 00 E5 A3 77 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: F0 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: F0 09 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: F0 09 00 E5 A3 00 9E D8 18 67 E7 19 F8 65 D2 [11:05:59]GetLastDocTimeStamp 1729681521 [11:05:59]current date 1729681566 [11:05:59]FM_GetShiftState [11:05:59]SAM_PROTO_GetShiftState [11:05:59]wFMCommunicate request_size=4 [11:05:59]MH_SAM_APDU [11:05:59]CAPDU: 80 13 01 00 [11:05:59]Write to MH i2c: E2 08 00 E6 A3 80 13 01 00 00 00 00 00 06 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:59]Read from MH i2c: E2 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: E2 0E 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: E2 0E 00 E6 A3 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6B [11:05:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:05:59]wFMCommunicate OK [11:05:59]SAM_PROTO_GetShiftState done [11:05:59]FM_GetShiftState done [11:05:59]opened in 1729642905 [11:05:59]opened+sec_in_day 1729729305 [11:05:59]quantity*price = 35724 [11:05:59]sum+1 = 35726 [11:05:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 357.00 Внесено: 390.00 СДАЧА: 33.00 НСП 1% : 3.16 НДС 12% : 37.94 Наличными: 357.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 127 23.10.2024 11:06 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75394 ФПД: 182614695959604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110606&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75394&fm=182614695959604&tin=02508201610067®Number=0000000000161154&sum=35700 [11:06:00]StoreToDocumentArchive [11:06:00]shift 173 fd 75394 [11:06:00]save to /storage/0173/doc_00075394 [11:06:00]save last doc name /storage/0173/doc_00075394 to /storage/kkm_last_doc_name [11:06:00]save OK [11:06:00]Clear old archive folders... [11:06:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:00]tlvbuf is 00EDEDD0 [11:06:00]SAM_PROTO_ClearQueue [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 09 00 00 [11:06:00]Write to MH i2c: E2 08 00 F3 A3 80 09 00 00 00 00 00 00 08 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 F3 A3 00 90 00 0A [11:06:00]RAPDU: 90 00 [11:06:00]wFMCommunicate OK [11:06:00]SAM_PROTO_ClearQueue done [11:06:00]KKMCreateOFDPacket [11:06:00]OFDProtocolAddRootSTLVToBuf [11:06:00]FM_MakeSignedData [11:06:00]FM_MakeSignedData [11:06:00]SAM_PROTO_SignData [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 0D 01 02 [11:06:00]Write to MH i2c: E2 08 00 F4 A3 80 0D 01 02 00 00 00 00 10 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 F4 A3 00 90 00 0B [11:06:00]RAPDU: 90 00 [11:06:00]wFMCommunicate OK [11:06:00]wFMCommunicate request_size=255 [11:06:00]MH_SAM_APDU [11:06: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 DC 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8D 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0E 00 00 00 00 07 04 06 00 74 8B 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 9E D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 82 26 01 00 35 04 06 00 A6 [11:06:00]Write to MH i2c: E2 02 01 F5 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 DC 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8D 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0E 00 00 00 00 07 04 06 00 74 8B 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 9E D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 82 26 01 00 35 04 06 00 A6 00 00 DC [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 F5 A3 00 90 00 0C [11:06:00]RAPDU: 90 00 [11:06:00]wFMCommunicate OK [11:06:00]wFMCommunicate request_size=10 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 0D 02 02 05 16 4C 15 5C 34 [11:06:00]Write to MH i2c: E2 0D 00 F6 A3 80 0D 02 02 05 00 16 4C 15 5C 34 00 00 24 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 F6 A3 00 90 00 0D [11:06:00]RAPDU: 90 00 [11:06:00]wFMCommunicate OK [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 0D 03 02 [11:06:00]Write to MH i2c: E2 08 00 F7 A3 80 0D 03 02 00 00 00 00 15 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 0B 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 0B 00 F7 A3 00 76 44 05 35 68 01 A0 31 90 00 44 [11:06:00]RAPDU: 76 44 05 35 68 01 A0 31 90 00 [11:06:00]wFMCommunicate OK [11:06:00]SAM_PROTO_SignData done [11:06:00]FM_MakeSignedData done [11:06:00]CreateOFDProtocolMessage [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 11 00 00 [11:06:00]Write to MH i2c: E2 08 00 F8 A3 80 11 00 00 00 00 00 00 15 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 17 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 17 00 F8 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 62 [11:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:06:00]wFMCommunicate OK [11:06:00]CreateOFDProtocolMessage done [11:06:00]OFDSenderStorePacket 75394 [11:06:00]StoreOFDPacket docnum=75394 [11:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 48 E0 07 01 C3 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8D 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0E 00 00 00 00 07 04 06 00 74 8B 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 9E D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 82 26 01 00 35 04 06 00 A6 16 4C 15 5C 34 76 44 05 35 68 01 A0 31 [11:06:00]CheckFolder [11:06:00]dirname=/storage/ofd_packets [11:06:00]CheckFolder done [11:06:00]ProducePacketName [11:06:00]name=ofd_packets/00075394 [11:06:00]NVStorageSaveData ofd_packets/00075394 [11:06:00]File name is /storage/ofd_packets/00075394 [11:06:00]Write 301 bytes [11:06:00]NVStorageSaveData done [11:06:00]OFDSenderStorePacket done [11:06:00]KKMCreateOFDPacket done [11:06:00]NVStorageSaveData kkm_last_timestamp [11:06:00]File name is /storage/kkm_last_timestamp [11:06:00]Write 4 bytes [11:06:00]NVStorageSaveData done [11:06:00]ExternCall_PrintAddStr [11:06:00]wPrintStart [11:06:00]Write to MH i2c: 01 00 00 F9 A3 9C [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 F9 A3 00 00 00 00 00 FF 0F B1 [11:06:00]RasterBufferAndPrint [11:06:00]line Счет N : (1)1965366 [11:06:00]line ИНН: 02508201610067 [11:06:00]line Контрольно-Кассовый Чек [11:06:00]line ПРОДАЖА [11:06:00]line ТРК (МРК, ГНК) : 43 [11:06:00]line Товар: 2710124130 [11:06:00]line Аи-92-К-5 [11:06:00]line 5.340 * 66.90 [11:06:00]line = 357.25 [11:06:00]line НДС 12% НСП 1% [11:06:00]line > о реализуемом товаре [11:06:00]line ОКРУГЛЕНИЕ: -0.25 [11:06:00]line ИТОГО: 357.00 [11:06:00]line Внесено: 390.00 [11:06:00]line СДАЧА: 33.00 [11:06:00]line НСП 1% : 3.16 [11:06:00]line НДС 12% : 37.94 [11:06:00]line Наличными: 357.00 [11:06:00]line Безнал.: 0.00 [11:06:00]line Место: АЗС № 133 "Партнер Нефть" [11:06:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:06:00]line СНО: Общий режим [11:06:00]line Чек 127 23.10.2024 11:06 [11:06:00]line Смена: 173 ФФД: 1.0 [11:06:00]line ЗНМ: 0300000020 [11:06:00]line РНМ: 0000000000161154 [11:06:00]line Версия ККМ: v1.0 [11:06:00]line ФМ: 0000000000963323 [11:06:00]line ФД: 75394 [11:06:00]line ФПД: 182614695959604 [11:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110606&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75394&fm=182614695959604&tin=02508201610067®Number=0000000000161154&sum=35700 [11:06:01]OFD Sender: Processing packet 75394 [packets to send 15, broken 14] [11:06:01]ProducePacketName [11:06:01]name=ofd_packets/00075394 [11:06:01]OFD Sender: To server: pG, [11:06:01]CommunicateWithHost lk.salyk.kg:30040 [11:06:01]ConnectInit lk.salyk.kg [11:06:01]written 0, free lines is 4095 [11:06:01]Connected sock=10 [11:06:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 48 E0 07 01 C3 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8D 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0E 00 00 00 00 07 04 06 00 74 8B 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 9E D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 82 26 01 00 35 04 06 00 A6 16 4C 15 5C 34 76 44 05 35 68 01 A0 31 [11:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 59 5B 47 00 88 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 39 36 33 33 32 33 10 04 04 00 82 26 01 00 F4 03 04 00 79 81 18 67 B6 04 01 00 00 EC B3 C6 C9 12 BF AA 4F [11:06:01]CommunicateWithHost err = 0 [11:06:01]CheckOFDResponse [11:06:01]1017 (14) - 77093643461234 [11:06:01]1041 (16) - 0000000000963323 [11:06:01]1040 (4) - 75394 [11:06:01]1012 (4) - 23.10.2024 04:54 [11:06:01]1206 (1) - 0 [11:06:01]OFD Sender: Remove packet 75394 [11:06:01]ProducePacketName [11:06:01]name=ofd_packets/00075394 [11:06:01]NVStorageDeleteData [11:06:01]Write to MH i2c: 01 00 00 23 A4 C7 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 07 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 07 00 23 A4 00 00 00 00 00 B0 0C 8A [11:06:01]RasterBufferAndPrint [11:06:01]line [11:06:01]line [11:06:01]line [11:06:01]line [11:06:01]line [11:06:01]written 0, free lines is 3252 [11:06:01]MH_Cut [11:06:01]Write to MH i2c: D1 01 00 2A A4 01 A0 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: D1 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: D1 01 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: D1 01 00 2A A4 00 9F [11:06:01]Write to MH i2c: 01 00 00 2B A4 CF [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]OFD Sender: No OFD packet to send [11:06:02]*** Cut start [11:06:02]*** Partial cut [11:06:02]*** CUTSNS_PIN = 1 [11:06:02]*** CUTSNS_PIN = 0 [11:06:02]*** Brake cut motor [11:06:03]Read from MH i2c: 01 [11:06:03]MH_I2C_Read... [11:06:03]*** Stop cut motor [11:06:03]*** Cut end [11:06:03]Read from MH i2c: 01 07 00 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: 01 07 00 2B A4 00 00 00 00 00 FF 0F E4 [11:06:03]process_action close_receipt done [11:06:03]requested_data is exist [11:06:03]produce_requested_data [11:06:03]requested_item fm.sn is exist - process it [11:06:03]wFMCommunicate request_size=4 [11:06:03]MH_SAM_APDU [11:06:03]CAPDU: 80 11 00 00 [11:06:03]Write to MH i2c: E2 08 00 2C A4 80 11 00 00 00 00 00 00 4A [11:06:03]Write i2c OK [11:06:03]MH_I2C_Read... [11:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:03]Read from MH i2c: E2 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 17 00 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 17 00 2C A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 97 [11:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:06:03]wFMCommunicate OK [11:06:03]requested_item fd.num is exist - process it [11:06:03]SAM_PROTO_GetFieldsCounters [11:06:03]wFMCommunicate request_size=4 [11:06:03]MH_SAM_APDU [11:06:03]CAPDU: 80 13 00 00 [11:06:03]Write to MH i2c: E2 08 00 2D A4 80 13 00 00 00 00 00 00 4D [11:06:03]Write i2c OK [11:06:03]MH_I2C_Read... [11:06:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:03]Read from MH i2c: E2 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 62 00 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 62 00 2D A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 82 26 01 00 0E 04 04 00 AD 00 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 34 [11:06:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 82 26 01 00 0E 04 04 00 AD 00 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 [11:06:03]wFMCommunicate OK [11:06:03]SAM_PROTO_GetFieldsCounters done [11:06:03]requested_item shift.num is exist - process it [11:06:03]requested_item shift.opened is exist - process it [11:06:03]req_shift_opened [11:06:03]FM_GetShiftState [11:06:03]SAM_PROTO_GetShiftState [11:06:03]wFMCommunicate request_size=4 [11:06:03]MH_SAM_APDU [11:06:03]CAPDU: 80 13 01 00 [11:06:03]Write to MH i2c: E2 08 00 2E A4 80 13 01 00 00 00 00 00 4F [11:06:03]Write i2c OK [11:06:03]MH_I2C_Read... [11:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:03]Read from MH i2c: E2 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 0E 00 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 0E 00 2E A4 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B4 [11:06:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:06:03]wFMCommunicate OK [11:06:03]SAM_PROTO_GetShiftState done [11:06:03]FM_GetShiftState done [11:06:03]req_shift_opened done [11:06:03]requested_item shift.open_date is exist - process it [11:06:03]req_shift_open_date [11:06:03]req_shift_open_date done [11:06:03]produce_requested_data done [11:06:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75394,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:06:03]process_action_free close_receipt [11:06:03]json_value_free [11:06:03]json_value_free done [11:06:03]process_json_proto returns [11:06:03]Send response to host [11:06:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75394,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:06:03]free response buf [11:06:03]execute_script done [11:06:03]execute_script returns [11:06:03]free content buf [11:06:03]Sock 9.Close socket [11:06:03]Sock 9.Thread stoped [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:52]accept exits with 7 [11:06:52]New connection [11:06:52]New thread 3067465060 created [11:06:52]Thread 3067321700 joined [11:06:52]Waiting for new connection... [11:06:52] Sock 7.Parse request [11:06:52]Sock 7.Check first char [11:06:52]Sock 7.First char is OK [11:06:52]request: POST /json_proto HTTP/1.0 [11:06:52]Method: POST [11:06:52]URL: /json_proto [11:06:52]Method is POST - this is cgi request [11:06:52]url: /json_proto [11:06:52]query_string will be loaded in cgi processing [11:06:52]execute_cgi json_proto POST (null) [11:06:52]execute_cgi path=json_proto method=POST [11:06:52]POST find Content-Length [11:06:52]Host: 172.17.44.196:8080 [11:06:52]Content-Length: 678 [11:06:52]Content-Type: application/json [11:06:52] [11:06:52]POST finish read [11:06:52]Found Content-Length = 678 [11:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "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" ] } } [11:06:52]execute_script... [11:06: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)1965367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "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" ] } } [11:06:52]POST & json_proto [11:06:52]process_json_proto [11:06:52]json parsed OK: [11:06:52]protocol is kg_v1.0 [11:06:52]action value=close_receipt [11:06:52]process_action close_receipt [11:06:52]cmd_close_receipt [11:06:52]MH_GetDate [11:06:52]Write to MH i2c: F0 00 00 2F A4 C2 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: F0 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: F0 09 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: F0 09 00 2F A4 00 D3 D8 18 67 E7 19 F8 65 52 [11:06:52]GetLastDocTimeStamp 1729681566 [11:06:52]current date 1729681619 [11:06:52]FM_GetShiftState [11:06:52]SAM_PROTO_GetShiftState [11:06:52]wFMCommunicate request_size=4 [11:06:52]MH_SAM_APDU [11:06:52]CAPDU: 80 13 01 00 [11:06:52]Write to MH i2c: E2 08 00 30 A4 80 13 01 00 00 00 00 00 51 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 0E 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 0E 00 30 A4 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B6 [11:06:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:06:52]wFMCommunicate OK [11:06:52]SAM_PROTO_GetShiftState done [11:06:52]FM_GetShiftState done [11:06:52]opened in 1729642905 [11:06:52]opened+sec_in_day 1729729305 [11:06:52]quantity*price = 10035 [11:06:52]sum+1 = 10036 [11:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 128 23.10.2024 11:06 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75395 ФПД: 256122077574425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110659&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75395&fm=256122077574425&tin=02508201610067®Number=0000000000161154&sum=10000 [11:06:53]StoreToDocumentArchive [11:06:53]shift 173 fd 75395 [11:06:53]save to /storage/0173/doc_00075395 [11:06:53]save last doc name /storage/0173/doc_00075395 to /storage/kkm_last_doc_name [11:06:53]save OK [11:06:53]Clear old archive folders... [11:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:53]tlvbuf is 00DBBDB0 [11:06:53]SAM_PROTO_ClearQueue [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 09 00 00 [11:06:53]Write to MH i2c: E2 08 00 3D A4 80 09 00 00 00 00 00 00 53 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 03 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 03 00 3D A4 00 90 00 55 [11:06:53]RAPDU: 90 00 [11:06:53]wFMCommunicate OK [11:06:53]SAM_PROTO_ClearQueue done [11:06:53]KKMCreateOFDPacket [11:06:53]OFDProtocolAddRootSTLVToBuf [11:06:53]FM_MakeSignedData [11:06:53]FM_MakeSignedData [11:06:53]SAM_PROTO_SignData [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 0D 01 02 [11:06:53]Write to MH i2c: E2 08 00 3E A4 80 0D 01 02 00 00 00 00 5B [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 03 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 03 00 3E A4 00 90 00 56 [11:06:53]RAPDU: 90 00 [11:06:53]wFMCommunicate OK [11:06:53]wFMCommunicate request_size=255 [11:06:53]MH_SAM_APDU [11:06: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 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 80 00 00 00 F4 03 04 00 D3 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 83 26 01 00 35 04 06 00 E8 [11:06:53]Write to MH i2c: E2 02 01 3F 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 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 80 00 00 00 F4 03 04 00 D3 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 83 26 01 00 35 04 06 00 E8 00 00 AD [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 03 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 03 00 3F A4 00 90 00 57 [11:06:53]RAPDU: 90 00 [11:06:53]wFMCommunicate OK [11:06:53]wFMCommunicate request_size=10 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 0D 02 02 05 F1 11 73 F5 19 [11:06:53]Write to MH i2c: E2 0D 00 40 A4 80 0D 02 02 05 00 F1 11 73 F5 19 00 00 EB [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 03 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 03 00 40 A4 00 90 00 58 [11:06:53]RAPDU: 90 00 [11:06:53]wFMCommunicate OK [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 0D 03 02 [11:06:53]Write to MH i2c: E2 08 00 41 A4 80 0D 03 02 00 00 00 00 60 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 0B 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 0B 00 41 A4 00 21 63 ED 28 98 AD D5 94 90 00 A8 [11:06:53]RAPDU: 21 63 ED 28 98 AD D5 94 90 00 [11:06:53]wFMCommunicate OK [11:06:53]SAM_PROTO_SignData done [11:06:53]FM_MakeSignedData done [11:06:53]CreateOFDProtocolMessage [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 11 00 00 [11:06:53]Write to MH i2c: E2 08 00 42 A4 80 11 00 00 00 00 00 00 60 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 17 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 17 00 42 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AD [11:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:06:53]wFMCommunicate OK [11:06:53]CreateOFDProtocolMessage done [11:06:53]OFDSenderStorePacket 75395 [11:06:53]StoreOFDPacket docnum=75395 [11:06:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 57 7B 07 01 14 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 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 80 00 00 00 F4 03 04 00 D3 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 83 26 01 00 35 04 06 00 E8 F1 11 73 F5 19 21 63 ED 28 98 AD D5 94 [11:06:53]CheckFolder [11:06:53]dirname=/storage/ofd_packets [11:06:53]CheckFolder done [11:06:53]ProducePacketName [11:06:53]name=ofd_packets/00075395 [11:06:53]NVStorageSaveData ofd_packets/00075395 [11:06:53]File name is /storage/ofd_packets/00075395 [11:06:53]Write 301 bytes [11:06:53]NVStorageSaveData done [11:06:53]OFDSenderStorePacket done [11:06:53]KKMCreateOFDPacket done [11:06:53]NVStorageSaveData kkm_last_timestamp [11:06:53]File name is /storage/kkm_last_timestamp [11:06:53]Write 4 bytes [11:06:53]NVStorageSaveData done [11:06:53]ExternCall_PrintAddStr [11:06:53]wPrintStart [11:06:53]Write to MH i2c: 01 00 00 43 A4 E7 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: 01 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: 01 07 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: 01 07 00 43 A4 00 00 00 00 00 FF 0F FC [11:06:53]RasterBufferAndPrint [11:06:53]line Счет N : (1)1965367 [11:06:53]line ИНН: 02508201610067 [11:06:53]line Контрольно-Кассовый Чек [11:06:53]line ПРОДАЖА [11:06:53]line ТРК (МРК, ГНК) : 33 [11:06:53]line Товар: 2710124130 [11:06:53]line Аи-92-К-5 [11:06:53]line 1.500 * 66.90 [11:06:53]line = 100.35 [11:06:53]line НДС 12% НСП 1% [11:06:53]line > о реализуемом товаре [11:06:53]line ОКРУГЛЕНИЕ: -0.35 [11:06:53]line ИТОГО: 100.00 [11:06:53]line Внесено: 100.00 [11:06:53]line СДАЧА: 0.00 [11:06:53]line НСП 1% : 0.89 [11:06:53]line НДС 12% : 10.66 [11:06:53]line Наличными: 100.00 [11:06:53]line Безнал.: 0.00 [11:06:53]line Место: АЗС № 133 "Партнер Нефть" [11:06:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:06:53]line СНО: Общий режим [11:06:53]line Чек 128 23.10.2024 11:06 [11:06:53]line Смена: 173 ФФД: 1.0 [11:06:53]line ЗНМ: 0300000020 [11:06:53]line РНМ: 0000000000161154 [11:06:53]line Версия ККМ: v1.0 [11:06:53]line ФМ: 0000000000963323 [11:06:53]line ФД: 75395 [11:06:53]line ФПД: 256122077574425 [11:06:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110659&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75395&fm=256122077574425&tin=02508201610067®Number=0000000000161154&sum=10000 [11:06:54]written 0, free lines is 4095 [11:06:54]OFD Sender: Processing packet 75395 [packets to send 15, broken 14] [11:06:54]ProducePacketName [11:06:54]name=ofd_packets/00075395 [11:06:54]OFD Sender: To server: pG, [11:06:54]CommunicateWithHost lk.salyk.kg:30040 [11:06:54]ConnectInit lk.salyk.kg [11:06:54]Connected sock=10 [11:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 57 7B 07 01 14 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 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 80 00 00 00 F4 03 04 00 D3 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 83 26 01 00 35 04 06 00 E8 F1 11 73 F5 19 21 63 ED 28 98 AD D5 94 [11:06:54]Write to MH i2c: 01 00 00 6D A4 11 [11:06:54]Write i2c OK [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: 01 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: 01 07 00 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: 01 07 00 6D A4 00 00 00 00 00 AA 0C CE [11:06:54]RasterBufferAndPrint [11:06:54]line [11:06:54]line [11:06:54]line [11:06:54]line [11:06:54]line [11:06:54]written 0, free lines is 3246 [11:06:54]MH_Cut [11:06:54]Write to MH i2c: D1 01 00 74 A4 01 EA [11:06:54]Write i2c OK [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: D1 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: D1 01 00 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: D1 01 00 74 A4 00 E9 [11:06:54]Write to MH i2c: 01 00 00 75 A4 19 [11:06:54]Write i2c OK [11:06:54]MH_I2C_Read... [11:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 76 88 47 00 74 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 39 36 33 33 32 33 10 04 04 00 83 26 01 00 F4 03 04 00 AE 81 18 67 B6 04 01 00 00 DD 38 B9 95 97 D6 94 CE [11:06:54]CommunicateWithHost err = 0 [11:06:54]CheckOFDResponse [11:06:54]1017 (14) - 77093643461234 [11:06:54]1041 (16) - 0000000000963323 [11:06:54]1040 (4) - 75395 [11:06:54]1012 (4) - 23.10.2024 04:55 [11:06:54]1206 (1) - 0 [11:06:54]OFD Sender: Remove packet 75395 [11:06:54]ProducePacketName [11:06:54]name=ofd_packets/00075395 [11:06:54]NVStorageDeleteData [11:06:55]OFD Sender: No OFD packet to send [11:06:55]*** Cut start [11:06:55]*** Partial cut [11:06:55]*** CUTSNS_PIN = 1 [11:06:55]*** CUTSNS_PIN = 0 [11:06:55]*** Brake cut motor [11:06:56]Read from MH i2c: 01 [11:06:56]MH_I2C_Read... [11:06:56]*** Stop cut motor [11:06:56]*** Cut end [11:06:56]Read from MH i2c: 01 07 00 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: 01 07 00 75 A4 00 00 00 00 00 FF 0F 2E [11:06:56]process_action close_receipt done [11:06:56]requested_data is exist [11:06:56]produce_requested_data [11:06:56]requested_item fm.sn is exist - process it [11:06:56]wFMCommunicate request_size=4 [11:06:56]MH_SAM_APDU [11:06:56]CAPDU: 80 11 00 00 [11:06:56]Write to MH i2c: E2 08 00 76 A4 80 11 00 00 00 00 00 00 94 [11:06:56]Write i2c OK [11:06:56]MH_I2C_Read... [11:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:56]Read from MH i2c: E2 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: E2 17 00 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: E2 17 00 76 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E1 [11:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:06:56]wFMCommunicate OK [11:06:56]requested_item fd.num is exist - process it [11:06:56]SAM_PROTO_GetFieldsCounters [11:06:56]wFMCommunicate request_size=4 [11:06:56]MH_SAM_APDU [11:06:56]CAPDU: 80 13 00 00 [11:06:56]Write to MH i2c: E2 08 00 77 A4 80 13 00 00 00 00 00 00 97 [11:06:56]Write i2c OK [11:06:56]MH_I2C_Read... [11:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:56]Read from MH i2c: E2 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: E2 62 00 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: E2 62 00 77 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 83 26 01 00 0E 04 04 00 AD 00 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 82 [11:06:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 83 26 01 00 0E 04 04 00 AD 00 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 [11:06:56]wFMCommunicate OK [11:06:56]SAM_PROTO_GetFieldsCounters done [11:06:56]requested_item shift.num is exist - process it [11:06:56]requested_item shift.opened is exist - process it [11:06:56]req_shift_opened [11:06:56]FM_GetShiftState [11:06:56]SAM_PROTO_GetShiftState [11:06:56]wFMCommunicate request_size=4 [11:06:56]MH_SAM_APDU [11:06:56]CAPDU: 80 13 01 00 [11:06:56]Write to MH i2c: E2 08 00 78 A4 80 13 01 00 00 00 00 00 99 [11:06:56]Write i2c OK [11:06:56]MH_I2C_Read... [11:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:56]Read from MH i2c: E2 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: E2 0E 00 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: E2 0E 00 78 A4 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FE [11:06:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:06:56]wFMCommunicate OK [11:06:56]SAM_PROTO_GetShiftState done [11:06:56]FM_GetShiftState done [11:06:56]req_shift_opened done [11:06:56]requested_item shift.open_date is exist - process it [11:06:56]req_shift_open_date [11:06:56]req_shift_open_date done [11:06:56]produce_requested_data done [11:06:56]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75395,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:06:56]process_action_free close_receipt [11:06:56]json_value_free [11:06:56]json_value_free done [11:06:56]process_json_proto returns [11:06:56]Send response to host [11:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75395,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:06:56]free response buf [11:06:56]execute_script done [11:06:56]execute_script returns [11:06:56]free content buf [11:06:56]Sock 7.Close socket [11:06:56]Sock 7.Thread stoped [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:24]accept exits with 9 [11:07:24]New connection [11:07:24]New thread 3067321700 created [11:07:24]Thread 3067465060 joined [11:07:24]Waiting for new connection... [11:07:24] Sock 9.Parse request [11:07:24]Sock 9.Check first char [11:07:24]Sock 9.First char is OK [11:07:24]request: POST /json_proto HTTP/1.0 [11:07:24]Method: POST [11:07:24]URL: /json_proto [11:07:24]Method is POST - this is cgi request [11:07:24]url: /json_proto [11:07:24]query_string will be loaded in cgi processing [11:07:24]execute_cgi json_proto POST (null) [11:07:24]execute_cgi path=json_proto method=POST [11:07:24]POST find Content-Length [11:07:24]Host: 172.17.44.196:8080 [11:07:24]Content-Length: 673 [11:07:24]Content-Type: application/json [11:07:24] [11:07:24]POST finish read [11:07:24]Found Content-Length = 673 [11:07:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:24]execute_script... [11:07:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:24]POST & json_proto [11:07:24]process_json_proto [11:07:24]json parsed OK: [11:07:24]protocol is kg_v1.0 [11:07:24]action value=close_receipt [11:07:24]process_action close_receipt [11:07:24]cmd_close_receipt [11:07:24]MH_GetDate [11:07:24]Write to MH i2c: F0 00 00 79 A4 0C [11:07:24]Write i2c OK [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: F0 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: F0 09 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: F0 09 00 79 A4 00 F3 D8 18 67 E7 19 F8 65 BC [11:07:24]GetLastDocTimeStamp 1729681619 [11:07:24]current date 1729681651 [11:07:24]FM_GetShiftState [11:07:24]SAM_PROTO_GetShiftState [11:07:24]wFMCommunicate request_size=4 [11:07:24]MH_SAM_APDU [11:07:24]CAPDU: 80 13 01 00 [11:07:24]Write to MH i2c: E2 08 00 7A A4 80 13 01 00 00 00 00 00 9B [11:07:24]Write i2c OK [11:07:24]MH_I2C_Read... [11:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:24]Read from MH i2c: E2 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 0E 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 0E 00 7A A4 00 09 00 01 99 41 18 67 00 00 00 00 90 00 00 [11:07:24]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:07:24]wFMCommunicate OK [11:07:24]SAM_PROTO_GetShiftState done [11:07:24]FM_GetShiftState done [11:07:24]opened in 1729642905 [11:07:24]opened+sec_in_day 1729729305 [11:07:24]quantity*price = 50025 [11:07:24]sum+1 = 50026 [11:07:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 129 23.10.2024 11:07 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75396 ФПД: 87643908909899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110731&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75396&fm=87643908909899&tin=02508201610067®Number=0000000000161154&sum=50000 [11:07:25]StoreToDocumentArchive [11:07:25]shift 173 fd 75396 [11:07:25]save to /storage/0173/doc_00075396 [11:07:25]save last doc name /storage/0173/doc_00075396 to /storage/kkm_last_doc_name [11:07:25]save OK [11:07:25]Clear old archive folders... [11:07:25]ProcessDocumentItem done err = 0, tmpTLVsize=245 [11:07:25]tlvbuf is 00D6ADC0 [11:07:25]SAM_PROTO_ClearQueue [11:07:25]wFMCommunicate request_size=4 [11:07:25]MH_SAM_APDU [11:07:25]CAPDU: 80 09 00 00 [11:07:25]Write to MH i2c: E2 08 00 87 A4 80 09 00 00 00 00 00 00 9D [11:07:25]Write i2c OK [11:07:25]MH_I2C_Read... [11:07:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:25]Read from MH i2c: E2 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 03 00 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 03 00 87 A4 00 90 00 9F [11:07:25]RAPDU: 90 00 [11:07:25]wFMCommunicate OK [11:07:25]SAM_PROTO_ClearQueue done [11:07:25]KKMCreateOFDPacket [11:07:25]OFDProtocolAddRootSTLVToBuf [11:07:25]FM_MakeSignedData [11:07:25]FM_MakeSignedData [11:07:25]SAM_PROTO_SignData [11:07:25]wFMCommunicate request_size=4 [11:07:25]MH_SAM_APDU [11:07:25]CAPDU: 80 0D 01 02 [11:07:25]Write to MH i2c: E2 08 00 88 A4 80 0D 01 02 00 00 00 00 A5 [11:07:25]Write i2c OK [11:07:25]MH_I2C_Read... [11:07:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:25]Read from MH i2c: E2 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 03 00 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 03 00 88 A4 00 90 00 A0 [11:07:25]RAPDU: 90 00 [11:07:25]wFMCommunicate OK [11:07:25]wFMCommunicate request_size=254 [11:07:25]MH_SAM_APDU [11:07:25]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C0 14 00 00 00 00 07 04 06 00 50 C3 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 F3 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 84 26 01 00 35 04 06 00 4F B6 30 0E AB 4B [11:07:25]Write to MH i2c: E2 01 01 89 A4 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C0 14 00 00 00 00 07 04 06 00 50 C3 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 F3 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 84 26 01 00 35 04 06 00 4F B6 30 0E AB 4B 00 00 35 [11:07:25]Write i2c OK [11:07:25]MH_I2C_Read... [11:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:26]Read from MH i2c: E2 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: E2 03 00 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: E2 03 00 89 A4 00 90 00 A1 [11:07:26]RAPDU: 90 00 [11:07:26]wFMCommunicate OK [11:07:26]wFMCommunicate request_size=4 [11:07:26]MH_SAM_APDU [11:07:26]CAPDU: 80 0D 03 02 [11:07:26]Write to MH i2c: E2 08 00 8A A4 80 0D 03 02 00 00 00 00 A9 [11:07:26]Write i2c OK [11:07:26]MH_I2C_Read... [11:07:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:26]Read from MH i2c: E2 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: E2 0B 00 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: E2 0B 00 8A A4 00 F1 6A 5C FF E1 00 C8 2F 90 00 38 [11:07:26]RAPDU: F1 6A 5C FF E1 00 C8 2F 90 00 [11:07:26]wFMCommunicate OK [11:07:26]SAM_PROTO_SignData done [11:07:26]FM_MakeSignedData done [11:07:26]CreateOFDProtocolMessage [11:07:26]wFMCommunicate request_size=4 [11:07:26]MH_SAM_APDU [11:07:26]CAPDU: 80 11 00 00 [11:07:26]Write to MH i2c: E2 08 00 8B A4 80 11 00 00 00 00 00 00 A9 [11:07:26]Write i2c OK [11:07:26]MH_I2C_Read... [11:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:26]Read from MH i2c: E2 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: E2 17 00 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: E2 17 00 8B A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F6 [11:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:07:26]wFMCommunicate OK [11:07:26]CreateOFDProtocolMessage done [11:07:26]OFDSenderStorePacket 75396 [11:07:26]StoreOFDPacket docnum=75396 [11:07:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 2F 6A 01 01 E4 E1 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C0 14 00 00 00 00 07 04 06 00 50 C3 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 F3 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 84 26 01 00 35 04 06 00 4F B6 30 0E AB 4B F1 6A 5C FF E1 00 C8 2F [11:07:26]CheckFolder [11:07:26]dirname=/storage/ofd_packets [11:07:26]CheckFolder done [11:07:26]ProducePacketName [11:07:26]name=ofd_packets/00075396 [11:07:26]NVStorageSaveData ofd_packets/00075396 [11:07:26]File name is /storage/ofd_packets/00075396 [11:07:26]Write 295 bytes [11:07:26]NVStorageSaveData done [11:07:26]OFDSenderStorePacket done [11:07:26]KKMCreateOFDPacket done [11:07:26]NVStorageSaveData kkm_last_timestamp [11:07:26]File name is /storage/kkm_last_timestamp [11:07:26]Write 4 bytes [11:07:26]NVStorageSaveData done [11:07:26]ExternCall_PrintAddStr [11:07:26]wPrintStart [11:07:26]Write to MH i2c: 01 00 00 8C A4 30 [11:07:26]Write i2c OK [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: 01 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: 01 07 00 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: 01 07 00 8C A4 00 00 00 00 00 FF 0F 45 [11:07:26]RasterBufferAndPrint [11:07:26]line Счет N : (1)1965369 [11:07:26]line ИНН: 02508201610067 [11:07:26]line Контрольно-Кассовый Чек [11:07:26]line ПРОДАЖА [11:07:26]line ТРК (МРК, ГНК) : 71 [11:07:26]line Товар: 2711129700 [11:07:26]line ГАЗ [11:07:26]line 12.860 * 38.90 [11:07:26]line = 500.25 [11:07:26]line НДС 12% НСП 1% [11:07:26]line > о реализуемом товаре [11:07:26]line ОКРУГЛЕНИЕ: -0.25 [11:07:26]line ИТОГО: 500.00 [11:07:26]line Внесено: 500.00 [11:07:26]line СДАЧА: 0.00 [11:07:26]line НСП 1% : 4.43 [11:07:26]line НДС 12% : 53.12 [11:07:26]line Наличными: 500.00 [11:07:26]line Безнал.: 0.00 [11:07:26]line Место: АЗС № 133 "Партнер Нефть" [11:07:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:07:26]line СНО: Общий режим [11:07:26]line Чек 129 23.10.2024 11:07 [11:07:26]line Смена: 173 ФФД: 1.0 [11:07:26]line ЗНМ: 0300000020 [11:07:26]line РНМ: 0000000000161154 [11:07:26]line Версия ККМ: v1.0 [11:07:26]line ФМ: 0000000000963323 [11:07:26]line ФД: 75396 [11:07:26]line ФПД: 87643908909899 [11:07:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110731&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75396&fm=87643908909899&tin=02508201610067®Number=0000000000161154&sum=50000 [11:07:26]OFD Sender: Processing packet 75396 [packets to send 15, broken 14] [11:07:26]ProducePacketName [11:07:26]name=ofd_packets/00075396 [11:07:26]OFD Sender: To server: pG, [11:07:26]CommunicateWithHost lk.salyk.kg:30040 [11:07:26]ConnectInit lk.salyk.kg [11:07:26]written 0, free lines is 4095 [11:07:26]Connected sock=10 [11:07:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 2F 6A 01 01 E4 E1 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C0 14 00 00 00 00 07 04 06 00 50 C3 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 F3 D8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 84 26 01 00 35 04 06 00 4F B6 30 0E AB 4B F1 6A 5C FF E1 00 C8 2F [11:07:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B9 E2 47 00 32 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 84 26 01 00 F4 03 04 00 CE 81 18 67 B6 04 01 00 00 D8 0A 32 78 8B 98 CB 12 [11:07:26]CommunicateWithHost err = 0 [11:07:26]CheckOFDResponse [11:07:26]1017 (14) - 77093643461234 [11:07:26]1041 (16) - 0000000000963323 [11:07:26]1040 (4) - 75396 [11:07:26]1012 (4) - 23.10.2024 04:55 [11:07:26]1206 (1) - 0 [11:07:26]OFD Sender: Remove packet 75396 [11:07:26]ProducePacketName [11:07:26]name=ofd_packets/00075396 [11:07:26]NVStorageDeleteData [11:07:26]Write to MH i2c: 01 00 00 B6 A4 5A [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: 01 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: 01 07 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: 01 07 00 B6 A4 00 00 00 00 00 B0 0C 1D [11:07:27]RasterBufferAndPrint [11:07:27]line [11:07:27]line [11:07:27]line [11:07:27]line [11:07:27]line [11:07:27]written 0, free lines is 3252 [11:07:27]MH_Cut [11:07:27]Write to MH i2c: D1 01 00 BD A4 01 33 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: D1 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: D1 01 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: D1 01 00 BD A4 00 32 [11:07:27]Write to MH i2c: 01 00 00 BE A4 62 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]OFD Sender: No OFD packet to send [11:07:27]*** Cut start [11:07:27]*** Partial cut [11:07:27]*** CUTSNS_PIN = 1 [11:07:27]*** CUTSNS_PIN = 0 [11:07:28]*** Brake cut motor [11:07:28]Read from MH i2c: 01 [11:07:28]MH_I2C_Read... [11:07:28]*** Stop cut motor [11:07:28]*** Cut end [11:07:28]Read from MH i2c: 01 07 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 BE A4 00 00 00 00 00 FF 0F 77 [11:07:28]process_action close_receipt done [11:07:28]requested_data is exist [11:07:28]produce_requested_data [11:07:28]requested_item fm.sn is exist - process it [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 11 00 00 [11:07:28]Write to MH i2c: E2 08 00 BF A4 80 11 00 00 00 00 00 00 DD [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 17 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 17 00 BF A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2A [11:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:07:28]wFMCommunicate OK [11:07:28]requested_item fd.num is exist - process it [11:07:28]SAM_PROTO_GetFieldsCounters [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 13 00 00 [11:07:28]Write to MH i2c: E2 08 00 C0 A4 80 13 00 00 00 00 00 00 E0 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 62 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 62 00 C0 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 84 26 01 00 0E 04 04 00 AD 00 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 CF [11:07:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 84 26 01 00 0E 04 04 00 AD 00 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 [11:07:28]wFMCommunicate OK [11:07:28]SAM_PROTO_GetFieldsCounters done [11:07:28]requested_item shift.num is exist - process it [11:07:28]requested_item shift.opened is exist - process it [11:07:28]req_shift_opened [11:07:28]FM_GetShiftState [11:07:28]SAM_PROTO_GetShiftState [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 13 01 00 [11:07:28]Write to MH i2c: E2 08 00 C1 A4 80 13 01 00 00 00 00 00 E2 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 0E 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 0E 00 C1 A4 00 09 00 01 99 41 18 67 00 00 00 00 90 00 47 [11:07:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:07:28]wFMCommunicate OK [11:07:28]SAM_PROTO_GetShiftState done [11:07:28]FM_GetShiftState done [11:07:28]req_shift_opened done [11:07:28]requested_item shift.open_date is exist - process it [11:07:28]req_shift_open_date [11:07:28]req_shift_open_date done [11:07:28]produce_requested_data done [11:07:28]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75396,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:07:28]process_action_free close_receipt [11:07:28]json_value_free [11:07:28]json_value_free done [11:07:28]process_json_proto returns [11:07:28]Send response to host [11:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75396,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:07:28]free response buf [11:07:28]execute_script done [11:07:28]execute_script returns [11:07:28]free content buf [11:07:28]Sock 9.Close socket [11:07:28]Sock 9.Thread stoped [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:14]accept exits with 7 [11:08:14]New connection [11:08:14]New thread 3067465060 created [11:08:14]Thread 3067321700 joined [11:08:14]Waiting for new connection... [11:08:14] Sock 7.Parse request [11:08:14]Sock 7.Check first char [11:08:14]Sock 7.First char is OK [11:08:14]request: POST /json_proto HTTP/1.0 [11:08:14]Method: POST [11:08:14]URL: /json_proto [11:08:14]Method is POST - this is cgi request [11:08:14]url: /json_proto [11:08:14]query_string will be loaded in cgi processing [11:08:14]execute_cgi json_proto POST (null) [11:08:14]execute_cgi path=json_proto method=POST [11:08:14]POST find Content-Length [11:08:14]Host: 172.17.44.196:8080 [11:08:14]Content-Length: 755 [11:08:14]Content-Type: application/json [11:08:14] [11:08:14]POST finish read [11:08:14]Found Content-Length = 755 [11:08:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101036", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:14]execute_script... [11:08: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)1965368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101036", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:14]POST & json_proto [11:08:14]process_json_proto [11:08:14]json parsed OK: [11:08:14]protocol is kg_v1.0 [11:08:14]action value=close_receipt [11:08:14]process_action close_receipt [11:08:14]cmd_close_receipt [11:08:14]MH_GetDate [11:08:14]Write to MH i2c: F0 00 00 C2 A4 55 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: F0 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: F0 09 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: F0 09 00 C2 A4 00 25 D9 18 67 E7 19 F8 65 38 [11:08:14]GetLastDocTimeStamp 1729681651 [11:08:14]current date 1729681701 [11:08:14]FM_GetShiftState [11:08:14]SAM_PROTO_GetShiftState [11:08:14]wFMCommunicate request_size=4 [11:08:14]MH_SAM_APDU [11:08:14]CAPDU: 80 13 01 00 [11:08:14]Write to MH i2c: E2 08 00 C3 A4 80 13 01 00 00 00 00 00 E4 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 0E 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 0E 00 C3 A4 00 09 00 01 99 41 18 67 00 00 00 00 90 00 49 [11:08:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:08:14]wFMCommunicate OK [11:08:14]SAM_PROTO_GetShiftState done [11:08:14]FM_GetShiftState done [11:08:14]opened in 1729642905 [11:08:14]opened+sec_in_day 1729729305 [11:08:14]quantity*price = 0 [11:08:14]sum+1 = 1 [11:08:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 130 23.10.2024 11:08 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101036 ФМ: 0000000000963323 ФД: 75397 ФПД: 153005877129996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110821&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75397&fm=153005877129996&tin=02508201610067®Number=0000000000161154&sum=0 [11:08:15]StoreToDocumentArchive [11:08:15]shift 173 fd 75397 [11:08:15]save to /storage/0173/doc_00075397 [11:08:15]save last doc name /storage/0173/doc_00075397 to /storage/kkm_last_doc_name [11:08:15]save OK [11:08:15]Clear old archive folders... [11:08:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:15]tlvbuf is 00E8D810 [11:08:15]SAM_PROTO_ClearQueue [11:08:15]wFMCommunicate request_size=4 [11:08:15]MH_SAM_APDU [11:08:15]CAPDU: 80 09 00 00 [11:08:15]Write to MH i2c: E2 08 00 D0 A4 80 09 00 00 00 00 00 00 E6 [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:15]Read from MH i2c: E2 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 03 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 03 00 D0 A4 00 90 00 E8 [11:08:15]RAPDU: 90 00 [11:08:15]wFMCommunicate OK [11:08:15]SAM_PROTO_ClearQueue done [11:08:15]KKMCreateOFDPacket [11:08:15]OFDProtocolAddRootSTLVToBuf [11:08:15]FM_MakeSignedData [11:08:15]FM_MakeSignedData [11:08:15]SAM_PROTO_SignData [11:08:15]wFMCommunicate request_size=4 [11:08:15]MH_SAM_APDU [11:08:15]CAPDU: 80 0D 01 02 [11:08:15]Write to MH i2c: E2 08 00 D1 A4 80 0D 01 02 00 00 00 00 EE [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:15]Read from MH i2c: E2 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 03 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 03 00 D1 A4 00 90 00 E9 [11:08:15]RAPDU: 90 00 [11:08:15]wFMCommunicate OK [11:08:15]wFMCommunicate request_size=255 [11:08:15]MH_SAM_APDU [11:08: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 25 D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 85 26 01 00 35 04 06 00 8B [11:08:15]Write to MH i2c: E2 02 01 D2 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 25 D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 85 26 01 00 35 04 06 00 8B 00 00 3C [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:15]Read from MH i2c: E2 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 03 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 03 00 D2 A4 00 90 00 EA [11:08:15]RAPDU: 90 00 [11:08:15]wFMCommunicate OK [11:08:15]wFMCommunicate request_size=10 [11:08:15]MH_SAM_APDU [11:08:15]CAPDU: 80 0D 02 02 05 28 74 F4 73 0C [11:08:15]Write to MH i2c: E2 0D 00 D3 A4 80 0D 02 02 05 00 28 74 F4 73 0C 00 00 0A [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:15]Read from MH i2c: E2 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 03 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 03 00 D3 A4 00 90 00 EB [11:08:15]RAPDU: 90 00 [11:08:15]wFMCommunicate OK [11:08:15]wFMCommunicate request_size=4 [11:08:15]MH_SAM_APDU [11:08:15]CAPDU: 80 0D 03 02 [11:08:15]Write to MH i2c: E2 08 00 D4 A4 80 0D 03 02 00 00 00 00 F3 [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:15]Read from MH i2c: E2 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 0B 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 0B 00 D4 A4 00 50 7B F7 2E 65 52 23 FD 90 00 BB [11:08:16]RAPDU: 50 7B F7 2E 65 52 23 FD 90 00 [11:08:16]wFMCommunicate OK [11:08:16]SAM_PROTO_SignData done [11:08:16]FM_MakeSignedData done [11:08:16]CreateOFDProtocolMessage [11:08:16]wFMCommunicate request_size=4 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 11 00 00 [11:08:16]Write to MH i2c: E2 08 00 D5 A4 80 11 00 00 00 00 00 00 F3 [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:16]Read from MH i2c: E2 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 17 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 17 00 D5 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 40 [11:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:08:16]wFMCommunicate OK [11:08:16]CreateOFDProtocolMessage done [11:08:16]OFDSenderStorePacket 75397 [11:08:16]StoreOFDPacket docnum=75397 [11:08:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0C 16 07 01 5B 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 25 D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 85 26 01 00 35 04 06 00 8B 28 74 F4 73 0C 50 7B F7 2E 65 52 23 FD [11:08:16]CheckFolder [11:08:16]dirname=/storage/ofd_packets [11:08:16]CheckFolder done [11:08:16]ProducePacketName [11:08:16]name=ofd_packets/00075397 [11:08:16]NVStorageSaveData ofd_packets/00075397 [11:08:16]File name is /storage/ofd_packets/00075397 [11:08:16]Write 301 bytes [11:08:16]NVStorageSaveData done [11:08:16]OFDSenderStorePacket done [11:08:16]KKMCreateOFDPacket done [11:08:16]NVStorageSaveData kkm_last_timestamp [11:08:16]File name is /storage/kkm_last_timestamp [11:08:16]OFD Sender: Processing packet 75397 [packets to send 15, broken 14] [11:08:16]ProducePacketName [11:08:16]name=ofd_packets/00075397 [11:08:16]OFD Sender: To server: pG, [11:08:16]CommunicateWithHost lk.salyk.kg:30040 [11:08:16]ConnectInit lk.salyk.kg [11:08:16]Write 4 bytes [11:08:16]NVStorageSaveData done [11:08:16]ExternCall_PrintAddStr [11:08:16]wPrintStart [11:08:16]Write to MH i2c: 01 00 00 D6 A4 7A [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: 01 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: 01 07 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: 01 07 00 D6 A4 00 00 00 00 00 FF 0F 8F [11:08:16]RasterBufferAndPrint [11:08:16]line Счет N : (1)1965368 [11:08:16]line ИНН: 02508201610067 [11:08:16]line Контрольно-Кассовый Чек [11:08:16]line ПРОДАЖА [11:08:16]line ТРК (МРК, ГНК) : 53 [11:08:16]line Товар: 2710124130 [11:08:16]line Аи-92-К-5 [11:08:16]line 20.000 * 0.00 [11:08:16]line = 0.00 [11:08:16]line НДС 12% НСП 1% [11:08:16]line > о реализуемом товаре [11:08:16]line ИТОГО: 0.00 [11:08:16]line НСП 1% : 0.00 [11:08:16]line НДС 12% : 0.00 [11:08:16]line Наличными: 0.00 [11:08:16]line Безнал.: 0.00 [11:08:16]line Место: АЗС № 133 "Партнер Нефть" [11:08:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:08:16]line СНО: Общий режим [11:08:16]line Чек 130 23.10.2024 11:08 [11:08:16]line Смена: 173 ФФД: 1.0 [11:08:16]line ЗНМ: 0300000020 [11:08:16]line РНМ: 0000000000161154 [11:08:16]line Версия ККМ: v1.0 [11:08:16]line Талоны: ТК ГПНА Online [11:08:16]line 30101036 [11:08:16]line ФМ: 0000000000963323 [11:08:16]line ФД: 75397 [11:08:16]line ФПД: 153005877129996 [11:08:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110821&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75397&fm=153005877129996&tin=02508201610067®Number=0000000000161154&sum=0 [11:08:16]Connected sock=11 [11:08:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 0C 16 07 01 5B 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 25 D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 85 26 01 00 35 04 06 00 8B 28 74 F4 73 0C 50 7B F7 2E 65 52 23 FD [11:08:16]written 0, free lines is 4095 [11:08:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 DF 0F 47 00 12 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 85 26 01 00 F4 03 04 00 00 82 18 67 B6 04 01 00 00 10 77 B6 48 C5 2C 31 42 [11:08:16]CommunicateWithHost err = 0 [11:08:16]CheckOFDResponse [11:08:16]1017 (14) - 77093643461234 [11:08:16]1041 (16) - 0000000000963323 [11:08:16]1040 (4) - 75397 [11:08:16]1012 (4) - 23.10.2024 04:56 [11:08:16]1206 (1) - 0 [11:08:16]OFD Sender: Remove packet 75397 [11:08:16]ProducePacketName [11:08:16]name=ofd_packets/00075397 [11:08:16]NVStorageDeleteData [11:08:16]Write to MH i2c: 01 00 00 FF A4 A3 [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: 01 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: 01 07 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: 01 07 00 FF A4 00 00 00 00 00 CB 0C 81 [11:08:16]RasterBufferAndPrint [11:08:16]line [11:08:16]line [11:08:16]line [11:08:16]line [11:08:16]line [11:08:16]written 0, free lines is 3281 [11:08:16]MH_Cut [11:08:16]Write to MH i2c: D1 01 00 06 A5 01 7D [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: D1 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: D1 01 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: D1 01 00 06 A5 00 7C [11:08:16]Write to MH i2c: 01 00 00 07 A5 AC [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:17]OFD Sender: No OFD packet to send [11:08:17]*** Cut start [11:08:17]*** Partial cut [11:08:17]*** CUTSNS_PIN = 1 [11:08:17]*** CUTSNS_PIN = 0 [11:08:17]*** Brake cut motor [11:08:18]Read from MH i2c: 01 [11:08:18]MH_I2C_Read... [11:08:18]*** Stop cut motor [11:08:18]*** Cut end [11:08:18]Read from MH i2c: 01 07 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 07 00 07 A5 00 00 00 00 00 FF 0F C1 [11:08:18]process_action close_receipt done [11:08:18]requested_data is exist [11:08:18]produce_requested_data [11:08:18]requested_item fm.sn is exist - process it [11:08:18]wFMCommunicate request_size=4 [11:08:18]MH_SAM_APDU [11:08:18]CAPDU: 80 11 00 00 [11:08:18]Write to MH i2c: E2 08 00 08 A5 80 11 00 00 00 00 00 00 27 [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:18]Read from MH i2c: E2 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: E2 17 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: E2 17 00 08 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 74 [11:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:08:18]wFMCommunicate OK [11:08:18]requested_item fd.num is exist - process it [11:08:18]SAM_PROTO_GetFieldsCounters [11:08:18]wFMCommunicate request_size=4 [11:08:18]MH_SAM_APDU [11:08:18]CAPDU: 80 13 00 00 [11:08:18]Write to MH i2c: E2 08 00 09 A5 80 13 00 00 00 00 00 00 2A [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:18]Read from MH i2c: E2 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: E2 62 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: E2 62 00 09 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 85 26 01 00 0E 04 04 00 AD 00 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 1D [11:08:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 85 26 01 00 0E 04 04 00 AD 00 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 [11:08:18]wFMCommunicate OK [11:08:18]SAM_PROTO_GetFieldsCounters done [11:08:18]requested_item shift.num is exist - process it [11:08:18]requested_item shift.opened is exist - process it [11:08:18]req_shift_opened [11:08:18]FM_GetShiftState [11:08:18]SAM_PROTO_GetShiftState [11:08:18]wFMCommunicate request_size=4 [11:08:18]MH_SAM_APDU [11:08:18]CAPDU: 80 13 01 00 [11:08:18]Write to MH i2c: E2 08 00 0A A5 80 13 01 00 00 00 00 00 2C [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:18]Read from MH i2c: E2 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: E2 0E 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: E2 0E 00 0A A5 00 09 00 01 99 41 18 67 00 00 00 00 90 00 91 [11:08:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:08:18]wFMCommunicate OK [11:08:18]SAM_PROTO_GetShiftState done [11:08:18]FM_GetShiftState done [11:08:18]req_shift_opened done [11:08:18]requested_item shift.open_date is exist - process it [11:08:18]req_shift_open_date [11:08:18]req_shift_open_date done [11:08:18]produce_requested_data done [11:08:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75397,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:08:18]process_action_free close_receipt [11:08:18]json_value_free [11:08:18]json_value_free done [11:08:18]process_json_proto returns [11:08:18]Send response to host [11:08:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75397,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:08:18]free response buf [11:08:18]execute_script done [11:08:18]execute_script returns [11:08:18]free content buf [11:08:18]Sock 7.Close socket [11:08:18]Sock 7.Thread stoped [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:55]accept exits with 9 [11:08:55]New connection [11:08:55]New thread 3067321700 created [11:08:55]Thread 3067465060 joined [11:08:55]Waiting for new connection... [11:08:55] Sock 9.Parse request [11:08:55]Sock 9.Check first char [11:08:55]Sock 9.First char is OK [11:08:55]request: POST /json_proto HTTP/1.0 [11:08:55]Method: POST [11:08:55]URL: /json_proto [11:08:55]Method is POST - this is cgi request [11:08:55]url: /json_proto [11:08:55]query_string will be loaded in cgi processing [11:08:55]execute_cgi json_proto POST (null) [11:08:55]execute_cgi path=json_proto method=POST [11:08:55]POST find Content-Length [11:08:55]Host: 172.17.44.196:8080 [11:08:55]Content-Length: 686 [11:08:55]Content-Type: application/json [11:08:55] [11:08:55]POST finish read [11:08:55]Found Content-Length = 686 [11:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273229", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 4.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:55]execute_script... [11:08:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273229", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 4.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:55]POST & json_proto [11:08:55]process_json_proto [11:08:55]json parsed OK: [11:08:55]protocol is kg_v1.0 [11:08:55]action value=close_receipt [11:08:55]process_action close_receipt [11:08:55]cmd_close_receipt [11:08:55]MH_GetDate [11:08:55]Write to MH i2c: F0 00 00 0B A5 9F [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: F0 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: F0 09 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: F0 09 00 0B A5 00 4E D9 18 67 E7 19 F8 65 AB [11:08:55]GetLastDocTimeStamp 1729681701 [11:08:55]current date 1729681742 [11:08:55]FM_GetShiftState [11:08:55]SAM_PROTO_GetShiftState [11:08:55]wFMCommunicate request_size=4 [11:08:55]MH_SAM_APDU [11:08:55]CAPDU: 80 13 01 00 [11:08:55]Write to MH i2c: E2 08 00 0C A5 80 13 01 00 00 00 00 00 2E [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:55]Read from MH i2c: E2 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 0E 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 0E 00 0C A5 00 09 00 01 99 41 18 67 00 00 00 00 90 00 93 [11:08:55]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:08:55]wFMCommunicate OK [11:08:55]SAM_PROTO_GetShiftState done [11:08:55]FM_GetShiftState done [11:08:55]opened in 1729642905 [11:08:55]opened+sec_in_day 1729729305 [11:08:55]quantity*price = 30000 [11:08:55]sum+1 = 30001 [11:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 131 23.10.2024 11:09 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75398 ФПД: 128264801703815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110902&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75398&fm=128264801703815&tin=02508201610067®Number=0000000000161154&sum=30000 0 [11:08:56]StoreToDocumentArchive [11:08:56]shift 173 fd 75398 [11:08:56]save to /storage/0173/doc_00075398 [11:08:56]save last doc name /storage/0173/doc_00075398 to /storage/kkm_last_doc_name [11:08:56]save OK [11:08:56]Clear old archive folders... [11:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=295 [11:08:56]tlvbuf is 00DCB0A0 [11:08:56]SAM_PROTO_ClearQueue [11:08:56]wFMCommunicate request_size=4 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 09 00 00 [11:08:56]Write to MH i2c: E2 08 00 19 A5 80 09 00 00 00 00 00 00 30 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 19 A5 00 90 00 32 [11:08:56]RAPDU: 90 00 [11:08:56]wFMCommunicate OK [11:08:56]SAM_PROTO_ClearQueue done [11:08:56]KKMCreateOFDPacket [11:08:56]OFDProtocolAddRootSTLVToBuf [11:08:56]FM_MakeSignedData [11:08:56]FM_MakeSignedData [11:08:56]SAM_PROTO_SignData [11:08:56]wFMCommunicate request_size=4 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 0D 01 02 [11:08:56]Write to MH i2c: E2 08 00 1A A5 80 0D 01 02 00 00 00 00 38 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 1A A5 00 90 00 33 [11:08:56]RAPDU: 90 00 [11:08:56]wFMCommunicate OK [11:08:56]wFMCommunicate request_size=255 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 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 83 00 00 00 F4 03 04 00 4E D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [11:08:56]Write to MH i2c: E2 02 01 1B A5 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 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 83 00 00 00 F4 03 04 00 4E D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 F2 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 1B A5 00 90 00 34 [11:08:56]RAPDU: 90 00 [11:08:56]wFMCommunicate OK [11:08:56]wFMCommunicate request_size=54 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 0D 02 02 31 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 86 26 01 00 35 04 06 00 74 A7 F9 F1 57 87 [11:08:56]Write to MH i2c: E2 39 00 1C A5 80 0D 02 02 31 00 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 86 26 01 00 35 04 06 00 74 A7 F9 F1 57 87 00 00 E5 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 03 00 1C A5 00 90 00 35 [11:08:56]RAPDU: 90 00 [11:08:56]wFMCommunicate OK [11:08:56]wFMCommunicate request_size=4 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 0D 03 02 [11:08:56]Write to MH i2c: E2 08 00 1D A5 80 0D 03 02 00 00 00 00 3D [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 0B 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 0B 00 1D A5 00 E4 B8 01 D9 4B 26 C8 5A 90 00 47 [11:08:56]RAPDU: E4 B8 01 D9 4B 26 C8 5A 90 00 [11:08:56]wFMCommunicate OK [11:08:56]SAM_PROTO_SignData done [11:08:56]FM_MakeSignedData done [11:08:56]CreateOFDProtocolMessage [11:08:56]wFMCommunicate request_size=4 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 11 00 00 [11:08:56]Write to MH i2c: E2 08 00 1E A5 80 11 00 00 00 00 00 00 3D [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:57]Read from MH i2c: E2 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: E2 17 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: E2 17 00 1E A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [11:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:08:57]wFMCommunicate OK [11:08:57]CreateOFDProtocolMessage done [11:08:57]OFDSenderStorePacket 75398 [11:08:57]StoreOFDPacket docnum=75398 [11:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3B 01 00 00 3E BA 33 01 90 15 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 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 83 00 00 00 F4 03 04 00 4E D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 86 26 01 00 35 04 06 00 74 A7 F9 F1 57 87 E4 B8 01 D9 4B 26 C8 5A [11:08:57]CheckFolder [11:08:57]dirname=/storage/ofd_packets [11:08:57]CheckFolder done [11:08:57]ProducePacketName [11:08:57]name=ofd_packets/00075398 [11:08:57]NVStorageSaveData ofd_packets/00075398 [11:08:57]File name is /storage/ofd_packets/00075398 [11:08:57]Write 345 bytes [11:08:57]NVStorageSaveData done [11:08:57]OFDSenderStorePacket done [11:08:57]KKMCreateOFDPacket done [11:08:57]NVStorageSaveData kkm_last_timestamp [11:08:57]File name is /storage/kkm_last_timestamp [11:08:57]Write 4 bytes [11:08:57]NVStorageSaveData done [11:08:57]ExternCall_PrintAddStr [11:08:57]wPrintStart [11:08:57]Write to MH i2c: 01 00 00 1F A5 C4 [11:08:57]OFD Sender: Processing packet 75398 [packets to send 15, broken 14] [11:08:57]ProducePacketName [11:08:57]name=ofd_packets/00075398 [11:08:57]OFD Sender: To server: pG, [11:08:57]CommunicateWithHost lk.salyk.kg:30040 [11:08:57]ConnectInit lk.salyk.kg [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: 01 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: 01 07 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: 01 07 00 1F A5 00 00 00 00 00 FF 0F D9 [11:08:57]RasterBufferAndPrint [11:08:57]line Счет N : (3)273229 [11:08:57]line ИНН: 02508201610067 [11:08:57]line Контрольно-Кассовый Чек [11:08:57]line ПРОДАЖА [11:08:57]line Товар: 5449000027450 [11:08:57]line Напиток FuzeTea чай манго,ром 0,5л [11:08:57]line 4.000 * 75.00 [11:08:57]line = 300.00 [11:08:57]line НДС 12% НСП 1% [11:08:57]line > о реализуемом товаре [11:08:57]line ИТОГО: 300.00 [11:08:57]line НСП 1% : 2.65 [11:08:57]line НДС 12% : 31.86 [11:08:57]line Наличными: 300.00 [11:08:57]line Безнал.: 0.00 [11:08:57]line Место: АЗС № 133 "Партнер Нефть" [11:08:57]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:08:57]line СНО: Общий режим [11:08:57]line Чек 131 23.10.2024 11:09 [11:08:57]line Смена: 173 ФФД: 1.0 [11:08:57]line ЗНМ: 0300000020 [11:08:57]line РНМ: 0000000000161154 [11:08:57]line Версия ККМ: v1.0 [11:08:57]line ФМ: 0000000000963323 [11:08:57]line ФД: 75398 [11:08:57]line ФПД: 128264801703815 [11:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110902&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75398&fm=128264801703815&tin=02508201610067®Number=0000000000161154&sum=30000 [11:08:57]line 0 [11:08:57]Connected sock=10 [11:08:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3B 01 00 00 3E BA 33 01 90 15 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 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 83 00 00 00 F4 03 04 00 4E D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 86 26 01 00 35 04 06 00 74 A7 F9 F1 57 87 E4 B8 01 D9 4B 26 C8 5A [11:08:57]written 0, free lines is 4095 [11:08:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BF 55 47 00 E8 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 86 26 01 00 F4 03 04 00 29 82 18 67 B6 04 01 00 00 93 6B 1B 67 F1 4B 18 E1 [11:08:57]CommunicateWithHost err = 0 [11:08:57]CheckOFDResponse [11:08:57]1017 (14) - 77093643461234 [11:08:57]1041 (16) - 0000000000963323 [11:08:57]1040 (4) - 75398 [11:08:57]1012 (4) - 23.10.2024 04:57 [11:08:57]1206 (1) - 0 [11:08:57]OFD Sender: Remove packet 75398 [11:08:57]ProducePacketName [11:08:57]name=ofd_packets/00075398 [11:08:57]NVStorageDeleteData [11:08:57]Write to MH i2c: 01 00 00 47 A5 EC [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: 01 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: 01 07 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: 01 07 00 47 A5 00 00 00 00 00 C7 0C C6 [11:08:57]RasterBufferAndPrint [11:08:57]line [11:08:57]line [11:08:57]line [11:08:57]line [11:08:57]line [11:08:57]written 0, free lines is 3276 [11:08:57]MH_Cut [11:08:57]Write to MH i2c: D1 01 00 4E A5 01 C5 [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: D1 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: D1 01 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: D1 01 00 4E A5 00 C4 [11:08:57]Write to MH i2c: 01 00 00 4F A5 F4 [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:58]OFD Sender: No OFD packet to send [11:08:58]*** Cut start [11:08:58]*** Partial cut [11:08:58]*** CUTSNS_PIN = 1 [11:08:58]*** CUTSNS_PIN = 0 [11:08:59]*** Brake cut motor [11:08:59]Read from MH i2c: 01 [11:08:59]MH_I2C_Read... [11:08:59]*** Stop cut motor [11:08:59]*** Cut end [11:08:59]Read from MH i2c: 01 07 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: 01 07 00 4F A5 00 00 00 00 00 FF 0F 09 [11:08:59]process_action close_receipt done [11:08:59]requested_data is exist [11:08:59]produce_requested_data [11:08:59]requested_item fm.sn is exist - process it [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 11 00 00 [11:08:59]Write to MH i2c: E2 08 00 50 A5 80 11 00 00 00 00 00 00 6F [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 17 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 17 00 50 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BC [11:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:08:59]wFMCommunicate OK [11:08:59]requested_item fd.num is exist - process it [11:08:59]SAM_PROTO_GetFieldsCounters [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 13 00 00 [11:08:59]Write to MH i2c: E2 08 00 51 A5 80 13 00 00 00 00 00 00 72 [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 62 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 62 00 51 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 86 26 01 00 0E 04 04 00 AD 00 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 69 [11:08:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 86 26 01 00 0E 04 04 00 AD 00 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 [11:08:59]wFMCommunicate OK [11:08:59]SAM_PROTO_GetFieldsCounters done [11:08:59]requested_item shift.num is exist - process it [11:08:59]requested_item shift.opened is exist - process it [11:08:59]req_shift_opened [11:08:59]FM_GetShiftState [11:08:59]SAM_PROTO_GetShiftState [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 13 01 00 [11:08:59]Write to MH i2c: E2 08 00 52 A5 80 13 01 00 00 00 00 00 74 [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 0E 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 0E 00 52 A5 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D9 [11:08:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:08:59]wFMCommunicate OK [11:08:59]SAM_PROTO_GetShiftState done [11:08:59]FM_GetShiftState done [11:08:59]req_shift_opened done [11:08:59]requested_item shift.open_date is exist - process it [11:08:59]req_shift_open_date [11:08:59]req_shift_open_date done [11:08:59]produce_requested_data done [11:08:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75398,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:08:59]process_action_free close_receipt [11:08:59]json_value_free [11:08:59]json_value_free done [11:08:59]process_json_proto returns [11:08:59]Send response to host [11:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75398,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:08:59]free response buf [11:08:59]execute_script done [11:08:59]execute_script returns [11:08:59]free content buf [11:08:59]Sock 9.Close socket [11:08:59]Sock 9.Thread stoped [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:11]accept exits with 7 [11:09:11]New connection [11:09:11]New thread 3067465060 created [11:09:11]Thread 3067321700 joined [11:09:11]Waiting for new connection... [11:09:11] Sock 7.Parse request [11:09:11]Sock 7.Check first char [11:09:11]Sock 7.First char is OK [11:09:11]request: POST /json_proto HTTP/1.0 [11:09:11]Method: POST [11:09:11]URL: /json_proto [11:09:11]Method is POST - this is cgi request [11:09:11]url: /json_proto [11:09:11]query_string will be loaded in cgi processing [11:09:11]execute_cgi json_proto POST (null) [11:09:11]execute_cgi path=json_proto method=POST [11:09:11]POST find Content-Length [11:09:11]Host: 172.17.44.196:8080 [11:09:11]Content-Length: 660 [11:09:11]Content-Type: application/json [11:09:11] [11:09:11]POST finish read [11:09:11]Found Content-Length = 660 [11:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:11]execute_script... [11: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)1965371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:11]POST & json_proto [11:09:11]process_json_proto [11:09:11]json parsed OK: [11:09:11]protocol is kg_v1.0 [11:09:11]action value=close_receipt [11:09:11]process_action close_receipt [11:09:11]cmd_close_receipt [11:09:11]MH_GetDate [11:09:11]Write to MH i2c: F0 00 00 53 A5 E7 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: F0 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: F0 09 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: F0 09 00 53 A5 00 5F D9 18 67 E7 19 F8 65 04 [11:09:11]GetLastDocTimeStamp 1729681742 [11:09:11]current date 1729681759 [11:09:11]FM_GetShiftState [11:09:11]SAM_PROTO_GetShiftState [11:09:11]wFMCommunicate request_size=4 [11:09:11]MH_SAM_APDU [11:09:11]CAPDU: 80 13 01 00 [11:09:11]Write to MH i2c: E2 08 00 54 A5 80 13 01 00 00 00 00 00 76 [11:09:11]Write i2c OK [11:09:11]MH_I2C_Read... [11:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:11]Read from MH i2c: E2 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 0E 00 [11:09:11]MH_I2C_Read... [11:09:11]Read from MH i2c: E2 0E 00 54 A5 00 09 00 01 99 41 18 67 00 00 00 00 90 00 DB [11:09:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:09:11]wFMCommunicate OK [11:09:11]SAM_PROTO_GetShiftState done [11:09:11]FM_GetShiftState done [11:09:11]opened in 1729642905 [11:09:11]opened+sec_in_day 1729729305 [11:09:11]quantity*price = 70041 [11:09:11]sum+1 = 70043 [11:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 132 23.10.2024 11:09 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75399 ФПД: 200914199019989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110919&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75399&fm=200914199019989&tin=02508201610067®Number=0000000000161154&sum=70000 [11:09:13]StoreToDocumentArchive [11:09:13]shift 173 fd 75399 [11:09:13]save to /storage/0173/doc_00075399 [11:09:13]save last doc name /storage/0173/doc_00075399 to /storage/kkm_last_doc_name [11:09:13]save OK [11:09:13]Clear old archive folders... [11:09:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:09:13]tlvbuf is 00DBC4F0 [11:09:13]SAM_PROTO_ClearQueue [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 09 00 00 [11:09:13]Write to MH i2c: E2 08 00 61 A5 80 09 00 00 00 00 00 00 78 [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 03 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 03 00 61 A5 00 90 00 7A [11:09:13]RAPDU: 90 00 [11:09:13]wFMCommunicate OK [11:09:13]SAM_PROTO_ClearQueue done [11:09:13]KKMCreateOFDPacket [11:09:13]OFDProtocolAddRootSTLVToBuf [11:09:13]FM_MakeSignedData [11:09:13]FM_MakeSignedData [11:09:13]SAM_PROTO_SignData [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 0D 01 02 [11:09:13]Write to MH i2c: E2 08 00 62 A5 80 0D 01 02 00 00 00 00 80 [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 03 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 03 00 62 A5 00 90 00 7B [11:09:13]RAPDU: 90 00 [11:09:13]wFMCommunicate OK [11:09:13]wFMCommunicate request_size=253 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 84 00 00 00 F4 03 04 00 5F D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 87 26 01 00 35 04 06 00 B6 BA FB 76 81 D5 [11:09:13]Write to MH i2c: E2 00 01 63 A5 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 84 00 00 00 F4 03 04 00 5F D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 87 26 01 00 35 04 06 00 B6 BA FB 76 81 D5 00 00 3B [11:09:13]OFD Sender: No OFD packet to send [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:13]Read from MH i2c: E2 03 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 03 00 63 A5 00 90 00 7C [11:09:13]RAPDU: 90 00 [11:09:13]wFMCommunicate OK [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 0D 03 02 [11:09:13]Write to MH i2c: E2 08 00 64 A5 80 0D 03 02 00 00 00 00 84 [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 0B 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 0B 00 64 A5 00 EF E5 EF C4 AD 6C 55 47 90 00 C1 [11:09:13]RAPDU: EF E5 EF C4 AD 6C 55 47 90 00 [11:09:13]wFMCommunicate OK [11:09:13]SAM_PROTO_SignData done [11:09:13]FM_MakeSignedData done [11:09:13]CreateOFDProtocolMessage [11:09:13]wFMCommunicate request_size=4 [11:09:13]MH_SAM_APDU [11:09:13]CAPDU: 80 11 00 00 [11:09:13]Write to MH i2c: E2 08 00 65 A5 80 11 00 00 00 00 00 00 84 [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:13]Read from MH i2c: E2 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 17 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: E2 17 00 65 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D1 [11:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:09:13]wFMCommunicate OK [11:09:13]CreateOFDProtocolMessage done [11:09:13]OFDSenderStorePacket 75399 [11:09:13]StoreOFDPacket docnum=75399 [11:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 5D EF 00 01 80 6F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 84 00 00 00 F4 03 04 00 5F D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 87 26 01 00 35 04 06 00 B6 BA FB 76 81 D5 EF E5 EF C4 AD 6C 55 47 [11:09:13]CheckFolder [11:09:13]dirname=/storage/ofd_packets [11:09:13]CheckFolder done [11:09:13]ProducePacketName [11:09:13]name=ofd_packets/00075399 [11:09:13]NVStorageSaveData ofd_packets/00075399 [11:09:13]File name is /storage/ofd_packets/00075399 [11:09:13]Write 294 bytes [11:09:13]NVStorageSaveData done [11:09:13]OFDSenderStorePacket done [11:09:13]KKMCreateOFDPacket done [11:09:13]NVStorageSaveData kkm_last_timestamp [11:09:13]File name is /storage/kkm_last_timestamp [11:09:13]Write 4 bytes [11:09:13]NVStorageSaveData done [11:09:13]ExternCall_PrintAddStr [11:09:13]wPrintStart [11:09:13]Write to MH i2c: 01 00 00 66 A5 0B [11:09:13]Write i2c OK [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: 01 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: 01 07 00 [11:09:13]MH_I2C_Read... [11:09:13]Read from MH i2c: 01 07 00 66 A5 00 00 00 00 00 FF 0F 20 [11:09:13]RasterBufferAndPrint [11:09:13]line Счет N : (1)1965371 [11:09:13]line ИНН: 02508201610067 [11:09:13]line Контрольно-Кассовый Чек [11:09:13]line ПРОДАЖА [11:09:13]line ТРК (МРК, ГНК) : 32 [11:09:13]line Товар: 2710124130 [11:09:13]line SU-92 [11:09:13]line 10.240 * 68.40 [11:09:13]line = 700.42 [11:09:13]line НДС 12% НСП 1% [11:09:13]line > о реализуемом товаре [11:09:13]line ОКРУГЛЕНИЕ: -0.42 [11:09:13]line ИТОГО: 700.00 [11:09:13]line Внесено: 700.00 [11:09:13]line СДАЧА: 0.00 [11:09:13]line НСП 1% : 6.20 [11:09:13]line НДС 12% : 74.38 [11:09:13]line Наличными: 700.00 [11:09:13]line Безнал.: 0.00 [11:09:13]line Место: АЗС № 133 "Партнер Нефть" [11:09:13]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:09:13]line СНО: Общий режим [11:09:13]line Чек 132 23.10.2024 11:09 [11:09:13]line Смена: 173 ФФД: 1.0 [11:09:13]line ЗНМ: 0300000020 [11:09:13]line РНМ: 0000000000161154 [11:09:13]line Версия ККМ: v1.0 [11:09:13]line ФМ: 0000000000963323 [11:09:13]line ФД: 75399 [11:09:13]line ФПД: 200914199019989 [11:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110919&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75399&fm=200914199019989&tin=02508201610067®Number=0000000000161154&sum=70000 [11:09:13]written 0, free lines is 4095 [11:09:13]OFD Sender: Processing packet 75399 [packets to send 15, broken 14] [11:09:13]ProducePacketName [11:09:13]name=ofd_packets/00075399 [11:09:13]OFD Sender: To server: pG, [11:09:13]CommunicateWithHost lk.salyk.kg:30040 [11:09:13]ConnectInit lk.salyk.kg [11:09:13]Connected sock=10 [11:09:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 5D EF 00 01 80 6F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 84 00 00 00 F4 03 04 00 5F D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 87 26 01 00 35 04 06 00 B6 BA FB 76 81 D5 EF E5 EF C4 AD 6C 55 47 [11:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 95 52 47 00 65 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 87 26 01 00 F4 03 04 00 39 82 18 67 B6 04 01 00 00 55 AC B9 C7 FF BA 26 13 [11:09:13]CommunicateWithHost err = 0 [11:09:13]CheckOFDResponse [11:09:13]1017 (14) - 77093643461234 [11:09:13]1041 (16) - 0000000000963323 [11:09:13]1040 (4) - 75399 [11:09:13]1012 (4) - 23.10.2024 04:57 [11:09:13]1206 (1) - 0 [11:09:13]OFD Sender: Remove packet 75399 [11:09:13]ProducePacketName [11:09:13]name=ofd_packets/00075399 [11:09:13]NVStorageDeleteData [11:09:14]Write to MH i2c: 01 00 00 90 A5 35 [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: 01 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: 01 07 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: 01 07 00 90 A5 00 00 00 00 00 B0 0C F8 [11:09:14]RasterBufferAndPrint [11:09:14]line [11:09:14]line [11:09:14]line [11:09:14]line [11:09:14]line [11:09:14]written 0, free lines is 3253 [11:09:14]MH_Cut [11:09:14]Write to MH i2c: D1 01 00 97 A5 01 0E [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: D1 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: D1 01 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: D1 01 00 97 A5 00 0D [11:09:14]Write to MH i2c: 01 00 00 98 A5 3D [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]OFD Sender: No OFD packet to send [11:09:14]*** Cut start [11:09:14]*** Partial cut [11:09:14]*** CUTSNS_PIN = 1 [11:09:14]*** CUTSNS_PIN = 0 [11:09:15]*** Brake cut motor [11:09:15]Read from MH i2c: 01 [11:09:15]MH_I2C_Read... [11:09:15]*** Stop cut motor [11:09:15]*** Cut end [11:09:15]Read from MH i2c: 01 07 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: 01 07 00 98 A5 00 00 00 00 00 FF 0F 52 [11:09:15]process_action close_receipt done [11:09:15]requested_data is exist [11:09:15]produce_requested_data [11:09:15]requested_item fm.sn is exist - process it [11:09:15]wFMCommunicate request_size=4 [11:09:15]MH_SAM_APDU [11:09:15]CAPDU: 80 11 00 00 [11:09:15]Write to MH i2c: E2 08 00 99 A5 80 11 00 00 00 00 00 00 B8 [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:15]Read from MH i2c: E2 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 17 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 17 00 99 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 05 [11:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:09:15]wFMCommunicate OK [11:09:15]requested_item fd.num is exist - process it [11:09:15]SAM_PROTO_GetFieldsCounters [11:09:15]wFMCommunicate request_size=4 [11:09:15]MH_SAM_APDU [11:09:15]CAPDU: 80 13 00 00 [11:09:15]Write to MH i2c: E2 08 00 9A A5 80 13 00 00 00 00 00 00 BB [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:15]Read from MH i2c: E2 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 62 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 62 00 9A A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 87 26 01 00 0E 04 04 00 AD 00 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 B6 [11:09:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 87 26 01 00 0E 04 04 00 AD 00 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 [11:09:15]wFMCommunicate OK [11:09:15]SAM_PROTO_GetFieldsCounters done [11:09:15]requested_item shift.num is exist - process it [11:09:15]requested_item shift.opened is exist - process it [11:09:15]req_shift_opened [11:09:15]FM_GetShiftState [11:09:15]SAM_PROTO_GetShiftState [11:09:15]wFMCommunicate request_size=4 [11:09:15]MH_SAM_APDU [11:09:15]CAPDU: 80 13 01 00 [11:09:15]Write to MH i2c: E2 08 00 9B A5 80 13 01 00 00 00 00 00 BD [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:15]Read from MH i2c: E2 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 0E 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 0E 00 9B A5 00 09 00 01 99 41 18 67 00 00 00 00 90 00 22 [11:09:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:09:15]wFMCommunicate OK [11:09:15]SAM_PROTO_GetShiftState done [11:09:15]FM_GetShiftState done [11:09:15]req_shift_opened done [11:09:15]requested_item shift.open_date is exist - process it [11:09:15]req_shift_open_date [11:09:15]req_shift_open_date done [11:09:15]produce_requested_data done [11:09:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75399,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:09:15]process_action_free close_receipt [11:09:15]json_value_free [11:09:15]json_value_free done [11:09:15]process_json_proto returns [11:09:15]Send response to host [11:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75399,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:09:15]free response buf [11:09:15]execute_script done [11:09:15]execute_script returns [11:09:15]free content buf [11:09:15]Sock 7.Close socket [11:09:15]Sock 7.Thread stoped [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:03]accept exits with 9 [11:11:03]New connection [11:11:03]New thread 3067321700 created [11:11:03]Thread 3067465060 joined [11:11:03]Waiting for new connection... [11:11:03] Sock 9.Parse request [11:11:03]Sock 9.Check first char [11:11:03]Sock 9.First char is OK [11:11:03]request: POST /json_proto HTTP/1.0 [11:11:03]Method: POST [11:11:03]URL: /json_proto [11:11:03]Method is POST - this is cgi request [11:11:03]url: /json_proto [11:11:03]query_string will be loaded in cgi processing [11:11:03]execute_cgi json_proto POST (null) [11:11:03]execute_cgi path=json_proto method=POST [11:11:03]POST find Content-Length [11:11:03]Host: 172.17.44.196:8080 [11:11:03]Content-Length: 664 [11:11:03]Content-Type: application/json [11:11:03] [11:11:03]POST finish read [11:11:03]Found Content-Length = 664 [11:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:11:03]execute_script... [11:11: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)1965372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:11:03]POST & json_proto [11:11:03]process_json_proto [11:11:03]json parsed OK: [11:11:03]protocol is kg_v1.0 [11:11:03]action value=close_receipt [11:11:03]process_action close_receipt [11:11:03]cmd_close_receipt [11:11:03]MH_GetDate [11:11:03]Write to MH i2c: F0 00 00 9C A5 30 [11:11:03]Write i2c OK [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: F0 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: F0 09 00 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: F0 09 00 9C A5 00 CF D9 18 67 E7 19 F8 65 BD [11:11:03]GetLastDocTimeStamp 1729681759 [11:11:03]current date 1729681871 [11:11:03]FM_GetShiftState [11:11:03]SAM_PROTO_GetShiftState [11:11:03]wFMCommunicate request_size=4 [11:11:03]MH_SAM_APDU [11:11:03]CAPDU: 80 13 01 00 [11:11:03]Write to MH i2c: E2 08 00 9D A5 80 13 01 00 00 00 00 00 BF [11:11:03]Write i2c OK [11:11:03]MH_I2C_Read... [11:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:03]Read from MH i2c: E2 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: E2 0E 00 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: E2 0E 00 9D A5 00 09 00 01 99 41 18 67 00 00 00 00 90 00 24 [11:11:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:11:03]wFMCommunicate OK [11:11:03]SAM_PROTO_GetShiftState done [11:11:03]FM_GetShiftState done [11:11:03]opened in 1729642905 [11:11:03]opened+sec_in_day 1729729305 [11:11:03]quantity*price = 100000 [11:11:03]sum+1 = 100002 [11:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 133 23.10.2024 11:11 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75400 ФПД: 118421782018196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111111&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75400&fm=118421782018196&tin=02508201610067®Number=0000000000161154&sum=100000 [11:11:04]StoreToDocumentArchive [11:11:04]shift 173 fd 75400 [11:11:04]save to /storage/0173/doc_00075400 [11:11:04]save last doc name /storage/0173/doc_00075400 to /storage/kkm_last_doc_name [11:11:04]save OK [11:11:04]Clear old archive folders... [11:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:11:04]tlvbuf is 00D60F30 [11:11:04]SAM_PROTO_ClearQueue [11:11:04]wFMCommunicate request_size=4 [11:11:04]MH_SAM_APDU [11:11:04]CAPDU: 80 09 00 00 [11:11:04]Write to MH i2c: E2 08 00 AA A5 80 09 00 00 00 00 00 00 C1 [11:11:04]Write i2c OK [11:11:04]MH_I2C_Read... [11:11:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:05]Read from MH i2c: E2 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 03 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 03 00 AA A5 00 90 00 C3 [11:11:05]RAPDU: 90 00 [11:11:05]wFMCommunicate OK [11:11:05]SAM_PROTO_ClearQueue done [11:11:05]KKMCreateOFDPacket [11:11:05]OFDProtocolAddRootSTLVToBuf [11:11:05]FM_MakeSignedData [11:11:05]FM_MakeSignedData [11:11:05]SAM_PROTO_SignData [11:11:05]wFMCommunicate request_size=4 [11:11:05]MH_SAM_APDU [11:11:05]CAPDU: 80 0D 01 02 [11:11:05]Write to MH i2c: E2 08 00 AB A5 80 0D 01 02 00 00 00 00 C9 [11:11:05]Write i2c OK [11:11:05]MH_I2C_Read... [11:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:05]Read from MH i2c: E2 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 03 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 03 00 AB A5 00 90 00 C4 [11:11:05]RAPDU: 90 00 [11:11:05]wFMCommunicate OK [11:11:05]wFMCommunicate request_size=253 [11:11:05]MH_SAM_APDU [11:11:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 85 00 00 00 F4 03 04 00 CF D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 88 26 01 00 35 04 06 00 6B B4 38 40 38 94 [11:11:05]Write to MH i2c: E2 00 01 AC A5 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 85 00 00 00 F4 03 04 00 CF D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 88 26 01 00 35 04 06 00 6B B4 38 40 38 94 00 00 99 [11:11:05]Write i2c OK [11:11:05]MH_I2C_Read... [11:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:05]Read from MH i2c: E2 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 03 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 03 00 AC A5 00 90 00 C5 [11:11:05]RAPDU: 90 00 [11:11:05]wFMCommunicate OK [11:11:05]wFMCommunicate request_size=4 [11:11:05]MH_SAM_APDU [11:11:05]CAPDU: 80 0D 03 02 [11:11:05]Write to MH i2c: E2 08 00 AD A5 80 0D 03 02 00 00 00 00 CD [11:11:05]Write i2c OK [11:11:05]MH_I2C_Read... [11:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:05]Read from MH i2c: E2 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 0B 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 0B 00 AD A5 00 D1 A5 B4 8D D8 20 F2 2E 90 00 9D [11:11:05]RAPDU: D1 A5 B4 8D D8 20 F2 2E 90 00 [11:11:05]wFMCommunicate OK [11:11:05]SAM_PROTO_SignData done [11:11:05]FM_MakeSignedData done [11:11:05]CreateOFDProtocolMessage [11:11:05]wFMCommunicate request_size=4 [11:11:05]MH_SAM_APDU [11:11:05]CAPDU: 80 11 00 00 [11:11:05]Write to MH i2c: E2 08 00 AE A5 80 11 00 00 00 00 00 00 CD [11:11:05]Write i2c OK [11:11:05]MH_I2C_Read... [11:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:05]Read from MH i2c: E2 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 17 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 17 00 AE A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1A [11:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:11:05]wFMCommunicate OK [11:11:05]CreateOFDProtocolMessage done [11:11:05]OFDSenderStorePacket 75400 [11:11:05]StoreOFDPacket docnum=75400 [11:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 00 ED 00 01 29 4B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 85 00 00 00 F4 03 04 00 CF D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 88 26 01 00 35 04 06 00 6B B4 38 40 38 94 D1 A5 B4 8D D8 20 F2 2E [11:11:05]CheckFolder [11:11:05]dirname=/storage/ofd_packets [11:11:05]CheckFolder done [11:11:05]ProducePacketName [11:11:05]name=ofd_packets/00075400 [11:11:05]NVStorageSaveData ofd_packets/00075400 [11:11:05]File name is /storage/ofd_packets/00075400 [11:11:05]Write 294 bytes [11:11:05]NVStorageSaveData done [11:11:05]OFDSenderStorePacket done [11:11:05]KKMCreateOFDPacket done [11:11:05]NVStorageSaveData kkm_last_timestamp [11:11:05]File name is /storage/kkm_last_timestamp [11:11:05]Write 4 bytes [11:11:05]NVStorageSaveData done [11:11:05]ExternCall_PrintAddStr [11:11:05]wPrintStart [11:11:05]Write to MH i2c: 01 00 00 AF A5 54 [11:11:05]Write i2c OK [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: 01 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: 01 07 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: 01 07 00 AF A5 00 00 00 00 00 FF 0F 69 [11:11:05]RasterBufferAndPrint [11:11:05]line Счет N : (1)1965372 [11:11:05]line ИНН: 02508201610067 [11:11:05]line Контрольно-Кассовый Чек [11:11:05]line ПРОДАЖА [11:11:05]line ТРК (МРК, ГНК) : 42 [11:11:05]line Товар: 2710124130 [11:11:05]line SU-92 [11:11:05]line 14.620 * 68.40 [11:11:05]line = 1000.01 [11:11:05]line НДС 12% НСП 1% [11:11:05]line > о реализуемом товаре [11:11:05]line ОКРУГЛЕНИЕ: -0.01 [11:11:05]line ИТОГО: 1000.00 [11:11:05]line Внесено: 1000.00 [11:11:05]line СДАЧА: 0.00 [11:11:05]line НСП 1% : 8.85 [11:11:05]line НДС 12% : 106.20 [11:11:05]line Наличными: 1000.00 [11:11:05]line Безнал.: 0.00 [11:11:05]line Место: АЗС № 133 "Партнер Нефть" [11:11:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:11:05]line СНО: Общий режим [11:11:05]line Чек 133 23.10.2024 11:11 [11:11:05]line Смена: 173 ФФД: 1.0 [11:11:05]line ЗНМ: 0300000020 [11:11:05]line РНМ: 0000000000161154 [11:11:05]line Версия ККМ: v1.0 [11:11:05]line ФМ: 0000000000963323 [11:11:05]line ФД: 75400 [11:11:05]line ФПД: 118421782018196 [11:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111111&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75400&fm=118421782018196&tin=02508201610067®Number=0000000000161154&sum=100000 [11:11:05]OFD Sender: Processing packet 75400 [packets to send 15, broken 14] [11:11:05]ProducePacketName [11:11:05]name=ofd_packets/00075400 [11:11:05]OFD Sender: To server: pG, [11:11:05]CommunicateWithHost lk.salyk.kg:30040 [11:11:05]ConnectInit lk.salyk.kg [11:11:05]written 0, free lines is 4095 [11:11:05]Connected sock=10 [11:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 00 ED 00 01 29 4B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 85 00 00 00 F4 03 04 00 CF D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 88 26 01 00 35 04 06 00 6B B4 38 40 38 94 D1 A5 B4 8D D8 20 F2 2E [11:11:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1B 2C 47 00 5A 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 88 26 01 00 F4 03 04 00 AA 82 18 67 B6 04 01 00 00 F7 5F 79 26 75 A2 51 6C [11:11:06]CommunicateWithHost err = 0 [11:11:06]CheckOFDResponse [11:11:06]1017 (14) - 77093643461234 [11:11:06]1041 (16) - 0000000000963323 [11:11:06]1040 (4) - 75400 [11:11:06]1012 (4) - 23.10.2024 04:59 [11:11:06]1206 (1) - 0 [11:11:06]OFD Sender: Remove packet 75400 [11:11:06]ProducePacketName [11:11:06]name=ofd_packets/00075400 [11:11:06]NVStorageDeleteData [11:11:06]Write to MH i2c: 01 00 00 D9 A5 7E [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 07 00 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 07 00 D9 A5 00 00 00 00 00 B5 0C 46 [11:11:06]RasterBufferAndPrint [11:11:06]line [11:11:06]line [11:11:06]line [11:11:06]line [11:11:06]line [11:11:06]written 0, free lines is 3258 [11:11:06]MH_Cut [11:11:06]Write to MH i2c: D1 01 00 E0 A5 01 57 [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: D1 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: D1 01 00 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: D1 01 00 E0 A5 00 56 [11:11:06]Write to MH i2c: 01 00 00 E1 A5 86 [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:06]OFD Sender: No OFD packet to send [11:11:07]*** Cut start [11:11:07]*** Partial cut [11:11:07]*** CUTSNS_PIN = 1 [11:11:07]*** CUTSNS_PIN = 0 [11:11:07]*** Brake cut motor [11:11:07]Read from MH i2c: 01 [11:11:07]MH_I2C_Read... [11:11:07]*** Stop cut motor [11:11:07]*** Cut end [11:11:07]Read from MH i2c: 01 07 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 07 00 E1 A5 00 00 00 00 00 FF 0F 9B [11:11:07]process_action close_receipt done [11:11:07]requested_data is exist [11:11:07]produce_requested_data [11:11:07]requested_item fm.sn is exist - process it [11:11:07]wFMCommunicate request_size=4 [11:11:07]MH_SAM_APDU [11:11:07]CAPDU: 80 11 00 00 [11:11:07]Write to MH i2c: E2 08 00 E2 A5 80 11 00 00 00 00 00 00 01 [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:07]Read from MH i2c: E2 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 17 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 17 00 E2 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4E [11:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:11:07]wFMCommunicate OK [11:11:07]requested_item fd.num is exist - process it [11:11:07]SAM_PROTO_GetFieldsCounters [11:11:07]wFMCommunicate request_size=4 [11:11:07]MH_SAM_APDU [11:11:07]CAPDU: 80 13 00 00 [11:11:07]Write to MH i2c: E2 08 00 E3 A5 80 13 00 00 00 00 00 00 04 [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:07]Read from MH i2c: E2 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 62 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 62 00 E3 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 88 26 01 00 0E 04 04 00 AD 00 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 03 [11:11:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 88 26 01 00 0E 04 04 00 AD 00 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 [11:11:07]wFMCommunicate OK [11:11:07]SAM_PROTO_GetFieldsCounters done [11:11:07]requested_item shift.num is exist - process it [11:11:07]requested_item shift.opened is exist - process it [11:11:07]req_shift_opened [11:11:07]FM_GetShiftState [11:11:07]SAM_PROTO_GetShiftState [11:11:07]wFMCommunicate request_size=4 [11:11:07]MH_SAM_APDU [11:11:07]CAPDU: 80 13 01 00 [11:11:07]Write to MH i2c: E2 08 00 E4 A5 80 13 01 00 00 00 00 00 06 [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:08]Read from MH i2c: E2 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 0E 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 0E 00 E4 A5 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6B [11:11:08]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:11:08]wFMCommunicate OK [11:11:08]SAM_PROTO_GetShiftState done [11:11:08]FM_GetShiftState done [11:11:08]req_shift_opened done [11:11:08]requested_item shift.open_date is exist - process it [11:11:08]req_shift_open_date [11:11:08]req_shift_open_date done [11:11:08]produce_requested_data done [11:11:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75400,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:11:08]process_action_free close_receipt [11:11:08]json_value_free [11:11:08]json_value_free done [11:11:08]process_json_proto returns [11:11:08]Send response to host [11:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75400,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:11:08]free response buf [11:11:08]execute_script done [11:11:08]execute_script returns [11:11:08]free content buf [11:11:08]Sock 9.Close socket [11:11:08]Sock 9.Thread stoped [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:38]accept exits with 7 [11:11:38]New connection [11:11:38]New thread 3067465060 created [11:11:38]Thread 3067321700 joined [11:11:38]Waiting for new connection... [11:11:38] Sock 7.Parse request [11:11:38]Sock 7.Check first char [11:11:38]Sock 7.First char is OK [11:11:38]request: POST /json_proto HTTP/1.0 [11:11:38]Method: POST [11:11:38]URL: /json_proto [11:11:38]Method is POST - this is cgi request [11:11:38]url: /json_proto [11:11:38]query_string will be loaded in cgi processing [11:11:38]execute_cgi json_proto POST (null) [11:11:38]execute_cgi path=json_proto method=POST [11:11:38]POST find Content-Length [11:11:38]Host: 172.17.44.196:8080 [11:11:38]Content-Length: 620 [11:11:38]Content-Type: application/json [11:11:38] [11:11:38]POST finish read [11:11:38]Found Content-Length = 620 [11:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273230", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:38]execute_script... [11:11: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 : (3)273230", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:38]POST & json_proto [11:11:38]process_json_proto [11:11:38]json parsed OK: [11:11:38]protocol is kg_v1.0 [11:11:38]action value=close_receipt [11:11:38]process_action close_receipt [11:11:38]cmd_close_receipt [11:11:38]MH_GetDate [11:11:38]Write to MH i2c: F0 00 00 E5 A5 79 [11:11:38]Write i2c OK [11:11:38]MH_I2C_Read... [11:11:38]Read from MH i2c: F0 [11:11:38]MH_I2C_Read... [11:11:38]Read from MH i2c: F0 09 00 [11:11:38]MH_I2C_Read... [11:11:38]Read from MH i2c: F0 09 00 E5 A5 00 F1 D9 18 67 E7 19 F8 65 28 [11:11:38]GetLastDocTimeStamp 1729681871 [11:11:38]current date 1729681905 [11:11:38]FM_GetShiftState [11:11:38]SAM_PROTO_GetShiftState [11:11:38]wFMCommunicate request_size=4 [11:11:38]MH_SAM_APDU [11:11:38]CAPDU: 80 13 01 00 [11:11:38]Write to MH i2c: E2 08 00 E6 A5 80 13 01 00 00 00 00 00 08 [11:11:38]Write i2c OK [11:11:38]MH_I2C_Read... [11:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:38]Read from MH i2c: E2 [11:11:38]MH_I2C_Read... [11:11:38]Read from MH i2c: E2 0E 00 [11:11:38]MH_I2C_Read... [11:11:38]Read from MH i2c: E2 0E 00 E6 A5 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6D [11:11:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:11:38]wFMCommunicate OK [11:11:38]SAM_PROTO_GetShiftState done [11:11:38]FM_GetShiftState done [11:11:38]opened in 1729642905 [11:11:38]opened+sec_in_day 1729729305 [11:11:38]quantity*price = 27000 [11:11:38]sum+1 = 27001 [11:11:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 134 23.10.2024 11:11 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75401 ФПД: 185252872333420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111145&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75401&fm=185252872333420&tin=02508201610067®Number=0000000000161154&sum=27000 0 [11:11:39]StoreToDocumentArchive [11:11:39]shift 173 fd 75401 [11:11:39]save to /storage/0173/doc_00075401 [11:11:39]save last doc name /storage/0173/doc_00075401 to /storage/kkm_last_doc_name [11:11:39]save OK [11:11:39]Clear old archive folders... [11:11:39]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:11:39]tlvbuf is 00E9B750 [11:11:39]SAM_PROTO_ClearQueue [11:11:39]wFMCommunicate request_size=4 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 09 00 00 [11:11:39]Write to MH i2c: E2 08 00 F3 A5 80 09 00 00 00 00 00 00 0A [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 F3 A5 00 90 00 0C [11:11:39]RAPDU: 90 00 [11:11:39]wFMCommunicate OK [11:11:39]SAM_PROTO_ClearQueue done [11:11:39]KKMCreateOFDPacket [11:11:39]OFDProtocolAddRootSTLVToBuf [11:11:39]FM_MakeSignedData [11:11:39]FM_MakeSignedData [11:11:39]SAM_PROTO_SignData [11:11:39]wFMCommunicate request_size=4 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 0D 01 02 [11:11:39]Write to MH i2c: E2 08 00 F4 A5 80 0D 01 02 00 00 00 00 12 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 F4 A5 00 90 00 0D [11:11:39]RAPDU: 90 00 [11:11:39]wFMCommunicate OK [11:11:39]wFMCommunicate request_size=255 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 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 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 [11:11:39]Write to MH i2c: E2 02 01 F5 A5 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 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 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 18 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 F5 A5 00 90 00 0E [11:11:39]RAPDU: 90 00 [11:11:39]wFMCommunicate OK [11:11:39]wFMCommunicate request_size=31 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 33 32 33 10 04 04 00 89 26 01 00 35 04 06 00 A8 7C 8B A6 28 6C [11:11:39]Write to MH i2c: E2 22 00 F6 A5 80 0D 02 02 1A 00 30 30 39 36 33 33 32 33 10 04 04 00 89 26 01 00 35 04 06 00 A8 7C 8B A6 28 6C 00 00 D3 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 03 00 F6 A5 00 90 00 0F [11:11:39]RAPDU: 90 00 [11:11:39]wFMCommunicate OK [11:11:39]wFMCommunicate request_size=4 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 0D 03 02 [11:11:39]Write to MH i2c: E2 08 00 F7 A5 80 0D 03 02 00 00 00 00 17 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 0B 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 0B 00 F7 A5 00 02 32 3B 59 B1 65 E6 36 90 00 12 [11:11:39]RAPDU: 02 32 3B 59 B1 65 E6 36 90 00 [11:11:39]wFMCommunicate OK [11:11:39]SAM_PROTO_SignData done [11:11:39]FM_MakeSignedData done [11:11:39]CreateOFDProtocolMessage [11:11:39]wFMCommunicate request_size=4 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 11 00 00 [11:11:39]Write to MH i2c: E2 08 00 F8 A5 80 11 00 00 00 00 00 00 17 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 17 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 17 00 F8 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 64 [11:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:11:39]wFMCommunicate OK [11:11:39]CreateOFDProtocolMessage done [11:11:39]OFDSenderStorePacket 75401 [11:11:39]StoreOFDPacket docnum=75401 [11:11:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 7A A6 1C 01 65 5D 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 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 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 89 26 01 00 35 04 06 00 A8 7C 8B A6 28 6C 02 32 3B 59 B1 65 E6 36 [11:11:39]CheckFolder [11:11:39]dirname=/storage/ofd_packets [11:11:39]CheckFolder done [11:11:39]ProducePacketName [11:11:39]name=ofd_packets/00075401 [11:11:39]NVStorageSaveData ofd_packets/00075401 [11:11:39]File name is /storage/ofd_packets/00075401 [11:11:39]Write 322 bytes [11:11:39]NVStorageSaveData done [11:11:39]OFDSenderStorePacket done [11:11:39]KKMCreateOFDPacket done [11:11:39]NVStorageSaveData kkm_last_timestamp [11:11:39]File name is /storage/kkm_last_timestamp [11:11:39]Write 4 bytes [11:11:39]NVStorageSaveData done [11:11:39]ExternCall_PrintAddStr [11:11:39]wPrintStart [11:11:39]Write to MH i2c: 01 00 00 F9 A5 9E [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: 01 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: 01 07 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: 01 07 00 F9 A5 00 00 00 00 00 FF 0F B3 [11:11:39]RasterBufferAndPrint [11:11:39]line Счет N : (3)273230 [11:11:39]line ИНН: 02508201610067 [11:11:39]line Контрольно-Кассовый Чек [11:11:39]line ПРОДАЖА [11:11:39]line Товар: 48745000 [11:11:39]line Сигареты Winston Purple Mix [11:11:39]line 2.000 * 135.00 [11:11:39]line = 270.00 [11:11:39]line НДС 12% НСП 1% [11:11:39]line > о реализуемом товаре [11:11:39]line ИТОГО: 270.00 [11:11:39]line НСП 1% : 2.39 [11:11:39]line НДС 12% : 28.67 [11:11:39]line Наличными: 270.00 [11:11:39]line Безнал.: 0.00 [11:11:39]line Место: АЗС № 133 "Партнер Нефть" [11:11:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:11:39]line СНО: Общий режим [11:11:39]line Чек 134 23.10.2024 11:11 [11:11:39]line Смена: 173 ФФД: 1.0 [11:11:39]line ЗНМ: 0300000020 [11:11:39]line РНМ: 0000000000161154 [11:11:39]line Версия ККМ: v1.0 [11:11:39]line ФМ: 0000000000963323 [11:11:39]line ФД: 75401 [11:11:39]line ФПД: 185252872333420 [11:11:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111145&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75401&fm=185252872333420&tin=02508201610067®Number=0000000000161154&sum=27000 [11:11:40]line 0 [11:11:40]OFD Sender: Processing packet 75401 [packets to send 15, broken 14] [11:11:40]ProducePacketName [11:11:40]name=ofd_packets/00075401 [11:11:40]OFD Sender: To server: pG, [11:11:40]CommunicateWithHost lk.salyk.kg:30040 [11:11:40]ConnectInit lk.salyk.kg [11:11:40]written 0, free lines is 4095 [11:11:40]Connected sock=10 [11:11:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 7A A6 1C 01 65 5D 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 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 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 D9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 89 26 01 00 35 04 06 00 A8 7C 8B A6 28 6C 02 32 3B 59 B1 65 E6 36 [11:11:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 63 9B 47 00 F9 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 39 36 33 33 32 33 10 04 04 00 89 26 01 00 F4 03 04 00 CC 82 18 67 B6 04 01 00 00 6C 6A CC BC 05 05 59 5B [11:11:40]CommunicateWithHost err = 0 [11:11:40]CheckOFDResponse [11:11:40]1017 (14) - 77093643461234 [11:11:40]1041 (16) - 0000000000963323 [11:11:40]1040 (4) - 75401 [11:11:40]1012 (4) - 23.10.2024 04:59 [11:11:40]1206 (1) - 0 [11:11:40]OFD Sender: Remove packet 75401 [11:11:40]ProducePacketName [11:11:40]name=ofd_packets/00075401 [11:11:40]NVStorageDeleteData [11:11:40]Write to MH i2c: 01 00 00 20 A6 C6 [11:11:40]Write i2c OK [11:11:40]MH_I2C_Read... [11:11:40]Read from MH i2c: 01 [11:11:40]MH_I2C_Read... [11:11:40]Read from MH i2c: 01 07 00 [11:11:40]MH_I2C_Read... [11:11:40]Read from MH i2c: 01 07 00 20 A6 00 00 00 00 00 D2 0C AB [11:11:40]RasterBufferAndPrint [11:11:40]line [11:11:40]line [11:11:40]line [11:11:40]line [11:11:40]line [11:11:40]written 0, free lines is 3286 [11:11:40]MH_Cut [11:11:40]Write to MH i2c: D1 01 00 27 A6 01 9F [11:11:40]Write i2c OK [11:11:40]MH_I2C_Read... [11:11:40]Read from MH i2c: D1 [11:11:40]MH_I2C_Read... [11:11:40]Read from MH i2c: D1 01 00 [11:11:40]MH_I2C_Read... [11:11:40]Read from MH i2c: D1 01 00 27 A6 00 9E [11:11:40]Write to MH i2c: 01 00 00 28 A6 CE [11:11:40]Write i2c OK [11:11:40]MH_I2C_Read... [11:11:41]OFD Sender: No OFD packet to send [11:11:41]*** Cut start [11:11:41]*** Partial cut [11:11:41]*** CUTSNS_PIN = 1 [11:11:41]*** CUTSNS_PIN = 0 [11:11:41]*** Brake cut motor [11:11:42]Read from MH i2c: 01 [11:11:42]MH_I2C_Read... [11:11:42]*** Stop cut motor [11:11:42]*** Cut end [11:11:42]Read from MH i2c: 01 07 00 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: 01 07 00 28 A6 00 00 00 00 00 FF 0F E3 [11:11:42]process_action close_receipt done [11:11:42]requested_data is exist [11:11:42]produce_requested_data [11:11:42]requested_item fm.sn is exist - process it [11:11:42]wFMCommunicate request_size=4 [11:11:42]MH_SAM_APDU [11:11:42]CAPDU: 80 11 00 00 [11:11:42]Write to MH i2c: E2 08 00 29 A6 80 11 00 00 00 00 00 00 49 [11:11:42]Write i2c OK [11:11:42]MH_I2C_Read... [11:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:42]Read from MH i2c: E2 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 17 00 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 17 00 29 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 96 [11:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:11:42]wFMCommunicate OK [11:11:42]requested_item fd.num is exist - process it [11:11:42]SAM_PROTO_GetFieldsCounters [11:11:42]wFMCommunicate request_size=4 [11:11:42]MH_SAM_APDU [11:11:42]CAPDU: 80 13 00 00 [11:11:42]Write to MH i2c: E2 08 00 2A A6 80 13 00 00 00 00 00 00 4C [11:11:42]Write i2c OK [11:11:42]MH_I2C_Read... [11:11:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:42]Read from MH i2c: E2 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 62 00 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 62 00 2A A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 89 26 01 00 0E 04 04 00 AD 00 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 4F [11:11:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 89 26 01 00 0E 04 04 00 AD 00 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 [11:11:42]wFMCommunicate OK [11:11:42]SAM_PROTO_GetFieldsCounters done [11:11:42]requested_item shift.num is exist - process it [11:11:42]requested_item shift.opened is exist - process it [11:11:42]req_shift_opened [11:11:42]FM_GetShiftState [11:11:42]SAM_PROTO_GetShiftState [11:11:42]wFMCommunicate request_size=4 [11:11:42]MH_SAM_APDU [11:11:42]CAPDU: 80 13 01 00 [11:11:42]Write to MH i2c: E2 08 00 2B A6 80 13 01 00 00 00 00 00 4E [11:11:42]Write i2c OK [11:11:42]MH_I2C_Read... [11:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:42]Read from MH i2c: E2 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 0E 00 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 0E 00 2B A6 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B3 [11:11:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:11:42]wFMCommunicate OK [11:11:42]SAM_PROTO_GetShiftState done [11:11:42]FM_GetShiftState done [11:11:42]req_shift_opened done [11:11:42]requested_item shift.open_date is exist - process it [11:11:42]req_shift_open_date [11:11:42]req_shift_open_date done [11:11:42]produce_requested_data done [11:11:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75401,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:11:42]process_action_free close_receipt [11:11:42]json_value_free [11:11:42]json_value_free done [11:11:42]process_json_proto returns [11:11:42]Send response to host [11:11:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75401,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:11:42]free response buf [11:11:42]execute_script done [11:11:42]execute_script returns [11:11:42]free content buf [11:11:42]Sock 7.Close socket [11:11:42]Sock 7.Thread stoped [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:11:56]accept exits with 9 [11:11:56]New connection [11:11:56]New thread 3067321700 created [11:11:56]Thread 3067465060 joined [11:11:56]Waiting for new connection... [11:11:56] Sock 9.Parse request [11:11:56]Sock 9.Check first char [11:11:56]Sock 9.First char is OK [11:11:56]request: POST /json_proto HTTP/1.0 [11:11:56]Method: POST [11:11:56]URL: /json_proto [11:11:56]Method is POST - this is cgi request [11:11:56]url: /json_proto [11:11:56]query_string will be loaded in cgi processing [11:11:56]execute_cgi json_proto POST (null) [11:11:56]execute_cgi path=json_proto method=POST [11:11:56]POST find Content-Length [11:11:56]Host: 172.17.44.196:8080 [11:11:56]Content-Length: 678 [11:11:56]Content-Type: application/json [11:11:56] [11:11:56]POST finish read [11:11:56]Found Content-Length = 678 [11:11:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [11:11:56]execute_script... [11:11: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)1965374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [11:11:56]POST & json_proto [11:11:56]process_json_proto [11:11:56]json parsed OK: [11:11:56]protocol is kg_v1.0 [11:11:56]action value=close_receipt [11:11:56]process_action close_receipt [11:11:56]cmd_close_receipt [11:11:56]MH_GetDate [11:11:56]Write to MH i2c: F0 00 00 2C A6 C1 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: F0 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: F0 09 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: F0 09 00 2C A6 00 04 DA 18 67 E7 19 F8 65 84 [11:11:56]GetLastDocTimeStamp 1729681905 [11:11:56]current date 1729681924 [11:11:56]FM_GetShiftState [11:11:56]SAM_PROTO_GetShiftState [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 13 01 00 [11:11:56]Write to MH i2c: E2 08 00 2D A6 80 13 01 00 00 00 00 00 50 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 0E 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 0E 00 2D A6 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B5 [11:11:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:11:56]wFMCommunicate OK [11:11:56]SAM_PROTO_GetShiftState done [11:11:56]FM_GetShiftState done [11:11:56]opened in 1729642905 [11:11:56]opened+sec_in_day 1729729305 [11:11:56]quantity*price = 60009 [11:11:56]sum+1 = 60010 [11:11:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 135 23.10.2024 11:12 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75402 ФПД: 25519771639864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111204&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75402&fm=25519771639864&tin=02508201610067®Number=0000000000161154&sum=60000 [11:11:58]StoreToDocumentArchive [11:11:58]shift 173 fd 75402 [11:11:58]save to /storage/0173/doc_00075402 [11:11:58]save last doc name /storage/0173/doc_00075402 to /storage/kkm_last_doc_name [11:11:58]save OK [11:11:58]Clear old archive folders... [11:11:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:58]tlvbuf is 00E9B840 [11:11:58]SAM_PROTO_ClearQueue [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 09 00 00 [11:11:58]Write to MH i2c: E2 08 00 3A A6 80 09 00 00 00 00 00 00 52 [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 03 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 03 00 3A A6 00 90 00 54 [11:11:58]RAPDU: 90 00 [11:11:58]wFMCommunicate OK [11:11:58]SAM_PROTO_ClearQueue done [11:11:58]KKMCreateOFDPacket [11:11:58]OFDProtocolAddRootSTLVToBuf [11:11:58]FM_MakeSignedData [11:11:58]FM_MakeSignedData [11:11:58]SAM_PROTO_SignData [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 0D 01 02 [11:11:58]Write to MH i2c: E2 08 00 3B A6 80 0D 01 02 00 00 00 00 5A [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 03 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 03 00 3B A6 00 90 00 55 [11:11:58]RAPDU: 90 00 [11:11:58]wFMCommunicate OK [11:11:58]wFMCommunicate request_size=255 [11:11:58]MH_SAM_APDU [11:11: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 87 00 00 00 F4 03 04 00 04 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8A 26 01 00 35 04 06 00 17 [11:11:58]Write to MH i2c: E2 02 01 3C 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 87 00 00 00 F4 03 04 00 04 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8A 26 01 00 35 04 06 00 17 00 00 12 [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 03 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 03 00 3C A6 00 90 00 56 [11:11:58]RAPDU: 90 00 [11:11:58]wFMCommunicate OK [11:11:58]wFMCommunicate request_size=10 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 0D 02 02 05 35 C8 EC 60 38 [11:11:58]Write to MH i2c: E2 0D 00 3D A6 80 0D 02 02 05 00 35 C8 EC 60 38 00 00 E8 [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 03 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 03 00 3D A6 00 90 00 57 [11:11:58]RAPDU: 90 00 [11:11:58]wFMCommunicate OK [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 0D 03 02 [11:11:58]Write to MH i2c: E2 08 00 3E A6 80 0D 03 02 00 00 00 00 5F [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0B 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0B 00 3E A6 00 5A 3A 95 A8 14 1B 08 BA 90 00 22 [11:11:58]RAPDU: 5A 3A 95 A8 14 1B 08 BA 90 00 [11:11:58]wFMCommunicate OK [11:11:58]SAM_PROTO_SignData done [11:11:58]FM_MakeSignedData done [11:11:58]CreateOFDProtocolMessage [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 11 00 00 [11:11:58]Write to MH i2c: E2 08 00 3F A6 80 11 00 00 00 00 00 00 5F [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 17 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 17 00 3F A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AC [11:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:11:58]wFMCommunicate OK [11:11:58]CreateOFDProtocolMessage done [11:11:58]OFDSenderStorePacket 75402 [11:11:58]StoreOFDPacket docnum=75402 [11:11:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 56 04 07 01 F5 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 87 00 00 00 F4 03 04 00 04 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8A 26 01 00 35 04 06 00 17 35 C8 EC 60 38 5A 3A 95 A8 14 1B 08 BA [11:11:58]CheckFolder [11:11:58]dirname=/storage/ofd_packets [11:11:58]CheckFolder done [11:11:58]ProducePacketName [11:11:58]name=ofd_packets/00075402 [11:11:58]NVStorageSaveData ofd_packets/00075402 [11:11:58]File name is /storage/ofd_packets/00075402 [11:11:58]Write 301 bytes [11:11:58]NVStorageSaveData done [11:11:58]OFDSenderStorePacket done [11:11:58]KKMCreateOFDPacket done [11:11:58]NVStorageSaveData kkm_last_timestamp [11:11:58]File name is /storage/kkm_last_timestamp [11:11:58]Write 4 bytes [11:11:58]NVStorageSaveData done [11:11:58]ExternCall_PrintAddStr [11:11:58]wPrintStart [11:11:58]Write to MH i2c: 01 00 00 40 A6 E6 [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: 01 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: 01 07 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: 01 07 00 40 A6 00 00 00 00 00 FF 0F FB [11:11:58]RasterBufferAndPrint [11:11:58]line Счет N : (1)1965374 [11:11:58]line ИНН: 02508201610067 [11:11:58]line Контрольно-Кассовый Чек [11:11:58]line ПРОДАЖА [11:11:58]line ТРК (МРК, ГНК) : 63 [11:11:58]line Товар: 2710124130 [11:11:58]line Аи-92-К-5 [11:11:58]line 8.970 * 66.90 [11:11:58]line = 600.09 [11:11:58]line НДС 12% НСП 1% [11:11:58]line > о реализуемом товаре [11:11:58]line ОКРУГЛЕНИЕ: -0.09 [11:11:58]line ИТОГО: 600.00 [11:11:58]line Внесено: 600.00 [11:11:58]line СДАЧА: 0.00 [11:11:58]line НСП 1% : 5.31 [11:11:58]line НДС 12% : 63.73 [11:11:58]line Наличными: 600.00 [11:11:58]line Безнал.: 0.00 [11:11:58]line Место: АЗС № 133 "Партнер Нефть" [11:11:58]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:11:58]line СНО: Общий режим [11:11:58]line Чек 135 23.10.2024 11:12 [11:11:58]line Смена: 173 ФФД: 1.0 [11:11:58]line ЗНМ: 0300000020 [11:11:58]line РНМ: 0000000000161154 [11:11:58]line Версия ККМ: v1.0 [11:11:58]line ФМ: 0000000000963323 [11:11:58]line ФД: 75402 [11:11:58]line ФПД: 25519771639864 [11:11:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111204&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75402&fm=25519771639864&tin=02508201610067®Number=0000000000161154&sum=60000 [11:11:58]OFD Sender: Processing packet 75402 [packets to send 15, broken 14] [11:11:58]ProducePacketName [11:11:58]name=ofd_packets/00075402 [11:11:58]OFD Sender: To server: pG, [11:11:58]CommunicateWithHost lk.salyk.kg:30040 [11:11:58]ConnectInit lk.salyk.kg [11:11:58]written 0, free lines is 4095 [11:11:59]Connected sock=10 [11:11:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 56 04 07 01 F5 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 87 00 00 00 F4 03 04 00 04 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8A 26 01 00 35 04 06 00 17 35 C8 EC 60 38 5A 3A 95 A8 14 1B 08 BA [11:11:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6A 01 47 00 73 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8A 26 01 00 F4 03 04 00 DF 82 18 67 B6 04 01 00 00 1D 07 25 C4 C9 57 1F 65 [11:11:59]CommunicateWithHost err = 0 [11:11:59]CheckOFDResponse [11:11:59]1017 (14) - 77093643461234 [11:11:59]1041 (16) - 0000000000963323 [11:11:59]1040 (4) - 75402 [11:11:59]1012 (4) - 23.10.2024 05:00 [11:11:59]1206 (1) - 0 [11:11:59]OFD Sender: Remove packet 75402 [11:11:59]ProducePacketName [11:11:59]name=ofd_packets/00075402 [11:11:59]NVStorageDeleteData [11:11:59]Write to MH i2c: 01 00 00 6A A6 10 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: 01 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: 01 07 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: 01 07 00 6A A6 00 00 00 00 00 B7 0C DA [11:11:59]RasterBufferAndPrint [11:11:59]line [11:11:59]line [11:11:59]line [11:11:59]line [11:11:59]line [11:11:59]written 0, free lines is 3261 [11:11:59]MH_Cut [11:11:59]Write to MH i2c: D1 01 00 71 A6 01 E9 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: D1 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: D1 01 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: D1 01 00 71 A6 00 E8 [11:11:59]Write to MH i2c: 01 00 00 72 A6 18 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]OFD Sender: No OFD packet to send [11:12:00]*** Cut start [11:12:00]*** Partial cut [11:12:00]*** CUTSNS_PIN = 1 [11:12:00]*** CUTSNS_PIN = 0 [11:12:00]*** Brake cut motor [11:12:00]Read from MH i2c: 01 [11:12:00]MH_I2C_Read... [11:12:00]*** Stop cut motor [11:12:00]*** Cut end [11:12:00]Read from MH i2c: 01 07 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 72 A6 00 00 00 00 00 FF 0F 2D [11:12:00]process_action close_receipt done [11:12:00]requested_data is exist [11:12:00]produce_requested_data [11:12:00]requested_item fm.sn is exist - process it [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 11 00 00 [11:12:00]Write to MH i2c: E2 08 00 73 A6 80 11 00 00 00 00 00 00 93 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 17 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 17 00 73 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E0 [11:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:12:01]wFMCommunicate OK [11:12:01]requested_item fd.num is exist - process it [11:12:01]SAM_PROTO_GetFieldsCounters [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 13 00 00 [11:12:01]Write to MH i2c: E2 08 00 74 A6 80 13 00 00 00 00 00 00 96 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 62 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 62 00 74 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8A 26 01 00 0E 04 04 00 AD 00 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 9D [11:12:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8A 26 01 00 0E 04 04 00 AD 00 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 [11:12:01]wFMCommunicate OK [11:12:01]SAM_PROTO_GetFieldsCounters done [11:12:01]requested_item shift.num is exist - process it [11:12:01]requested_item shift.opened is exist - process it [11:12:01]req_shift_opened [11:12:01]FM_GetShiftState [11:12:01]SAM_PROTO_GetShiftState [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 13 01 00 [11:12:01]Write to MH i2c: E2 08 00 75 A6 80 13 01 00 00 00 00 00 98 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 0E 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 0E 00 75 A6 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FD [11:12:01]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:12:01]wFMCommunicate OK [11:12:01]SAM_PROTO_GetShiftState done [11:12:01]FM_GetShiftState done [11:12:01]req_shift_opened done [11:12:01]requested_item shift.open_date is exist - process it [11:12:01]req_shift_open_date [11:12:01]req_shift_open_date done [11:12:01]produce_requested_data done [11:12:01]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75402,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:12:01]process_action_free close_receipt [11:12:01]json_value_free [11:12:01]json_value_free done [11:12:01]process_json_proto returns [11:12:01]Send response to host [11:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75402,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:12:01]free response buf [11:12:01]execute_script done [11:12:01]execute_script returns [11:12:01]free content buf [11:12:01]Sock 9.Close socket [11:12:01]Sock 9.Thread stoped [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:27]accept exits with 7 [11:12:27]New connection [11:12:27]New thread 3067465060 created [11:12:27]Thread 3067321700 joined [11:12:27]Waiting for new connection... [11:12:27] Sock 7.Parse request [11:12:27]Sock 7.Check first char [11:12:27]Sock 7.First char is OK [11:12:27]request: POST /json_proto HTTP/1.0 [11:12:27]Method: POST [11:12:27]URL: /json_proto [11:12:27]Method is POST - this is cgi request [11:12:27]url: /json_proto [11:12:27]query_string will be loaded in cgi processing [11:12:27]execute_cgi json_proto POST (null) [11:12:27]execute_cgi path=json_proto method=POST [11:12:27]POST find Content-Length [11:12:27]Host: 172.17.44.196:8080 [11:12:27]Content-Length: 678 [11:12:27]Content-Type: application/json [11:12:27] [11:12:27]POST finish read [11:12:27]Found Content-Length = 678 [11:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:27]execute_script... [11:12: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)1965375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:27]POST & json_proto [11:12:27]process_json_proto [11:12:27]json parsed OK: [11:12:27]protocol is kg_v1.0 [11:12:27]action value=close_receipt [11:12:27]process_action close_receipt [11:12:27]cmd_close_receipt [11:12:27]MH_GetDate [11:12:27]Write to MH i2c: F0 00 00 76 A6 0B [11:12:27]Write i2c OK [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: F0 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: F0 09 00 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: F0 09 00 76 A6 00 22 DA 18 67 E7 19 F8 65 EC [11:12:27]GetLastDocTimeStamp 1729681924 [11:12:27]current date 1729681954 [11:12:27]FM_GetShiftState [11:12:27]SAM_PROTO_GetShiftState [11:12:27]wFMCommunicate request_size=4 [11:12:27]MH_SAM_APDU [11:12:27]CAPDU: 80 13 01 00 [11:12:27]Write to MH i2c: E2 08 00 77 A6 80 13 01 00 00 00 00 00 9A [11:12:27]Write i2c OK [11:12:27]MH_I2C_Read... [11:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:27]Read from MH i2c: E2 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: E2 0E 00 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: E2 0E 00 77 A6 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FF [11:12:27]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:12:27]wFMCommunicate OK [11:12:27]SAM_PROTO_GetShiftState done [11:12:27]FM_GetShiftState done [11:12:27]opened in 1729642905 [11:12:27]opened+sec_in_day 1729729305 [11:12:27]quantity*price = 30038 [11:12:27]sum+1 = 30039 [11:12:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 136 23.10.2024 11:12 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75403 ФПД: 145305067008544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111234&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75403&fm=145305067008544&tin=02508201610067®Number=0000000000161154&sum=30000 [11:12:28]StoreToDocumentArchive [11:12:28]shift 173 fd 75403 [11:12:28]save to /storage/0173/doc_00075403 [11:12:28]save last doc name /storage/0173/doc_00075403 to /storage/kkm_last_doc_name [11:12:28]save OK [11:12:28]Clear old archive folders... [11:12:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:28]tlvbuf is 00DC5740 [11:12:28]SAM_PROTO_ClearQueue [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 09 00 00 [11:12:28]Write to MH i2c: E2 08 00 84 A6 80 09 00 00 00 00 00 00 9C [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 84 A6 00 90 00 9E [11:12:28]RAPDU: 90 00 [11:12:28]wFMCommunicate OK [11:12:28]SAM_PROTO_ClearQueue done [11:12:28]KKMCreateOFDPacket [11:12:28]OFDProtocolAddRootSTLVToBuf [11:12:28]FM_MakeSignedData [11:12:28]FM_MakeSignedData [11:12:28]SAM_PROTO_SignData [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 0D 01 02 [11:12:28]Write to MH i2c: E2 08 00 85 A6 80 0D 01 02 00 00 00 00 A4 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 85 A6 00 90 00 9F [11:12:28]RAPDU: 90 00 [11:12:28]wFMCommunicate OK [11:12:28]wFMCommunicate request_size=255 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 22 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8B 26 01 00 35 04 06 00 84 [11:12:28]Write to MH i2c: E2 02 01 86 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 22 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8B 26 01 00 35 04 06 00 84 00 00 00 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:29]Read from MH i2c: E2 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: E2 03 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: E2 03 00 86 A6 00 90 00 A0 [11:12:29]RAPDU: 90 00 [11:12:29]wFMCommunicate OK [11:12:29]wFMCommunicate request_size=10 [11:12:29]MH_SAM_APDU [11:12:29]CAPDU: 80 0D 02 02 05 27 78 E7 32 20 [11:12:29]Write to MH i2c: E2 0D 00 87 A6 80 0D 02 02 05 00 27 78 E7 32 20 00 00 89 [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:29]Read from MH i2c: E2 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: E2 03 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: E2 03 00 87 A6 00 90 00 A1 [11:12:29]RAPDU: 90 00 [11:12:29]wFMCommunicate OK [11:12:29]wFMCommunicate request_size=4 [11:12:29]MH_SAM_APDU [11:12:29]CAPDU: 80 0D 03 02 [11:12:29]Write to MH i2c: E2 08 00 88 A6 80 0D 03 02 00 00 00 00 A9 [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:29]Read from MH i2c: E2 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: E2 0B 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: E2 0B 00 88 A6 00 A8 32 94 DD C1 82 C1 41 90 00 3A [11:12:29]RAPDU: A8 32 94 DD C1 82 C1 41 90 00 [11:12:29]wFMCommunicate OK [11:12:29]SAM_PROTO_SignData done [11:12:29]FM_MakeSignedData done [11:12:29]CreateOFDProtocolMessage [11:12:29]wFMCommunicate request_size=4 [11:12:29]MH_SAM_APDU [11:12:29]CAPDU: 80 11 00 00 [11:12:29]Write to MH i2c: E2 08 00 89 A6 80 11 00 00 00 00 00 00 A9 [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:29]Read from MH i2c: E2 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: E2 17 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: E2 17 00 89 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F6 [11:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:12:29]wFMCommunicate OK [11:12:29]CreateOFDProtocolMessage done [11:12:29]OFDSenderStorePacket 75403 [11:12:29]StoreOFDPacket docnum=75403 [11:12:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 90 E5 07 01 41 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 22 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8B 26 01 00 35 04 06 00 84 27 78 E7 32 20 A8 32 94 DD C1 82 C1 41 [11:12:29]CheckFolder [11:12:29]dirname=/storage/ofd_packets [11:12:29]CheckFolder done [11:12:29]ProducePacketName [11:12:29]name=ofd_packets/00075403 [11:12:29]NVStorageSaveData ofd_packets/00075403 [11:12:29]File name is /storage/ofd_packets/00075403 [11:12:29]Write 301 bytes [11:12:29]NVStorageSaveData done [11:12:29]OFDSenderStorePacket done [11:12:29]KKMCreateOFDPacket done [11:12:29]NVStorageSaveData kkm_last_timestamp [11:12:29]File name is /storage/kkm_last_timestamp [11:12:29]Write 4 bytes [11:12:29]NVStorageSaveData done [11:12:29]ExternCall_PrintAddStr [11:12:29]wPrintStart [11:12:29]Write to MH i2c: 01 00 00 8A A6 30 [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 07 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 07 00 8A A6 00 00 00 00 00 FF 0F 45 [11:12:29]RasterBufferAndPrint [11:12:29]line Счет N : (1)1965375 [11:12:29]line ИНН: 02508201610067 [11:12:29]line Контрольно-Кассовый Чек [11:12:29]line ПРОДАЖА [11:12:29]line ТРК (МРК, ГНК) : 43 [11:12:29]line Товар: 2710124130 [11:12:29]line Аи-92-К-5 [11:12:29]line 4.490 * 66.90 [11:12:29]line = 300.38 [11:12:29]line НДС 12% НСП 1% [11:12:29]line > о реализуемом товаре [11:12:29]line ОКРУГЛЕНИЕ: -0.38 [11:12:29]line ИТОГО: 300.00 [11:12:29]line Внесено: 300.00 [11:12:29]line СДАЧА: 0.00 [11:12:29]line НСП 1% : 2.66 [11:12:29]line НДС 12% : 31.90 [11:12:29]line Наличными: 300.00 [11:12:29]line Безнал.: 0.00 [11:12:29]line Место: АЗС № 133 "Партнер Нефть" [11:12:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:12:29]line СНО: Общий режим [11:12:29]line Чек 136 23.10.2024 11:12 [11:12:29]line Смена: 173 ФФД: 1.0 [11:12:29]line ЗНМ: 0300000020 [11:12:29]line РНМ: 0000000000161154 [11:12:29]line Версия ККМ: v1.0 [11:12:29]line ФМ: 0000000000963323 [11:12:29]line ФД: 75403 [11:12:29]line ФПД: 145305067008544 [11:12:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111234&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75403&fm=145305067008544&tin=02508201610067®Number=0000000000161154&sum=30000 [11:12:29]OFD Sender: Processing packet 75403 [packets to send 15, broken 14] [11:12:29]ProducePacketName [11:12:29]name=ofd_packets/00075403 [11:12:29]OFD Sender: To server: pG, [11:12:29]CommunicateWithHost lk.salyk.kg:30040 [11:12:29]ConnectInit lk.salyk.kg [11:12:29]written 0, free lines is 4095 [11:12:29]Connected sock=10 [11:12:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 90 E5 07 01 41 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 22 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8B 26 01 00 35 04 06 00 84 27 78 E7 32 20 A8 32 94 DD C1 82 C1 41 [11:12:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FA 0E 47 00 04 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8B 26 01 00 F4 03 04 00 FE 82 18 67 B6 04 01 00 00 09 3D 5B C5 F8 14 73 DE [11:12:29]CommunicateWithHost err = 0 [11:12:29]CheckOFDResponse [11:12:29]1017 (14) - 77093643461234 [11:12:29]1041 (16) - 0000000000963323 [11:12:29]1040 (4) - 75403 [11:12:29]1012 (4) - 23.10.2024 05:00 [11:12:29]1206 (1) - 0 [11:12:29]OFD Sender: Remove packet 75403 [11:12:29]ProducePacketName [11:12:29]name=ofd_packets/00075403 [11:12:29]NVStorageDeleteData [11:12:30]Write to MH i2c: 01 00 00 B4 A6 5A [11:12:30]Write i2c OK [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: 01 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: 01 07 00 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: 01 07 00 B4 A6 00 00 00 00 00 B9 0C 26 [11:12:30]RasterBufferAndPrint [11:12:30]line [11:12:30]line [11:12:30]line [11:12:30]line [11:12:30]line [11:12:30]written 0, free lines is 3263 [11:12:30]MH_Cut [11:12:30]Write to MH i2c: D1 01 00 BB A6 01 33 [11:12:30]Write i2c OK [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: D1 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: D1 01 00 [11:12:30]MH_I2C_Read... [11:12:30]Read from MH i2c: D1 01 00 BB A6 00 32 [11:12:30]Write to MH i2c: 01 00 00 BC A6 62 [11:12:30]Write i2c OK [11:12:30]MH_I2C_Read... [11:12:30]OFD Sender: No OFD packet to send [11:12:30]*** Cut start [11:12:30]*** Partial cut [11:12:30]*** CUTSNS_PIN = 1 [11:12:31]*** CUTSNS_PIN = 0 [11:12:31]*** Brake cut motor [11:12:31]Read from MH i2c: 01 [11:12:31]MH_I2C_Read... [11:12:31]*** Stop cut motor [11:12:31]*** Cut end [11:12:31]Read from MH i2c: 01 07 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: 01 07 00 BC A6 00 00 00 00 00 FF 0F 77 [11:12:31]process_action close_receipt done [11:12:31]requested_data is exist [11:12:31]produce_requested_data [11:12:31]requested_item fm.sn is exist - process it [11:12:31]wFMCommunicate request_size=4 [11:12:31]MH_SAM_APDU [11:12:31]CAPDU: 80 11 00 00 [11:12:31]Write to MH i2c: E2 08 00 BD A6 80 11 00 00 00 00 00 00 DD [11:12:31]Write i2c OK [11:12:31]MH_I2C_Read... [11:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:31]Read from MH i2c: E2 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 17 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 17 00 BD A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2A [11:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:12:31]wFMCommunicate OK [11:12:31]requested_item fd.num is exist - process it [11:12:31]SAM_PROTO_GetFieldsCounters [11:12:31]wFMCommunicate request_size=4 [11:12:31]MH_SAM_APDU [11:12:31]CAPDU: 80 13 00 00 [11:12:31]Write to MH i2c: E2 08 00 BE A6 80 13 00 00 00 00 00 00 E0 [11:12:31]Write i2c OK [11:12:31]MH_I2C_Read... [11:12:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:31]Read from MH i2c: E2 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 62 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 62 00 BE A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8B 26 01 00 0E 04 04 00 AD 00 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 EB [11:12:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8B 26 01 00 0E 04 04 00 AD 00 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 [11:12:31]wFMCommunicate OK [11:12:31]SAM_PROTO_GetFieldsCounters done [11:12:31]requested_item shift.num is exist - process it [11:12:31]requested_item shift.opened is exist - process it [11:12:31]req_shift_opened [11:12:31]FM_GetShiftState [11:12:31]SAM_PROTO_GetShiftState [11:12:31]wFMCommunicate request_size=4 [11:12:31]MH_SAM_APDU [11:12:31]CAPDU: 80 13 01 00 [11:12:31]Write to MH i2c: E2 08 00 BF A6 80 13 01 00 00 00 00 00 E2 [11:12:31]Write i2c OK [11:12:31]MH_I2C_Read... [11:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:31]Read from MH i2c: E2 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 0E 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 0E 00 BF A6 00 09 00 01 99 41 18 67 00 00 00 00 90 00 47 [11:12:31]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:12:31]wFMCommunicate OK [11:12:31]SAM_PROTO_GetShiftState done [11:12:31]FM_GetShiftState done [11:12:31]req_shift_opened done [11:12:31]requested_item shift.open_date is exist - process it [11:12:31]req_shift_open_date [11:12:31]req_shift_open_date done [11:12:31]produce_requested_data done [11:12:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75403,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:12:31]process_action_free close_receipt [11:12:31]json_value_free [11:12:31]json_value_free done [11:12:31]process_json_proto returns [11:12:31]Send response to host [11:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75403,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:12:31]free response buf [11:12:31]execute_script done [11:12:31]execute_script returns [11:12:31]free content buf [11:12:31]Sock 7.Close socket [11:12:31]Sock 7.Thread stoped [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:13:59]accept exits with 9 [11:13:59]New connection [11:13:59]New thread 3067321700 created [11:13:59]Thread 3067465060 joined [11:13:59]Waiting for new connection... [11:13:59] Sock 9.Parse request [11:13:59]Sock 9.Check first char [11:13:59]Sock 9.First char is OK [11:13:59]request: POST /json_proto HTTP/1.0 [11:13:59]Method: POST [11:13:59]URL: /json_proto [11:13:59]Method is POST - this is cgi request [11:13:59]url: /json_proto [11:13:59]query_string will be loaded in cgi processing [11:13:59]execute_cgi json_proto POST (null) [11:13:59]execute_cgi path=json_proto method=POST [11:13:59]POST find Content-Length [11:13:59]Host: 172.17.44.196:8080 [11:13:59]Content-Length: 683 [11:13:59]Content-Type: application/json [11:13:59] [11:13:59]POST finish read [11:13:59]Found Content-Length = 683 [11:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:59]execute_script... [11:13:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:59]POST & json_proto [11:13:59]process_json_proto [11:13:59]json parsed OK: [11:13:59]protocol is kg_v1.0 [11:13:59]action value=close_receipt [11:13:59]process_action close_receipt [11:13:59]cmd_close_receipt [11:13:59]MH_GetDate [11:13:59]Write to MH i2c: F0 00 00 C0 A6 55 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: F0 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: F0 09 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: F0 09 00 C0 A6 00 7E DA 18 67 E7 19 F8 65 92 [11:13:59]GetLastDocTimeStamp 1729681954 [11:13:59]current date 1729682046 [11:13:59]FM_GetShiftState [11:13:59]SAM_PROTO_GetShiftState [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 13 01 00 [11:13:59]Write to MH i2c: E2 08 00 C1 A6 80 13 01 00 00 00 00 00 E4 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 0E 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 0E 00 C1 A6 00 09 00 01 99 41 18 67 00 00 00 00 90 00 49 [11:13:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:13:59]wFMCommunicate OK [11:13:59]SAM_PROTO_GetShiftState done [11:13:59]FM_GetShiftState done [11:13:59]opened in 1729642905 [11:13:59]opened+sec_in_day 1729729305 [11:13:59]quantity*price = 100015 [11:13:59]sum+1 = 100017 [11:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 137 23.10.2024 11:14 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75404 ФПД: 42925962849194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111406&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75404&fm=42925962849194&tin=02508201610067®Number=0000000000161154&sum=100000 [11:14:00]StoreToDocumentArchive [11:14:00]shift 173 fd 75404 [11:14:00]save to /storage/0173/doc_00075404 [11:14:00]save last doc name /storage/0173/doc_00075404 to /storage/kkm_last_doc_name [11:14:00]save OK [11:14:00]Clear old archive folders... [11:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:00]tlvbuf is 010782C0 [11:14:00]SAM_PROTO_ClearQueue [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 09 00 00 [11:14:00]Write to MH i2c: E2 08 00 CE A6 80 09 00 00 00 00 00 00 E6 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 CE A6 00 90 00 E8 [11:14:00]RAPDU: 90 00 [11:14:00]wFMCommunicate OK [11:14:00]SAM_PROTO_ClearQueue done [11:14:00]KKMCreateOFDPacket [11:14:00]OFDProtocolAddRootSTLVToBuf [11:14:00]FM_MakeSignedData [11:14:00]FM_MakeSignedData [11:14:00]SAM_PROTO_SignData [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 0D 01 02 [11:14:00]Write to MH i2c: E2 08 00 CF A6 80 0D 01 02 00 00 00 00 EE [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 CF A6 00 90 00 E9 [11:14:00]RAPDU: 90 00 [11:14:00]wFMCommunicate OK [11:14:00]wFMCommunicate request_size=255 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7E DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8C 26 01 00 35 04 06 00 27 [11:14:00]Write to MH i2c: E2 02 01 D0 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7E DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8C 26 01 00 35 04 06 00 27 00 00 51 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 D0 A6 00 90 00 EA [11:14:01]RAPDU: 90 00 [11:14:01]wFMCommunicate OK [11:14:01]wFMCommunicate request_size=10 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 0D 02 02 05 0A 7A C4 6B AA [11:14:01]Write to MH i2c: E2 0D 00 D1 A6 80 0D 02 02 05 00 0A 7A C4 6B AA 00 00 58 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 03 00 D1 A6 00 90 00 EB [11:14:01]RAPDU: 90 00 [11:14:01]wFMCommunicate OK [11:14:01]wFMCommunicate request_size=4 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 0D 03 02 [11:14:01]Write to MH i2c: E2 08 00 D2 A6 80 0D 03 02 00 00 00 00 F3 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 0B 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 0B 00 D2 A6 00 78 A4 66 64 C0 CA C0 DB 90 00 FF [11:14:01]RAPDU: 78 A4 66 64 C0 CA C0 DB 90 00 [11:14:01]wFMCommunicate OK [11:14:01]SAM_PROTO_SignData done [11:14:01]FM_MakeSignedData done [11:14:01]CreateOFDProtocolMessage [11:14:01]wFMCommunicate request_size=4 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 11 00 00 [11:14:01]Write to MH i2c: E2 08 00 D3 A6 80 11 00 00 00 00 00 00 F3 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 17 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 17 00 D3 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 40 [11:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:14:01]wFMCommunicate OK [11:14:01]CreateOFDProtocolMessage done [11:14:01]OFDSenderStorePacket 75404 [11:14:01]StoreOFDPacket docnum=75404 [11:14:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4E DA 07 01 A6 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7E DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8C 26 01 00 35 04 06 00 27 0A 7A C4 6B AA 78 A4 66 64 C0 CA C0 DB [11:14:01]CheckFolder [11:14:01]dirname=/storage/ofd_packets [11:14:01]CheckFolder done [11:14:01]ProducePacketName [11:14:01]name=ofd_packets/00075404 [11:14:01]NVStorageSaveData ofd_packets/00075404 [11:14:01]File name is /storage/ofd_packets/00075404 [11:14:01]Write 301 bytes [11:14:01]NVStorageSaveData done [11:14:01]OFDSenderStorePacket done [11:14:01]KKMCreateOFDPacket done [11:14:01]NVStorageSaveData kkm_last_timestamp [11:14:01]File name is /storage/kkm_last_timestamp [11:14:01]Write 4 bytes [11:14:01]NVStorageSaveData done [11:14:01]ExternCall_PrintAddStr [11:14:01]wPrintStart [11:14:01]Write to MH i2c: 01 00 00 D4 A6 7A [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 07 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 07 00 D4 A6 00 00 00 00 00 FF 0F 8F [11:14:01]RasterBufferAndPrint [11:14:01]line Счет N : (1)1965376 [11:14:01]line ИНН: 02508201610067 [11:14:01]line Контрольно-Кассовый Чек [11:14:01]line ПРОДАЖА [11:14:01]line ТРК (МРК, ГНК) : 33 [11:14:01]line Товар: 2710124130 [11:14:01]line Аи-92-К-5 [11:14:01]line 14.950 * 66.90 [11:14:01]line = 1000.16 [11:14:01]line НДС 12% НСП 1% [11:14:01]line > о реализуемом товаре [11:14:01]line ОКРУГЛЕНИЕ: -0.16 [11:14:01]line ИТОГО: 1000.00 [11:14:01]line Внесено: 1000.00 [11:14:01]line СДАЧА: 0.00 [11:14:01]line НСП 1% : 8.85 [11:14:01]line НДС 12% : 106.21 [11:14:01]line Наличными: 1000.00 [11:14:01]line Безнал.: 0.00 [11:14:01]line Место: АЗС № 133 "Партнер Нефть" [11:14:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:14:01]line СНО: Общий режим [11:14:01]line Чек 137 23.10.2024 11:14 [11:14:01]line Смена: 173 ФФД: 1.0 [11:14:01]line ЗНМ: 0300000020 [11:14:01]line РНМ: 0000000000161154 [11:14:01]line Версия ККМ: v1.0 [11:14:01]line ФМ: 0000000000963323 [11:14:01]line ФД: 75404 [11:14:01]line ФПД: 42925962849194 [11:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111406&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75404&fm=42925962849194&tin=02508201610067®Number=0000000000161154&sum=100000 [11:14:01]OFD Sender: Processing packet 75404 [packets to send 15, broken 14] [11:14:01]ProducePacketName [11:14:01]name=ofd_packets/00075404 [11:14:01]OFD Sender: To server: pG, [11:14:01]CommunicateWithHost lk.salyk.kg:30040 [11:14:01]ConnectInit lk.salyk.kg [11:14:01]written 0, free lines is 4095 [11:14:01]Connected sock=10 [11:14:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4E DA 07 01 A6 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7E DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8C 26 01 00 35 04 06 00 27 0A 7A C4 6B AA 78 A4 66 64 C0 CA C0 DB [11:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6C 6B 47 00 75 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 39 36 33 33 32 33 10 04 04 00 8C 26 01 00 F4 03 04 00 5A 83 18 67 B6 04 01 00 00 FF E1 5E 55 EA 72 F7 F6 [11:14:01]CommunicateWithHost err = 0 [11:14:01]CheckOFDResponse [11:14:01]1017 (14) - 77093643461234 [11:14:01]1041 (16) - 0000000000963323 [11:14:01]1040 (4) - 75404 [11:14:01]1012 (4) - 23.10.2024 05:02 [11:14:01]1206 (1) - 0 [11:14:01]OFD Sender: Remove packet 75404 [11:14:01]ProducePacketName [11:14:01]name=ofd_packets/00075404 [11:14:01]NVStorageDeleteData [11:14:02]Write to MH i2c: 01 00 00 FE A6 A4 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 FE A6 00 00 00 00 00 B7 0C 6E [11:14:02]RasterBufferAndPrint [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]written 0, free lines is 3261 [11:14:02]MH_Cut [11:14:02]Write to MH i2c: D1 01 00 05 A7 01 7E [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 01 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 01 00 05 A7 00 7D [11:14:02]Write to MH i2c: 01 00 00 06 A7 AD [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]OFD Sender: No OFD packet to send [11:14:02]*** Cut start [11:14:02]*** Partial cut [11:14:02]*** CUTSNS_PIN = 1 [11:14:03]*** CUTSNS_PIN = 0 [11:14:03]*** Brake cut motor [11:14:03]Read from MH i2c: 01 [11:14:03]MH_I2C_Read... [11:14:03]*** Stop cut motor [11:14:03]*** Cut end [11:14:03]Read from MH i2c: 01 07 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: 01 07 00 06 A7 00 00 00 00 00 FF 0F C2 [11:14:03]process_action close_receipt done [11:14:03]requested_data is exist [11:14:03]produce_requested_data [11:14:03]requested_item fm.sn is exist - process it [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 11 00 00 [11:14:03]Write to MH i2c: E2 08 00 07 A7 80 11 00 00 00 00 00 00 28 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 17 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 17 00 07 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 75 [11:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:14:03]wFMCommunicate OK [11:14:03]requested_item fd.num is exist - process it [11:14:03]SAM_PROTO_GetFieldsCounters [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 00 00 [11:14:03]Write to MH i2c: E2 08 00 08 A7 80 13 00 00 00 00 00 00 2B [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 62 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 62 00 08 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8C 26 01 00 0E 04 04 00 AD 00 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 3A [11:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8C 26 01 00 0E 04 04 00 AD 00 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 [11:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetFieldsCounters done [11:14:03]requested_item shift.num is exist - process it [11:14:03]requested_item shift.opened is exist - process it [11:14:03]req_shift_opened [11:14:03]FM_GetShiftState [11:14:03]SAM_PROTO_GetShiftState [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 01 00 [11:14:03]Write to MH i2c: E2 08 00 09 A7 80 13 01 00 00 00 00 00 2D [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 09 A7 00 09 00 01 99 41 18 67 00 00 00 00 90 00 92 [11:14:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetShiftState done [11:14:03]FM_GetShiftState done [11:14:03]req_shift_opened done [11:14:03]requested_item shift.open_date is exist - process it [11:14:03]req_shift_open_date [11:14:03]req_shift_open_date done [11:14:03]produce_requested_data done [11:14:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75404,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:14:03]process_action_free close_receipt [11:14:03]json_value_free [11:14:03]json_value_free done [11:14:03]process_json_proto returns [11:14:03]Send response to host [11:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75404,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:14:03]free response buf [11:14:03]execute_script done [11:14:03]execute_script returns [11:14:03]free content buf [11:14:03]Sock 9.Close socket [11:14:03]Sock 9.Thread stoped [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:22]accept exits with 7 [11:14:22]New connection [11:14:22]New thread 3067465060 created [11:14:22]Thread 3067321700 joined [11:14:22]Waiting for new connection... [11:14:22] Sock 7.Parse request [11:14:22]Sock 7.Check first char [11:14:22]Sock 7.First char is OK [11:14:22]request: POST /json_proto HTTP/1.0 [11:14:22]Method: POST [11:14:22]URL: /json_proto [11:14:22]Method is POST - this is cgi request [11:14:22]url: /json_proto [11:14:22]query_string will be loaded in cgi processing [11:14:22]execute_cgi json_proto POST (null) [11:14:22]execute_cgi path=json_proto method=POST [11:14:22]POST find Content-Length [11:14:22]Host: 172.17.44.196:8080 [11:14:22]Content-Length: 764 [11:14:22]Content-Type: application/json [11:14:22] [11:14:22]POST finish read [11:14:22]Found Content-Length = 764 [11:14:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:22]execute_script... [11:14: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)1965373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:22]POST & json_proto [11:14:22]process_json_proto [11:14:22]json parsed OK: [11:14:22]protocol is kg_v1.0 [11:14:22]action value=close_receipt [11:14:22]process_action close_receipt [11:14:22]cmd_close_receipt [11:14:22]MH_GetDate [11:14:22]Write to MH i2c: F0 00 00 0A A7 A0 [11:14:22]Write i2c OK [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: F0 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: F0 09 00 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: F0 09 00 0A A7 00 96 DA 18 67 E7 19 F8 65 F5 [11:14:22]GetLastDocTimeStamp 1729682046 [11:14:22]current date 1729682070 [11:14:22]FM_GetShiftState [11:14:22]SAM_PROTO_GetShiftState [11:14:22]wFMCommunicate request_size=4 [11:14:22]MH_SAM_APDU [11:14:22]CAPDU: 80 13 01 00 [11:14:22]Write to MH i2c: E2 08 00 0B A7 80 13 01 00 00 00 00 00 2F [11:14:22]Write i2c OK [11:14:22]MH_I2C_Read... [11:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:22]Read from MH i2c: E2 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: E2 0E 00 [11:14:22]MH_I2C_Read... [11:14:22]Read from MH i2c: E2 0E 00 0B A7 00 09 00 01 99 41 18 67 00 00 00 00 90 00 94 [11:14:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:14:22]wFMCommunicate OK [11:14:22]SAM_PROTO_GetShiftState done [11:14:22]FM_GetShiftState done [11:14:22]opened in 1729642905 [11:14:22]opened+sec_in_day 1729729305 [11:14:22]quantity*price = 100011 [11:14:22]sum+1 = 100013 [11:14:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 138 23.10.2024 11:14 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75405 ФПД: 252582503060230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111430&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75405&fm=252582503060230&tin=02508201610067®Number=0000000000161154&sum=100012 [11:14:24]StoreToDocumentArchive [11:14:24]shift 173 fd 75405 [11:14:24]save to /storage/0173/doc_00075405 [11:14:24]save last doc name /storage/0173/doc_00075405 to /storage/kkm_last_doc_name [11:14:24]save OK [11:14:24]Clear old archive folders... [11:14:24]ProcessDocumentItem done err = 0, tmpTLVsize=245 [11:14:24]tlvbuf is 00D325F0 [11:14:24]SAM_PROTO_ClearQueue [11:14:24]wFMCommunicate request_size=4 [11:14:24]MH_SAM_APDU [11:14:24]CAPDU: 80 09 00 00 [11:14:24]Write to MH i2c: E2 08 00 18 A7 80 09 00 00 00 00 00 00 31 [11:14:24]Write i2c OK [11:14:24]MH_I2C_Read... [11:14:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:24]Read from MH i2c: E2 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: E2 03 00 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: E2 03 00 18 A7 00 90 00 33 [11:14:24]RAPDU: 90 00 [11:14:24]wFMCommunicate OK [11:14:24]SAM_PROTO_ClearQueue done [11:14:24]KKMCreateOFDPacket [11:14:24]OFDProtocolAddRootSTLVToBuf [11:14:24]FM_MakeSignedData [11:14:24]FM_MakeSignedData [11:14:24]SAM_PROTO_SignData [11:14:24]wFMCommunicate request_size=4 [11:14:24]MH_SAM_APDU [11:14:24]CAPDU: 80 0D 01 02 [11:14:24]Write to MH i2c: E2 08 00 19 A7 80 0D 01 02 00 00 00 00 39 [11:14:24]Write i2c OK [11:14:24]MH_I2C_Read... [11:14:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:24]Read from MH i2c: E2 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: E2 03 00 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: E2 03 00 19 A7 00 90 00 34 [11:14:24]RAPDU: 90 00 [11:14:24]wFMCommunicate OK [11:14:24]wFMCommunicate request_size=254 [11:14:24]MH_SAM_APDU [11:14:24]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 96 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8D 26 01 00 35 04 06 00 E5 B8 F2 5F 13 06 [11:14:24]Write to MH i2c: E2 01 01 1A A7 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 96 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8D 26 01 00 35 04 06 00 E5 B8 F2 5F 13 06 00 00 87 [11:14:24]Write i2c OK [11:14:24]MH_I2C_Read... [11:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:24]Read from MH i2c: E2 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: E2 03 00 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: E2 03 00 1A A7 00 90 00 35 [11:14:24]RAPDU: 90 00 [11:14:24]wFMCommunicate OK [11:14:24]wFMCommunicate request_size=4 [11:14:24]MH_SAM_APDU [11:14:24]CAPDU: 80 0D 03 02 [11:14:24]Write to MH i2c: E2 08 00 1B A7 80 0D 03 02 00 00 00 00 3D [11:14:24]Write i2c OK [11:14:24]MH_I2C_Read... [11:14:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:24]Read from MH i2c: E2 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: E2 0B 00 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: E2 0B 00 1B A7 00 B5 9B FD 97 85 27 1C D4 90 00 BE [11:14:24]RAPDU: B5 9B FD 97 85 27 1C D4 90 00 [11:14:24]wFMCommunicate OK [11:14:24]SAM_PROTO_SignData done [11:14:24]FM_MakeSignedData done [11:14:24]CreateOFDProtocolMessage [11:14:24]wFMCommunicate request_size=4 [11:14:24]MH_SAM_APDU [11:14:24]CAPDU: 80 11 00 00 [11:14:24]Write to MH i2c: E2 08 00 1C A7 80 11 00 00 00 00 00 00 3D [11:14:24]Write i2c OK [11:14:24]MH_I2C_Read... [11:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:24]Read from MH i2c: E2 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: E2 17 00 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: E2 17 00 1C A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [11:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:14:24]wFMCommunicate OK [11:14:24]CreateOFDProtocolMessage done [11:14:24]OFDSenderStorePacket 75405 [11:14:24]StoreOFDPacket docnum=75405 [11:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 0A F4 01 01 17 50 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 96 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8D 26 01 00 35 04 06 00 E5 B8 F2 5F 13 06 B5 9B FD 97 85 27 1C D4 [11:14:24]CheckFolder [11:14:24]dirname=/storage/ofd_packets [11:14:24]CheckFolder done [11:14:24]ProducePacketName [11:14:24]name=ofd_packets/00075405 [11:14:24]NVStorageSaveData ofd_packets/00075405 [11:14:24]File name is /storage/ofd_packets/00075405 [11:14:24]Write 295 bytes [11:14:24]NVStorageSaveData done [11:14:24]OFDSenderStorePacket done [11:14:24]KKMCreateOFDPacket done [11:14:24]NVStorageSaveData kkm_last_timestamp [11:14:24]File name is /storage/kkm_last_timestamp [11:14:24]Write 4 bytes [11:14:24]NVStorageSaveData done [11:14:24]ExternCall_PrintAddStr [11:14:24]wPrintStart [11:14:24]Write to MH i2c: 01 00 00 1D A7 C4 [11:14:24]Write i2c OK [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: 01 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: 01 07 00 [11:14:24]MH_I2C_Read... [11:14:24]Read from MH i2c: 01 07 00 1D A7 00 00 00 00 00 FF 0F D9 [11:14:24]RasterBufferAndPrint [11:14:24]line Счет N : (1)1965373 [11:14:24]line ИНН: 02508201610067 [11:14:24]line Контрольно-Кассовый Чек [11:14:24]line ПРОДАЖА [11:14:24]line ТРК (МРК, ГНК) : 71 [11:14:24]line Товар: 2711129700 [11:14:24]line ГАЗ [11:14:24]line 25.710 * 38.90 [11:14:24]line = 1000.12 [11:14:24]line НДС 12% НСП 1% [11:14:24]line > о реализуемом товаре [11:14:24]line ИТОГО: 1000.12 [11:14:24]line НСП 1% : 8.85 [11:14:24]line НДС 12% : 106.21 [11:14:24]line Наличными: 0.00 [11:14:24]line Безнал.: 1000.12 [11:14:24]line Место: АЗС № 133 "Партнер Нефть" [11:14:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:14:24]line СНО: Общий режим [11:14:24]line Чек 138 23.10.2024 11:14 [11:14:24]line Смена: 173 ФФД: 1.0 [11:14:24]line ЗНМ: 0300000020 [11:14:24]line РНМ: 0000000000161154 [11:14:24]line Версия ККМ: v1.0 [11:14:24]line Платежная система: Mbank [11:14:24]line ФМ: 0000000000963323 [11:14:24]line ФД: 75405 [11:14:24]line ФПД: 252582503060230 [11:14:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111430&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75405&fm=252582503060230&tin=02508201610067®Number=0000000000161154&sum=100012 [11:14:24]OFD Sender: Processing packet 75405 [packets to send 15, broken 14] [11:14:24]ProducePacketName [11:14:24]name=ofd_packets/00075405 [11:14:24]OFD Sender: To server: pG, [11:14:24]CommunicateWithHost lk.salyk.kg:30040 [11:14:24]ConnectInit lk.salyk.kg [11:14:24]written 0, free lines is 4095 [11:14:24]Connected sock=10 [11:14:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 0A F4 01 01 17 50 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 96 DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8D 26 01 00 35 04 06 00 E5 B8 F2 5F 13 06 B5 9B FD 97 85 27 1C D4 [11:14:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 25 E8 47 00 AD 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 39 36 33 33 32 33 10 04 04 00 8D 26 01 00 F4 03 04 00 71 83 18 67 B6 04 01 00 00 28 7A 52 37 F4 1E E0 B5 [11:14:25]CommunicateWithHost err = 0 [11:14:25]CheckOFDResponse [11:14:25]1017 (14) - 77093643461234 [11:14:25]1041 (16) - 0000000000963323 [11:14:25]1040 (4) - 75405 [11:14:25]1012 (4) - 23.10.2024 05:02 [11:14:25]1206 (1) - 0 [11:14:25]OFD Sender: Remove packet 75405 [11:14:25]ProducePacketName [11:14:25]name=ofd_packets/00075405 [11:14:25]NVStorageDeleteData [11:14:25]Write to MH i2c: 01 00 00 45 A7 EC [11:14:25]Write i2c OK [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: 01 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: 01 07 00 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: 01 07 00 45 A7 00 00 00 00 00 DC 0C DB [11:14:25]RasterBufferAndPrint [11:14:25]line [11:14:25]line [11:14:25]line [11:14:25]line [11:14:25]line [11:14:25]written 0, free lines is 3296 [11:14:25]MH_Cut [11:14:25]Write to MH i2c: D1 01 00 4C A7 01 C5 [11:14:25]Write i2c OK [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: D1 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: D1 01 00 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: D1 01 00 4C A7 00 C4 [11:14:25]Write to MH i2c: 01 00 00 4D A7 F4 [11:14:25]Write i2c OK [11:14:25]MH_I2C_Read... [11:14:25]OFD Sender: No OFD packet to send [11:14:26]*** Cut start [11:14:26]*** Partial cut [11:14:26]*** CUTSNS_PIN = 1 [11:14:26]*** CUTSNS_PIN = 0 [11:14:26]*** Brake cut motor [11:14:26]Read from MH i2c: 01 [11:14:26]MH_I2C_Read... [11:14:26]*** Stop cut motor [11:14:26]*** Cut end [11:14:26]Read from MH i2c: 01 07 00 [11:14:26]MH_I2C_Read... [11:14:26]Read from MH i2c: 01 07 00 4D A7 00 00 00 00 00 FF 0F 09 [11:14:26]process_action close_receipt done [11:14:26]requested_data is exist [11:14:26]produce_requested_data [11:14:26]requested_item fm.sn is exist - process it [11:14:26]wFMCommunicate request_size=4 [11:14:26]MH_SAM_APDU [11:14:26]CAPDU: 80 11 00 00 [11:14:26]Write to MH i2c: E2 08 00 4E A7 80 11 00 00 00 00 00 00 6F [11:14:26]Write i2c OK [11:14:26]MH_I2C_Read... [11:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:26]Read from MH i2c: E2 [11:14:26]MH_I2C_Read... [11:14:26]Read from MH i2c: E2 17 00 [11:14:26]MH_I2C_Read... [11:14:26]Read from MH i2c: E2 17 00 4E A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BC [11:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:14:26]wFMCommunicate OK [11:14:26]requested_item fd.num is exist - process it [11:14:26]SAM_PROTO_GetFieldsCounters [11:14:26]wFMCommunicate request_size=4 [11:14:26]MH_SAM_APDU [11:14:26]CAPDU: 80 13 00 00 [11:14:26]Write to MH i2c: E2 08 00 4F A7 80 13 00 00 00 00 00 00 72 [11:14:26]Write i2c OK [11:14:26]MH_I2C_Read... [11:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:26]Read from MH i2c: E2 [11:14:26]MH_I2C_Read... [11:14:26]Read from MH i2c: E2 62 00 [11:14:26]MH_I2C_Read... [11:14:26]Read from MH i2c: E2 62 00 4F A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8D 26 01 00 0E 04 04 00 AD 00 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 85 [11:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8D 26 01 00 0E 04 04 00 AD 00 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 [11:14:26]wFMCommunicate OK [11:14:26]SAM_PROTO_GetFieldsCounters done [11:14:26]requested_item shift.num is exist - process it [11:14:26]requested_item shift.opened is exist - process it [11:14:26]req_shift_opened [11:14:26]FM_GetShiftState [11:14:26]SAM_PROTO_GetShiftState [11:14:26]wFMCommunicate request_size=4 [11:14:26]MH_SAM_APDU [11:14:26]CAPDU: 80 13 01 00 [11:14:26]Write to MH i2c: E2 08 00 50 A7 80 13 01 00 00 00 00 00 74 [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:27]Read from MH i2c: E2 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: E2 0E 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: E2 0E 00 50 A7 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D9 [11:14:27]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:14:27]wFMCommunicate OK [11:14:27]SAM_PROTO_GetShiftState done [11:14:27]FM_GetShiftState done [11:14:27]req_shift_opened done [11:14:27]requested_item shift.open_date is exist - process it [11:14:27]req_shift_open_date [11:14:27]req_shift_open_date done [11:14:27]produce_requested_data done [11:14:27]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75405,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:14:27]process_action_free close_receipt [11:14:27]json_value_free [11:14:27]json_value_free done [11:14:27]process_json_proto returns [11:14:27]Send response to host [11:14:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75405,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:14:27]free response buf [11:14:27]execute_script done [11:14:27]execute_script returns [11:14:27]free content buf [11:14:27]Sock 7.Close socket [11:14:27]Sock 7.Thread stoped [11:14:28]accept exits with 9 [11:14:28]New connection [11:14:28]New thread 3067321700 created [11:14:28]Thread 3067465060 joined [11:14:28]Waiting for new connection... [11:14:28] Sock 9.Parse request [11:14:28]Sock 9.Check first char [11:14:28]Sock 9.First char is OK [11:14:28]request: POST /json_proto HTTP/1.0 [11:14:28]Method: POST [11:14:28]URL: /json_proto [11:14:28]Method is POST - this is cgi request [11:14:28]url: /json_proto [11:14:28]query_string will be loaded in cgi processing [11:14:28]execute_cgi json_proto POST (null) [11:14:28]execute_cgi path=json_proto method=POST [11:14:28]POST find Content-Length [11:14:28]Host: 172.17.44.196:8080 [11:14:28]Content-Length: 664 [11:14:28]Content-Type: application/json [11:14:28] [11:14:28]POST finish read [11:14:28]Found Content-Length = 664 [11:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [11:14:28]execute_script... [11:14: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)1965377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [11:14:28]POST & json_proto [11:14:28]process_json_proto [11:14:28]json parsed OK: [11:14:28]protocol is kg_v1.0 [11:14:28]action value=close_receipt [11:14:28]process_action close_receipt [11:14:28]cmd_close_receipt [11:14:28]MH_GetDate [11:14:28]Write to MH i2c: F0 00 00 51 A7 E7 [11:14:28]Write i2c OK [11:14:28]MH_I2C_Read... [11:14:28]Read from MH i2c: F0 [11:14:28]MH_I2C_Read... [11:14:28]Read from MH i2c: F0 09 00 [11:14:28]MH_I2C_Read... [11:14:28]Read from MH i2c: F0 09 00 51 A7 00 9B DA 18 67 E7 19 F8 65 41 [11:14:28]GetLastDocTimeStamp 1729682070 [11:14:28]current date 1729682075 [11:14:28]FM_GetShiftState [11:14:28]SAM_PROTO_GetShiftState [11:14:28]wFMCommunicate request_size=4 [11:14:28]MH_SAM_APDU [11:14:28]CAPDU: 80 13 01 00 [11:14:28]Write to MH i2c: E2 08 00 52 A7 80 13 01 00 00 00 00 00 76 [11:14:28]Write i2c OK [11:14:28]MH_I2C_Read... [11:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:28]Read from MH i2c: E2 [11:14:28]MH_I2C_Read... [11:14:28]Read from MH i2c: E2 0E 00 [11:14:28]MH_I2C_Read... [11:14:28]Read from MH i2c: E2 0E 00 52 A7 00 09 00 01 99 41 18 67 00 00 00 00 90 00 DB [11:14:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:14:28]wFMCommunicate OK [11:14:28]SAM_PROTO_GetShiftState done [11:14:28]FM_GetShiftState done [11:14:28]opened in 1729642905 [11:14:28]opened+sec_in_day 1729729305 [11:14:28]quantity*price = 200001 [11:14:28]sum+1 = 200003 [11:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 139 23.10.2024 11:14 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75406 ФПД: 158819804122482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111435&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75406&fm=158819804122482&tin=02508201610067®Number=0000000000161154&sum=200000 [11:14:29]StoreToDocumentArchive [11:14:29]shift 173 fd 75406 [11:14:29]save to /storage/0173/doc_00075406 [11:14:29]save last doc name /storage/0173/doc_00075406 to /storage/kkm_last_doc_name [11:14:29]save OK [11:14:29]Clear old archive folders... [11:14:29]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:14:29]tlvbuf is 00CB8D00 [11:14:29]SAM_PROTO_ClearQueue [11:14:29]wFMCommunicate request_size=4 [11:14:29]MH_SAM_APDU [11:14:29]CAPDU: 80 09 00 00 [11:14:29]Write to MH i2c: E2 08 00 5F A7 80 09 00 00 00 00 00 00 78 [11:14:29]Write i2c OK [11:14:29]MH_I2C_Read... [11:14:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:29]Read from MH i2c: E2 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 03 00 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 03 00 5F A7 00 90 00 7A [11:14:29]RAPDU: 90 00 [11:14:29]wFMCommunicate OK [11:14:29]SAM_PROTO_ClearQueue done [11:14:29]KKMCreateOFDPacket [11:14:29]OFDProtocolAddRootSTLVToBuf [11:14:29]FM_MakeSignedData [11:14:29]FM_MakeSignedData [11:14:29]SAM_PROTO_SignData [11:14:29]wFMCommunicate request_size=4 [11:14:29]MH_SAM_APDU [11:14:29]CAPDU: 80 0D 01 02 [11:14:29]Write to MH i2c: E2 08 00 60 A7 80 0D 01 02 00 00 00 00 80 [11:14:29]Write i2c OK [11:14:29]MH_I2C_Read... [11:14:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:29]Read from MH i2c: E2 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 03 00 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 03 00 60 A7 00 90 00 7B [11:14:29]RAPDU: 90 00 [11:14:29]wFMCommunicate OK [11:14:29]wFMCommunicate request_size=253 [11:14:29]MH_SAM_APDU [11:14:29]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 8B 00 00 00 F4 03 04 00 9B DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8E 26 01 00 35 04 06 00 90 72 1E 02 0D 72 [11:14:29]Write to MH i2c: E2 00 01 61 A7 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 8B 00 00 00 F4 03 04 00 9B DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8E 26 01 00 35 04 06 00 90 72 1E 02 0D 72 00 00 54 [11:14:29]Write i2c OK [11:14:29]MH_I2C_Read... [11:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:30]Read from MH i2c: E2 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: E2 03 00 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: E2 03 00 61 A7 00 90 00 7C [11:14:30]RAPDU: 90 00 [11:14:30]wFMCommunicate OK [11:14:30]wFMCommunicate request_size=4 [11:14:30]MH_SAM_APDU [11:14:30]CAPDU: 80 0D 03 02 [11:14:30]Write to MH i2c: E2 08 00 62 A7 80 0D 03 02 00 00 00 00 84 [11:14:30]Write i2c OK [11:14:30]MH_I2C_Read... [11:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:30]Read from MH i2c: E2 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: E2 0B 00 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: E2 0B 00 62 A7 00 7E AC 5B BC 48 00 92 9B 90 00 3B [11:14:30]RAPDU: 7E AC 5B BC 48 00 92 9B 90 00 [11:14:30]wFMCommunicate OK [11:14:30]SAM_PROTO_SignData done [11:14:30]FM_MakeSignedData done [11:14:30]CreateOFDProtocolMessage [11:14:30]wFMCommunicate request_size=4 [11:14:30]MH_SAM_APDU [11:14:30]CAPDU: 80 11 00 00 [11:14:30]Write to MH i2c: E2 08 00 63 A7 80 11 00 00 00 00 00 00 84 [11:14:30]Write i2c OK [11:14:30]MH_I2C_Read... [11:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:30]Read from MH i2c: E2 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: E2 17 00 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: E2 17 00 63 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D1 [11:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:14:30]wFMCommunicate OK [11:14:30]CreateOFDProtocolMessage done [11:14:30]OFDSenderStorePacket 75406 [11:14:30]StoreOFDPacket docnum=75406 [11:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 41 9C 00 01 3F 87 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 8B 00 00 00 F4 03 04 00 9B DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8E 26 01 00 35 04 06 00 90 72 1E 02 0D 72 7E AC 5B BC 48 00 92 9B [11:14:30]CheckFolder [11:14:30]dirname=/storage/ofd_packets [11:14:30]CheckFolder done [11:14:30]ProducePacketName [11:14:30]name=ofd_packets/00075406 [11:14:30]NVStorageSaveData ofd_packets/00075406 [11:14:30]File name is /storage/ofd_packets/00075406 [11:14:30]Write 294 bytes [11:14:30]NVStorageSaveData done [11:14:30]OFDSenderStorePacket done [11:14:30]KKMCreateOFDPacket done [11:14:30]NVStorageSaveData kkm_last_timestamp [11:14:30]File name is /storage/kkm_last_timestamp [11:14:30]Write 4 bytes [11:14:30]NVStorageSaveData done [11:14:30]ExternCall_PrintAddStr [11:14:30]wPrintStart [11:14:30]Write to MH i2c: 01 00 00 64 A7 0B [11:14:30]Write i2c OK [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: 01 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: 01 07 00 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: 01 07 00 64 A7 00 00 00 00 00 FF 0F 20 [11:14:30]RasterBufferAndPrint [11:14:30]line Счет N : (1)1965377 [11:14:30]line ИНН: 02508201610067 [11:14:30]line Контрольно-Кассовый Чек [11:14:30]line ПРОДАЖА [11:14:30]line ТРК (МРК, ГНК) : 62 [11:14:30]line Товар: 2710124130 [11:14:30]line SU-92 [11:14:30]line 29.240 * 68.40 [11:14:30]line = 2000.02 [11:14:30]line НДС 12% НСП 1% [11:14:30]line > о реализуемом товаре [11:14:30]line ОКРУГЛЕНИЕ: -0.02 [11:14:30]line ИТОГО: 2000.00 [11:14:30]line Внесено: 2000.00 [11:14:30]line СДАЧА: 0.00 [11:14:30]line НСП 1% : 17.70 [11:14:30]line НДС 12% : 212.39 [11:14:30]line Наличными: 2000.00 [11:14:30]line Безнал.: 0.00 [11:14:30]line Место: АЗС № 133 "Партнер Нефть" [11:14:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:14:30]line СНО: Общий режим [11:14:30]line Чек 139 23.10.2024 11:14 [11:14:30]line Смена: 173 ФФД: 1.0 [11:14:30]line ЗНМ: 0300000020 [11:14:30]line РНМ: 0000000000161154 [11:14:30]line Версия ККМ: v1.0 [11:14:30]line ФМ: 0000000000963323 [11:14:30]line ФД: 75406 [11:14:30]line ФПД: 158819804122482 [11:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111435&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75406&fm=158819804122482&tin=02508201610067®Number=0000000000161154&sum=200000 [11:14:30]written 0, free lines is 4095 [11:14:30]OFD Sender: Processing packet 75406 [packets to send 15, broken 14] [11:14:30]ProducePacketName [11:14:30]name=ofd_packets/00075406 [11:14:30]OFD Sender: To server: pG, [11:14:30]CommunicateWithHost lk.salyk.kg:30040 [11:14:30]ConnectInit lk.salyk.kg [11:14:30]Connected sock=10 [11:14:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 41 9C 00 01 3F 87 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 8B 00 00 00 F4 03 04 00 9B DA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8E 26 01 00 35 04 06 00 90 72 1E 02 0D 72 7E AC 5B BC 48 00 92 9B [11:14:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F1 8E 47 00 9E 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 39 36 33 33 32 33 10 04 04 00 8E 26 01 00 F4 03 04 00 76 83 18 67 B6 04 01 00 00 0F CF 4A 86 8B 1D 58 1B [11:14:30]CommunicateWithHost err = 0 [11:14:30]CheckOFDResponse [11:14:30]1017 (14) - 77093643461234 [11:14:30]1041 (16) - 0000000000963323 [11:14:30]1040 (4) - 75406 [11:14:30]1012 (4) - 23.10.2024 05:02 [11:14:30]1206 (1) - 0 [11:14:30]OFD Sender: Remove packet 75406 [11:14:30]ProducePacketName [11:14:30]name=ofd_packets/00075406 [11:14:30]NVStorageDeleteData [11:14:30]Write to MH i2c: 01 00 00 8E A7 35 [11:14:30]Write i2c OK [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: 01 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: 01 07 00 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: 01 07 00 8E A7 00 00 00 00 00 C1 0C 09 [11:14:30]RasterBufferAndPrint [11:14:30]line [11:14:30]line [11:14:30]line [11:14:30]line [11:14:30]line [11:14:30]written 0, free lines is 3272 [11:14:30]MH_Cut [11:14:30]Write to MH i2c: D1 01 00 95 A7 01 0E [11:14:30]Write i2c OK [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: D1 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: D1 01 00 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: D1 01 00 95 A7 00 0D [11:14:30]Write to MH i2c: 01 00 00 96 A7 3D [11:14:30]Write i2c OK [11:14:30]MH_I2C_Read... [11:14:31]OFD Sender: No OFD packet to send [11:14:31]*** Cut start [11:14:31]*** Partial cut [11:14:31]*** CUTSNS_PIN = 1 [11:14:31]*** CUTSNS_PIN = 0 [11:14:31]*** Brake cut motor [11:14:32]Read from MH i2c: 01 [11:14:32]MH_I2C_Read... [11:14:32]*** Stop cut motor [11:14:32]*** Cut end [11:14:32]Read from MH i2c: 01 07 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 07 00 96 A7 00 00 00 00 00 FF 0F 52 [11:14:32]process_action close_receipt done [11:14:32]requested_data is exist [11:14:32]produce_requested_data [11:14:32]requested_item fm.sn is exist - process it [11:14:32]wFMCommunicate request_size=4 [11:14:32]MH_SAM_APDU [11:14:32]CAPDU: 80 11 00 00 [11:14:32]Write to MH i2c: E2 08 00 97 A7 80 11 00 00 00 00 00 00 B8 [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:32]Read from MH i2c: E2 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 17 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 17 00 97 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 05 [11:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:14:32]wFMCommunicate OK [11:14:32]requested_item fd.num is exist - process it [11:14:32]SAM_PROTO_GetFieldsCounters [11:14:32]wFMCommunicate request_size=4 [11:14:32]MH_SAM_APDU [11:14:32]CAPDU: 80 13 00 00 [11:14:32]Write to MH i2c: E2 08 00 98 A7 80 13 00 00 00 00 00 00 BB [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:32]Read from MH i2c: E2 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 62 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 62 00 98 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8E 26 01 00 0E 04 04 00 AD 00 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 D2 [11:14:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8E 26 01 00 0E 04 04 00 AD 00 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 [11:14:32]wFMCommunicate OK [11:14:32]SAM_PROTO_GetFieldsCounters done [11:14:32]requested_item shift.num is exist - process it [11:14:32]requested_item shift.opened is exist - process it [11:14:32]req_shift_opened [11:14:32]FM_GetShiftState [11:14:32]SAM_PROTO_GetShiftState [11:14:32]wFMCommunicate request_size=4 [11:14:32]MH_SAM_APDU [11:14:32]CAPDU: 80 13 01 00 [11:14:32]Write to MH i2c: E2 08 00 99 A7 80 13 01 00 00 00 00 00 BD [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:32]Read from MH i2c: E2 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 0E 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: E2 0E 00 99 A7 00 09 00 01 99 41 18 67 00 00 00 00 90 00 22 [11:14:32]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:14:32]wFMCommunicate OK [11:14:32]SAM_PROTO_GetShiftState done [11:14:32]FM_GetShiftState done [11:14:32]req_shift_opened done [11:14:32]requested_item shift.open_date is exist - process it [11:14:32]req_shift_open_date [11:14:32]req_shift_open_date done [11:14:32]produce_requested_data done [11:14:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75406,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:14:32]process_action_free close_receipt [11:14:32]json_value_free [11:14:32]json_value_free done [11:14:32]process_json_proto returns [11:14:32]Send response to host [11:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75406,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:14:32]free response buf [11:14:32]execute_script done [11:14:32]execute_script returns [11:14:32]free content buf [11:14:32]Sock 9.Close socket [11:14:32]Sock 9.Thread stoped [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:18]accept exits with 7 [11:16:18]New connection [11:16:18]New thread 3067465060 created [11:16:18]Thread 3067321700 joined [11:16:18]Waiting for new connection... [11:16:18] Sock 7.Parse request [11:16:18]Sock 7.Check first char [11:16:18]Sock 7.First char is OK [11:16:18]request: POST /json_proto HTTP/1.0 [11:16:18]Method: POST [11:16:18]URL: /json_proto [11:16:18]Method is POST - this is cgi request [11:16:18]url: /json_proto [11:16:18]query_string will be loaded in cgi processing [11:16:18]execute_cgi json_proto POST (null) [11:16:18]execute_cgi path=json_proto method=POST [11:16:18]POST find Content-Length [11:16:18]Host: 172.17.44.196:8080 [11:16:18]Content-Length: 678 [11:16:18]Content-Type: application/json [11:16:18] [11:16:18]POST finish read [11:16:18]Found Content-Length = 678 [11:16:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:18]execute_script... [11:16: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)1965378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:18]POST & json_proto [11:16:18]process_json_proto [11:16:18]json parsed OK: [11:16:18]protocol is kg_v1.0 [11:16:18]action value=close_receipt [11:16:18]process_action close_receipt [11:16:18]cmd_close_receipt [11:16:18]MH_GetDate [11:16:18]Write to MH i2c: F0 00 00 9A A7 30 [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: F0 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: F0 09 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: F0 09 00 9A A7 00 09 DB 18 67 E7 19 F8 65 F9 [11:16:18]GetLastDocTimeStamp 1729682075 [11:16:18]current date 1729682185 [11:16:18]FM_GetShiftState [11:16:18]SAM_PROTO_GetShiftState [11:16:18]wFMCommunicate request_size=4 [11:16:18]MH_SAM_APDU [11:16:18]CAPDU: 80 13 01 00 [11:16:18]Write to MH i2c: E2 08 00 9B A7 80 13 01 00 00 00 00 00 BF [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:18]Read from MH i2c: E2 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 0E 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 0E 00 9B A7 00 09 00 01 99 41 18 67 00 00 00 00 90 00 24 [11:16:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:16:18]wFMCommunicate OK [11:16:18]SAM_PROTO_GetShiftState done [11:16:18]FM_GetShiftState done [11:16:18]opened in 1729642905 [11:16:18]opened+sec_in_day 1729729305 [11:16:18]quantity*price = 30038 [11:16:18]sum+1 = 30039 [11:16:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 140 23.10.2024 11:16 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75407 ФПД: 241019192572722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111625&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75407&fm=241019192572722&tin=02508201610067®Number=0000000000161154&sum=30000 [11:16:19]StoreToDocumentArchive [11:16:19]shift 173 fd 75407 [11:16:19]save to /storage/0173/doc_00075407 [11:16:19]save last doc name /storage/0173/doc_00075407 to /storage/kkm_last_doc_name [11:16:19]save OK [11:16:19]Clear old archive folders... [11:16:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:19]tlvbuf is 00D95DE0 [11:16:19]SAM_PROTO_ClearQueue [11:16:19]wFMCommunicate request_size=4 [11:16:19]MH_SAM_APDU [11:16:19]CAPDU: 80 09 00 00 [11:16:19]Write to MH i2c: E2 08 00 A8 A7 80 09 00 00 00 00 00 00 C1 [11:16:19]Write i2c OK [11:16:19]MH_I2C_Read... [11:16:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:19]Read from MH i2c: E2 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: E2 03 00 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: E2 03 00 A8 A7 00 90 00 C3 [11:16:19]RAPDU: 90 00 [11:16:19]wFMCommunicate OK [11:16:19]SAM_PROTO_ClearQueue done [11:16:19]KKMCreateOFDPacket [11:16:19]OFDProtocolAddRootSTLVToBuf [11:16:19]FM_MakeSignedData [11:16:19]FM_MakeSignedData [11:16:19]SAM_PROTO_SignData [11:16:19]wFMCommunicate request_size=4 [11:16:19]MH_SAM_APDU [11:16:19]CAPDU: 80 0D 01 02 [11:16:19]Write to MH i2c: E2 08 00 A9 A7 80 0D 01 02 00 00 00 00 C9 [11:16:19]Write i2c OK [11:16:19]MH_I2C_Read... [11:16:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:19]Read from MH i2c: E2 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: E2 03 00 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: E2 03 00 A9 A7 00 90 00 C4 [11:16:19]RAPDU: 90 00 [11:16:19]wFMCommunicate OK [11:16:19]wFMCommunicate request_size=255 [11:16:19]MH_SAM_APDU [11:16: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 09 DB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8F 26 01 00 35 04 06 00 DB [11:16:19]Write to MH i2c: E2 02 01 AA 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 09 DB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8F 26 01 00 35 04 06 00 DB 00 00 6C [11:16:19]Write i2c OK [11:16:19]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 AA A7 00 90 00 C5 [11:16:20]RAPDU: 90 00 [11:16:20]wFMCommunicate OK [11:16:20]wFMCommunicate request_size=10 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 0D 02 02 05 34 A7 5B 7B 32 [11:16:20]Write to MH i2c: E2 0D 00 AB A7 80 0D 02 02 05 00 34 A7 5B 7B 32 00 00 B9 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 AB A7 00 90 00 C6 [11:16:20]RAPDU: 90 00 [11:16:20]wFMCommunicate OK [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 0D 03 02 [11:16:20]Write to MH i2c: E2 08 00 AC A7 80 0D 03 02 00 00 00 00 CE [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0B 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0B 00 AC A7 00 82 28 0F B9 78 F5 6D C0 90 00 DB [11:16:20]RAPDU: 82 28 0F B9 78 F5 6D C0 90 00 [11:16:20]wFMCommunicate OK [11:16:20]SAM_PROTO_SignData done [11:16:20]FM_MakeSignedData done [11:16:20]CreateOFDProtocolMessage [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 11 00 00 [11:16:20]Write to MH i2c: E2 08 00 AD A7 80 11 00 00 00 00 00 00 CE [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 17 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 17 00 AD A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1B [11:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:16:20]wFMCommunicate OK [11:16:20]CreateOFDProtocolMessage done [11:16:20]OFDSenderStorePacket 75407 [11:16:20]StoreOFDPacket docnum=75407 [11:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 73 11 07 01 7E 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 09 DB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8F 26 01 00 35 04 06 00 DB 34 A7 5B 7B 32 82 28 0F B9 78 F5 6D C0 [11:16:20]CheckFolder [11:16:20]dirname=/storage/ofd_packets [11:16:20]CheckFolder done [11:16:20]ProducePacketName [11:16:20]name=ofd_packets/00075407 [11:16:20]NVStorageSaveData ofd_packets/00075407 [11:16:20]File name is /storage/ofd_packets/00075407 [11:16:20]Write 301 bytes [11:16:20]NVStorageSaveData done [11:16:20]OFDSenderStorePacket done [11:16:20]KKMCreateOFDPacket done [11:16:20]NVStorageSaveData kkm_last_timestamp [11:16:20]File name is /storage/kkm_last_timestamp [11:16:20]Write 4 bytes [11:16:20]NVStorageSaveData done [11:16:20]ExternCall_PrintAddStr [11:16:20]wPrintStart [11:16:20]Write to MH i2c: 01 00 00 AE A7 55 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 AE A7 00 00 00 00 00 FF 0F 6A [11:16:20]RasterBufferAndPrint [11:16:20]line Счет N : (1)1965378 [11:16:20]line ИНН: 02508201610067 [11:16:20]line Контрольно-Кассовый Чек [11:16:20]line ПРОДАЖА [11:16:20]line ТРК (МРК, ГНК) : 33 [11:16:20]line Товар: 2710124130 [11:16:20]line Аи-92-К-5 [11:16:20]line 4.490 * 66.90 [11:16:20]line = 300.38 [11:16:20]line НДС 12% НСП 1% [11:16:20]line > о реализуемом товаре [11:16:20]line ОКРУГЛЕНИЕ: -0.38 [11:16:20]line ИТОГО: 300.00 [11:16:20]line Внесено: 300.00 [11:16:20]line СДАЧА: 0.00 [11:16:20]line НСП 1% : 2.66 [11:16:20]line НДС 12% : 31.90 [11:16:20]line Наличными: 300.00 [11:16:20]line Безнал.: 0.00 [11:16:20]line Место: АЗС № 133 "Партнер Нефть" [11:16:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:16:20]line СНО: Общий режим [11:16:20]line Чек 140 23.10.2024 11:16 [11:16:20]line Смена: 173 ФФД: 1.0 [11:16:20]line ЗНМ: 0300000020 [11:16:20]line РНМ: 0000000000161154 [11:16:20]line Версия ККМ: v1.0 [11:16:20]line ФМ: 0000000000963323 [11:16:20]line ФД: 75407 [11:16:20]line ФПД: 241019192572722 [11:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111625&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75407&fm=241019192572722&tin=02508201610067®Number=0000000000161154&sum=30000 [11:16:20]OFD Sender: Processing packet 75407 [packets to send 15, broken 14] [11:16:20]ProducePacketName [11:16:20]name=ofd_packets/00075407 [11:16:20]OFD Sender: To server: pG, [11:16:20]CommunicateWithHost lk.salyk.kg:30040 [11:16:20]ConnectInit lk.salyk.kg [11:16:20]written 0, free lines is 4095 [11:16:20]Connected sock=10 [11:16:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 73 11 07 01 7E 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 09 DB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 8F 26 01 00 35 04 06 00 DB 34 A7 5B 7B 32 82 28 0F B9 78 F5 6D C0 [11:16:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D2 64 47 00 FD 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 39 36 33 33 32 33 10 04 04 00 8F 26 01 00 F4 03 04 00 E5 83 18 67 B6 04 01 00 00 89 01 CC B1 5C 2E B7 F6 [11:16:20]CommunicateWithHost err = 0 [11:16:20]CheckOFDResponse [11:16:20]1017 (14) - 77093643461234 [11:16:20]1041 (16) - 0000000000963323 [11:16:20]1040 (4) - 75407 [11:16:20]1012 (4) - 23.10.2024 05:04 [11:16:20]1206 (1) - 0 [11:16:20]OFD Sender: Remove packet 75407 [11:16:20]ProducePacketName [11:16:20]name=ofd_packets/00075407 [11:16:20]NVStorageDeleteData [11:16:21]Write to MH i2c: 01 00 00 D8 A7 7F [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: 01 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: 01 07 00 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: 01 07 00 D8 A7 00 00 00 00 00 AB 0C 3D [11:16:21]RasterBufferAndPrint [11:16:21]line [11:16:21]line [11:16:21]line [11:16:21]line [11:16:21]line [11:16:21]written 0, free lines is 3247 [11:16:21]MH_Cut [11:16:21]Write to MH i2c: D1 01 00 DF A7 01 58 [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: D1 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: D1 01 00 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: D1 01 00 DF A7 00 57 [11:16:21]Write to MH i2c: 01 00 00 E0 A7 87 [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:21]OFD Sender: No OFD packet to send [11:16:21]*** Cut start [11:16:21]*** Partial cut [11:16:21]*** CUTSNS_PIN = 1 [11:16:22]*** CUTSNS_PIN = 0 [11:16:22]*** Brake cut motor [11:16:22]Read from MH i2c: 01 [11:16:22]MH_I2C_Read... [11:16:22]*** Stop cut motor [11:16:22]*** Cut end [11:16:22]Read from MH i2c: 01 07 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: 01 07 00 E0 A7 00 00 00 00 00 FF 0F 9C [11:16:22]process_action close_receipt done [11:16:22]requested_data is exist [11:16:22]produce_requested_data [11:16:22]requested_item fm.sn is exist - process it [11:16:22]wFMCommunicate request_size=4 [11:16:22]MH_SAM_APDU [11:16:22]CAPDU: 80 11 00 00 [11:16:22]Write to MH i2c: E2 08 00 E1 A7 80 11 00 00 00 00 00 00 02 [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:22]Read from MH i2c: E2 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 17 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 17 00 E1 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4F [11:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:16:22]wFMCommunicate OK [11:16:22]requested_item fd.num is exist - process it [11:16:22]SAM_PROTO_GetFieldsCounters [11:16:22]wFMCommunicate request_size=4 [11:16:22]MH_SAM_APDU [11:16:22]CAPDU: 80 13 00 00 [11:16:22]Write to MH i2c: E2 08 00 E2 A7 80 13 00 00 00 00 00 00 05 [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:22]Read from MH i2c: E2 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 62 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 62 00 E2 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8F 26 01 00 0E 04 04 00 AD 00 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 20 [11:16:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 8F 26 01 00 0E 04 04 00 AD 00 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 [11:16:22]wFMCommunicate OK [11:16:22]SAM_PROTO_GetFieldsCounters done [11:16:22]requested_item shift.num is exist - process it [11:16:22]requested_item shift.opened is exist - process it [11:16:22]req_shift_opened [11:16:22]FM_GetShiftState [11:16:22]SAM_PROTO_GetShiftState [11:16:22]wFMCommunicate request_size=4 [11:16:22]MH_SAM_APDU [11:16:22]CAPDU: 80 13 01 00 [11:16:22]Write to MH i2c: E2 08 00 E3 A7 80 13 01 00 00 00 00 00 07 [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:22]Read from MH i2c: E2 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 0E 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 0E 00 E3 A7 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6C [11:16:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:16:22]wFMCommunicate OK [11:16:22]SAM_PROTO_GetShiftState done [11:16:22]FM_GetShiftState done [11:16:22]req_shift_opened done [11:16:22]requested_item shift.open_date is exist - process it [11:16:22]req_shift_open_date [11:16:22]req_shift_open_date done [11:16:22]produce_requested_data done [11:16:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75407,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:16:22]process_action_free close_receipt [11:16:22]json_value_free [11:16:22]json_value_free done [11:16:22]process_json_proto returns [11:16:22]Send response to host [11:16:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75407,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:16:22]free response buf [11:16:22]execute_script done [11:16:22]execute_script returns [11:16:22]free content buf [11:16:22]Sock 7.Close socket [11:16:22]Sock 7.Thread stoped [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:33]accept exits with 9 [11:25:33]New connection [11:25:33]New thread 3067321700 created [11:25:33]Thread 3067465060 joined [11:25:33]Waiting for new connection... [11:25:33] Sock 9.Parse request [11:25:33]Sock 9.Check first char [11:25:33]Sock 9.First char is OK [11:25:33]request: POST /json_proto HTTP/1.0 [11:25:33]Method: POST [11:25:33]URL: /json_proto [11:25:33]Method is POST - this is cgi request [11:25:33]url: /json_proto [11:25:33]query_string will be loaded in cgi processing [11:25:33]execute_cgi json_proto POST (null) [11:25:33]execute_cgi path=json_proto method=POST [11:25:33]POST find Content-Length [11:25:33]Host: 172.17.44.196:8080 [11:25:33]Content-Length: 749 [11:25:33]Content-Type: application/json [11:25:33] [11:25:33]POST finish read [11:25:33]Found Content-Length = 749 [11:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273231", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:33]execute_script... [11:25:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273231", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:33]POST & json_proto [11:25:33]process_json_proto [11:25:33]json parsed OK: [11:25:33]protocol is kg_v1.0 [11:25:33]action value=close_receipt [11:25:33]process_action close_receipt [11:25:33]cmd_close_receipt [11:25:33]MH_GetDate [11:25:33]Write to MH i2c: F0 00 00 E4 A7 7A [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: F0 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: F0 09 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: F0 09 00 E4 A7 00 34 DD 18 67 E7 19 F8 65 70 [11:25:33]GetLastDocTimeStamp 1729682185 [11:25:33]current date 1729682740 [11:25:33]FM_GetShiftState [11:25:33]SAM_PROTO_GetShiftState [11:25:33]wFMCommunicate request_size=4 [11:25:33]MH_SAM_APDU [11:25:33]CAPDU: 80 13 01 00 [11:25:33]Write to MH i2c: E2 08 00 E5 A7 80 13 01 00 00 00 00 00 09 [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:33]Read from MH i2c: E2 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: E2 0E 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: E2 0E 00 E5 A7 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6E [11:25:33]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:25:33]wFMCommunicate OK [11:25:33]SAM_PROTO_GetShiftState done [11:25:33]FM_GetShiftState done [11:25:33]opened in 1729642905 [11:25:33]opened+sec_in_day 1729729305 [11:25:33]quantity*price = 15000 [11:25:33]sum+1 = 15001 [11:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 141 23.10.2024 11:25 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75408 ФПД: 113642813885877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112540&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75408&fm=113642813885877&tin=02508201610067®Number=0000000000161154&sum=15000 0 [11:25:34]StoreToDocumentArchive [11:25:34]shift 173 fd 75408 [11:25:34]save to /storage/0173/doc_00075408 [11:25:34]save last doc name /storage/0173/doc_00075408 to /storage/kkm_last_doc_name [11:25:34]save OK [11:25:34]Clear old archive folders... [11:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:25:34]tlvbuf is 00E9BDE0 [11:25:34]SAM_PROTO_ClearQueue [11:25:34]wFMCommunicate request_size=4 [11:25:34]MH_SAM_APDU [11:25:34]CAPDU: 80 09 00 00 [11:25:34]Write to MH i2c: E2 08 00 F2 A7 80 09 00 00 00 00 00 00 0B [11:25:34]Write i2c OK [11:25:34]MH_I2C_Read... [11:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:34]Read from MH i2c: E2 [11:25:34]MH_I2C_Read... [11:25:34]Read from MH i2c: E2 03 00 [11:25:34]MH_I2C_Read... [11:25:34]Read from MH i2c: E2 03 00 F2 A7 00 90 00 0D [11:25:34]RAPDU: 90 00 [11:25:34]wFMCommunicate OK [11:25:34]SAM_PROTO_ClearQueue done [11:25:34]KKMCreateOFDPacket [11:25:34]OFDProtocolAddRootSTLVToBuf [11:25:34]FM_MakeSignedData [11:25:34]FM_MakeSignedData [11:25:34]SAM_PROTO_SignData [11:25:34]wFMCommunicate request_size=4 [11:25:34]MH_SAM_APDU [11:25:34]CAPDU: 80 0D 01 02 [11:25:34]Write to MH i2c: E2 08 00 F3 A7 80 0D 01 02 00 00 00 00 13 [11:25:34]Write i2c OK [11:25:34]MH_I2C_Read... [11:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:34]Read from MH i2c: E2 [11:25:34]MH_I2C_Read... [11:25:34]Read from MH i2c: E2 03 00 [11:25:34]MH_I2C_Read... [11:25:34]Read from MH i2c: E2 03 00 F3 A7 00 90 00 0E [11:25:34]RAPDU: 90 00 [11:25:34]wFMCommunicate OK [11:25:34]wFMCommunicate request_size=255 [11:25:34]MH_SAM_APDU [11:25:34]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 34 DD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 [11:25:34]Write to MH i2c: E2 02 01 F4 A7 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 34 DD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 00 00 73 [11:25:34]Write i2c OK [11:25:34]MH_I2C_Read... [11:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:34]Read from MH i2c: E2 [11:25:34]MH_I2C_Read... [11:25:34]Read from MH i2c: E2 03 00 [11:25:34]MH_I2C_Read... [11:25:34]Read from MH i2c: E2 03 00 F4 A7 00 90 00 0F [11:25:34]RAPDU: 90 00 [11:25:34]wFMCommunicate OK [11:25:34]wFMCommunicate request_size=33 [11:25:34]MH_SAM_APDU [11:25:34]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 33 33 32 33 10 04 04 00 90 26 01 00 35 04 06 00 67 5B 87 8D 8D B5 [11:25:34]Write to MH i2c: E2 24 00 F5 A7 80 0D 02 02 1C 00 30 30 30 30 39 36 33 33 32 33 10 04 04 00 90 26 01 00 35 04 06 00 67 5B 87 8D 8D B5 00 00 6E [11:25:34]Write i2c OK [11:25:34]MH_I2C_Read... [11:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:34]Read from MH i2c: E2 [11:25:34]MH_I2C_Read... [11:25:34]Read from MH i2c: E2 03 00 [11:25:34]MH_I2C_Read... [11:25:34]Read from MH i2c: E2 03 00 F5 A7 00 90 00 10 [11:25:34]RAPDU: 90 00 [11:25:34]wFMCommunicate OK [11:25:34]wFMCommunicate request_size=4 [11:25:34]MH_SAM_APDU [11:25:34]CAPDU: 80 0D 03 02 [11:25:34]Write to MH i2c: E2 08 00 F6 A7 80 0D 03 02 00 00 00 00 18 [11:25:34]Write i2c OK [11:25:34]MH_I2C_Read... [11:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 0B 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 0B 00 F6 A7 00 B2 AB 9D A4 B5 D1 3B EA 90 00 62 [11:25:35]RAPDU: B2 AB 9D A4 B5 D1 3B EA 90 00 [11:25:35]wFMCommunicate OK [11:25:35]SAM_PROTO_SignData done [11:25:35]FM_MakeSignedData done [11:25:35]CreateOFDProtocolMessage [11:25:35]wFMCommunicate request_size=4 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 11 00 00 [11:25:35]Write to MH i2c: E2 08 00 F7 A7 80 11 00 00 00 00 00 00 18 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 17 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 17 00 F7 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 65 [11:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:25:35]wFMCommunicate OK [11:25:35]CreateOFDProtocolMessage done [11:25:35]OFDSenderStorePacket 75408 [11:25:35]StoreOFDPacket docnum=75408 [11:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 DC AE 1E 01 2B 52 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 34 DD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 90 26 01 00 35 04 06 00 67 5B 87 8D 8D B5 B2 AB 9D A4 B5 D1 3B EA [11:25:35]CheckFolder [11:25:35]dirname=/storage/ofd_packets [11:25:35]CheckFolder done [11:25:35]ProducePacketName [11:25:35]name=ofd_packets/00075408 [11:25:35]NVStorageSaveData ofd_packets/00075408 [11:25:35]File name is /storage/ofd_packets/00075408 [11:25:35]Write 324 bytes [11:25:35]NVStorageSaveData done [11:25:35]OFDSenderStorePacket done [11:25:35]KKMCreateOFDPacket done [11:25:35]NVStorageSaveData kkm_last_timestamp [11:25:35]File name is /storage/kkm_last_timestamp [11:25:35]Write 4 bytes [11:25:35]NVStorageSaveData done [11:25:35]ExternCall_PrintAddStr [11:25:35]wPrintStart [11:25:35]Write to MH i2c: 01 00 00 F8 A7 9F [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: 01 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: 01 07 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: 01 07 00 F8 A7 00 00 00 00 00 FF 0F B4 [11:25:35]RasterBufferAndPrint [11:25:35]line Счет N : (3)273231 [11:25:35]line ИНН: 02508201610067 [11:25:35]line Контрольно-Кассовый Чек [11:25:35]line ПРОДАЖА [11:25:35]line Товар: 4640030091645 [11:25:35]line Сигареты ESSE Exchange M [11:25:35]line 1.000 * 150.00 [11:25:35]line = 150.00 [11:25:35]line НДС 12% НСП 1% [11:25:35]line > о реализуемом товаре [11:25:35]line ИТОГО: 150.00 [11:25:35]line НСП 1% : 1.33 [11:25:35]line НДС 12% : 15.93 [11:25:35]line Наличными: 0.00 [11:25:35]line Безнал.: 150.00 [11:25:35]line Место: АЗС № 133 "Партнер Нефть" [11:25:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:25:35]line СНО: Общий режим [11:25:35]line Чек 141 23.10.2024 11:25 [11:25:35]line Смена: 173 ФФД: 1.0 [11:25:35]line ЗНМ: 0300000020 [11:25:35]line РНМ: 0000000000161154 [11:25:35]line Версия ККМ: v1.0 [11:25:35]line Платежная система: Mbank [11:25:35]line ФМ: 0000000000963323 [11:25:35]line ФД: 75408 [11:25:35]line ФПД: 113642813885877 [11:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112540&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75408&fm=113642813885877&tin=02508201610067®Number=0000000000161154&sum=15000 [11:25:35]line 0 [11:25:35]OFD Sender: Processing packet 75408 [packets to send 15, broken 14] [11:25:35]ProducePacketName [11:25:35]name=ofd_packets/00075408 [11:25:35]OFD Sender: To server: pG, [11:25:35]CommunicateWithHost lk.salyk.kg:30040 [11:25:35]ConnectInit lk.salyk.kg [11:25:35]written 0, free lines is 4095 [11:25:35]Connected sock=10 [11:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 DC AE 1E 01 2B 52 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 34 DD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 90 26 01 00 35 04 06 00 67 5B 87 8D 8D B5 B2 AB 9D A4 B5 D1 3B EA [11:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3B 5C 47 00 49 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 90 26 01 00 F4 03 04 00 0F 86 18 67 B6 04 01 00 00 C6 4B 72 8B 56 09 92 38 [11:25:35]CommunicateWithHost err = 0 [11:25:35]CheckOFDResponse [11:25:35]1017 (14) - 77093643461234 [11:25:35]1041 (16) - 0000000000963323 [11:25:35]1040 (4) - 75408 [11:25:35]1012 (4) - 23.10.2024 05:13 [11:25:35]1206 (1) - 0 [11:25:35]OFD Sender: Remove packet 75408 [11:25:35]ProducePacketName [11:25:35]name=ofd_packets/00075408 [11:25:35]NVStorageDeleteData [11:25:35]Write to MH i2c: 01 00 00 20 A8 C8 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: 01 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: 01 07 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: 01 07 00 20 A8 00 00 00 00 00 CE 0C A9 [11:25:35]RasterBufferAndPrint [11:25:35]line [11:25:35]line [11:25:35]line [11:25:35]line [11:25:35]line [11:25:35]written 0, free lines is 3286 [11:25:35]MH_Cut [11:25:35]Write to MH i2c: D1 01 00 27 A8 01 A1 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: D1 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: D1 01 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: D1 01 00 27 A8 00 A0 [11:25:35]Write to MH i2c: 01 00 00 28 A8 D0 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:36]OFD Sender: No OFD packet to send [11:25:36]*** Cut start [11:25:36]*** Partial cut [11:25:36]*** CUTSNS_PIN = 1 [11:25:36]*** CUTSNS_PIN = 0 [11:25:37]*** Brake cut motor [11:25:37]Read from MH i2c: 01 [11:25:37]MH_I2C_Read... [11:25:37]*** Stop cut motor [11:25:37]*** Cut end [11:25:37]Read from MH i2c: 01 07 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: 01 07 00 28 A8 00 00 00 00 00 FF 0F E5 [11:25:37]process_action close_receipt done [11:25:37]requested_data is exist [11:25:37]produce_requested_data [11:25:37]requested_item fm.sn is exist - process it [11:25:37]wFMCommunicate request_size=4 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 11 00 00 [11:25:37]Write to MH i2c: E2 08 00 29 A8 80 11 00 00 00 00 00 00 4B [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 17 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 17 00 29 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 98 [11:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:25:37]wFMCommunicate OK [11:25:37]requested_item fd.num is exist - process it [11:25:37]SAM_PROTO_GetFieldsCounters [11:25:37]wFMCommunicate request_size=4 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 13 00 00 [11:25:37]Write to MH i2c: E2 08 00 2A A8 80 13 00 00 00 00 00 00 4E [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 62 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 62 00 2A A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 90 26 01 00 0E 04 04 00 AD 00 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 6D [11:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 90 26 01 00 0E 04 04 00 AD 00 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 [11:25:37]wFMCommunicate OK [11:25:37]SAM_PROTO_GetFieldsCounters done [11:25:37]requested_item shift.num is exist - process it [11:25:37]requested_item shift.opened is exist - process it [11:25:37]req_shift_opened [11:25:37]FM_GetShiftState [11:25:37]SAM_PROTO_GetShiftState [11:25:37]wFMCommunicate request_size=4 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 13 01 00 [11:25:37]Write to MH i2c: E2 08 00 2B A8 80 13 01 00 00 00 00 00 50 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0E 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0E 00 2B A8 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B5 [11:25:37]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:25:37]wFMCommunicate OK [11:25:37]SAM_PROTO_GetShiftState done [11:25:37]FM_GetShiftState done [11:25:37]req_shift_opened done [11:25:37]requested_item shift.open_date is exist - process it [11:25:37]req_shift_open_date [11:25:37]req_shift_open_date done [11:25:37]produce_requested_data done [11:25:37]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75408,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:25:37]process_action_free close_receipt [11:25:37]json_value_free [11:25:37]json_value_free done [11:25:37]process_json_proto returns [11:25:37]Send response to host [11:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75408,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:25:37]free response buf [11:25:37]execute_script done [11:25:37]execute_script returns [11:25:37]free content buf [11:25:37]Sock 9.Close socket [11:25:37]Sock 9.Thread stoped [11:25:40]int [11:25:40]Write to MH i2c: 01 00 00 2C A8 D4 [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 2C A8 00 00 00 00 00 FF 0F E9 [11:25:40]state=0 [11:25:40]int line is 0 - check status [11:25:40]Write to MH i2c: 01 00 00 2D A8 D5 [11:25:40]*** FLAG_PRN_PAP1 set [11:25:40]*** FLAG_PRN_PAP1 reset [11:25:40]*** FLAG_PRN_PAP1 set [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 2D A8 00 01 00 00 00 FF 0F EB [11:25:40]state=0 [11:25:40]No paper [11:25:40]int [11:25:40]Write to MH i2c: 01 00 00 2E A8 D6 [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 2E A8 00 01 00 00 00 FF 0F EC [11:25:40]state=0 [11:25:40]No paper [11:25:40]int [11:25:40]Write to MH i2c: 01 00 00 2F A8 D7 [11:25:40]*** FLAG_PRN_PAP2 set [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 2F A8 00 03 00 00 00 FF 0F EF [11:25:40]state=0 [11:25:40]No paper [11:25:40]Cover opened [11:25:41]OFD Sender: No OFD packet to send [11:25:43]int [11:25:43]Write to MH i2c: 01 00 00 30 A8 D8 [11:25:43]*** FLAG_PRN_PAP1 reset [11:25:43]*** FLAG_PRN_PAP2 reset [11:25:43]Write i2c OK [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 07 00 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 07 00 30 A8 00 00 00 00 00 FF 0F ED [11:25:43]state=3 [11:25:43]Cover closed [11:25:43]int [11:25:43]Write to MH i2c: 01 00 00 31 A8 D9 [11:25:43]*** FLAG_PRN_KEY set [11:25:43]Write i2c OK [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 07 00 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 07 00 31 A8 00 08 00 00 00 FF 0F F6 [11:25:43]state=0 [11:25:43]Key pressed [11:25:43]Feed [11:25:43]Write to MH i2c: D8 00 00 32 A8 B1 [11:25:43]Write i2c OK [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: D8 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: D8 01 00 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: D8 01 00 32 A8 00 B2 [11:25:43]int [11:25:43]Write to MH i2c: 01 00 00 33 A8 DB [11:25:43]Write i2c OK [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 07 00 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 07 00 33 A8 00 48 00 00 00 3C 00 66 [11:25:43]state=2 [11:25:43]Key pressed [11:25:44]int [11:25:44]Write to MH i2c: 01 00 00 34 A8 DC [11:25:44]*** FLAG_PRN_KEY reset [11:25:44]Write i2c OK [11:25:44]MH_I2C_Read... [11:25:44]Read from MH i2c: 01 [11:25:44]MH_I2C_Read... [11:25:44]Read from MH i2c: 01 07 00 [11:25:44]MH_I2C_Read... [11:25:44]Read from MH i2c: 01 07 00 34 A8 00 00 00 00 00 FF 0F F1 [11:25:44]state=2 [11:25:44]Stop feed [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]accept exits with 7 [11:40:36]New connection [11:40:36]New thread 3067465060 created [11:40:36]Thread 3067321700 joined [11:40:36]Waiting for new connection... [11:40:36] Sock 7.Parse request [11:40:36]Sock 7.Check first char [11:40:36]Sock 7.First char is OK [11:40:36]request: POST /json_proto HTTP/1.0 [11:40:36]Method: POST [11:40:36]URL: /json_proto [11:40:36]Method is POST - this is cgi request [11:40:36]url: /json_proto [11:40:36]query_string will be loaded in cgi processing [11:40:36]execute_cgi json_proto POST (null) [11:40:36]execute_cgi path=json_proto method=POST [11:40:36]POST find Content-Length [11:40:36]Host: 172.17.44.196:8080 [11:40:36]Content-Length: 1230 [11:40:36]Content-Type: application/json [11:40:36] [11:40:36]POST finish read [11:40:36]Found Content-Length = 1230 [11:40:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273232", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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: Mbank", "payments": [ { "type": 1, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:36]execute_script... [11:40:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273232", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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: Mbank", "payments": [ { "type": 1, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:36]POST & json_proto [11:40:36]process_json_proto [11:40:36]json parsed OK: [11:40:36]protocol is kg_v1.0 [11:40:36]action value=close_receipt [11:40:36]process_action close_receipt [11:40:36]cmd_close_receipt [11:40:36]MH_GetDate [11:40:36]Write to MH i2c: F0 00 00 35 A8 CC [11:40:36]Write i2c OK [11:40:36]MH_I2C_Read... [11:40:36]Read from MH i2c: F0 [11:40:36]MH_I2C_Read... [11:40:36]Read from MH i2c: F0 09 00 [11:40:36]MH_I2C_Read... [11:40:36]Read from MH i2c: F0 09 00 35 A8 00 BC E0 18 67 E7 19 F8 65 4D [11:40:36]GetLastDocTimeStamp 1729682740 [11:40:36]current date 1729683644 [11:40:36]FM_GetShiftState [11:40:36]SAM_PROTO_GetShiftState [11:40:36]wFMCommunicate request_size=4 [11:40:36]MH_SAM_APDU [11:40:36]CAPDU: 80 13 01 00 [11:40:36]Write to MH i2c: E2 08 00 36 A8 80 13 01 00 00 00 00 00 5B [11:40:36]Write i2c OK [11:40:36]MH_I2C_Read... [11:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:36]Read from MH i2c: E2 [11:40:36]MH_I2C_Read... [11:40:36]Read from MH i2c: E2 0E 00 [11:40:36]MH_I2C_Read... [11:40:36]Read from MH i2c: E2 0E 00 36 A8 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C0 [11:40:36]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:40:36]wFMCommunicate OK [11:40:36]SAM_PROTO_GetShiftState done [11:40:36]FM_GetShiftState done [11:40:36]opened in 1729642905 [11:40:36]opened+sec_in_day 1729729305 [11:40:36]quantity*price = 11500 [11:40:36]sum+1 = 11501 [11:40:36]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.84 НДС 12% : 33.98 Наличными: 0.00 Безнал.: 320.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 142 23.10.2024 11:40 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75409 ФПД: 213404423419951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114044&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75409&fm=213404423419951&tin=02508201610067®Number=0000000000161154&sum=32000 0 [11:40:37]StoreToDocumentArchive [11:40:37]shift 173 fd 75409 [11:40:37]save to /storage/0173/doc_00075409 [11:40:37]save last doc name /storage/0173/doc_00075409 to /storage/kkm_last_doc_name [11:40:37]save OK [11:40:37]Clear old archive folders... [11:40:37]ProcessDocumentItem done err = 0, tmpTLVsize=489 [11:40:37]tlvbuf is 00FAC170 [11:40:37]SAM_PROTO_ClearQueue [11:40:37]wFMCommunicate request_size=4 [11:40:37]MH_SAM_APDU [11:40:37]CAPDU: 80 09 00 00 [11:40:37]Write to MH i2c: E2 08 00 43 A8 80 09 00 00 00 00 00 00 5D [11:40:37]Write i2c OK [11:40:37]MH_I2C_Read... [11:40:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:37]Read from MH i2c: E2 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 43 A8 00 90 00 5F [11:40:37]RAPDU: 90 00 [11:40:37]wFMCommunicate OK [11:40:37]SAM_PROTO_ClearQueue done [11:40:37]KKMCreateOFDPacket [11:40:37]OFDProtocolAddRootSTLVToBuf [11:40:37]FM_MakeSignedData [11:40:37]FM_MakeSignedData [11:40:37]SAM_PROTO_SignData [11:40:37]wFMCommunicate request_size=4 [11:40:37]MH_SAM_APDU [11:40:37]CAPDU: 80 0D 01 02 [11:40:37]Write to MH i2c: E2 08 00 44 A8 80 0D 01 02 00 00 00 00 65 [11:40:37]Write i2c OK [11:40:37]MH_I2C_Read... [11:40:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:37]Read from MH i2c: E2 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 44 A8 00 90 00 60 [11:40:37]RAPDU: 90 00 [11:40:37]wFMCommunicate OK [11:40:37]wFMCommunicate request_size=255 [11:40:37]MH_SAM_APDU [11:40:37]CAPDU: 80 0D 02 02 FA 03 00 E9 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 [11:40:38]Write to MH i2c: E2 02 01 45 A8 80 0D 02 02 FA 00 03 00 E9 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 00 00 D6 [11:40:38]Write i2c OK [11:40:38]MH_I2C_Read... [11:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:38]Read from MH i2c: E2 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: E2 03 00 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: E2 03 00 45 A8 00 90 00 61 [11:40:38]RAPDU: 90 00 [11:40:38]wFMCommunicate OK [11:40:38]wFMCommunicate request_size=248 [11:40:38]MH_SAM_APDU [11:40:38]CAPDU: 80 0D 02 02 F3 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BC E0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 91 26 01 00 35 04 06 00 C2 17 16 D9 F8 2F [11:40:38]Write to MH i2c: E2 FB 00 46 A8 80 0D 02 02 F3 00 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BC E0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 91 26 01 00 35 04 06 00 C2 17 16 D9 F8 2F 00 00 49 [11:40:38]Write i2c OK [11:40:38]MH_I2C_Read... [11:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:38]Read from MH i2c: E2 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: E2 03 00 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: E2 03 00 46 A8 00 90 00 62 [11:40:38]RAPDU: 90 00 [11:40:38]wFMCommunicate OK [11:40:38]wFMCommunicate request_size=4 [11:40:38]MH_SAM_APDU [11:40:38]CAPDU: 80 0D 03 02 [11:40:38]Write to MH i2c: E2 08 00 47 A8 80 0D 03 02 00 00 00 00 6A [11:40:38]Write i2c OK [11:40:38]MH_I2C_Read... [11:40:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:38]Read from MH i2c: E2 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: E2 0B 00 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: E2 0B 00 47 A8 00 2F 3D 65 09 AB 36 F8 75 90 00 93 [11:40:38]RAPDU: 2F 3D 65 09 AB 36 F8 75 90 00 [11:40:38]wFMCommunicate OK [11:40:38]SAM_PROTO_SignData done [11:40:38]FM_MakeSignedData done [11:40:38]CreateOFDProtocolMessage [11:40:38]wFMCommunicate request_size=4 [11:40:38]MH_SAM_APDU [11:40:38]CAPDU: 80 11 00 00 [11:40:38]Write to MH i2c: E2 08 00 48 A8 80 11 00 00 00 00 00 00 6A [11:40:38]Write i2c OK [11:40:38]MH_I2C_Read... [11:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:38]Read from MH i2c: E2 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: E2 17 00 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: E2 17 00 48 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B7 [11:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:40:38]wFMCommunicate OK [11:40:38]CreateOFDProtocolMessage done [11:40:38]OFDSenderStorePacket 75409 [11:40:38]StoreOFDPacket docnum=75409 [11:40:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 FD 01 00 00 65 42 F5 01 5D D6 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BC E0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 91 26 01 00 35 04 06 00 C2 17 16 D9 F8 2F 2F 3D 65 09 AB 36 F8 75 [11:40:38]CheckFolder [11:40:38]dirname=/storage/ofd_packets [11:40:38]CheckFolder done [11:40:38]ProducePacketName [11:40:38]name=ofd_packets/00075409 [11:40:38]NVStorageSaveData ofd_packets/00075409 [11:40:38]File name is /storage/ofd_packets/00075409 [11:40:38]Write 539 bytes [11:40:38]NVStorageSaveData done [11:40:38]OFDSenderStorePacket done [11:40:38]KKMCreateOFDPacket done [11:40:38]NVStorageSaveData kkm_last_timestamp [11:40:38]File name is /storage/kkm_last_timestamp [11:40:38]Write 4 bytes [11:40:38]NVStorageSaveData done [11:40:38]ExternCall_PrintAddStr [11:40:38]wPrintStart [11:40:38]Write to MH i2c: 01 00 00 49 A8 F1 [11:40:38]OFD Sender: Processing packet 75409 [packets to send 15, broken 14] [11:40:38]ProducePacketName [11:40:38]name=ofd_packets/00075409 [11:40:38]OFD Sender: To server: pG, [11:40:38]CommunicateWithHost lk.salyk.kg:30040 [11:40:38]ConnectInit lk.salyk.kg [11:40:38]Write i2c OK [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: 01 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: 01 07 00 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: 01 07 00 49 A8 00 00 00 00 00 FF 0F 06 [11:40:38]RasterBufferAndPrint [11:40:38]line Счет N : (3)273232 [11:40:38]line ИНН: 02508201610067 [11:40:38]line Контрольно-Кассовый Чек [11:40:38]line ПРОДАЖА [11:40:38]line Товар: 2000036210013 [11:40:38]line Кофе Капучино (GABB TRADE) [11:40:38]line 1.000 * 115.00 [11:40:38]line = 115.00 [11:40:38]line НДС 12% НСП 1% [11:40:38]line > о реализуемом товаре [11:40:38]line Товар: 4870112003925 [11:40:38]line Конд ULKER-Albeni 40gr (6*24) [11:40:38]line 1.000 * 55.00 [11:40:38]line = 55.00 [11:40:38]line НДС 12% НСП 1% [11:40:38]line > о реализуемом товаре [11:40:38]line Товар: 4640030091645 [11:40:38]line Сигареты ESSE Exchange M [11:40:38]line 1.000 * 150.00 [11:40:38]line = 150.00 [11:40:38]line НДС 12% НСП 1% [11:40:38]line > о реализуемом товаре [11:40:38]line ИТОГО: 320.00 [11:40:38]line НСП 1% : 2.84 [11:40:38]line НДС 12% : 33.98 [11:40:38]line Наличными: 0.00 [11:40:38]line Безнал.: 320.00 [11:40:38]line Место: АЗС № 133 "Партнер Нефть" [11:40:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:40:38]line СНО: Общий режим [11:40:38]line Чек 142 23.10.2024 11:40 [11:40:38]line Смена: 173 ФФД: 1.0 [11:40:38]line ЗНМ: 0300000020 [11:40:38]line РНМ: 0000000000161154 [11:40:38]line Версия ККМ: v1.0 [11:40:38]line Платежная система: Mbank [11:40:38]line ФМ: 0000000000963323 [11:40:38]line ФД: 75409 [11:40:38]line ФПД: 213404423419951 [11:40:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114044&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75409&fm=213404423419951&tin=02508201610067®Number=0000000000161154&sum=32000 [11:40:38]line 0 [11:40:38]written 0, free lines is 4095 [11:40:39]Connected sock=10 [11:40:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 FD 01 00 00 65 42 F5 01 5D D6 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BC E0 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 91 26 01 00 35 04 06 00 C2 17 16 D9 F8 2F 2F 3D 65 09 AB 36 F8 75 [11:40:39]Write to MH i2c: 01 00 00 7D A8 25 [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: 01 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: 01 07 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: 01 07 00 7D A8 00 00 00 00 00 11 0C 49 [11:40:39]RasterBufferAndPrint [11:40:39]line [11:40:39]line [11:40:39]line [11:40:39]line [11:40:39]line [11:40:39]written 0, free lines is 3095 [11:40:39]MH_Cut [11:40:39]Write to MH i2c: D1 01 00 84 A8 01 FE [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: D1 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: D1 01 00 [11:40:39]MH_I2C_Read... [11:40:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 13 9F 47 00 BA 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 39 36 33 33 32 33 10 04 04 00 91 26 01 00 F4 03 04 00 97 89 18 67 B6 04 01 00 00 10 C0 4D A8 F6 F6 32 C9 [11:40:39]CommunicateWithHost err = 0 [11:40:39]CheckOFDResponse [11:40:39]1017 (14) - 77093643461234 [11:40:39]1041 (16) - 0000000000963323 [11:40:39]1040 (4) - 75409 [11:40:39]1012 (4) - 23.10.2024 05:28 [11:40:39]1206 (1) - 0 [11:40:39]OFD Sender: Remove packet 75409 [11:40:39]ProducePacketName [11:40:39]name=ofd_packets/00075409 [11:40:39]NVStorageDeleteData [11:40:39]Read from MH i2c: D1 01 00 84 A8 00 FD [11:40:39]Write to MH i2c: 01 00 00 85 A8 2D [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:40]OFD Sender: No OFD packet to send [11:40:40]*** Cut start [11:40:40]*** Partial cut [11:40:40]*** CUTSNS_PIN = 1 [11:40:40]*** CUTSNS_PIN = 0 [11:40:40]*** Brake cut motor [11:40:41]Read from MH i2c: 01 [11:40:41]MH_I2C_Read... [11:40:41]*** Stop cut motor [11:40:41]*** Cut end [11:40:41]Read from MH i2c: 01 07 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: 01 07 00 85 A8 00 00 00 00 00 FF 0F 42 [11:40:41]process_action close_receipt done [11:40:41]requested_data is exist [11:40:41]produce_requested_data [11:40:41]requested_item fm.sn is exist - process it [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 11 00 00 [11:40:41]Write to MH i2c: E2 08 00 86 A8 80 11 00 00 00 00 00 00 A8 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 17 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 17 00 86 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F5 [11:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:40:41]wFMCommunicate OK [11:40:41]requested_item fd.num is exist - process it [11:40:41]SAM_PROTO_GetFieldsCounters [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 13 00 00 [11:40:41]Write to MH i2c: E2 08 00 87 A8 80 13 00 00 00 00 00 00 AB [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:41]Read from MH i2c: E2 62 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 62 00 87 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 91 26 01 00 0E 04 04 00 AD 00 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 CE [11:40:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 91 26 01 00 0E 04 04 00 AD 00 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 [11:40:41]wFMCommunicate OK [11:40:41]SAM_PROTO_GetFieldsCounters done [11:40:41]requested_item shift.num is exist - process it [11:40:41]requested_item shift.opened is exist - process it [11:40:41]req_shift_opened [11:40:41]FM_GetShiftState [11:40:41]SAM_PROTO_GetShiftState [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 13 01 00 [11:40:41]Write to MH i2c: E2 08 00 88 A8 80 13 01 00 00 00 00 00 AD [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 0E 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 0E 00 88 A8 00 09 00 01 99 41 18 67 00 00 00 00 90 00 12 [11:40:41]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:40:41]wFMCommunicate OK [11:40:41]SAM_PROTO_GetShiftState done [11:40:41]FM_GetShiftState done [11:40:41]req_shift_opened done [11:40:41]requested_item shift.open_date is exist - process it [11:40:41]req_shift_open_date [11:40:41]req_shift_open_date done [11:40:41]produce_requested_data done [11:40:41]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75409,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:40:41]process_action_free close_receipt [11:40:41]json_value_free [11:40:41]json_value_free done [11:40:41]process_json_proto returns [11:40:41]Send response to host [11:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75409,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:40:41]free response buf [11:40:41]execute_script done [11:40:41]execute_script returns [11:40:41]free content buf [11:40:41]Sock 7.Close socket [11:40:41]Sock 7.Thread stoped [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:51]accept exits with 9 [11:43:51]New connection [11:43:51]New thread 3067321700 created [11:43:51]Thread 3067465060 joined [11:43:51]Waiting for new connection... [11:43:51] Sock 9.Parse request [11:43:51]Sock 9.Check first char [11:43:51]Sock 9.First char is OK [11:43:51]request: POST /json_proto HTTP/1.0 [11:43:51]Method: POST [11:43:51]URL: /json_proto [11:43:51]Method is POST - this is cgi request [11:43:51]url: /json_proto [11:43:51]query_string will be loaded in cgi processing [11:43:51]execute_cgi json_proto POST (null) [11:43:51]execute_cgi path=json_proto method=POST [11:43:51]POST find Content-Length [11:43:51]Host: 172.17.44.196:8080 [11:43:51]Content-Length: 605 [11:43:51]Content-Type: application/json [11:43:51] [11:43:51]POST finish read [11:43:51]Found Content-Length = 605 [11:43:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273233", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:51]execute_script... [11:43:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273233", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:51]POST & json_proto [11:43:51]process_json_proto [11:43:51]json parsed OK: [11:43:51]protocol is kg_v1.0 [11:43:51]action value=close_receipt [11:43:51]process_action close_receipt [11:43:51]cmd_close_receipt [11:43:51]MH_GetDate [11:43:51]Write to MH i2c: F0 00 00 89 A8 20 [11:43:51]Write i2c OK [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: F0 [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: F0 09 00 [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: F0 09 00 89 A8 00 7E E1 18 67 E7 19 F8 65 64 [11:43:51]GetLastDocTimeStamp 1729683644 [11:43:51]current date 1729683838 [11:43:51]FM_GetShiftState [11:43:51]SAM_PROTO_GetShiftState [11:43:51]wFMCommunicate request_size=4 [11:43:51]MH_SAM_APDU [11:43:51]CAPDU: 80 13 01 00 [11:43:51]Write to MH i2c: E2 08 00 8A A8 80 13 01 00 00 00 00 00 AF [11:43:51]Write i2c OK [11:43:51]MH_I2C_Read... [11:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:51]Read from MH i2c: E2 [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: E2 0E 00 [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: E2 0E 00 8A A8 00 09 00 01 99 41 18 67 00 00 00 00 90 00 14 [11:43:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:43:51]wFMCommunicate OK [11:43:51]SAM_PROTO_GetShiftState done [11:43:51]FM_GetShiftState done [11:43:51]opened in 1729642905 [11:43:51]opened+sec_in_day 1729729305 [11:43:51]quantity*price = 4500 [11:43:51]sum+1 = 4501 [11:43:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 143 23.10.2024 11:43 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75410 ФПД: 224981478021681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114358&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75410&fm=224981478021681&tin=02508201610067®Number=0000000000161154&sum=4500 0 [11:43:52]StoreToDocumentArchive [11:43:52]shift 173 fd 75410 [11:43:52]save to /storage/0173/doc_00075410 [11:43:52]save last doc name /storage/0173/doc_00075410 to /storage/kkm_last_doc_name [11:43:52]save OK [11:43:52]Clear old archive folders... [11:43:52]ProcessDocumentItem done err = 0, tmpTLVsize=260 [11:43:52]tlvbuf is 00D60E30 [11:43:52]SAM_PROTO_ClearQueue [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 09 00 00 [11:43:52]Write to MH i2c: E2 08 00 97 A8 80 09 00 00 00 00 00 00 B1 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 97 A8 00 90 00 B3 [11:43:52]RAPDU: 90 00 [11:43:52]wFMCommunicate OK [11:43:52]SAM_PROTO_ClearQueue done [11:43:52]KKMCreateOFDPacket [11:43:52]OFDProtocolAddRootSTLVToBuf [11:43:52]FM_MakeSignedData [11:43:52]FM_MakeSignedData [11:43:52]SAM_PROTO_SignData [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 0D 01 02 [11:43:52]Write to MH i2c: E2 08 00 98 A8 80 0D 01 02 00 00 00 00 B9 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 98 A8 00 90 00 B4 [11:43:52]RAPDU: 90 00 [11:43:52]wFMCommunicate OK [11:43:52]wFMCommunicate request_size=255 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7E E1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 [11:43:52]Write to MH i2c: E2 02 01 99 A8 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7E E1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 00 33 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 99 A8 00 90 00 B5 [11:43:52]RAPDU: 90 00 [11:43:52]wFMCommunicate OK [11:43:52]wFMCommunicate request_size=19 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 0D 02 02 0E 92 26 01 00 35 04 06 00 CC 9E 95 14 1A 31 [11:43:52]Write to MH i2c: E2 16 00 9A A8 80 0D 02 02 0E 00 92 26 01 00 35 04 06 00 CC 9E 95 14 1A 31 00 00 2E [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 9A A8 00 90 00 B6 [11:43:52]RAPDU: 90 00 [11:43:52]wFMCommunicate OK [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 0D 03 02 [11:43:52]Write to MH i2c: E2 08 00 9B A8 80 0D 03 02 00 00 00 00 BE [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 0B 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 0B 00 9B A8 00 AD 14 CE D7 33 41 A2 6B 90 00 A6 [11:43:52]RAPDU: AD 14 CE D7 33 41 A2 6B 90 00 [11:43:52]wFMCommunicate OK [11:43:52]SAM_PROTO_SignData done [11:43:52]FM_MakeSignedData done [11:43:52]CreateOFDProtocolMessage [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 11 00 00 [11:43:52]Write to MH i2c: E2 08 00 9C A8 80 11 00 00 00 00 00 00 BE [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:53]Read from MH i2c: E2 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 17 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 17 00 9C A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0B [11:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:43:53]wFMCommunicate OK [11:43:53]CreateOFDProtocolMessage done [11:43:53]OFDSenderStorePacket 75410 [11:43:53]StoreOFDPacket docnum=75410 [11:43:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 18 01 00 00 5E 4D 10 01 C2 3E 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7E E1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 92 26 01 00 35 04 06 00 CC 9E 95 14 1A 31 AD 14 CE D7 33 41 A2 6B [11:43:53]CheckFolder [11:43:53]dirname=/storage/ofd_packets [11:43:53]CheckFolder done [11:43:53]ProducePacketName [11:43:53]name=ofd_packets/00075410 [11:43:53]NVStorageSaveData ofd_packets/00075410 [11:43:53]File name is /storage/ofd_packets/00075410 [11:43:53]Write 310 bytes [11:43:53]NVStorageSaveData done [11:43:53]OFDSenderStorePacket done [11:43:53]KKMCreateOFDPacket done [11:43:53]NVStorageSaveData kkm_last_timestamp [11:43:53]File name is /storage/kkm_last_timestamp [11:43:53]Write 4 bytes [11:43:53]NVStorageSaveData done [11:43:53]ExternCall_PrintAddStr [11:43:53]wPrintStart [11:43:53]Write to MH i2c: 01 00 00 9D A8 45 [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: 01 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: 01 07 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: 01 07 00 9D A8 00 00 00 00 00 FF 0F 5A [11:43:53]RasterBufferAndPrint [11:43:53]line Счет N : (3)273233 [11:43:53]line ИНН: 02508201610067 [11:43:53]line Контрольно-Кассовый Чек [11:43:53]line ПРОДАЖА [11:43:53]line Товар: 42113270 [11:43:53]line Жев Orbit арбуз [11:43:53]line 1.000 * 45.00 [11:43:53]line = 45.00 [11:43:53]line НДС 12% НСП 1% [11:43:53]line > о реализуемом товаре [11:43:53]line ИТОГО: 45.00 [11:43:53]line НСП 1% : 0.40 [11:43:53]line НДС 12% : 4.78 [11:43:53]line Наличными: 45.00 [11:43:53]line Безнал.: 0.00 [11:43:53]line Место: АЗС № 133 "Партнер Нефть" [11:43:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:43:53]line СНО: Общий режим [11:43:53]line Чек 143 23.10.2024 11:43 [11:43:53]line Смена: 173 ФФД: 1.0 [11:43:53]line ЗНМ: 0300000020 [11:43:53]line РНМ: 0000000000161154 [11:43:53]line Версия ККМ: v1.0 [11:43:53]line ФМ: 0000000000963323 [11:43:53]line ФД: 75410 [11:43:53]line ФПД: 224981478021681 [11:43:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114358&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75410&fm=224981478021681&tin=02508201610067®Number=0000000000161154&sum=4500 [11:43:53]OFD Sender: Processing packet 75410 [packets to send 15, broken 14] [11:43:53]ProducePacketName [11:43:53]name=ofd_packets/00075410 [11:43:53]OFD Sender: To server: pG, [11:43:53]CommunicateWithHost lk.salyk.kg:30040 [11:43:53]ConnectInit lk.salyk.kg [11:43:53]line 0 [11:43:53]written 0, free lines is 4095 [11:43:53]Connected sock=10 [11:43:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 18 01 00 00 5E 4D 10 01 C2 3E 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7E E1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 92 26 01 00 35 04 06 00 CC 9E 95 14 1A 31 AD 14 CE D7 33 41 A2 6B [11:43:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C7 BD 47 00 75 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 92 26 01 00 F4 03 04 00 59 8A 18 67 B6 04 01 00 00 55 8D CF B4 18 56 55 03 [11:43:53]CommunicateWithHost err = 0 [11:43:53]CheckOFDResponse [11:43:53]1017 (14) - 77093643461234 [11:43:53]1041 (16) - 0000000000963323 [11:43:53]1040 (4) - 75410 [11:43:53]1012 (4) - 23.10.2024 05:32 [11:43:53]1206 (1) - 0 [11:43:53]OFD Sender: Remove packet 75410 [11:43:53]ProducePacketName [11:43:53]name=ofd_packets/00075410 [11:43:53]NVStorageDeleteData [11:43:53]Write to MH i2c: 01 00 00 C4 A8 6C [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: 01 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: 01 07 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: 01 07 00 C4 A8 00 00 00 00 00 D5 0C 54 [11:43:53]RasterBufferAndPrint [11:43:53]line [11:43:53]line [11:43:53]line [11:43:53]line [11:43:53]line [11:43:53]written 0, free lines is 3289 [11:43:53]MH_Cut [11:43:53]Write to MH i2c: D1 01 00 CB A8 01 45 [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: D1 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: D1 01 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: D1 01 00 CB A8 00 44 [11:43:53]Write to MH i2c: 01 00 00 CC A8 74 [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:54]OFD Sender: No OFD packet to send [11:43:54]*** Cut start [11:43:54]*** Partial cut [11:43:54]*** CUTSNS_PIN = 1 [11:43:54]*** CUTSNS_PIN = 0 [11:43:54]*** Brake cut motor [11:43:55]Read from MH i2c: 01 [11:43:55]MH_I2C_Read... [11:43:55]*** Stop cut motor [11:43:55]*** Cut end [11:43:55]Read from MH i2c: 01 07 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: 01 07 00 CC A8 00 00 00 00 00 FF 0F 89 [11:43:55]process_action close_receipt done [11:43:55]requested_data is exist [11:43:55]produce_requested_data [11:43:55]requested_item fm.sn is exist - process it [11:43:55]wFMCommunicate request_size=4 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 11 00 00 [11:43:55]Write to MH i2c: E2 08 00 CD A8 80 11 00 00 00 00 00 00 EF [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 17 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 17 00 CD A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3C [11:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:43:55]wFMCommunicate OK [11:43:55]requested_item fd.num is exist - process it [11:43:55]SAM_PROTO_GetFieldsCounters [11:43:55]wFMCommunicate request_size=4 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 13 00 00 [11:43:55]Write to MH i2c: E2 08 00 CE A8 80 13 00 00 00 00 00 00 F2 [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 62 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 62 00 CE A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 92 26 01 00 0E 04 04 00 AD 00 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 19 [11:43:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 92 26 01 00 0E 04 04 00 AD 00 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 [11:43:55]wFMCommunicate OK [11:43:55]SAM_PROTO_GetFieldsCounters done [11:43:55]requested_item shift.num is exist - process it [11:43:55]requested_item shift.opened is exist - process it [11:43:55]req_shift_opened [11:43:55]FM_GetShiftState [11:43:55]SAM_PROTO_GetShiftState [11:43:55]wFMCommunicate request_size=4 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 13 01 00 [11:43:55]Write to MH i2c: E2 08 00 CF A8 80 13 01 00 00 00 00 00 F4 [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 0E 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 0E 00 CF A8 00 09 00 01 99 41 18 67 00 00 00 00 90 00 59 [11:43:55]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:43:55]wFMCommunicate OK [11:43:55]SAM_PROTO_GetShiftState done [11:43:55]FM_GetShiftState done [11:43:55]req_shift_opened done [11:43:55]requested_item shift.open_date is exist - process it [11:43:55]req_shift_open_date [11:43:55]req_shift_open_date done [11:43:55]produce_requested_data done [11:43:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75410,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:43:55]process_action_free close_receipt [11:43:55]json_value_free [11:43:55]json_value_free done [11:43:55]process_json_proto returns [11:43:55]Send response to host [11:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75410,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:43:55]free response buf [11:43:55]execute_script done [11:43:55]execute_script returns [11:43:55]free content buf [11:43:55]Sock 9.Close socket [11:43:55]Sock 9.Thread stoped [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:06]accept exits with 7 [11:49:06]New connection [11:49:06]New thread 3067465060 created [11:49:06]Thread 3067321700 joined [11:49:06]Waiting for new connection... [11:49:06] Sock 7.Parse request [11:49:06]Sock 7.Check first char [11:49:06]Sock 7.First char is OK [11:49:06]request: POST /json_proto HTTP/1.0 [11:49:06]Method: POST [11:49:06]URL: /json_proto [11:49:06]Method is POST - this is cgi request [11:49:06]url: /json_proto [11:49:06]query_string will be loaded in cgi processing [11:49:06]execute_cgi json_proto POST (null) [11:49:06]execute_cgi path=json_proto method=POST [11:49:06]POST find Content-Length [11:49:06]Host: 172.17.44.196:8080 [11:49:06]Content-Length: 748 [11:49:06]Content-Type: application/json [11:49:06] [11:49:06]POST finish read [11:49:06]Found Content-Length = 748 [11:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:06]execute_script... [11: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)1965413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:06]POST & json_proto [11:49:06]process_json_proto [11:49:06]json parsed OK: [11:49:06]protocol is kg_v1.0 [11:49:06]action value=close_receipt [11:49:06]process_action close_receipt [11:49:06]cmd_close_receipt [11:49:06]MH_GetDate [11:49:06]Write to MH i2c: F0 00 00 D0 A8 67 [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: F0 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: F0 09 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: F0 09 00 D0 A8 00 BA E2 18 67 E7 19 F8 65 E8 [11:49:06]GetLastDocTimeStamp 1729683838 [11:49:06]current date 1729684154 [11:49:06]FM_GetShiftState [11:49:06]SAM_PROTO_GetShiftState [11:49:06]wFMCommunicate request_size=4 [11:49:06]MH_SAM_APDU [11:49:06]CAPDU: 80 13 01 00 [11:49:06]Write to MH i2c: E2 08 00 D1 A8 80 13 01 00 00 00 00 00 F6 [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:06]Read from MH i2c: E2 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 0E 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 0E 00 D1 A8 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5B [11:49:06]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:49:06]wFMCommunicate OK [11:49:06]SAM_PROTO_GetShiftState done [11:49:06]FM_GetShiftState done [11:49:06]opened in 1729642905 [11:49:06]opened+sec_in_day 1729729305 [11:49:06]quantity*price = 20041 [11:49:06]sum+1 = 20042 [11:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.41 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 0.00 Безнал.: 200.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 144 23.10.2024 11:49 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75411 ФПД: 29678342327870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114914&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75411&fm=29678342327870&tin=02508201610067®Number=0000000000161154&sum=20041 [11:49:08]StoreToDocumentArchive [11:49:08]shift 173 fd 75411 [11:49:08]save to /storage/0173/doc_00075411 [11:49:08]save last doc name /storage/0173/doc_00075411 to /storage/kkm_last_doc_name [11:49:08]save OK [11:49:08]Clear old archive folders... [11:49:08]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:49:08]tlvbuf is 00F0C7F0 [11:49:08]SAM_PROTO_ClearQueue [11:49:08]wFMCommunicate request_size=4 [11:49:08]MH_SAM_APDU [11:49:08]CAPDU: 80 09 00 00 [11:49:08]Write to MH i2c: E2 08 00 DE A8 80 09 00 00 00 00 00 00 F8 [11:49:08]Write i2c OK [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 [11:49:08]MH_I2C_Read... [11:49:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:08]Read from MH i2c: E2 03 00 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 03 00 DE A8 00 90 00 FA [11:49:08]RAPDU: 90 00 [11:49:08]wFMCommunicate OK [11:49:08]SAM_PROTO_ClearQueue done [11:49:08]KKMCreateOFDPacket [11:49:08]OFDProtocolAddRootSTLVToBuf [11:49:08]FM_MakeSignedData [11:49:08]FM_MakeSignedData [11:49:08]SAM_PROTO_SignData [11:49:08]wFMCommunicate request_size=4 [11:49:08]MH_SAM_APDU [11:49:08]CAPDU: 80 0D 01 02 [11:49:08]Write to MH i2c: E2 08 00 DF A8 80 0D 01 02 00 00 00 00 00 [11:49:08]Write i2c OK [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 [11:49:08]MH_I2C_Read... [11:49:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:08]Read from MH i2c: E2 03 00 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 03 00 DF A8 00 90 00 FB [11:49:08]RAPDU: 90 00 [11:49:08]wFMCommunicate OK [11:49:08]wFMCommunicate request_size=253 [11:49:08]MH_SAM_APDU [11:49:08]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 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 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 BA E2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 93 26 01 00 35 04 06 00 1A FE 07 0D 4E 3E [11:49:08]Write to MH i2c: E2 00 01 E0 A8 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 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 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 BA E2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 93 26 01 00 35 04 06 00 1A FE 07 0D 4E 3E 00 00 92 [11:49:08]Write i2c OK [11:49:08]MH_I2C_Read... [11:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:08]Read from MH i2c: E2 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 03 00 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 03 00 E0 A8 00 90 00 FC [11:49:08]RAPDU: 90 00 [11:49:08]wFMCommunicate OK [11:49:08]wFMCommunicate request_size=4 [11:49:08]MH_SAM_APDU [11:49:08]CAPDU: 80 0D 03 02 [11:49:08]Write to MH i2c: E2 08 00 E1 A8 80 0D 03 02 00 00 00 00 04 [11:49:08]Write i2c OK [11:49:08]MH_I2C_Read... [11:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:08]Read from MH i2c: E2 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 0B 00 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 0B 00 E1 A8 00 09 E5 A8 37 C1 C9 87 F4 90 00 D7 [11:49:08]RAPDU: 09 E5 A8 37 C1 C9 87 F4 90 00 [11:49:08]wFMCommunicate OK [11:49:08]SAM_PROTO_SignData done [11:49:08]FM_MakeSignedData done [11:49:08]CreateOFDProtocolMessage [11:49:08]wFMCommunicate request_size=4 [11:49:08]MH_SAM_APDU [11:49:08]CAPDU: 80 11 00 00 [11:49:08]Write to MH i2c: E2 08 00 E2 A8 80 11 00 00 00 00 00 00 04 [11:49:08]Write i2c OK [11:49:08]MH_I2C_Read... [11:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:08]Read from MH i2c: E2 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 17 00 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: E2 17 00 E2 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 51 [11:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:49:08]wFMCommunicate OK [11:49:08]CreateOFDProtocolMessage done [11:49:08]OFDSenderStorePacket 75411 [11:49:08]StoreOFDPacket docnum=75411 [11:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 2C E0 00 01 DB 52 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 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 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 BA E2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 93 26 01 00 35 04 06 00 1A FE 07 0D 4E 3E 09 E5 A8 37 C1 C9 87 F4 [11:49:08]CheckFolder [11:49:08]dirname=/storage/ofd_packets [11:49:08]CheckFolder done [11:49:08]ProducePacketName [11:49:08]name=ofd_packets/00075411 [11:49:08]NVStorageSaveData ofd_packets/00075411 [11:49:08]File name is /storage/ofd_packets/00075411 [11:49:08]Write 294 bytes [11:49:08]NVStorageSaveData done [11:49:08]OFDSenderStorePacket done [11:49:08]KKMCreateOFDPacket done [11:49:08]NVStorageSaveData kkm_last_timestamp [11:49:08]File name is /storage/kkm_last_timestamp [11:49:08]Write 4 bytes [11:49:08]NVStorageSaveData done [11:49:08]ExternCall_PrintAddStr [11:49:08]wPrintStart [11:49:08]Write to MH i2c: 01 00 00 E3 A8 8B [11:49:08]OFD Sender: Processing packet 75411 [packets to send 15, broken 14] [11:49:08]ProducePacketName [11:49:08]name=ofd_packets/00075411 [11:49:08]OFD Sender: To server: pG, [11:49:08]CommunicateWithHost lk.salyk.kg:30040 [11:49:08]ConnectInit lk.salyk.kg [11:49:08]Write i2c OK [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: 01 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: 01 07 00 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: 01 07 00 E3 A8 00 00 00 00 00 FF 0F A0 [11:49:08]RasterBufferAndPrint [11:49:08]line Счет N : (1)1965413 [11:49:08]line ИНН: 02508201610067 [11:49:08]line Контрольно-Кассовый Чек [11:49:08]line ПРОДАЖА [11:49:08]line ТРК (МРК, ГНК) : 62 [11:49:08]line Товар: 2710124130 [11:49:08]line SU-92 [11:49:08]line 2.930 * 68.40 [11:49:08]line = 200.41 [11:49:08]line НДС 12% НСП 1% [11:49:08]line > о реализуемом товаре [11:49:08]line ИТОГО: 200.41 [11:49:08]line НСП 1% : 1.77 [11:49:08]line НДС 12% : 21.28 [11:49:08]line Наличными: 0.00 [11:49:08]line Безнал.: 200.41 [11:49:08]line Место: АЗС № 133 "Партнер Нефть" [11:49:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:49:08]line СНО: Общий режим [11:49:08]line Чек 144 23.10.2024 11:49 [11:49:08]line Смена: 173 ФФД: 1.0 [11:49:08]line ЗНМ: 0300000020 [11:49:08]line РНМ: 0000000000161154 [11:49:08]line Версия ККМ: v1.0 [11:49:08]line Платежная система: Mbank [11:49:08]line ФМ: 0000000000963323 [11:49:08]line ФД: 75411 [11:49:08]line ФПД: 29678342327870 [11:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114914&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75411&fm=29678342327870&tin=02508201610067®Number=0000000000161154&sum=20041 [11:49:08]written 0, free lines is 4095 [11:49:08]Connected sock=10 [11:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 2C E0 00 01 DB 52 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 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 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 BA E2 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 93 26 01 00 35 04 06 00 1A FE 07 0D 4E 3E 09 E5 A8 37 C1 C9 87 F4 [11:49:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 88 1F 47 00 B8 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 39 36 33 33 32 33 10 04 04 00 93 26 01 00 F4 03 04 00 95 8B 18 67 B6 04 01 00 00 B0 3C 08 AA D1 7C 46 A5 [11:49:08]CommunicateWithHost err = 0 [11:49:08]CheckOFDResponse [11:49:08]1017 (14) - 77093643461234 [11:49:08]1041 (16) - 0000000000963323 [11:49:08]1040 (4) - 75411 [11:49:08]1012 (4) - 23.10.2024 05:37 [11:49:08]1206 (1) - 0 [11:49:08]OFD Sender: Remove packet 75411 [11:49:08]ProducePacketName [11:49:08]name=ofd_packets/00075411 [11:49:08]NVStorageDeleteData [11:49:09]Write to MH i2c: 01 00 00 0B A9 B4 [11:49:09]Write i2c OK [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: 01 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: 01 07 00 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: 01 07 00 0B A9 00 00 00 00 00 DD 0C A4 [11:49:09]RasterBufferAndPrint [11:49:09]line [11:49:09]line [11:49:09]line [11:49:09]line [11:49:09]line [11:49:09]written 0, free lines is 3299 [11:49:09]MH_Cut [11:49:09]Write to MH i2c: D1 01 00 12 A9 01 8D [11:49:09]Write i2c OK [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: D1 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: D1 01 00 [11:49:09]MH_I2C_Read... [11:49:09]Read from MH i2c: D1 01 00 12 A9 00 8C [11:49:09]Write to MH i2c: 01 00 00 13 A9 BC [11:49:09]Write i2c OK [11:49:09]MH_I2C_Read... [11:49:09]OFD Sender: No OFD packet to send [11:49:09]*** Cut start [11:49:09]*** Partial cut [11:49:09]*** CUTSNS_PIN = 1 [11:49:09]*** CUTSNS_PIN = 0 [11:49:10]*** Brake cut motor [11:49:10]Read from MH i2c: 01 [11:49:10]MH_I2C_Read... [11:49:10]*** Stop cut motor [11:49:10]*** Cut end [11:49:10]Read from MH i2c: 01 07 00 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: 01 07 00 13 A9 00 00 00 00 00 FF 0F D1 [11:49:10]process_action close_receipt done [11:49:10]requested_data is exist [11:49:10]produce_requested_data [11:49:10]requested_item fm.sn is exist - process it [11:49:10]wFMCommunicate request_size=4 [11:49:10]MH_SAM_APDU [11:49:10]CAPDU: 80 11 00 00 [11:49:10]Write to MH i2c: E2 08 00 14 A9 80 11 00 00 00 00 00 00 37 [11:49:10]Write i2c OK [11:49:10]MH_I2C_Read... [11:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:10]Read from MH i2c: E2 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: E2 17 00 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: E2 17 00 14 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 84 [11:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:49:10]wFMCommunicate OK [11:49:10]requested_item fd.num is exist - process it [11:49:10]SAM_PROTO_GetFieldsCounters [11:49:10]wFMCommunicate request_size=4 [11:49:10]MH_SAM_APDU [11:49:10]CAPDU: 80 13 00 00 [11:49:10]Write to MH i2c: E2 08 00 15 A9 80 13 00 00 00 00 00 00 3A [11:49:10]Write i2c OK [11:49:10]MH_I2C_Read... [11:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:10]Read from MH i2c: E2 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: E2 62 00 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: E2 62 00 15 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 93 26 01 00 0E 04 04 00 AD 00 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 65 [11:49:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 93 26 01 00 0E 04 04 00 AD 00 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 [11:49:10]wFMCommunicate OK [11:49:10]SAM_PROTO_GetFieldsCounters done [11:49:10]requested_item shift.num is exist - process it [11:49:10]requested_item shift.opened is exist - process it [11:49:10]req_shift_opened [11:49:10]FM_GetShiftState [11:49:10]SAM_PROTO_GetShiftState [11:49:10]wFMCommunicate request_size=4 [11:49:10]MH_SAM_APDU [11:49:10]CAPDU: 80 13 01 00 [11:49:10]Write to MH i2c: E2 08 00 16 A9 80 13 01 00 00 00 00 00 3C [11:49:10]Write i2c OK [11:49:10]MH_I2C_Read... [11:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:10]Read from MH i2c: E2 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: E2 0E 00 [11:49:10]MH_I2C_Read... [11:49:10]Read from MH i2c: E2 0E 00 16 A9 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A1 [11:49:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:49:10]wFMCommunicate OK [11:49:10]SAM_PROTO_GetShiftState done [11:49:10]FM_GetShiftState done [11:49:10]req_shift_opened done [11:49:10]requested_item shift.open_date is exist - process it [11:49:10]req_shift_open_date [11:49:10]req_shift_open_date done [11:49:10]produce_requested_data done [11:49:10]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75411,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:49:10]process_action_free close_receipt [11:49:10]json_value_free [11:49:10]json_value_free done [11:49:10]process_json_proto returns [11:49:10]Send response to host [11:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75411,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:49:10]free response buf [11:49:10]execute_script done [11:49:10]execute_script returns [11:49:10]free content buf [11:49:10]Sock 7.Close socket [11:49:10]Sock 7.Thread stoped [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]accept exits with 9 [11:50:19]New connection [11:50:19]New thread 3067321700 created [11:50:19]Thread 3067465060 joined [11:50:19]Waiting for new connection... [11:50:19] Sock 9.Parse request [11:50:19]Sock 9.Check first char [11:50:19]Sock 9.First char is OK [11:50:19]request: POST /json_proto HTTP/1.0 [11:50:19]Method: POST [11:50:19]URL: /json_proto [11:50:19]Method is POST - this is cgi request [11:50:19]url: /json_proto [11:50:19]query_string will be loaded in cgi processing [11:50:19]execute_cgi json_proto POST (null) [11:50:19]execute_cgi path=json_proto method=POST [11:50:19]POST find Content-Length [11:50:19]Host: 172.17.44.196:8080 [11:50:19]Content-Length: 673 [11:50:19]Content-Type: application/json [11:50:19] [11:50:19]POST finish read [11:50:19]Found Content-Length = 673 [11:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 10.290, "sum" : 400.28, "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:50:19]execute_script... [11:50: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)1965414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 10.290, "sum" : 400.28, "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:50:19]POST & json_proto [11:50:19]process_json_proto [11:50:19]json parsed OK: [11:50:19]protocol is kg_v1.0 [11:50:19]action value=close_receipt [11:50:19]process_action close_receipt [11:50:19]cmd_close_receipt [11:50:19]MH_GetDate [11:50:19]Write to MH i2c: F0 00 00 17 A9 AF [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: F0 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: F0 09 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: F0 09 00 17 A9 00 02 E3 18 67 E7 19 F8 65 79 [11:50:19]GetLastDocTimeStamp 1729684154 [11:50:19]current date 1729684226 [11:50:19]FM_GetShiftState [11:50:19]SAM_PROTO_GetShiftState [11:50:19]wFMCommunicate request_size=4 [11:50:19]MH_SAM_APDU [11:50:19]CAPDU: 80 13 01 00 [11:50:19]Write to MH i2c: E2 08 00 18 A9 80 13 01 00 00 00 00 00 3E [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 0E 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 0E 00 18 A9 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A3 [11:50:19]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:50:19]wFMCommunicate OK [11:50:19]SAM_PROTO_GetShiftState done [11:50:19]FM_GetShiftState done [11:50:19]opened in 1729642905 [11:50:19]opened+sec_in_day 1729729305 [11:50:19]quantity*price = 40028 [11:50:19]sum+1 = 40029 [11:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 145 23.10.2024 11:50 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75412 ФПД: 216902299196615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115026&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75412&fm=216902299196615&tin=02508201610067®Number=0000000000161154&sum=40000 [11:50:20]StoreToDocumentArchive [11:50:20]shift 173 fd 75412 [11:50:20]save to /storage/0173/doc_00075412 [11:50:20]save last doc name /storage/0173/doc_00075412 to /storage/kkm_last_doc_name [11:50:20]save OK [11:50:20]Clear old archive folders... [11:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=245 [11:50:20]tlvbuf is 00E9B7E0 [11:50:20]SAM_PROTO_ClearQueue [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 09 00 00 [11:50:20]Write to MH i2c: E2 08 00 25 A9 80 09 00 00 00 00 00 00 40 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 25 A9 00 90 00 42 [11:50:20]RAPDU: 90 00 [11:50:20]wFMCommunicate OK [11:50:20]SAM_PROTO_ClearQueue done [11:50:20]KKMCreateOFDPacket [11:50:20]OFDProtocolAddRootSTLVToBuf [11:50:20]FM_MakeSignedData [11:50:20]FM_MakeSignedData [11:50:20]SAM_PROTO_SignData [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 0D 01 02 [11:50:20]Write to MH i2c: E2 08 00 26 A9 80 0D 01 02 00 00 00 00 48 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 26 A9 00 90 00 43 [11:50:20]RAPDU: 90 00 [11:50:20]wFMCommunicate OK [11:50:20]wFMCommunicate request_size=254 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 91 00 00 00 F4 03 04 00 02 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 94 26 01 00 35 04 06 00 C5 45 80 7E 9C C7 [11:50:20]Write to MH i2c: E2 01 01 27 A9 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 91 00 00 00 F4 03 04 00 02 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 94 26 01 00 35 04 06 00 C5 45 80 7E 9C C7 00 00 0C [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 27 A9 00 90 00 44 [11:50:20]RAPDU: 90 00 [11:50:20]wFMCommunicate OK [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 0D 03 02 [11:50:20]Write to MH i2c: E2 08 00 28 A9 80 0D 03 02 00 00 00 00 4C [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 0B 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 0B 00 28 A9 00 37 FA 74 44 8A E4 0A F0 90 00 9E [11:50:20]RAPDU: 37 FA 74 44 8A E4 0A F0 90 00 [11:50:20]wFMCommunicate OK [11:50:20]SAM_PROTO_SignData done [11:50:20]FM_MakeSignedData done [11:50:20]CreateOFDProtocolMessage [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 11 00 00 [11:50:20]Write to MH i2c: E2 08 00 29 A9 80 11 00 00 00 00 00 00 4C [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 17 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 17 00 29 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 99 [11:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:50:20]wFMCommunicate OK [11:50:20]CreateOFDProtocolMessage done [11:50:20]OFDSenderStorePacket 75412 [11:50:20]StoreOFDPacket docnum=75412 [11:50:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 13 95 01 01 51 77 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 91 00 00 00 F4 03 04 00 02 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 94 26 01 00 35 04 06 00 C5 45 80 7E 9C C7 37 FA 74 44 8A E4 0A F0 [11:50:20]CheckFolder [11:50:20]dirname=/storage/ofd_packets [11:50:20]CheckFolder done [11:50:20]ProducePacketName [11:50:20]name=ofd_packets/00075412 [11:50:20]NVStorageSaveData ofd_packets/00075412 [11:50:20]File name is /storage/ofd_packets/00075412 [11:50:20]Write 295 bytes [11:50:20]NVStorageSaveData done [11:50:20]OFDSenderStorePacket done [11:50:20]KKMCreateOFDPacket done [11:50:20]NVStorageSaveData kkm_last_timestamp [11:50:20]File name is /storage/kkm_last_timestamp [11:50:20]Write 4 bytes [11:50:20]NVStorageSaveData done [11:50:20]ExternCall_PrintAddStr [11:50:20]wPrintStart [11:50:20]Write to MH i2c: 01 00 00 2A A9 D3 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: 01 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: 01 07 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: 01 07 00 2A A9 00 00 00 00 00 FF 0F E8 [11:50:20]RasterBufferAndPrint [11:50:20]line Счет N : (1)1965414 [11:50:20]line ИНН: 02508201610067 [11:50:20]line Контрольно-Кассовый Чек [11:50:20]line ПРОДАЖА [11:50:20]line ТРК (МРК, ГНК) : 71 [11:50:20]line Товар: 2711129700 [11:50:20]line ГАЗ [11:50:20]line 10.290 * 38.90 [11:50:20]line = 400.28 [11:50:20]line НДС 12% НСП 1% [11:50:20]line > о реализуемом товаре [11:50:20]line ОКРУГЛЕНИЕ: -0.28 [11:50:20]line ИТОГО: 400.00 [11:50:20]line Внесено: 400.00 [11:50:20]line СДАЧА: 0.00 [11:50:20]line НСП 1% : 3.54 [11:50:20]line НДС 12% : 42.51 [11:50:20]line Наличными: 400.00 [11:50:20]line Безнал.: 0.00 [11:50:20]line Место: АЗС № 133 "Партнер Нефть" [11:50:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:50:20]line СНО: Общий режим [11:50:20]line Чек 145 23.10.2024 11:50 [11:50:20]line Смена: 173 ФФД: 1.0 [11:50:20]line ЗНМ: 0300000020 [11:50:20]line РНМ: 0000000000161154 [11:50:20]line Версия ККМ: v1.0 [11:50:20]line ФМ: 0000000000963323 [11:50:20]line ФД: 75412 [11:50:20]line ФПД: 216902299196615 [11:50:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115026&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75412&fm=216902299196615&tin=02508201610067®Number=0000000000161154&sum=40000 [11:50:21]OFD Sender: Processing packet 75412 [packets to send 15, broken 14] [11:50:21]ProducePacketName [11:50:21]name=ofd_packets/00075412 [11:50:21]OFD Sender: To server: pG, [11:50:21]CommunicateWithHost lk.salyk.kg:30040 [11:50:21]ConnectInit lk.salyk.kg [11:50:21]written 0, free lines is 4095 [11:50:21]Connected sock=11 [11:50:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 13 95 01 01 51 77 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 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 9B 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 91 00 00 00 F4 03 04 00 02 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 94 26 01 00 35 04 06 00 C5 45 80 7E 9C C7 37 FA 74 44 8A E4 0A F0 [11:50:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B5 9C 47 00 86 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 94 26 01 00 F4 03 04 00 DD 8B 18 67 B6 04 01 00 00 0D 80 EA 79 64 4D C8 BB [11:50:21]CommunicateWithHost err = 0 [11:50:21]CheckOFDResponse [11:50:21]1017 (14) - 77093643461234 [11:50:21]1041 (16) - 0000000000963323 [11:50:21]1040 (4) - 75412 [11:50:21]1012 (4) - 23.10.2024 05:38 [11:50:21]1206 (1) - 0 [11:50:21]OFD Sender: Remove packet 75412 [11:50:21]ProducePacketName [11:50:21]name=ofd_packets/00075412 [11:50:21]NVStorageDeleteData [11:50:21]Write to MH i2c: 01 00 00 54 A9 FD [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 54 A9 00 00 00 00 00 9C 0C AC [11:50:21]RasterBufferAndPrint [11:50:21]line [11:50:21]line [11:50:21]line [11:50:21]line [11:50:21]line [11:50:21]written 0, free lines is 3232 [11:50:21]MH_Cut [11:50:21]Write to MH i2c: D1 01 00 5B A9 01 D6 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: D1 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: D1 01 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: D1 01 00 5B A9 00 D5 [11:50:21]Write to MH i2c: 01 00 00 5C A9 05 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:22]OFD Sender: No OFD packet to send [11:50:22]*** Cut start [11:50:22]*** Partial cut [11:50:22]*** CUTSNS_PIN = 1 [11:50:22]*** CUTSNS_PIN = 0 [11:50:22]*** Brake cut motor [11:50:23]Read from MH i2c: 01 [11:50:23]MH_I2C_Read... [11:50:23]*** Stop cut motor [11:50:23]*** Cut end [11:50:23]Read from MH i2c: 01 07 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: 01 07 00 5C A9 00 00 00 00 00 FF 0F 1A [11:50:23]process_action close_receipt done [11:50:23]requested_data is exist [11:50:23]produce_requested_data [11:50:23]requested_item fm.sn is exist - process it [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 11 00 00 [11:50:23]Write to MH i2c: E2 08 00 5D A9 80 11 00 00 00 00 00 00 80 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 17 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 17 00 5D A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CD [11:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:50:23]wFMCommunicate OK [11:50:23]requested_item fd.num is exist - process it [11:50:23]SAM_PROTO_GetFieldsCounters [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 13 00 00 [11:50:23]Write to MH i2c: E2 08 00 5E A9 80 13 00 00 00 00 00 00 83 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 62 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 62 00 5E A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 94 26 01 00 0E 04 04 00 AD 00 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 B2 [11:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 94 26 01 00 0E 04 04 00 AD 00 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 [11:50:23]wFMCommunicate OK [11:50:23]SAM_PROTO_GetFieldsCounters done [11:50:23]requested_item shift.num is exist - process it [11:50:23]requested_item shift.opened is exist - process it [11:50:23]req_shift_opened [11:50:23]FM_GetShiftState [11:50:23]SAM_PROTO_GetShiftState [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 13 01 00 [11:50:23]Write to MH i2c: E2 08 00 5F A9 80 13 01 00 00 00 00 00 85 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 0E 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 0E 00 5F A9 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EA [11:50:23]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:50:23]wFMCommunicate OK [11:50:23]SAM_PROTO_GetShiftState done [11:50:23]FM_GetShiftState done [11:50:23]req_shift_opened done [11:50:23]requested_item shift.open_date is exist - process it [11:50:23]req_shift_open_date [11:50:23]req_shift_open_date done [11:50:23]produce_requested_data done [11:50:23]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75412,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:50:23]process_action_free close_receipt [11:50:23]json_value_free [11:50:23]json_value_free done [11:50:23]process_json_proto returns [11:50:23]Send response to host [11:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75412,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:50:23]free response buf [11:50:23]execute_script done [11:50:23]execute_script returns [11:50:23]free content buf [11:50:23]Sock 9.Close socket [11:50:23]Sock 9.Thread stoped [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:34]accept exits with 7 [11:51:34]New connection [11:51:34]New thread 3067465060 created [11:51:34]Thread 3067321700 joined [11:51:34]Waiting for new connection... [11:51:34] Sock 7.Parse request [11:51:34]Sock 7.Check first char [11:51:34]Sock 7.First char is OK [11:51:34]request: POST /json_proto HTTP/1.0 [11:51:34]Method: POST [11:51:34]URL: /json_proto [11:51:34]Method is POST - this is cgi request [11:51:34]url: /json_proto [11:51:34]query_string will be loaded in cgi processing [11:51:34]execute_cgi json_proto POST (null) [11:51:34]execute_cgi path=json_proto method=POST [11:51:34]POST find Content-Length [11:51:34]Host: 172.17.44.196:8080 [11:51:34]Content-Length: 678 [11:51:34]Content-Type: application/json [11:51:34] [11:51:34]POST finish read [11:51:34]Found Content-Length = 678 [11:51:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:34]execute_script... [11:51: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)1965416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:34]POST & json_proto [11:51:34]process_json_proto [11:51:34]json parsed OK: [11:51:34]protocol is kg_v1.0 [11:51:34]action value=close_receipt [11:51:34]process_action close_receipt [11:51:34]cmd_close_receipt [11:51:34]MH_GetDate [11:51:34]Write to MH i2c: F0 00 00 60 A9 F8 [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: F0 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: F0 09 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: F0 09 00 60 A9 00 4D E3 18 67 E7 19 F8 65 0D [11:51:34]GetLastDocTimeStamp 1729684226 [11:51:34]current date 1729684301 [11:51:34]FM_GetShiftState [11:51:34]SAM_PROTO_GetShiftState [11:51:34]wFMCommunicate request_size=4 [11:51:34]MH_SAM_APDU [11:51:34]CAPDU: 80 13 01 00 [11:51:34]Write to MH i2c: E2 08 00 61 A9 80 13 01 00 00 00 00 00 87 [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:34]Read from MH i2c: E2 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 0E 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 0E 00 61 A9 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EC [11:51:34]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:51:34]wFMCommunicate OK [11:51:34]SAM_PROTO_GetShiftState done [11:51:34]FM_GetShiftState done [11:51:34]opened in 1729642905 [11:51:34]opened+sec_in_day 1729729305 [11:51:34]quantity*price = 42013 [11:51:34]sum+1 = 42014 [11:51:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.62 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 146 23.10.2024 11:51 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75413 ФПД: 252092269832560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115141&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75413&fm=252092269832560&tin=02508201610067®Number=0000000000161154&sum=42000 [11:51:35]StoreToDocumentArchive [11:51:35]shift 173 fd 75413 [11:51:35]save to /storage/0173/doc_00075413 [11:51:35]save last doc name /storage/0173/doc_00075413 to /storage/kkm_last_doc_name [11:51:35]save OK [11:51:35]Clear old archive folders... [11:51:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:35]tlvbuf is 00C79EE0 [11:51:35]SAM_PROTO_ClearQueue [11:51:35]wFMCommunicate request_size=4 [11:51:35]MH_SAM_APDU [11:51:35]CAPDU: 80 09 00 00 [11:51:35]Write to MH i2c: E2 08 00 6E A9 80 09 00 00 00 00 00 00 89 [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:35]Read from MH i2c: E2 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 03 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 03 00 6E A9 00 90 00 8B [11:51:35]RAPDU: 90 00 [11:51:35]wFMCommunicate OK [11:51:35]SAM_PROTO_ClearQueue done [11:51:35]KKMCreateOFDPacket [11:51:35]OFDProtocolAddRootSTLVToBuf [11:51:35]FM_MakeSignedData [11:51:35]FM_MakeSignedData [11:51:35]SAM_PROTO_SignData [11:51:35]wFMCommunicate request_size=4 [11:51:35]MH_SAM_APDU [11:51:35]CAPDU: 80 0D 01 02 [11:51:35]Write to MH i2c: E2 08 00 6F A9 80 0D 01 02 00 00 00 00 91 [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:35]Read from MH i2c: E2 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 03 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 03 00 6F A9 00 90 00 8C [11:51:35]RAPDU: 90 00 [11:51:35]wFMCommunicate OK [11:51:35]wFMCommunicate request_size=255 [11:51:35]MH_SAM_APDU [11:51: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 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4D E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 95 26 01 00 35 04 06 00 E5 [11:51:35]Write to MH i2c: E2 02 01 70 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 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4D E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 95 26 01 00 35 04 06 00 E5 00 00 16 [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:35]Read from MH i2c: E2 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 03 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 03 00 70 A9 00 90 00 8D [11:51:35]RAPDU: 90 00 [11:51:35]wFMCommunicate OK [11:51:35]wFMCommunicate request_size=10 [11:51:35]MH_SAM_APDU [11:51:35]CAPDU: 80 0D 02 02 05 46 CE 31 A9 70 [11:51:35]Write to MH i2c: E2 0D 00 71 A9 80 0D 02 02 05 00 46 CE 31 A9 70 00 00 FC [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 [11:51:35]MH_I2C_Read... [11:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:35]Read from MH i2c: E2 03 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 03 00 71 A9 00 90 00 8E [11:51:35]RAPDU: 90 00 [11:51:35]wFMCommunicate OK [11:51:35]wFMCommunicate request_size=4 [11:51:35]MH_SAM_APDU [11:51:35]CAPDU: 80 0D 03 02 [11:51:35]Write to MH i2c: E2 08 00 72 A9 80 0D 03 02 00 00 00 00 96 [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:35]Read from MH i2c: E2 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 0B 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 0B 00 72 A9 00 11 09 AB E6 B7 9F C4 87 90 00 E3 [11:51:35]RAPDU: 11 09 AB E6 B7 9F C4 87 90 00 [11:51:35]wFMCommunicate OK [11:51:35]SAM_PROTO_SignData done [11:51:35]FM_MakeSignedData done [11:51:35]CreateOFDProtocolMessage [11:51:35]wFMCommunicate request_size=4 [11:51:35]MH_SAM_APDU [11:51:35]CAPDU: 80 11 00 00 [11:51:35]Write to MH i2c: E2 08 00 73 A9 80 11 00 00 00 00 00 00 96 [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:35]Read from MH i2c: E2 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 17 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: E2 17 00 73 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E3 [11:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:51:35]wFMCommunicate OK [11:51:35]CreateOFDProtocolMessage done [11:51:35]OFDSenderStorePacket 75413 [11:51:35]StoreOFDPacket docnum=75413 [11:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 10 A9 07 01 F9 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 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4D E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 95 26 01 00 35 04 06 00 E5 46 CE 31 A9 70 11 09 AB E6 B7 9F C4 87 [11:51:35]CheckFolder [11:51:35]dirname=/storage/ofd_packets [11:51:35]CheckFolder done [11:51:35]ProducePacketName [11:51:35]name=ofd_packets/00075413 [11:51:35]NVStorageSaveData ofd_packets/00075413 [11:51:35]File name is /storage/ofd_packets/00075413 [11:51:35]Write 301 bytes [11:51:35]NVStorageSaveData done [11:51:35]OFDSenderStorePacket done [11:51:35]KKMCreateOFDPacket done [11:51:35]NVStorageSaveData kkm_last_timestamp [11:51:35]File name is /storage/kkm_last_timestamp [11:51:35]Write 4 bytes [11:51:35]NVStorageSaveData done [11:51:35]ExternCall_PrintAddStr [11:51:35]wPrintStart [11:51:35]Write to MH i2c: 01 00 00 74 A9 1D [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 07 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 07 00 74 A9 00 00 00 00 00 FF 0F 32 [11:51:35]RasterBufferAndPrint [11:51:35]line Счет N : (1)1965416 [11:51:35]line ИНН: 02508201610067 [11:51:35]line Контрольно-Кассовый Чек [11:51:35]line ПРОДАЖА [11:51:35]line ТРК (МРК, ГНК) : 43 [11:51:35]line Товар: 2710124130 [11:51:35]line Аи-92-К-5 [11:51:35]line 6.280 * 66.90 [11:51:35]line = 420.13 [11:51:35]line НДС 12% НСП 1% [11:51:35]line > о реализуемом товаре [11:51:35]line ОКРУГЛЕНИЕ: -0.13 [11:51:35]line ИТОГО: 420.00 [11:51:35]line Внесено: 420.00 [11:51:35]line СДАЧА: 0.00 [11:51:35]line НСП 1% : 3.72 [11:51:35]line НДС 12% : 44.62 [11:51:35]line Наличными: 420.00 [11:51:35]line Безнал.: 0.00 [11:51:35]line Место: АЗС № 133 "Партнер Нефть" [11:51:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:51:35]line СНО: Общий режим [11:51:35]line Чек 146 23.10.2024 11:51 [11:51:35]line Смена: 173 ФФД: 1.0 [11:51:36]line ЗНМ: 0300000020 [11:51:36]line РНМ: 0000000000161154 [11:51:36]line Версия ККМ: v1.0 [11:51:36]line ФМ: 0000000000963323 [11:51:36]line ФД: 75413 [11:51:36]line ФПД: 252092269832560 [11:51:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115141&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75413&fm=252092269832560&tin=02508201610067®Number=0000000000161154&sum=42000 [11:51:36]OFD Sender: Processing packet 75413 [packets to send 15, broken 14] [11:51:36]ProducePacketName [11:51:36]name=ofd_packets/00075413 [11:51:36]OFD Sender: To server: pG, [11:51:36]CommunicateWithHost lk.salyk.kg:30040 [11:51:36]ConnectInit lk.salyk.kg [11:51:36]written 0, free lines is 4095 [11:51:36]Connected sock=10 [11:51:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 10 A9 07 01 F9 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 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4D E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 95 26 01 00 35 04 06 00 E5 46 CE 31 A9 70 11 09 AB E6 B7 9F C4 87 [11:51:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 55 B3 47 00 B5 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 95 26 01 00 F4 03 04 00 28 8C 18 67 B6 04 01 00 00 75 DF CA 45 EA 89 80 91 [11:51:36]CommunicateWithHost err = 0 [11:51:36]CheckOFDResponse [11:51:36]1017 (14) - 77093643461234 [11:51:36]1041 (16) - 0000000000963323 [11:51:36]1040 (4) - 75413 [11:51:36]1012 (4) - 23.10.2024 05:39 [11:51:36]1206 (1) - 0 [11:51:36]OFD Sender: Remove packet 75413 [11:51:36]ProducePacketName [11:51:36]name=ofd_packets/00075413 [11:51:36]NVStorageDeleteData [11:51:36]Write to MH i2c: 01 00 00 9E A9 47 [11:51:36]Write i2c OK [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: 01 [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: 01 07 00 [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: 01 07 00 9E A9 00 00 00 00 00 AD 0C 07 [11:51:36]RasterBufferAndPrint [11:51:36]line [11:51:36]line [11:51:36]line [11:51:36]line [11:51:36]line [11:51:36]written 0, free lines is 3248 [11:51:36]MH_Cut [11:51:36]Write to MH i2c: D1 01 00 A5 A9 01 20 [11:51:36]Write i2c OK [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: D1 [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: D1 01 00 [11:51:36]MH_I2C_Read... [11:51:36]Read from MH i2c: D1 01 00 A5 A9 00 1F [11:51:36]Write to MH i2c: 01 00 00 A6 A9 4F [11:51:36]Write i2c OK [11:51:36]MH_I2C_Read... [11:51:36]OFD Sender: No OFD packet to send [11:51:37]*** Cut start [11:51:37]*** Partial cut [11:51:37]*** CUTSNS_PIN = 1 [11:51:37]*** CUTSNS_PIN = 0 [11:51:37]*** Brake cut motor [11:51:38]Read from MH i2c: 01 [11:51:38]MH_I2C_Read... [11:51:38]*** Stop cut motor [11:51:38]*** Cut end [11:51:38]Read from MH i2c: 01 07 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: 01 07 00 A6 A9 00 00 00 00 00 FF 0F 64 [11:51:38]process_action close_receipt done [11:51:38]requested_data is exist [11:51:38]produce_requested_data [11:51:38]requested_item fm.sn is exist - process it [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 11 00 00 [11:51:38]Write to MH i2c: E2 08 00 A7 A9 80 11 00 00 00 00 00 00 CA [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 17 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 17 00 A7 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 17 [11:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:51:38]wFMCommunicate OK [11:51:38]requested_item fd.num is exist - process it [11:51:38]SAM_PROTO_GetFieldsCounters [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 13 00 00 [11:51:38]Write to MH i2c: E2 08 00 A8 A9 80 13 00 00 00 00 00 00 CD [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 62 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 62 00 A8 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 95 26 01 00 0E 04 04 00 AD 00 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 00 [11:51:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 95 26 01 00 0E 04 04 00 AD 00 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 [11:51:38]wFMCommunicate OK [11:51:38]SAM_PROTO_GetFieldsCounters done [11:51:38]requested_item shift.num is exist - process it [11:51:38]requested_item shift.opened is exist - process it [11:51:38]req_shift_opened [11:51:38]FM_GetShiftState [11:51:38]SAM_PROTO_GetShiftState [11:51:38]wFMCommunicate request_size=4 [11:51:38]MH_SAM_APDU [11:51:38]CAPDU: 80 13 01 00 [11:51:38]Write to MH i2c: E2 08 00 A9 A9 80 13 01 00 00 00 00 00 CF [11:51:38]Write i2c OK [11:51:38]MH_I2C_Read... [11:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:38]Read from MH i2c: E2 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 0E 00 [11:51:38]MH_I2C_Read... [11:51:38]Read from MH i2c: E2 0E 00 A9 A9 00 09 00 01 99 41 18 67 00 00 00 00 90 00 34 [11:51:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:51:38]wFMCommunicate OK [11:51:38]SAM_PROTO_GetShiftState done [11:51:38]FM_GetShiftState done [11:51:38]req_shift_opened done [11:51:38]requested_item shift.open_date is exist - process it [11:51:38]req_shift_open_date [11:51:38]req_shift_open_date done [11:51:38]produce_requested_data done [11:51:38]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75413,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:51:38]process_action_free close_receipt [11:51:38]json_value_free [11:51:38]json_value_free done [11:51:38]process_json_proto returns [11:51:38]Send response to host [11:51:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75413,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:51:38]free response buf [11:51:38]execute_script done [11:51:38]execute_script returns [11:51:38]free content buf [11:51:38]Sock 7.Close socket [11:51:38]Sock 7.Thread stoped [11:51:39]accept exits with 9 [11:51:39]New connection [11:51:39]New thread 3067321700 created [11:51:39]Thread 3067465060 joined [11:51:39]Waiting for new connection... [11:51:39] Sock 9.Parse request [11:51:39]Sock 9.Check first char [11:51:39]Sock 9.First char is OK [11:51:39]request: POST /json_proto HTTP/1.0 [11:51:39]Method: POST [11:51:39]URL: /json_proto [11:51:39]Method is POST - this is cgi request [11:51:39]url: /json_proto [11:51:39]query_string will be loaded in cgi processing [11:51:39]execute_cgi json_proto POST (null) [11:51:39]execute_cgi path=json_proto method=POST [11:51:39]POST find Content-Length [11:51:39]Host: 172.17.44.196:8080 [11:51:39]Content-Length: 675 [11:51:39]Content-Type: application/json [11:51:39] [11:51:39]POST finish read [11:51:39]Found Content-Length = 675 [11:51:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:39]execute_script... [11:51: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)1965415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:39]POST & json_proto [11:51:39]process_json_proto [11:51:39]json parsed OK: [11:51:39]protocol is kg_v1.0 [11:51:39]action value=close_receipt [11:51:39]process_action close_receipt [11:51:39]cmd_close_receipt [11:51:39]MH_GetDate [11:51:39]Write to MH i2c: F0 00 00 AA A9 42 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: F0 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: F0 09 00 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: F0 09 00 AA A9 00 52 E3 18 67 E7 19 F8 65 5C [11:51:39]GetLastDocTimeStamp 1729684301 [11:51:39]current date 1729684306 [11:51:39]FM_GetShiftState [11:51:39]SAM_PROTO_GetShiftState [11:51:39]wFMCommunicate request_size=4 [11:51:39]MH_SAM_APDU [11:51:39]CAPDU: 80 13 01 00 [11:51:39]Write to MH i2c: E2 08 00 AB A9 80 13 01 00 00 00 00 00 D1 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:39]Read from MH i2c: E2 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: E2 0E 00 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: E2 0E 00 AB A9 00 09 00 01 99 41 18 67 00 00 00 00 90 00 36 [11:51:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:51:39]wFMCommunicate OK [11:51:39]SAM_PROTO_GetShiftState done [11:51:39]FM_GetShiftState done [11:51:39]opened in 1729642905 [11:51:39]opened+sec_in_day 1729729305 [11:51:39]quantity*price = 50063 [11:51:39]sum+1 = 50064 [11:51:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 147 23.10.2024 11:51 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75414 ФПД: 145351524910702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115146&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75414&fm=145351524910702&tin=02508201610067®Number=0000000000161154&sum=50000 [11:51:40]StoreToDocumentArchive [11:51:40]shift 173 fd 75414 [11:51:40]save to /storage/0173/doc_00075414 [11:51:40]save last doc name /storage/0173/doc_00075414 to /storage/kkm_last_doc_name [11:51:40]save OK [11:51:40]Clear old archive folders... [11:51:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:51:40]tlvbuf is 00CD9830 [11:51:40]SAM_PROTO_ClearQueue [11:51:40]wFMCommunicate request_size=4 [11:51:40]MH_SAM_APDU [11:51:40]CAPDU: 80 09 00 00 [11:51:40]Write to MH i2c: E2 08 00 B8 A9 80 09 00 00 00 00 00 00 D3 [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:40]Read from MH i2c: E2 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 B8 A9 00 90 00 D5 [11:51:40]RAPDU: 90 00 [11:51:40]wFMCommunicate OK [11:51:40]SAM_PROTO_ClearQueue done [11:51:40]KKMCreateOFDPacket [11:51:40]OFDProtocolAddRootSTLVToBuf [11:51:40]FM_MakeSignedData [11:51:40]FM_MakeSignedData [11:51:40]SAM_PROTO_SignData [11:51:40]wFMCommunicate request_size=4 [11:51:40]MH_SAM_APDU [11:51:40]CAPDU: 80 0D 01 02 [11:51:40]Write to MH i2c: E2 08 00 B9 A9 80 0D 01 02 00 00 00 00 DB [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:40]Read from MH i2c: E2 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 B9 A9 00 90 00 D6 [11:51:40]RAPDU: 90 00 [11:51:40]wFMCommunicate OK [11:51:40]wFMCommunicate request_size=255 [11:51:40]MH_SAM_APDU [11:51:40]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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 93 00 00 00 F4 03 04 00 52 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 96 26 01 00 35 04 06 00 84 32 4A 02 [11:51:41]Write to MH i2c: E2 02 01 BA A9 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 93 00 00 00 F4 03 04 00 52 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 96 26 01 00 35 04 06 00 84 32 4A 02 00 00 8E [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 BA A9 00 90 00 D7 [11:51:41]RAPDU: 90 00 [11:51:41]wFMCommunicate OK [11:51:41]wFMCommunicate request_size=7 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 0D 02 02 02 86 6E [11:51:41]Write to MH i2c: E2 0A 00 BB A9 80 0D 02 02 02 00 86 6E 00 00 D6 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 BB A9 00 90 00 D8 [11:51:41]RAPDU: 90 00 [11:51:41]wFMCommunicate OK [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 0D 03 02 [11:51:41]Write to MH i2c: E2 08 00 BC A9 80 0D 03 02 00 00 00 00 E0 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 0B 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 0B 00 BC A9 00 D9 F6 94 BB 0C 03 79 BA 90 00 41 [11:51:41]RAPDU: D9 F6 94 BB 0C 03 79 BA 90 00 [11:51:41]wFMCommunicate OK [11:51:41]SAM_PROTO_SignData done [11:51:41]FM_MakeSignedData done [11:51:41]CreateOFDProtocolMessage [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 11 00 00 [11:51:41]Write to MH i2c: E2 08 00 BD A9 80 11 00 00 00 00 00 00 E0 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:41]Read from MH i2c: E2 17 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 17 00 BD A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2D [11:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:51:41]wFMCommunicate OK [11:51:41]CreateOFDProtocolMessage done [11:51:41]OFDSenderStorePacket 75414 [11:51:41]StoreOFDPacket docnum=75414 [11:51:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 D5 14 04 01 EC BD 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 93 00 00 00 F4 03 04 00 52 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 96 26 01 00 35 04 06 00 84 32 4A 02 86 6E D9 F6 94 BB 0C 03 79 BA [11:51:41]CheckFolder [11:51:41]dirname=/storage/ofd_packets [11:51:41]CheckFolder done [11:51:41]ProducePacketName [11:51:41]name=ofd_packets/00075414 [11:51:41]NVStorageSaveData ofd_packets/00075414 [11:51:41]File name is /storage/ofd_packets/00075414 [11:51:41]Write 298 bytes [11:51:41]NVStorageSaveData done [11:51:41]OFDSenderStorePacket done [11:51:41]KKMCreateOFDPacket done [11:51:41]NVStorageSaveData kkm_last_timestamp [11:51:41]File name is /storage/kkm_last_timestamp [11:51:41]Write 4 bytes [11:51:41]NVStorageSaveData done [11:51:41]ExternCall_PrintAddStr [11:51:41]wPrintStart [11:51:41]Write to MH i2c: 01 00 00 BE A9 67 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 07 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 07 00 BE A9 00 00 00 00 00 FF 0F 7C [11:51:41]RasterBufferAndPrint [11:51:41]line Счет N : (1)1965415 [11:51:41]line ИНН: 02508201610067 [11:51:41]line Контрольно-Кассовый Чек [11:51:41]line ПРОДАЖА [11:51:41]line ТРК (МРК, ГНК) : 11 [11:51:41]line Товар: 2710194210 [11:51:41]line ДТ-К-5 [11:51:41]line 6.570 * 76.20 [11:51:41]line = 500.63 [11:51:41]line НДС 12% НСП 1% [11:51:41]line > о реализуемом товаре [11:51:41]line ОКРУГЛЕНИЕ: -0.63 [11:51:41]line ИТОГО: 500.00 [11:51:41]line Внесено: 500.00 [11:51:41]line СДАЧА: 0.00 [11:51:41]line НСП 1% : 4.43 [11:51:41]line НДС 12% : 53.16 [11:51:41]line Наличными: 500.00 [11:51:41]line Безнал.: 0.00 [11:51:41]line Место: АЗС № 133 "Партнер Нефть" [11:51:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:51:41]line СНО: Общий режим [11:51:41]line Чек 147 23.10.2024 11:51 [11:51:41]line Смена: 173 ФФД: 1.0 [11:51:41]line ЗНМ: 0300000020 [11:51:41]line РНМ: 0000000000161154 [11:51:41]line Версия ККМ: v1.0 [11:51:41]line ФМ: 0000000000963323 [11:51:41]line ФД: 75414 [11:51:41]line ФПД: 145351524910702 [11:51:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115146&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75414&fm=145351524910702&tin=02508201610067®Number=0000000000161154&sum=50000 [11:51:41]written 0, free lines is 4095 [11:51:41]OFD Sender: Processing packet 75414 [packets to send 15, broken 14] [11:51:41]ProducePacketName [11:51:41]name=ofd_packets/00075414 [11:51:41]OFD Sender: To server: pG, [11:51:41]CommunicateWithHost lk.salyk.kg:30040 [11:51:41]ConnectInit lk.salyk.kg [11:51:41]Connected sock=10 [11:51:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 D5 14 04 01 EC BD 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 93 00 00 00 F4 03 04 00 52 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 96 26 01 00 35 04 06 00 84 32 4A 02 86 6E D9 F6 94 BB 0C 03 79 BA [11:51:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 19 1D 47 00 E4 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 39 36 33 33 32 33 10 04 04 00 96 26 01 00 F4 03 04 00 2D 8C 18 67 B6 04 01 00 00 4E 98 3B 82 11 A7 6E 7B [11:51:41]CommunicateWithHost err = 0 [11:51:41]CheckOFDResponse [11:51:41]1017 (14) - 77093643461234 [11:51:41]1041 (16) - 0000000000963323 [11:51:41]1040 (4) - 75414 [11:51:41]1012 (4) - 23.10.2024 05:39 [11:51:41]1206 (1) - 0 [11:51:41]OFD Sender: Remove packet 75414 [11:51:41]ProducePacketName [11:51:41]name=ofd_packets/00075414 [11:51:41]NVStorageDeleteData [11:51:41]Write to MH i2c: 01 00 00 E8 A9 91 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 07 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 07 00 E8 A9 00 00 00 00 00 A8 0C 4C [11:51:41]RasterBufferAndPrint [11:51:41]line [11:51:41]line [11:51:41]line [11:51:41]line [11:51:41]line [11:51:41]written 0, free lines is 3248 [11:51:41]MH_Cut [11:51:41]Write to MH i2c: D1 01 00 EF A9 01 6A [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: D1 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: D1 01 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: D1 01 00 EF A9 00 69 [11:51:41]Write to MH i2c: 01 00 00 F0 A9 99 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:42]OFD Sender: No OFD packet to send [11:51:42]*** Cut start [11:51:42]*** Partial cut [11:51:42]*** CUTSNS_PIN = 1 [11:51:42]*** CUTSNS_PIN = 0 [11:51:43]*** Brake cut motor [11:51:43]Read from MH i2c: 01 [11:51:43]MH_I2C_Read... [11:51:43]*** Stop cut motor [11:51:43]*** Cut end [11:51:43]Read from MH i2c: 01 07 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: 01 07 00 F0 A9 00 00 00 00 00 FF 0F AE [11:51:43]process_action close_receipt done [11:51:43]requested_data is exist [11:51:43]produce_requested_data [11:51:43]requested_item fm.sn is exist - process it [11:51:43]wFMCommunicate request_size=4 [11:51:43]MH_SAM_APDU [11:51:43]CAPDU: 80 11 00 00 [11:51:43]Write to MH i2c: E2 08 00 F1 A9 80 11 00 00 00 00 00 00 14 [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:43]Read from MH i2c: E2 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 17 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 17 00 F1 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 61 [11:51:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:51:43]wFMCommunicate OK [11:51:43]requested_item fd.num is exist - process it [11:51:43]SAM_PROTO_GetFieldsCounters [11:51:43]wFMCommunicate request_size=4 [11:51:43]MH_SAM_APDU [11:51:43]CAPDU: 80 13 00 00 [11:51:43]Write to MH i2c: E2 08 00 F2 A9 80 13 00 00 00 00 00 00 17 [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:43]Read from MH i2c: E2 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 62 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 62 00 F2 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 96 26 01 00 0E 04 04 00 AD 00 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 4E [11:51:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 96 26 01 00 0E 04 04 00 AD 00 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 [11:51:43]wFMCommunicate OK [11:51:43]SAM_PROTO_GetFieldsCounters done [11:51:43]requested_item shift.num is exist - process it [11:51:43]requested_item shift.opened is exist - process it [11:51:43]req_shift_opened [11:51:43]FM_GetShiftState [11:51:43]SAM_PROTO_GetShiftState [11:51:43]wFMCommunicate request_size=4 [11:51:43]MH_SAM_APDU [11:51:43]CAPDU: 80 13 01 00 [11:51:43]Write to MH i2c: E2 08 00 F3 A9 80 13 01 00 00 00 00 00 19 [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:43]Read from MH i2c: E2 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 0E 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 0E 00 F3 A9 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7E [11:51:43]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:51:43]wFMCommunicate OK [11:51:43]SAM_PROTO_GetShiftState done [11:51:43]FM_GetShiftState done [11:51:43]req_shift_opened done [11:51:43]requested_item shift.open_date is exist - process it [11:51:43]req_shift_open_date [11:51:43]req_shift_open_date done [11:51:43]produce_requested_data done [11:51:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75414,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:51:43]process_action_free close_receipt [11:51:43]json_value_free [11:51:43]json_value_free done [11:51:43]process_json_proto returns [11:51:43]Send response to host [11:51:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75414,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:51:43]free response buf [11:51:43]execute_script done [11:51:43]execute_script returns [11:51:43]free content buf [11:51:43]Sock 9.Close socket [11:51:43]Sock 9.Thread stoped [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:12]accept exits with 7 [11:52:12]New connection [11:52:12]New thread 3067465060 created [11:52:12]Thread 3067321700 joined [11:52:12]Waiting for new connection... [11:52:12] Sock 7.Parse request [11:52:12]Sock 7.Check first char [11:52:12]Sock 7.First char is OK [11:52:12]request: POST /json_proto HTTP/1.0 [11:52:12]Method: POST [11:52:12]URL: /json_proto [11:52:12]Method is POST - this is cgi request [11:52:12]url: /json_proto [11:52:12]query_string will be loaded in cgi processing [11:52:12]execute_cgi json_proto POST (null) [11:52:12]execute_cgi path=json_proto method=POST [11:52:12]POST find Content-Length [11:52:12]Host: 172.17.44.196:8080 [11:52:12]Content-Length: 678 [11:52:12]Content-Type: application/json [11:52:12] [11:52:12]POST finish read [11:52:12]Found Content-Length = 678 [11:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:52:12]execute_script... [11:52:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:52:12]POST & json_proto [11:52:12]process_json_proto [11:52:12]json parsed OK: [11:52:12]protocol is kg_v1.0 [11:52:12]action value=close_receipt [11:52:12]process_action close_receipt [11:52:12]cmd_close_receipt [11:52:12]MH_GetDate [11:52:12]Write to MH i2c: F0 00 00 F4 A9 8C [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 09 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 09 00 F4 A9 00 73 E3 18 67 E7 19 F8 65 C7 [11:52:12]GetLastDocTimeStamp 1729684306 [11:52:12]current date 1729684339 [11:52:12]FM_GetShiftState [11:52:12]SAM_PROTO_GetShiftState [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 13 01 00 [11:52:12]Write to MH i2c: E2 08 00 F5 A9 80 13 01 00 00 00 00 00 1B [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 F5 A9 00 09 00 01 99 41 18 67 00 00 00 00 90 00 80 [11:52:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:52:12]wFMCommunicate OK [11:52:12]SAM_PROTO_GetShiftState done [11:52:12]FM_GetShiftState done [11:52:12]opened in 1729642905 [11:52:12]opened+sec_in_day 1729729305 [11:52:12]quantity*price = 40006 [11:52:12]sum+1 = 40007 [11:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 148 23.10.2024 11:52 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75415 ФПД: 98310708785166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115219&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75415&fm=98310708785166&tin=02508201610067®Number=0000000000161154&sum=40000 [11:52:13]StoreToDocumentArchive [11:52:13]shift 173 fd 75415 [11:52:13]save to /storage/0173/doc_00075415 [11:52:13]save last doc name /storage/0173/doc_00075415 to /storage/kkm_last_doc_name [11:52:13]save OK [11:52:13]Clear old archive folders... [11:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:13]tlvbuf is 00DC5960 [11:52:13]SAM_PROTO_ClearQueue [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 09 00 00 [11:52:13]Write to MH i2c: E2 08 00 02 AA 80 09 00 00 00 00 00 00 1E [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 02 AA 00 90 00 20 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]SAM_PROTO_ClearQueue done [11:52:13]KKMCreateOFDPacket [11:52:13]OFDProtocolAddRootSTLVToBuf [11:52:13]FM_MakeSignedData [11:52:13]FM_MakeSignedData [11:52:13]SAM_PROTO_SignData [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 01 02 [11:52:13]Write to MH i2c: E2 08 00 03 AA 80 0D 01 02 00 00 00 00 26 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 03 AA 00 90 00 21 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=255 [11:52:13]MH_SAM_APDU [11:52: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 94 00 00 00 F4 03 04 00 73 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 97 26 01 00 35 04 06 00 59 [11:52:13]Write to MH i2c: E2 02 01 04 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 94 00 00 00 F4 03 04 00 73 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 97 26 01 00 35 04 06 00 59 00 00 A4 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 03 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 03 00 04 AA 00 90 00 22 [11:52:14]RAPDU: 90 00 [11:52:14]wFMCommunicate OK [11:52:14]wFMCommunicate request_size=10 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 0D 02 02 05 69 BE DF F0 0E [11:52:14]Write to MH i2c: E2 0D 00 05 AA 80 0D 02 02 05 00 69 BE DF F0 0E 00 00 37 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 03 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 03 00 05 AA 00 90 00 23 [11:52:14]RAPDU: 90 00 [11:52:14]wFMCommunicate OK [11:52:14]wFMCommunicate request_size=4 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 0D 03 02 [11:52:14]Write to MH i2c: E2 08 00 06 AA 80 0D 03 02 00 00 00 00 2B [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 0B 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 0B 00 06 AA 00 5E 10 C4 07 2E 8C 70 94 90 00 23 [11:52:14]RAPDU: 5E 10 C4 07 2E 8C 70 94 90 00 [11:52:14]wFMCommunicate OK [11:52:14]SAM_PROTO_SignData done [11:52:14]FM_MakeSignedData done [11:52:14]CreateOFDProtocolMessage [11:52:14]wFMCommunicate request_size=4 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 11 00 00 [11:52:14]Write to MH i2c: E2 08 00 07 AA 80 11 00 00 00 00 00 00 2B [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 17 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 17 00 07 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 78 [11:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:52:14]wFMCommunicate OK [11:52:14]CreateOFDProtocolMessage done [11:52:14]OFDSenderStorePacket 75415 [11:52:14]StoreOFDPacket docnum=75415 [11:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 DA 24 07 01 2F E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 94 00 00 00 F4 03 04 00 73 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 97 26 01 00 35 04 06 00 59 69 BE DF F0 0E 5E 10 C4 07 2E 8C 70 94 [11:52:14]CheckFolder [11:52:14]dirname=/storage/ofd_packets [11:52:14]CheckFolder done [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00075415 [11:52:14]NVStorageSaveData ofd_packets/00075415 [11:52:14]File name is /storage/ofd_packets/00075415 [11:52:14]Write 301 bytes [11:52:14]NVStorageSaveData done [11:52:14]OFDSenderStorePacket done [11:52:14]KKMCreateOFDPacket done [11:52:14]NVStorageSaveData kkm_last_timestamp [11:52:14]File name is /storage/kkm_last_timestamp [11:52:14]Write 4 bytes [11:52:14]NVStorageSaveData done [11:52:14]ExternCall_PrintAddStr [11:52:14]wPrintStart [11:52:14]Write to MH i2c: 01 00 00 08 AA B2 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 08 AA 00 00 00 00 00 FF 0F C7 [11:52:14]RasterBufferAndPrint [11:52:14]line Счет N : (1)1965418 [11:52:14]line ИНН: 02508201610067 [11:52:14]line Контрольно-Кассовый Чек [11:52:14]line ПРОДАЖА [11:52:14]line ТРК (МРК, ГНК) : 63 [11:52:14]line Товар: 2710124130 [11:52:14]line Аи-92-К-5 [11:52:14]line 5.980 * 66.90 [11:52:14]line = 400.06 [11:52:14]line НДС 12% НСП 1% [11:52:14]line > о реализуемом товаре [11:52:14]line ОКРУГЛЕНИЕ: -0.06 [11:52:14]line ИТОГО: 400.00 [11:52:14]line Внесено: 400.00 [11:52:14]line СДАЧА: 0.00 [11:52:14]line НСП 1% : 3.54 [11:52:14]line НДС 12% : 42.48 [11:52:14]line Наличными: 400.00 [11:52:14]line Безнал.: 0.00 [11:52:14]line Место: АЗС № 133 "Партнер Нефть" [11:52:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:52:14]line СНО: Общий режим [11:52:14]line Чек 148 23.10.2024 11:52 [11:52:14]line Смена: 173 ФФД: 1.0 [11:52:14]line ЗНМ: 0300000020 [11:52:14]line РНМ: 0000000000161154 [11:52:14]line Версия ККМ: v1.0 [11:52:14]line ФМ: 0000000000963323 [11:52:14]line ФД: 75415 [11:52:14]line ФПД: 98310708785166 [11:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115219&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75415&fm=98310708785166&tin=02508201610067®Number=0000000000161154&sum=40000 [11:52:14]OFD Sender: Processing packet 75415 [packets to send 15, broken 14] [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00075415 [11:52:14]OFD Sender: To server: pG, [11:52:14]CommunicateWithHost lk.salyk.kg:30040 [11:52:14]ConnectInit lk.salyk.kg [11:52:14]written 0, free lines is 4095 [11:52:14]Connected sock=10 [11:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 DA 24 07 01 2F E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 94 00 00 00 F4 03 04 00 73 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 97 26 01 00 35 04 06 00 59 69 BE DF F0 0E 5E 10 C4 07 2E 8C 70 94 [11:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 04 DE 47 00 A5 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 39 36 33 33 32 33 10 04 04 00 97 26 01 00 F4 03 04 00 4F 8C 18 67 B6 04 01 00 00 0F EB 1D 57 F4 58 ED 77 [11:52:14]CommunicateWithHost err = 0 [11:52:14]CheckOFDResponse [11:52:14]1017 (14) - 77093643461234 [11:52:14]1041 (16) - 0000000000963323 [11:52:14]1040 (4) - 75415 [11:52:14]1012 (4) - 23.10.2024 05:40 [11:52:14]1206 (1) - 0 [11:52:14]OFD Sender: Remove packet 75415 [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00075415 [11:52:14]NVStorageDeleteData [11:52:15]Write to MH i2c: 01 00 00 32 AA DC [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: 01 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: 01 07 00 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: 01 07 00 32 AA 00 00 00 00 00 AA 0C 99 [11:52:15]RasterBufferAndPrint [11:52:15]line [11:52:15]line [11:52:15]line [11:52:15]line [11:52:15]line [11:52:15]written 0, free lines is 3248 [11:52:15]MH_Cut [11:52:15]Write to MH i2c: D1 01 00 39 AA 01 B5 [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: D1 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: D1 01 00 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: D1 01 00 39 AA 00 B4 [11:52:15]Write to MH i2c: 01 00 00 3A AA E4 [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:15]OFD Sender: No OFD packet to send [11:52:15]*** Cut start [11:52:15]*** Partial cut [11:52:15]*** CUTSNS_PIN = 1 [11:52:15]*** CUTSNS_PIN = 0 [11:52:16]*** Brake cut motor [11:52:16]Read from MH i2c: 01 [11:52:16]MH_I2C_Read... [11:52:16]*** Stop cut motor [11:52:16]*** Cut end [11:52:16]Read from MH i2c: 01 07 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: 01 07 00 3A AA 00 00 00 00 00 FF 0F F9 [11:52:16]process_action close_receipt done [11:52:16]requested_data is exist [11:52:16]produce_requested_data [11:52:16]requested_item fm.sn is exist - process it [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 11 00 00 [11:52:16]Write to MH i2c: E2 08 00 3B AA 80 11 00 00 00 00 00 00 5F [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 17 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 17 00 3B AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AC [11:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:52:16]wFMCommunicate OK [11:52:16]requested_item fd.num is exist - process it [11:52:16]SAM_PROTO_GetFieldsCounters [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 13 00 00 [11:52:16]Write to MH i2c: E2 08 00 3C AA 80 13 00 00 00 00 00 00 62 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 62 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 62 00 3C AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 97 26 01 00 0E 04 04 00 AD 00 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 9D [11:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 97 26 01 00 0E 04 04 00 AD 00 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 [11:52:16]wFMCommunicate OK [11:52:16]SAM_PROTO_GetFieldsCounters done [11:52:16]requested_item shift.num is exist - process it [11:52:16]requested_item shift.opened is exist - process it [11:52:16]req_shift_opened [11:52:16]FM_GetShiftState [11:52:16]SAM_PROTO_GetShiftState [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 13 01 00 [11:52:16]Write to MH i2c: E2 08 00 3D AA 80 13 01 00 00 00 00 00 64 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 0E 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 0E 00 3D AA 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C9 [11:52:16]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:52:16]wFMCommunicate OK [11:52:16]SAM_PROTO_GetShiftState done [11:52:16]FM_GetShiftState done [11:52:16]req_shift_opened done [11:52:16]requested_item shift.open_date is exist - process it [11:52:16]req_shift_open_date [11:52:16]req_shift_open_date done [11:52:16]produce_requested_data done [11:52:16]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75415,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:52:16]process_action_free close_receipt [11:52:16]json_value_free [11:52:16]json_value_free done [11:52:16]process_json_proto returns [11:52:16]Send response to host [11:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75415,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:52:16]free response buf [11:52:16]execute_script done [11:52:16]execute_script returns [11:52:16]free content buf [11:52:16]Sock 7.Close socket [11:52:16]Sock 7.Thread stoped [11:52:19]accept exits with 9 [11:52:19]New connection [11:52:19]New thread 3067321700 created [11:52:19]Thread 3067465060 joined [11:52:19]Waiting for new connection... [11:52:19] Sock 9.Parse request [11:52:19]Sock 9.Check first char [11:52:19]Sock 9.First char is OK [11:52:19]request: POST /json_proto HTTP/1.0 [11:52:19]Method: POST [11:52:19]URL: /json_proto [11:52:19]Method is POST - this is cgi request [11:52:19]url: /json_proto [11:52:19]query_string will be loaded in cgi processing [11:52:19]execute_cgi json_proto POST (null) [11:52:19]execute_cgi path=json_proto method=POST [11:52:19]POST find Content-Length [11:52:19]Host: 172.17.44.196:8080 [11:52:19]Content-Length: 680 [11:52:19]Content-Type: application/json [11:52:19] [11:52:19]POST finish read [11:52:19]Found Content-Length = 680 [11:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:52:19]execute_script... [11:52: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)1965417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:52:19]POST & json_proto [11:52:19]process_json_proto [11:52:19]json parsed OK: [11:52:19]protocol is kg_v1.0 [11:52:19]action value=close_receipt [11:52:19]process_action close_receipt [11:52:19]cmd_close_receipt [11:52:19]MH_GetDate [11:52:19]Write to MH i2c: F0 00 00 3E AA D7 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: F0 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: F0 09 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: F0 09 00 3E AA 00 7B E3 18 67 E7 19 F8 65 1A [11:52:19]GetLastDocTimeStamp 1729684339 [11:52:19]current date 1729684347 [11:52:19]FM_GetShiftState [11:52:19]SAM_PROTO_GetShiftState [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 13 01 00 [11:52:19]Write to MH i2c: E2 08 00 3F AA 80 13 01 00 00 00 00 00 66 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 0E 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 0E 00 3F AA 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CB [11:52:19]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:52:19]wFMCommunicate OK [11:52:19]SAM_PROTO_GetShiftState done [11:52:19]FM_GetShiftState done [11:52:19]opened in 1729642905 [11:52:19]opened+sec_in_day 1729729305 [11:52:19]quantity*price = 100050 [11:52:19]sum+1 = 100052 [11:52:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 149 23.10.2024 11:52 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75416 ФПД: 153020841026400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115227&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75416&fm=153020841026400&tin=02508201610067®Number=0000000000161154&sum=100000 [11:52:21]StoreToDocumentArchive [11:52:21]shift 173 fd 75416 [11:52:21]save to /storage/0173/doc_00075416 [11:52:21]save last doc name /storage/0173/doc_00075416 to /storage/kkm_last_doc_name [11:52:21]save OK [11:52:21]Clear old archive folders... [11:52:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:52:21]tlvbuf is 00C96040 [11:52:21]SAM_PROTO_ClearQueue [11:52:21]wFMCommunicate request_size=4 [11:52:21]MH_SAM_APDU [11:52:21]CAPDU: 80 09 00 00 [11:52:21]Write to MH i2c: E2 08 00 4C AA 80 09 00 00 00 00 00 00 68 [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:21]Read from MH i2c: E2 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 03 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 03 00 4C AA 00 90 00 6A [11:52:21]RAPDU: 90 00 [11:52:21]wFMCommunicate OK [11:52:21]SAM_PROTO_ClearQueue done [11:52:21]KKMCreateOFDPacket [11:52:21]OFDProtocolAddRootSTLVToBuf [11:52:21]FM_MakeSignedData [11:52:21]FM_MakeSignedData [11:52:21]SAM_PROTO_SignData [11:52:21]wFMCommunicate request_size=4 [11:52:21]MH_SAM_APDU [11:52:21]CAPDU: 80 0D 01 02 [11:52:21]Write to MH i2c: E2 08 00 4D AA 80 0D 01 02 00 00 00 00 70 [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:21]Read from MH i2c: E2 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 03 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 03 00 4D AA 00 90 00 6B [11:52:21]RAPDU: 90 00 [11:52:21]wFMCommunicate OK [11:52:21]wFMCommunicate request_size=255 [11:52:21]MH_SAM_APDU [11:52: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7B E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 98 26 01 00 35 04 06 00 8B 2B F0 DF [11:52:21]Write to MH i2c: E2 02 01 4E AA 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7B E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 98 26 01 00 35 04 06 00 8B 2B F0 DF 00 00 4B [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:21]Read from MH i2c: E2 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 03 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 03 00 4E AA 00 90 00 6C [11:52:21]RAPDU: 90 00 [11:52:21]wFMCommunicate OK [11:52:21]wFMCommunicate request_size=7 [11:52:21]MH_SAM_APDU [11:52:21]CAPDU: 80 0D 02 02 02 63 60 [11:52:21]Write to MH i2c: E2 0A 00 4F AA 80 0D 02 02 02 00 63 60 00 00 3A [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:21]Read from MH i2c: E2 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 03 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 03 00 4F AA 00 90 00 6D [11:52:21]RAPDU: 90 00 [11:52:21]wFMCommunicate OK [11:52:21]wFMCommunicate request_size=4 [11:52:21]MH_SAM_APDU [11:52:21]CAPDU: 80 0D 03 02 [11:52:21]Write to MH i2c: E2 08 00 50 AA 80 0D 03 02 00 00 00 00 75 [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:21]Read from MH i2c: E2 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 0B 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 0B 00 50 AA 00 A9 E6 82 B2 D1 88 3E 8F 90 00 5F [11:52:21]RAPDU: A9 E6 82 B2 D1 88 3E 8F 90 00 [11:52:21]wFMCommunicate OK [11:52:21]SAM_PROTO_SignData done [11:52:21]FM_MakeSignedData done [11:52:21]CreateOFDProtocolMessage [11:52:21]wFMCommunicate request_size=4 [11:52:21]MH_SAM_APDU [11:52:21]CAPDU: 80 11 00 00 [11:52:21]Write to MH i2c: E2 08 00 51 AA 80 11 00 00 00 00 00 00 75 [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:21]Read from MH i2c: E2 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 17 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 17 00 51 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C2 [11:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:52:21]wFMCommunicate OK [11:52:21]CreateOFDProtocolMessage done [11:52:21]OFDSenderStorePacket 75416 [11:52:21]StoreOFDPacket docnum=75416 [11:52:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 C2 44 04 01 80 46 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7B E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 98 26 01 00 35 04 06 00 8B 2B F0 DF 63 60 A9 E6 82 B2 D1 88 3E 8F [11:52:21]CheckFolder [11:52:21]dirname=/storage/ofd_packets [11:52:21]CheckFolder done [11:52:21]ProducePacketName [11:52:21]name=ofd_packets/00075416 [11:52:21]NVStorageSaveData ofd_packets/00075416 [11:52:21]File name is /storage/ofd_packets/00075416 [11:52:21]Write 298 bytes [11:52:21]NVStorageSaveData done [11:52:21]OFDSenderStorePacket done [11:52:21]KKMCreateOFDPacket done [11:52:21]NVStorageSaveData kkm_last_timestamp [11:52:21]File name is /storage/kkm_last_timestamp [11:52:21]Write 4 bytes [11:52:21]NVStorageSaveData done [11:52:21]ExternCall_PrintAddStr [11:52:21]wPrintStart [11:52:21]Write to MH i2c: 01 00 00 52 AA FC [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: 01 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: 01 07 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: 01 07 00 52 AA 00 00 00 00 00 FF 0F 11 [11:52:21]RasterBufferAndPrint [11:52:21]line Счет N : (1)1965417 [11:52:21]line ИНН: 02508201610067 [11:52:21]line Контрольно-Кассовый Чек [11:52:21]line ПРОДАЖА [11:52:21]line ТРК (МРК, ГНК) : 21 [11:52:21]line Товар: 2710194210 [11:52:21]line ДТ-К-5 [11:52:21]line 13.130 * 76.20 [11:52:21]line = 1000.51 [11:52:21]line НДС 12% НСП 1% [11:52:21]line > о реализуемом товаре [11:52:21]line ОКРУГЛЕНИЕ: -0.51 [11:52:21]line ИТОГО: 1000.00 [11:52:21]line Внесено: 1000.00 [11:52:21]line СДАЧА: 0.00 [11:52:21]line НСП 1% : 8.85 [11:52:21]line НДС 12% : 106.25 [11:52:21]line Наличными: 1000.00 [11:52:21]line Безнал.: 0.00 [11:52:21]line Место: АЗС № 133 "Партнер Нефть" [11:52:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:52:21]line СНО: Общий режим [11:52:21]line Чек 149 23.10.2024 11:52 [11:52:21]line Смена: 173 ФФД: 1.0 [11:52:21]line ЗНМ: 0300000020 [11:52:21]line РНМ: 0000000000161154 [11:52:21]line Версия ККМ: v1.0 [11:52:21]line ФМ: 0000000000963323 [11:52:21]line ФД: 75416 [11:52:21]line ФПД: 153020841026400 [11:52:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115227&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75416&fm=153020841026400&tin=02508201610067®Number=0000000000161154&sum=100000 [11:52:21]written 0, free lines is 4095 [11:52:21]OFD Sender: Processing packet 75416 [packets to send 15, broken 14] [11:52:21]ProducePacketName [11:52:21]name=ofd_packets/00075416 [11:52:21]OFD Sender: To server: pG, [11:52:21]CommunicateWithHost lk.salyk.kg:30040 [11:52:21]ConnectInit lk.salyk.kg [11:52:21]Connected sock=10 [11:52:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 C2 44 04 01 80 46 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7B E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 98 26 01 00 35 04 06 00 8B 2B F0 DF 63 60 A9 E6 82 B2 D1 88 3E 8F [11:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 85 99 47 00 A1 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 98 26 01 00 F4 03 04 00 56 8C 18 67 B6 04 01 00 00 22 FB CE D8 9D 7A 59 80 [11:52:22]CommunicateWithHost err = 0 [11:52:22]CheckOFDResponse [11:52:22]1017 (14) - 77093643461234 [11:52:22]1041 (16) - 0000000000963323 [11:52:22]1040 (4) - 75416 [11:52:22]1012 (4) - 23.10.2024 05:40 [11:52:22]1206 (1) - 0 [11:52:22]OFD Sender: Remove packet 75416 [11:52:22]ProducePacketName [11:52:22]name=ofd_packets/00075416 [11:52:22]NVStorageDeleteData [11:52:22]Write to MH i2c: 01 00 00 7C AA 26 [11:52:22]Write i2c OK [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: 01 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: 01 07 00 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: 01 07 00 7C AA 00 00 00 00 00 B0 0C E9 [11:52:22]RasterBufferAndPrint [11:52:22]line [11:52:22]line [11:52:22]line [11:52:22]line [11:52:22]line [11:52:22]written 0, free lines is 3259 [11:52:22]MH_Cut [11:52:22]Write to MH i2c: D1 01 00 83 AA 01 FF [11:52:22]Write i2c OK [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: D1 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: D1 01 00 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: D1 01 00 83 AA 00 FE [11:52:22]Write to MH i2c: 01 00 00 84 AA 2E [11:52:22]Write i2c OK [11:52:22]MH_I2C_Read... [11:52:22]OFD Sender: No OFD packet to send [11:52:23]*** Cut start [11:52:23]*** Partial cut [11:52:23]*** CUTSNS_PIN = 1 [11:52:23]*** CUTSNS_PIN = 0 [11:52:23]*** Brake cut motor [11:52:23]Read from MH i2c: 01 [11:52:23]MH_I2C_Read... [11:52:23]*** Stop cut motor [11:52:23]*** Cut end [11:52:23]Read from MH i2c: 01 07 00 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: 01 07 00 84 AA 00 00 00 00 00 FF 0F 43 [11:52:23]process_action close_receipt done [11:52:23]requested_data is exist [11:52:23]produce_requested_data [11:52:23]requested_item fm.sn is exist - process it [11:52:23]wFMCommunicate request_size=4 [11:52:23]MH_SAM_APDU [11:52:23]CAPDU: 80 11 00 00 [11:52:23]Write to MH i2c: E2 08 00 85 AA 80 11 00 00 00 00 00 00 A9 [11:52:23]Write i2c OK [11:52:23]MH_I2C_Read... [11:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:23]Read from MH i2c: E2 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: E2 17 00 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: E2 17 00 85 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F6 [11:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:52:23]wFMCommunicate OK [11:52:23]requested_item fd.num is exist - process it [11:52:23]SAM_PROTO_GetFieldsCounters [11:52:23]wFMCommunicate request_size=4 [11:52:23]MH_SAM_APDU [11:52:23]CAPDU: 80 13 00 00 [11:52:23]Write to MH i2c: E2 08 00 86 AA 80 13 00 00 00 00 00 00 AC [11:52:23]Write i2c OK [11:52:23]MH_I2C_Read... [11:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:23]Read from MH i2c: E2 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: E2 62 00 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: E2 62 00 86 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 98 26 01 00 0E 04 04 00 AD 00 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 EB [11:52:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 98 26 01 00 0E 04 04 00 AD 00 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 [11:52:23]wFMCommunicate OK [11:52:23]SAM_PROTO_GetFieldsCounters done [11:52:23]requested_item shift.num is exist - process it [11:52:23]requested_item shift.opened is exist - process it [11:52:23]req_shift_opened [11:52:23]FM_GetShiftState [11:52:23]SAM_PROTO_GetShiftState [11:52:23]wFMCommunicate request_size=4 [11:52:23]MH_SAM_APDU [11:52:23]CAPDU: 80 13 01 00 [11:52:23]Write to MH i2c: E2 08 00 87 AA 80 13 01 00 00 00 00 00 AE [11:52:23]Write i2c OK [11:52:23]MH_I2C_Read... [11:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:23]Read from MH i2c: E2 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: E2 0E 00 [11:52:23]MH_I2C_Read... [11:52:23]Read from MH i2c: E2 0E 00 87 AA 00 09 00 01 99 41 18 67 00 00 00 00 90 00 13 [11:52:23]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:52:23]wFMCommunicate OK [11:52:23]SAM_PROTO_GetShiftState done [11:52:23]FM_GetShiftState done [11:52:23]req_shift_opened done [11:52:23]requested_item shift.open_date is exist - process it [11:52:23]req_shift_open_date [11:52:23]req_shift_open_date done [11:52:23]produce_requested_data done [11:52:23]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75416,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:52:23]process_action_free close_receipt [11:52:23]json_value_free [11:52:23]json_value_free done [11:52:23]process_json_proto returns [11:52:23]Send response to host [11:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75416,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:52:23]free response buf [11:52:23]execute_script done [11:52:23]execute_script returns [11:52:23]free content buf [11:52:23]Sock 9.Close socket [11:52:23]Sock 9.Thread stoped [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:09]accept exits with 7 [11:53:09]New connection [11:53:09]New thread 3067465060 created [11:53:09]Thread 3067321700 joined [11:53:09]Waiting for new connection... [11:53:09] Sock 7.Parse request [11:53:09]Sock 7.Check first char [11:53:09]Sock 7.First char is OK [11:53:09]request: POST /json_proto HTTP/1.0 [11:53:09]Method: POST [11:53:09]URL: /json_proto [11:53:09]Method is POST - this is cgi request [11:53:09]url: /json_proto [11:53:09]query_string will be loaded in cgi processing [11:53:09]execute_cgi json_proto POST (null) [11:53:09]execute_cgi path=json_proto method=POST [11:53:09]POST find Content-Length [11:53:09]Host: 172.17.44.196:8080 [11:53:09]Content-Length: 755 [11:53:09]Content-Type: application/json [11:53:09] [11:53:09]POST finish read [11:53:09]Found Content-Length = 755 [11:53:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101036", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:09]execute_script... [11:53: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)1965419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101036", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:09]POST & json_proto [11:53:09]process_json_proto [11:53:09]json parsed OK: [11:53:09]protocol is kg_v1.0 [11:53:09]action value=close_receipt [11:53:09]process_action close_receipt [11:53:09]cmd_close_receipt [11:53:09]MH_GetDate [11:53:09]Write to MH i2c: F0 00 00 88 AA 21 [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: F0 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: F0 09 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: F0 09 00 88 AA 00 AC E3 18 67 E7 19 F8 65 95 [11:53:09]GetLastDocTimeStamp 1729684347 [11:53:09]current date 1729684396 [11:53:09]FM_GetShiftState [11:53:09]SAM_PROTO_GetShiftState [11:53:09]wFMCommunicate request_size=4 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 13 01 00 [11:53:09]Write to MH i2c: E2 08 00 89 AA 80 13 01 00 00 00 00 00 B0 [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 0E 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 0E 00 89 AA 00 09 00 01 99 41 18 67 00 00 00 00 90 00 15 [11:53:09]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:53:09]wFMCommunicate OK [11:53:09]SAM_PROTO_GetShiftState done [11:53:09]FM_GetShiftState done [11:53:09]opened in 1729642905 [11:53:09]opened+sec_in_day 1729729305 [11:53:09]quantity*price = 0 [11:53:09]sum+1 = 1 [11:53:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 150 23.10.2024 11:53 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30101036 ФМ: 0000000000963323 ФД: 75417 ФПД: 98774320848207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115316&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75417&fm=98774320848207&tin=02508201610067®Number=0000000000161154&sum=0 [11:53:10]StoreToDocumentArchive [11:53:10]shift 173 fd 75417 [11:53:10]save to /storage/0173/doc_00075417 [11:53:10]save last doc name /storage/0173/doc_00075417 to /storage/kkm_last_doc_name [11:53:10]save OK [11:53:10]Clear old archive folders... [11:53:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:10]tlvbuf is 00CD15C0 [11:53:10]SAM_PROTO_ClearQueue [11:53:10]wFMCommunicate request_size=4 [11:53:10]MH_SAM_APDU [11:53:10]CAPDU: 80 09 00 00 [11:53:10]Write to MH i2c: E2 08 00 96 AA 80 09 00 00 00 00 00 00 B2 [11:53:10]Write i2c OK [11:53:10]MH_I2C_Read... [11:53:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:10]Read from MH i2c: E2 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 03 00 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 03 00 96 AA 00 90 00 B4 [11:53:10]RAPDU: 90 00 [11:53:10]wFMCommunicate OK [11:53:10]SAM_PROTO_ClearQueue done [11:53:10]KKMCreateOFDPacket [11:53:10]OFDProtocolAddRootSTLVToBuf [11:53:10]FM_MakeSignedData [11:53:10]FM_MakeSignedData [11:53:10]SAM_PROTO_SignData [11:53:10]wFMCommunicate request_size=4 [11:53:10]MH_SAM_APDU [11:53:10]CAPDU: 80 0D 01 02 [11:53:10]Write to MH i2c: E2 08 00 97 AA 80 0D 01 02 00 00 00 00 BA [11:53:10]Write i2c OK [11:53:10]MH_I2C_Read... [11:53:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:10]Read from MH i2c: E2 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 03 00 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 03 00 97 AA 00 90 00 B5 [11:53:10]RAPDU: 90 00 [11:53:10]wFMCommunicate OK [11:53:10]wFMCommunicate request_size=255 [11:53:10]MH_SAM_APDU [11:53: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AC E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 99 26 01 00 35 04 06 00 59 [11:53:10]Write to MH i2c: E2 02 01 98 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AC E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 99 26 01 00 35 04 06 00 59 00 00 58 [11:53:10]Write i2c OK [11:53:10]MH_I2C_Read... [11:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:10]Read from MH i2c: E2 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 03 00 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 03 00 98 AA 00 90 00 B6 [11:53:10]RAPDU: 90 00 [11:53:10]wFMCommunicate OK [11:53:10]wFMCommunicate request_size=10 [11:53:10]MH_SAM_APDU [11:53:10]CAPDU: 80 0D 02 02 05 D5 B0 4E 9D 4F [11:53:10]Write to MH i2c: E2 0D 00 99 AA 80 0D 02 02 05 00 D5 B0 4E 9D 4F 00 00 86 [11:53:10]Write i2c OK [11:53:10]MH_I2C_Read... [11:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:10]Read from MH i2c: E2 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 03 00 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 03 00 99 AA 00 90 00 B7 [11:53:10]RAPDU: 90 00 [11:53:10]wFMCommunicate OK [11:53:10]wFMCommunicate request_size=4 [11:53:10]MH_SAM_APDU [11:53:10]CAPDU: 80 0D 03 02 [11:53:10]Write to MH i2c: E2 08 00 9A AA 80 0D 03 02 00 00 00 00 BF [11:53:10]Write i2c OK [11:53:10]MH_I2C_Read... [11:53:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:10]Read from MH i2c: E2 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 0B 00 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 0B 00 9A AA 00 18 B9 D7 16 03 2C 5C 63 90 00 6C [11:53:10]RAPDU: 18 B9 D7 16 03 2C 5C 63 90 00 [11:53:10]wFMCommunicate OK [11:53:10]SAM_PROTO_SignData done [11:53:10]FM_MakeSignedData done [11:53:10]CreateOFDProtocolMessage [11:53:10]wFMCommunicate request_size=4 [11:53:10]MH_SAM_APDU [11:53:10]CAPDU: 80 11 00 00 [11:53:10]Write to MH i2c: E2 08 00 9B AA 80 11 00 00 00 00 00 00 BF [11:53:10]Write i2c OK [11:53:10]MH_I2C_Read... [11:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:10]Read from MH i2c: E2 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 17 00 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: E2 17 00 9B AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0C [11:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:53:10]wFMCommunicate OK [11:53:10]CreateOFDProtocolMessage done [11:53:10]OFDSenderStorePacket 75417 [11:53:10]StoreOFDPacket docnum=75417 [11:53:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C8 6C 07 01 4E 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AC E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 99 26 01 00 35 04 06 00 59 D5 B0 4E 9D 4F 18 B9 D7 16 03 2C 5C 63 [11:53:10]CheckFolder [11:53:10]dirname=/storage/ofd_packets [11:53:10]CheckFolder done [11:53:10]ProducePacketName [11:53:10]name=ofd_packets/00075417 [11:53:10]NVStorageSaveData ofd_packets/00075417 [11:53:10]File name is /storage/ofd_packets/00075417 [11:53:10]Write 301 bytes [11:53:10]NVStorageSaveData done [11:53:10]OFDSenderStorePacket done [11:53:10]KKMCreateOFDPacket done [11:53:10]NVStorageSaveData kkm_last_timestamp [11:53:10]File name is /storage/kkm_last_timestamp [11:53:10]Write 4 bytes [11:53:10]NVStorageSaveData done [11:53:10]ExternCall_PrintAddStr [11:53:10]wPrintStart [11:53:10]Write to MH i2c: 01 00 00 9C AA 46 [11:53:10]Write i2c OK [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: 01 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: 01 07 00 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: 01 07 00 9C AA 00 00 00 00 00 FF 0F 5B [11:53:10]RasterBufferAndPrint [11:53:10]line Счет N : (1)1965419 [11:53:10]line ИНН: 02508201610067 [11:53:10]line Контрольно-Кассовый Чек [11:53:10]line ПРОДАЖА [11:53:10]line ТРК (МРК, ГНК) : 53 [11:53:10]line Товар: 2710124130 [11:53:10]line Аи-92-К-5 [11:53:10]line 10.000 * 0.00 [11:53:10]line = 0.00 [11:53:10]line НДС 12% НСП 1% [11:53:10]line > о реализуемом товаре [11:53:10]line ИТОГО: 0.00 [11:53:10]line НСП 1% : 0.00 [11:53:10]line НДС 12% : 0.00 [11:53:10]line Наличными: 0.00 [11:53:10]line Безнал.: 0.00 [11:53:10]line Место: АЗС № 133 "Партнер Нефть" [11:53:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:53:10]line СНО: Общий режим [11:53:10]line Чек 150 23.10.2024 11:53 [11:53:10]line Смена: 173 ФФД: 1.0 [11:53:10]line ЗНМ: 0300000020 [11:53:10]line РНМ: 0000000000161154 [11:53:10]line Версия ККМ: v1.0 [11:53:10]line Талоны: ТК ГПНА Online [11:53:10]line 30101036 [11:53:10]line ФМ: 0000000000963323 [11:53:10]line ФД: 75417 [11:53:10]line ФПД: 98774320848207 [11:53:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115316&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75417&fm=98774320848207&tin=02508201610067®Number=0000000000161154&sum=0 [11:53:10]written 0, free lines is 4095 [11:53:10]OFD Sender: Processing packet 75417 [packets to send 15, broken 14] [11:53:10]ProducePacketName [11:53:10]name=ofd_packets/00075417 [11:53:10]OFD Sender: To server: pG, [11:53:10]CommunicateWithHost lk.salyk.kg:30040 [11:53:10]ConnectInit lk.salyk.kg [11:53:10]Connected sock=10 [11:53:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 C8 6C 07 01 4E 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AC E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 99 26 01 00 35 04 06 00 59 D5 B0 4E 9D 4F 18 B9 D7 16 03 2C 5C 63 [11:53:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EA 33 47 00 F4 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 39 36 33 33 32 33 10 04 04 00 99 26 01 00 F4 03 04 00 87 8C 18 67 B6 04 01 00 00 BE A1 24 3F F9 F3 57 D5 [11:53:11]CommunicateWithHost err = 0 [11:53:11]CheckOFDResponse [11:53:11]1017 (14) - 77093643461234 [11:53:11]1041 (16) - 0000000000963323 [11:53:11]1040 (4) - 75417 [11:53:11]1012 (4) - 23.10.2024 05:41 [11:53:11]1206 (1) - 0 [11:53:11]OFD Sender: Remove packet 75417 [11:53:11]ProducePacketName [11:53:11]name=ofd_packets/00075417 [11:53:11]NVStorageDeleteData [11:53:11]Write to MH i2c: 01 00 00 C5 AA 6F [11:53:11]Write i2c OK [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: 01 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: 01 07 00 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: 01 07 00 C5 AA 00 00 00 00 00 C0 0C 42 [11:53:11]RasterBufferAndPrint [11:53:11]line [11:53:11]line [11:53:11]line [11:53:11]line [11:53:11]line [11:53:11]written 0, free lines is 3268 [11:53:11]MH_Cut [11:53:11]Write to MH i2c: D1 01 00 CC AA 01 48 [11:53:11]Write i2c OK [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: D1 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: D1 01 00 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: D1 01 00 CC AA 00 47 [11:53:11]Write to MH i2c: 01 00 00 CD AA 77 [11:53:11]Write i2c OK [11:53:11]MH_I2C_Read... [11:53:11]OFD Sender: No OFD packet to send [11:53:11]*** Cut start [11:53:11]*** Partial cut [11:53:11]*** CUTSNS_PIN = 1 [11:53:12]*** CUTSNS_PIN = 0 [11:53:12]*** Brake cut motor [11:53:12]Read from MH i2c: 01 [11:53:12]MH_I2C_Read... [11:53:12]*** Stop cut motor [11:53:12]*** Cut end [11:53:12]Read from MH i2c: 01 07 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: 01 07 00 CD AA 00 00 00 00 00 FF 0F 8C [11:53:12]process_action close_receipt done [11:53:12]requested_data is exist [11:53:12]produce_requested_data [11:53:12]requested_item fm.sn is exist - process it [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 11 00 00 [11:53:12]Write to MH i2c: E2 08 00 CE AA 80 11 00 00 00 00 00 00 F2 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:12]Read from MH i2c: E2 17 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 17 00 CE AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3F [11:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:53:12]wFMCommunicate OK [11:53:12]requested_item fd.num is exist - process it [11:53:12]SAM_PROTO_GetFieldsCounters [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 13 00 00 [11:53:12]Write to MH i2c: E2 08 00 CF AA 80 13 00 00 00 00 00 00 F5 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 62 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 62 00 CF AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 99 26 01 00 0E 04 04 00 AD 00 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 38 [11:53:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 99 26 01 00 0E 04 04 00 AD 00 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 [11:53:12]wFMCommunicate OK [11:53:12]SAM_PROTO_GetFieldsCounters done [11:53:12]requested_item shift.num is exist - process it [11:53:12]requested_item shift.opened is exist - process it [11:53:12]req_shift_opened [11:53:12]FM_GetShiftState [11:53:12]SAM_PROTO_GetShiftState [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 13 01 00 [11:53:12]Write to MH i2c: E2 08 00 D0 AA 80 13 01 00 00 00 00 00 F7 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 0E 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 0E 00 D0 AA 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5C [11:53:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:53:12]wFMCommunicate OK [11:53:12]SAM_PROTO_GetShiftState done [11:53:12]FM_GetShiftState done [11:53:12]req_shift_opened done [11:53:12]requested_item shift.open_date is exist - process it [11:53:12]req_shift_open_date [11:53:12]req_shift_open_date done [11:53:12]produce_requested_data done [11:53:12]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75417,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:53:12]process_action_free close_receipt [11:53:12]json_value_free [11:53:12]json_value_free done [11:53:12]process_json_proto returns [11:53:12]Send response to host [11:53:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75417,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:53:12]free response buf [11:53:12]execute_script done [11:53:12]execute_script returns [11:53:12]free content buf [11:53:12]Sock 7.Close socket [11:53:12]Sock 7.Thread stoped [11:53:16]OFD Sender: No OFD packet to send [11:53:20]accept exits with 9 [11:53:20]New connection [11:53:20]New thread 3067321700 created [11:53:20]Thread 3067465060 joined [11:53:20]Waiting for new connection... [11:53:20] Sock 9.Parse request [11:53:20]Sock 9.Check first char [11:53:20]Sock 9.First char is OK [11:53:20]request: POST /json_proto HTTP/1.0 [11:53:20]Method: POST [11:53:20]URL: /json_proto [11:53:20]Method is POST - this is cgi request [11:53:20]url: /json_proto [11:53:20]query_string will be loaded in cgi processing [11:53:20]execute_cgi json_proto POST (null) [11:53:20]execute_cgi path=json_proto method=POST [11:53:20]POST find Content-Length [11:53:20]Host: 172.17.44.196:8080 [11:53:20]Content-Length: 623 [11:53:20]Content-Type: application/json [11:53:20] [11:53:20]POST finish read [11:53:20]Found Content-Length = 623 [11:53:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273234", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:20]execute_script... [11:53: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)273234", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:20]POST & json_proto [11:53:20]process_json_proto [11:53:20]json parsed OK: [11:53:20]protocol is kg_v1.0 [11:53:20]action value=close_receipt [11:53:20]process_action close_receipt [11:53:20]cmd_close_receipt [11:53:20]MH_GetDate [11:53:20]Write to MH i2c: F0 00 00 D1 AA 6A [11:53:20]Write i2c OK [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: F0 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: F0 09 00 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: F0 09 00 D1 AA 00 B7 E3 18 67 E7 19 F8 65 E9 [11:53:20]GetLastDocTimeStamp 1729684396 [11:53:20]current date 1729684407 [11:53:20]FM_GetShiftState [11:53:20]SAM_PROTO_GetShiftState [11:53:20]wFMCommunicate request_size=4 [11:53:20]MH_SAM_APDU [11:53:20]CAPDU: 80 13 01 00 [11:53:20]Write to MH i2c: E2 08 00 D2 AA 80 13 01 00 00 00 00 00 F9 [11:53:20]Write i2c OK [11:53:20]MH_I2C_Read... [11:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:20]Read from MH i2c: E2 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: E2 0E 00 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: E2 0E 00 D2 AA 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5E [11:53:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:53:20]wFMCommunicate OK [11:53:20]SAM_PROTO_GetShiftState done [11:53:20]FM_GetShiftState done [11:53:20]opened in 1729642905 [11:53:20]opened+sec_in_day 1729729305 [11:53:20]quantity*price = 14000 [11:53:20]sum+1 = 14001 [11:53:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 151 23.10.2024 11:53 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75418 ФПД: 266577444212060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115327&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75418&fm=266577444212060&tin=02508201610067®Number=0000000000161154&sum=14000 0 [11:53:21]StoreToDocumentArchive [11:53:21]shift 173 fd 75418 [11:53:21]save to /storage/0173/doc_00075418 [11:53:21]save last doc name /storage/0173/doc_00075418 to /storage/kkm_last_doc_name [11:53:21]save OK [11:53:21]Clear old archive folders... [11:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:53:21]tlvbuf is 00E8D3D0 [11:53:21]SAM_PROTO_ClearQueue [11:53:21]wFMCommunicate request_size=4 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 09 00 00 [11:53:21]Write to MH i2c: E2 08 00 DF AA 80 09 00 00 00 00 00 00 FB [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]OFD Sender: No OFD packet to send [11:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 03 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 03 00 DF AA 00 90 00 FD [11:53:21]RAPDU: 90 00 [11:53:21]wFMCommunicate OK [11:53:21]SAM_PROTO_ClearQueue done [11:53:21]KKMCreateOFDPacket [11:53:21]OFDProtocolAddRootSTLVToBuf [11:53:21]FM_MakeSignedData [11:53:21]FM_MakeSignedData [11:53:21]SAM_PROTO_SignData [11:53:21]wFMCommunicate request_size=4 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 0D 01 02 [11:53:21]Write to MH i2c: E2 08 00 E0 AA 80 0D 01 02 00 00 00 00 03 [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 03 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 03 00 E0 AA 00 90 00 FE [11:53:21]RAPDU: 90 00 [11:53:21]wFMCommunicate OK [11:53:21]wFMCommunicate request_size=255 [11:53:21]MH_SAM_APDU [11:53:21]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 B7 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [11:53:21]Write to MH i2c: E2 02 01 E1 AA 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 B7 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 E9 [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 03 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 03 00 E1 AA 00 90 00 FF [11:53:21]RAPDU: 90 00 [11:53:21]wFMCommunicate OK [11:53:21]wFMCommunicate request_size=34 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9A 26 01 00 35 04 06 00 F2 73 65 DE 0D 5C [11:53:21]Write to MH i2c: E2 25 00 E2 AA 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9A 26 01 00 35 04 06 00 F2 73 65 DE 0D 5C 00 00 93 [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 03 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 03 00 E2 AA 00 90 00 00 [11:53:21]RAPDU: 90 00 [11:53:21]wFMCommunicate OK [11:53:21]wFMCommunicate request_size=4 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 0D 03 02 [11:53:21]Write to MH i2c: E2 08 00 E3 AA 80 0D 03 02 00 00 00 00 08 [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:22]Read from MH i2c: E2 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 0B 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 0B 00 E3 AA 00 17 D5 CD CD 2C AB E3 1F 90 00 68 [11:53:22]RAPDU: 17 D5 CD CD 2C AB E3 1F 90 00 [11:53:22]wFMCommunicate OK [11:53:22]SAM_PROTO_SignData done [11:53:22]FM_MakeSignedData done [11:53:22]CreateOFDProtocolMessage [11:53:22]wFMCommunicate request_size=4 [11:53:22]MH_SAM_APDU [11:53:22]CAPDU: 80 11 00 00 [11:53:22]Write to MH i2c: E2 08 00 E4 AA 80 11 00 00 00 00 00 00 08 [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:22]Read from MH i2c: E2 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 17 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 17 00 E4 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 55 [11:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:53:22]wFMCommunicate OK [11:53:22]CreateOFDProtocolMessage done [11:53:22]OFDSenderStorePacket 75418 [11:53:22]StoreOFDPacket docnum=75418 [11:53:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 BA 74 1F 01 66 1D 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 B7 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9A 26 01 00 35 04 06 00 F2 73 65 DE 0D 5C 17 D5 CD CD 2C AB E3 1F [11:53:22]CheckFolder [11:53:22]dirname=/storage/ofd_packets [11:53:22]CheckFolder done [11:53:22]ProducePacketName [11:53:22]name=ofd_packets/00075418 [11:53:22]NVStorageSaveData ofd_packets/00075418 [11:53:22]File name is /storage/ofd_packets/00075418 [11:53:22]Write 325 bytes [11:53:22]NVStorageSaveData done [11:53:22]OFDSenderStorePacket done [11:53:22]KKMCreateOFDPacket done [11:53:22]NVStorageSaveData kkm_last_timestamp [11:53:22]File name is /storage/kkm_last_timestamp [11:53:22]Write 4 bytes [11:53:22]NVStorageSaveData done [11:53:22]ExternCall_PrintAddStr [11:53:22]wPrintStart [11:53:22]Write to MH i2c: 01 00 00 E5 AA 8F [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: 01 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: 01 07 00 [11:53:22]MH_I2C_Read... [11:53:22]OFD Sender: Processing packet 75418 [packets to send 15, broken 14] [11:53:22]ProducePacketName [11:53:22]name=ofd_packets/00075418 [11:53:22]OFD Sender: To server: pG, [11:53:22]CommunicateWithHost lk.salyk.kg:30040 [11:53:22]ConnectInit lk.salyk.kg [11:53:22]Read from MH i2c: 01 07 00 E5 AA 00 00 00 00 00 FF 0F A4 [11:53:22]RasterBufferAndPrint [11:53:22]line Счет N : (3)273234 [11:53:22]line ИНН: 02508201610067 [11:53:22]line Контрольно-Кассовый Чек [11:53:22]line ПРОДАЖА [11:53:22]line Товар: 48743587 [11:53:22]line Сигареты Winston XStyle Silver [11:53:22]line 1.000 * 140.00 [11:53:22]line = 140.00 [11:53:22]line НДС 12% НСП 1% [11:53:22]line > о реализуемом товаре [11:53:22]line ИТОГО: 140.00 [11:53:22]line НСП 1% : 1.24 [11:53:22]line НДС 12% : 14.87 [11:53:22]line Наличными: 140.00 [11:53:22]line Безнал.: 0.00 [11:53:22]line Место: АЗС № 133 "Партнер Нефть" [11:53:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:53:22]line СНО: Общий режим [11:53:22]line Чек 151 23.10.2024 11:53 [11:53:22]line Смена: 173 ФФД: 1.0 [11:53:22]line ЗНМ: 0300000020 [11:53:22]line РНМ: 0000000000161154 [11:53:22]line Версия ККМ: v1.0 [11:53:22]line ФМ: 0000000000963323 [11:53:22]line ФД: 75418 [11:53:22]line ФПД: 266577444212060 [11:53:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115327&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75418&fm=266577444212060&tin=02508201610067®Number=0000000000161154&sum=14000 [11:53:22]line 0 [11:53:22]Connected sock=10 [11:53:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 BA 74 1F 01 66 1D 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 B7 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9A 26 01 00 35 04 06 00 F2 73 65 DE 0D 5C 17 D5 CD CD 2C AB E3 1F [11:53:22]written 0, free lines is 4095 [11:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 DE 97 47 00 44 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9A 26 01 00 F4 03 04 00 92 8C 18 67 B6 04 01 00 00 1E AA 03 9F 9F F4 5D AE [11:53:22]CommunicateWithHost err = 0 [11:53:22]CheckOFDResponse [11:53:22]1017 (14) - 77093643461234 [11:53:22]1041 (16) - 0000000000963323 [11:53:22]1040 (4) - 75418 [11:53:22]1012 (4) - 23.10.2024 05:41 [11:53:22]1206 (1) - 0 [11:53:22]OFD Sender: Remove packet 75418 [11:53:22]ProducePacketName [11:53:22]name=ofd_packets/00075418 [11:53:22]NVStorageDeleteData [11:53:22]Write to MH i2c: 01 00 00 0D AB B8 [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: 01 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: 01 07 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: 01 07 00 0D AB 00 00 00 00 00 D7 0C A2 [11:53:22]RasterBufferAndPrint [11:53:22]line [11:53:22]line [11:53:22]line [11:53:22]line [11:53:22]line [11:53:22]written 0, free lines is 3293 [11:53:22]MH_Cut [11:53:22]Write to MH i2c: D1 01 00 14 AB 01 91 [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: D1 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: D1 01 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: D1 01 00 14 AB 00 90 [11:53:22]Write to MH i2c: 01 00 00 15 AB C0 [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:23]OFD Sender: No OFD packet to send [11:53:23]*** Cut start [11:53:23]*** Partial cut [11:53:23]*** CUTSNS_PIN = 1 [11:53:23]*** CUTSNS_PIN = 0 [11:53:24]*** Brake cut motor [11:53:24]Read from MH i2c: 01 [11:53:24]MH_I2C_Read... [11:53:24]*** Stop cut motor [11:53:24]*** Cut end [11:53:24]Read from MH i2c: 01 07 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: 01 07 00 15 AB 00 00 00 00 00 FF 0F D5 [11:53:24]process_action close_receipt done [11:53:24]requested_data is exist [11:53:24]produce_requested_data [11:53:24]requested_item fm.sn is exist - process it [11:53:24]wFMCommunicate request_size=4 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 11 00 00 [11:53:24]Write to MH i2c: E2 08 00 16 AB 80 11 00 00 00 00 00 00 3B [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 17 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 17 00 16 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 88 [11:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:53:24]wFMCommunicate OK [11:53:24]requested_item fd.num is exist - process it [11:53:24]SAM_PROTO_GetFieldsCounters [11:53:24]wFMCommunicate request_size=4 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 13 00 00 [11:53:24]Write to MH i2c: E2 08 00 17 AB 80 13 00 00 00 00 00 00 3E [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 62 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 62 00 17 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9A 26 01 00 0E 04 04 00 AD 00 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 85 [11:53:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9A 26 01 00 0E 04 04 00 AD 00 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 [11:53:24]wFMCommunicate OK [11:53:24]SAM_PROTO_GetFieldsCounters done [11:53:24]requested_item shift.num is exist - process it [11:53:24]requested_item shift.opened is exist - process it [11:53:24]req_shift_opened [11:53:24]FM_GetShiftState [11:53:24]SAM_PROTO_GetShiftState [11:53:24]wFMCommunicate request_size=4 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 13 01 00 [11:53:24]Write to MH i2c: E2 08 00 18 AB 80 13 01 00 00 00 00 00 40 [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 0E 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 0E 00 18 AB 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A5 [11:53:24]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:53:24]wFMCommunicate OK [11:53:24]SAM_PROTO_GetShiftState done [11:53:24]FM_GetShiftState done [11:53:24]req_shift_opened done [11:53:24]requested_item shift.open_date is exist - process it [11:53:24]req_shift_open_date [11:53:24]req_shift_open_date done [11:53:24]produce_requested_data done [11:53:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75418,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:53:24]process_action_free close_receipt [11:53:24]json_value_free [11:53:24]json_value_free done [11:53:24]process_json_proto returns [11:53:24]Send response to host [11:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75418,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:53:24]free response buf [11:53:24]execute_script done [11:53:24]execute_script returns [11:53:24]free content buf [11:53:24]Sock 9.Close socket [11:53:24]Sock 9.Thread stoped [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:26]accept exits with 7 [11:54:26]New connection [11:54:26]New thread 3067465060 created [11:54:26]Thread 3067321700 joined [11:54:26]Waiting for new connection... [11:54:26] Sock 7.Parse request [11:54:26]Sock 7.Check first char [11:54:26]Sock 7.First char is OK [11:54:26]request: POST /json_proto HTTP/1.0 [11:54:26]Method: POST [11:54:26]URL: /json_proto [11:54:26]Method is POST - this is cgi request [11:54:26]url: /json_proto [11:54:26]query_string will be loaded in cgi processing [11:54:26]execute_cgi json_proto POST (null) [11:54:26]execute_cgi path=json_proto method=POST [11:54:26]POST find Content-Length [11:54:26]Host: 172.17.44.196:8080 [11:54:26]Content-Length: 678 [11:54:26]Content-Type: application/json [11:54:26] [11:54:26]POST finish read [11:54:26]Found Content-Length = 678 [11:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:26]execute_script... [11:54: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)1965420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:26]POST & json_proto [11:54:26]process_json_proto [11:54:26]json parsed OK: [11:54:26]protocol is kg_v1.0 [11:54:26]action value=close_receipt [11:54:26]process_action close_receipt [11:54:26]cmd_close_receipt [11:54:26]MH_GetDate [11:54:26]Write to MH i2c: F0 00 00 19 AB B3 [11:54:26]Write i2c OK [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: F0 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: F0 09 00 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: F0 09 00 19 AB 00 F9 E3 18 67 E7 19 F8 65 74 [11:54:26]GetLastDocTimeStamp 1729684407 [11:54:26]current date 1729684473 [11:54:26]FM_GetShiftState [11:54:26]SAM_PROTO_GetShiftState [11:54:26]wFMCommunicate request_size=4 [11:54:26]MH_SAM_APDU [11:54:26]CAPDU: 80 13 01 00 [11:54:26]Write to MH i2c: E2 08 00 1A AB 80 13 01 00 00 00 00 00 42 [11:54:26]Write i2c OK [11:54:26]MH_I2C_Read... [11:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:26]Read from MH i2c: E2 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 0E 00 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 0E 00 1A AB 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A7 [11:54:26]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:54:26]wFMCommunicate OK [11:54:26]SAM_PROTO_GetShiftState done [11:54:26]FM_GetShiftState done [11:54:26]opened in 1729642905 [11:54:26]opened+sec_in_day 1729729305 [11:54:26]quantity*price = 30038 [11:54:26]sum+1 = 30039 [11:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 152 23.10.2024 11:54 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75419 ФПД: 180389398051439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115433&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75419&fm=180389398051439&tin=02508201610067®Number=0000000000161154&sum=30000 [11:54:27]StoreToDocumentArchive [11:54:27]shift 173 fd 75419 [11:54:27]save to /storage/0173/doc_00075419 [11:54:27]save last doc name /storage/0173/doc_00075419 to /storage/kkm_last_doc_name [11:54:27]save OK [11:54:27]Clear old archive folders... [11:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:27]tlvbuf is 00DC5A60 [11:54:27]SAM_PROTO_ClearQueue [11:54:27]wFMCommunicate request_size=4 [11:54:27]MH_SAM_APDU [11:54:27]CAPDU: 80 09 00 00 [11:54:27]Write to MH i2c: E2 08 00 27 AB 80 09 00 00 00 00 00 00 44 [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:27]Read from MH i2c: E2 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 27 AB 00 90 00 46 [11:54:27]RAPDU: 90 00 [11:54:27]wFMCommunicate OK [11:54:27]SAM_PROTO_ClearQueue done [11:54:27]KKMCreateOFDPacket [11:54:27]OFDProtocolAddRootSTLVToBuf [11:54:27]FM_MakeSignedData [11:54:27]FM_MakeSignedData [11:54:27]SAM_PROTO_SignData [11:54:27]wFMCommunicate request_size=4 [11:54:27]MH_SAM_APDU [11:54:27]CAPDU: 80 0D 01 02 [11:54:27]Write to MH i2c: E2 08 00 28 AB 80 0D 01 02 00 00 00 00 4C [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:27]Read from MH i2c: E2 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: E2 03 00 28 AB 00 90 00 47 [11:54:27]RAPDU: 90 00 [11:54:27]wFMCommunicate OK [11:54:27]wFMCommunicate request_size=255 [11:54:27]MH_SAM_APDU [11:54: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F9 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9B 26 01 00 35 04 06 00 A4 [11:54:27]Write to MH i2c: E2 02 01 29 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F9 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9B 26 01 00 35 04 06 00 A4 00 00 C8 [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:28]Read from MH i2c: E2 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 03 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 03 00 29 AB 00 90 00 48 [11:54:28]RAPDU: 90 00 [11:54:28]wFMCommunicate OK [11:54:28]wFMCommunicate request_size=10 [11:54:28]MH_SAM_APDU [11:54:28]CAPDU: 80 0D 02 02 05 10 2D FD FA 6F [11:54:28]Write to MH i2c: E2 0D 00 2A AB 80 0D 02 02 05 00 10 2D FD FA 6F 00 00 FC [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:28]Read from MH i2c: E2 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 03 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 03 00 2A AB 00 90 00 49 [11:54:28]RAPDU: 90 00 [11:54:28]wFMCommunicate OK [11:54:28]wFMCommunicate request_size=4 [11:54:28]MH_SAM_APDU [11:54:28]CAPDU: 80 0D 03 02 [11:54:28]Write to MH i2c: E2 08 00 2B AB 80 0D 03 02 00 00 00 00 51 [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:28]Read from MH i2c: E2 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 0B 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 0B 00 2B AB 00 A3 AB E5 45 C1 E5 70 DF 90 00 BF [11:54:28]RAPDU: A3 AB E5 45 C1 E5 70 DF 90 00 [11:54:28]wFMCommunicate OK [11:54:28]SAM_PROTO_SignData done [11:54:28]FM_MakeSignedData done [11:54:28]CreateOFDProtocolMessage [11:54:28]wFMCommunicate request_size=4 [11:54:28]MH_SAM_APDU [11:54:28]CAPDU: 80 11 00 00 [11:54:28]Write to MH i2c: E2 08 00 2C AB 80 11 00 00 00 00 00 00 51 [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:28]Read from MH i2c: E2 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 17 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: E2 17 00 2C AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9E [11:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:54:28]wFMCommunicate OK [11:54:28]CreateOFDProtocolMessage done [11:54:28]OFDSenderStorePacket 75419 [11:54:28]StoreOFDPacket docnum=75419 [11:54:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D0 FC 07 01 33 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F9 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9B 26 01 00 35 04 06 00 A4 10 2D FD FA 6F A3 AB E5 45 C1 E5 70 DF [11:54:28]CheckFolder [11:54:28]dirname=/storage/ofd_packets [11:54:28]CheckFolder done [11:54:28]ProducePacketName [11:54:28]name=ofd_packets/00075419 [11:54:28]NVStorageSaveData ofd_packets/00075419 [11:54:28]File name is /storage/ofd_packets/00075419 [11:54:28]Write 301 bytes [11:54:28]NVStorageSaveData done [11:54:28]OFDSenderStorePacket done [11:54:28]KKMCreateOFDPacket done [11:54:28]NVStorageSaveData kkm_last_timestamp [11:54:28]File name is /storage/kkm_last_timestamp [11:54:28]Write 4 bytes [11:54:28]NVStorageSaveData done [11:54:28]ExternCall_PrintAddStr [11:54:28]wPrintStart [11:54:28]Write to MH i2c: 01 00 00 2D AB D8 [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 07 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 07 00 2D AB 00 00 00 00 00 FF 0F ED [11:54:28]RasterBufferAndPrint [11:54:28]line Счет N : (1)1965420 [11:54:28]line ИНН: 02508201610067 [11:54:28]line Контрольно-Кассовый Чек [11:54:28]line ПРОДАЖА [11:54:28]line ТРК (МРК, ГНК) : 33 [11:54:28]line Товар: 2710124130 [11:54:28]line Аи-92-К-5 [11:54:28]line 4.490 * 66.90 [11:54:28]line = 300.38 [11:54:28]line НДС 12% НСП 1% [11:54:28]line > о реализуемом товаре [11:54:28]line ОКРУГЛЕНИЕ: -0.38 [11:54:28]line ИТОГО: 300.00 [11:54:28]line Внесено: 300.00 [11:54:28]line СДАЧА: 0.00 [11:54:28]line НСП 1% : 2.66 [11:54:28]line НДС 12% : 31.90 [11:54:28]line Наличными: 300.00 [11:54:28]line Безнал.: 0.00 [11:54:28]line Место: АЗС № 133 "Партнер Нефть" [11:54:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:54:28]line СНО: Общий режим [11:54:28]line Чек 152 23.10.2024 11:54 [11:54:28]line Смена: 173 ФФД: 1.0 [11:54:28]line ЗНМ: 0300000020 [11:54:28]line РНМ: 0000000000161154 [11:54:28]line Версия ККМ: v1.0 [11:54:28]line ФМ: 0000000000963323 [11:54:28]line ФД: 75419 [11:54:28]line ФПД: 180389398051439 [11:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115433&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75419&fm=180389398051439&tin=02508201610067®Number=0000000000161154&sum=30000 [11:54:28]OFD Sender: Processing packet 75419 [packets to send 15, broken 14] [11:54:28]ProducePacketName [11:54:28]name=ofd_packets/00075419 [11:54:28]OFD Sender: To server: pG, [11:54:28]CommunicateWithHost lk.salyk.kg:30040 [11:54:28]ConnectInit lk.salyk.kg [11:54:28]written 0, free lines is 4095 [11:54:28]Connected sock=10 [11:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D0 FC 07 01 33 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F9 E3 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9B 26 01 00 35 04 06 00 A4 10 2D FD FA 6F A3 AB E5 45 C1 E5 70 DF [11:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D2 58 47 00 EF 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 39 36 33 33 32 33 10 04 04 00 9B 26 01 00 F4 03 04 00 D5 8C 18 67 B6 04 01 00 00 0F 24 71 3B 34 6B CF FE [11:54:28]CommunicateWithHost err = 0 [11:54:28]CheckOFDResponse [11:54:28]1017 (14) - 77093643461234 [11:54:28]1041 (16) - 0000000000963323 [11:54:28]1040 (4) - 75419 [11:54:28]1012 (4) - 23.10.2024 05:42 [11:54:28]1206 (1) - 0 [11:54:28]OFD Sender: Remove packet 75419 [11:54:28]ProducePacketName [11:54:28]name=ofd_packets/00075419 [11:54:28]NVStorageDeleteData [11:54:28]Write to MH i2c: 01 00 00 57 AB 02 [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 07 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 07 00 57 AB 00 00 00 00 00 B9 0C CE [11:54:28]RasterBufferAndPrint [11:54:28]line [11:54:28]line [11:54:28]line [11:54:28]line [11:54:29]line [11:54:29]written 0, free lines is 3264 [11:54:29]MH_Cut [11:54:29]Write to MH i2c: D1 01 00 5E AB 01 DB [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: D1 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: D1 01 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: D1 01 00 5E AB 00 DA [11:54:29]Write to MH i2c: 01 00 00 5F AB 0A [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:29]OFD Sender: No OFD packet to send [11:54:29]*** Cut start [11:54:29]*** Partial cut [11:54:29]*** CUTSNS_PIN = 1 [11:54:29]*** CUTSNS_PIN = 0 [11:54:30]*** Brake cut motor [11:54:30]Read from MH i2c: 01 [11:54:30]MH_I2C_Read... [11:54:30]*** Stop cut motor [11:54:30]*** Cut end [11:54:30]Read from MH i2c: 01 07 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: 01 07 00 5F AB 00 00 00 00 00 FF 0F 1F [11:54:30]process_action close_receipt done [11:54:30]requested_data is exist [11:54:30]produce_requested_data [11:54:30]requested_item fm.sn is exist - process it [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 11 00 00 [11:54:30]Write to MH i2c: E2 08 00 60 AB 80 11 00 00 00 00 00 00 85 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 17 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 17 00 60 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D2 [11:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:54:30]wFMCommunicate OK [11:54:30]requested_item fd.num is exist - process it [11:54:30]SAM_PROTO_GetFieldsCounters [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 13 00 00 [11:54:30]Write to MH i2c: E2 08 00 61 AB 80 13 00 00 00 00 00 00 88 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 62 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 62 00 61 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9B 26 01 00 0E 04 04 00 AD 00 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 D3 [11:54:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9B 26 01 00 0E 04 04 00 AD 00 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 [11:54:30]wFMCommunicate OK [11:54:30]SAM_PROTO_GetFieldsCounters done [11:54:30]requested_item shift.num is exist - process it [11:54:30]requested_item shift.opened is exist - process it [11:54:30]req_shift_opened [11:54:30]FM_GetShiftState [11:54:30]SAM_PROTO_GetShiftState [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 13 01 00 [11:54:30]Write to MH i2c: E2 08 00 62 AB 80 13 01 00 00 00 00 00 8A [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 0E 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 0E 00 62 AB 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EF [11:54:30]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:54:30]wFMCommunicate OK [11:54:30]SAM_PROTO_GetShiftState done [11:54:30]FM_GetShiftState done [11:54:30]req_shift_opened done [11:54:30]requested_item shift.open_date is exist - process it [11:54:30]req_shift_open_date [11:54:30]req_shift_open_date done [11:54:30]produce_requested_data done [11:54:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75419,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:54:30]process_action_free close_receipt [11:54:30]json_value_free [11:54:30]json_value_free done [11:54:30]process_json_proto returns [11:54:30]Send response to host [11:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75419,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:54:30]free response buf [11:54:30]execute_script done [11:54:30]execute_script returns [11:54:30]free content buf [11:54:30]Sock 7.Close socket [11:54:30]Sock 7.Thread stoped [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:54]accept exits with 9 [11:54:54]New connection [11:54:54]New thread 3067321700 created [11:54:54]Thread 3067465060 joined [11:54:54]Waiting for new connection... [11:54:54] Sock 9.Parse request [11:54:54]Sock 9.Check first char [11:54:54]Sock 9.First char is OK [11:54:54]request: POST /json_proto HTTP/1.0 [11:54:54]Method: POST [11:54:54]URL: /json_proto [11:54:54]Method is POST - this is cgi request [11:54:54]url: /json_proto [11:54:54]query_string will be loaded in cgi processing [11:54:54]execute_cgi json_proto POST (null) [11:54:54]execute_cgi path=json_proto method=POST [11:54:54]POST find Content-Length [11:54:54]Host: 172.17.44.196:8080 [11:54:54]Content-Length: 679 [11:54:54]Content-Type: application/json [11:54:54] [11:54:54]POST finish read [11:54:54]Found Content-Length = 679 [11:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [11:54:54]execute_script... [11:54:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [11:54:54]POST & json_proto [11:54:54]process_json_proto [11:54:54]json parsed OK: [11:54:54]protocol is kg_v1.0 [11:54:54]action value=close_receipt [11:54:54]process_action close_receipt [11:54:54]cmd_close_receipt [11:54:54]MH_GetDate [11:54:54]Write to MH i2c: F0 00 00 63 AB FD [11:54:54]Write i2c OK [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: F0 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: F0 09 00 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: F0 09 00 63 AB 00 16 E4 18 67 E7 19 F8 65 DC [11:54:54]GetLastDocTimeStamp 1729684473 [11:54:54]current date 1729684502 [11:54:54]FM_GetShiftState [11:54:54]SAM_PROTO_GetShiftState [11:54:54]wFMCommunicate request_size=4 [11:54:54]MH_SAM_APDU [11:54:54]CAPDU: 80 13 01 00 [11:54:54]Write to MH i2c: E2 08 00 64 AB 80 13 01 00 00 00 00 00 8C [11:54:54]Write i2c OK [11:54:54]MH_I2C_Read... [11:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:54]Read from MH i2c: E2 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 0E 00 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 0E 00 64 AB 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F1 [11:54:54]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:54:54]wFMCommunicate OK [11:54:54]SAM_PROTO_GetShiftState done [11:54:54]FM_GetShiftState done [11:54:54]opened in 1729642905 [11:54:54]opened+sec_in_day 1729729305 [11:54:54]quantity*price = 80061 [11:54:54]sum+1 = 80063 [11:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 153 23.10.2024 11:55 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75420 ФПД: 58318128686584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115502&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75420&fm=58318128686584&tin=02508201610067®Number=0000000000161154&sum=80000 [11:54:56]StoreToDocumentArchive [11:54:56]shift 173 fd 75420 [11:54:56]save to /storage/0173/doc_00075420 [11:54:56]save last doc name /storage/0173/doc_00075420 to /storage/kkm_last_doc_name [11:54:56]save OK [11:54:56]Clear old archive folders... [11:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:56]tlvbuf is 00EDED70 [11:54:56]SAM_PROTO_ClearQueue [11:54:56]wFMCommunicate request_size=4 [11:54:56]MH_SAM_APDU [11:54:56]CAPDU: 80 09 00 00 [11:54:56]Write to MH i2c: E2 08 00 71 AB 80 09 00 00 00 00 00 00 8E [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:56]Read from MH i2c: E2 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 03 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 03 00 71 AB 00 90 00 90 [11:54:56]RAPDU: 90 00 [11:54:56]wFMCommunicate OK [11:54:56]SAM_PROTO_ClearQueue done [11:54:56]KKMCreateOFDPacket [11:54:56]OFDProtocolAddRootSTLVToBuf [11:54:56]FM_MakeSignedData [11:54:56]FM_MakeSignedData [11:54:56]SAM_PROTO_SignData [11:54:56]wFMCommunicate request_size=4 [11:54:56]MH_SAM_APDU [11:54:56]CAPDU: 80 0D 01 02 [11:54:56]Write to MH i2c: E2 08 00 72 AB 80 0D 01 02 00 00 00 00 96 [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:56]Read from MH i2c: E2 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 03 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 03 00 72 AB 00 90 00 91 [11:54:56]RAPDU: 90 00 [11:54:56]wFMCommunicate OK [11:54:56]wFMCommunicate request_size=255 [11:54:56]MH_SAM_APDU [11:54: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 99 00 00 00 F4 03 04 00 16 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9C 26 01 00 35 04 06 00 35 [11:54:56]Write to MH i2c: E2 02 01 73 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 99 00 00 00 F4 03 04 00 16 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9C 26 01 00 35 04 06 00 35 00 00 3C [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:56]Read from MH i2c: E2 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 03 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 03 00 73 AB 00 90 00 92 [11:54:56]RAPDU: 90 00 [11:54:56]wFMCommunicate OK [11:54:56]wFMCommunicate request_size=10 [11:54:56]MH_SAM_APDU [11:54:56]CAPDU: 80 0D 02 02 05 0A 3F 58 25 F8 [11:54:56]Write to MH i2c: E2 0D 00 74 AB 80 0D 02 02 05 00 0A 3F 58 25 F8 00 00 61 [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:56]Read from MH i2c: E2 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 03 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 03 00 74 AB 00 90 00 93 [11:54:56]RAPDU: 90 00 [11:54:56]wFMCommunicate OK [11:54:56]wFMCommunicate request_size=4 [11:54:56]MH_SAM_APDU [11:54:56]CAPDU: 80 0D 03 02 [11:54:56]Write to MH i2c: E2 08 00 75 AB 80 0D 03 02 00 00 00 00 9B [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:56]Read from MH i2c: E2 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 0B 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 0B 00 75 AB 00 2F 4D 53 29 0F FB D0 B8 90 00 26 [11:54:56]RAPDU: 2F 4D 53 29 0F FB D0 B8 90 00 [11:54:56]wFMCommunicate OK [11:54:56]SAM_PROTO_SignData done [11:54:56]FM_MakeSignedData done [11:54:56]CreateOFDProtocolMessage [11:54:56]wFMCommunicate request_size=4 [11:54:56]MH_SAM_APDU [11:54:56]CAPDU: 80 11 00 00 [11:54:56]Write to MH i2c: E2 08 00 76 AB 80 11 00 00 00 00 00 00 9B [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:56]Read from MH i2c: E2 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 17 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 17 00 76 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E8 [11:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:54:56]wFMCommunicate OK [11:54:56]CreateOFDProtocolMessage done [11:54:56]OFDSenderStorePacket 75420 [11:54:56]StoreOFDPacket docnum=75420 [11:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E8 7C 07 01 63 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 99 00 00 00 F4 03 04 00 16 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9C 26 01 00 35 04 06 00 35 0A 3F 58 25 F8 2F 4D 53 29 0F FB D0 B8 [11:54:56]CheckFolder [11:54:56]dirname=/storage/ofd_packets [11:54:56]CheckFolder done [11:54:56]ProducePacketName [11:54:56]name=ofd_packets/00075420 [11:54:56]NVStorageSaveData ofd_packets/00075420 [11:54:56]File name is /storage/ofd_packets/00075420 [11:54:56]Write 301 bytes [11:54:56]NVStorageSaveData done [11:54:56]OFDSenderStorePacket done [11:54:56]KKMCreateOFDPacket done [11:54:56]NVStorageSaveData kkm_last_timestamp [11:54:56]File name is /storage/kkm_last_timestamp [11:54:56]Write 4 bytes [11:54:56]NVStorageSaveData done [11:54:56]ExternCall_PrintAddStr [11:54:56]wPrintStart [11:54:56]Write to MH i2c: 01 00 00 77 AB 22 [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: 01 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: 01 07 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: 01 07 00 77 AB 00 00 00 00 00 FF 0F 37 [11:54:56]RasterBufferAndPrint [11:54:56]line Счет N : (1)1965421 [11:54:56]line ИНН: 02508201610067 [11:54:56]line Контрольно-Кассовый Чек [11:54:56]line ПРОДАЖА [11:54:56]line ТРК (МРК, ГНК) : 44 [11:54:56]line Товар: 2710124500 [11:54:56]line Аи-95-К-5 [11:54:56]line 10.790 * 74.20 [11:54:56]line = 800.62 [11:54:56]line НДС 12% НСП 1% [11:54:56]line > о реализуемом товаре [11:54:56]line ОКРУГЛЕНИЕ: -0.62 [11:54:56]line ИТОГО: 800.00 [11:54:56]line Внесено: 800.00 [11:54:56]line СДАЧА: 0.00 [11:54:56]line НСП 1% : 7.08 [11:54:56]line НДС 12% : 85.02 [11:54:56]line Наличными: 800.00 [11:54:56]line Безнал.: 0.00 [11:54:56]line Место: АЗС № 133 "Партнер Нефть" [11:54:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:54:56]line СНО: Общий режим [11:54:56]line Чек 153 23.10.2024 11:55 [11:54:56]line Смена: 173 ФФД: 1.0 [11:54:56]line ЗНМ: 0300000020 [11:54:56]line РНМ: 0000000000161154 [11:54:56]line Версия ККМ: v1.0 [11:54:56]line ФМ: 0000000000963323 [11:54:56]line ФД: 75420 [11:54:56]line ФПД: 58318128686584 [11:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115502&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75420&fm=58318128686584&tin=02508201610067®Number=0000000000161154&sum=80000 [11:54:56]OFD Sender: Processing packet 75420 [packets to send 15, broken 14] [11:54:56]ProducePacketName [11:54:56]name=ofd_packets/00075420 [11:54:56]OFD Sender: To server: pG, [11:54:56]CommunicateWithHost lk.salyk.kg:30040 [11:54:56]ConnectInit lk.salyk.kg [11:54:56]written 0, free lines is 4095 [11:54:56]Connected sock=10 [11:54:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E8 7C 07 01 63 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 99 00 00 00 F4 03 04 00 16 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9C 26 01 00 35 04 06 00 35 0A 3F 58 25 F8 2F 4D 53 29 0F FB D0 B8 [11:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1A D8 47 00 EC 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 39 36 33 33 32 33 10 04 04 00 9C 26 01 00 F4 03 04 00 F1 8C 18 67 B6 04 01 00 00 70 E4 AC AF C6 87 61 FE [11:54:57]CommunicateWithHost err = 0 [11:54:57]CheckOFDResponse [11:54:57]1017 (14) - 77093643461234 [11:54:57]1041 (16) - 0000000000963323 [11:54:57]1040 (4) - 75420 [11:54:57]1012 (4) - 23.10.2024 05:43 [11:54:57]1206 (1) - 0 [11:54:57]OFD Sender: Remove packet 75420 [11:54:57]ProducePacketName [11:54:57]name=ofd_packets/00075420 [11:54:57]NVStorageDeleteData [11:54:57]Write to MH i2c: 01 00 00 A1 AB 4C [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: 01 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: 01 07 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: 01 07 00 A1 AB 00 00 00 00 00 BD 0C 1C [11:54:57]RasterBufferAndPrint [11:54:57]line [11:54:57]line [11:54:57]line [11:54:57]line [11:54:57]line [11:54:57]written 0, free lines is 3266 [11:54:57]MH_Cut [11:54:57]Write to MH i2c: D1 01 00 A8 AB 01 25 [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: D1 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: D1 01 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: D1 01 00 A8 AB 00 24 [11:54:57]Write to MH i2c: 01 00 00 A9 AB 54 [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]OFD Sender: No OFD packet to send [11:54:58]*** Cut start [11:54:58]*** Partial cut [11:54:58]*** CUTSNS_PIN = 1 [11:54:58]*** CUTSNS_PIN = 0 [11:54:58]*** Brake cut motor [11:54:58]Read from MH i2c: 01 [11:54:58]MH_I2C_Read... [11:54:58]*** Stop cut motor [11:54:58]*** Cut end [11:54:58]Read from MH i2c: 01 07 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: 01 07 00 A9 AB 00 00 00 00 00 FF 0F 69 [11:54:58]process_action close_receipt done [11:54:58]requested_data is exist [11:54:58]produce_requested_data [11:54:58]requested_item fm.sn is exist - process it [11:54:58]wFMCommunicate request_size=4 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 11 00 00 [11:54:58]Write to MH i2c: E2 08 00 AA AB 80 11 00 00 00 00 00 00 CF [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 17 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 17 00 AA AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1C [11:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:54:58]wFMCommunicate OK [11:54:58]requested_item fd.num is exist - process it [11:54:58]SAM_PROTO_GetFieldsCounters [11:54:58]wFMCommunicate request_size=4 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 13 00 00 [11:54:58]Write to MH i2c: E2 08 00 AB AB 80 13 00 00 00 00 00 00 D2 [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:59]Read from MH i2c: E2 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: E2 62 00 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: E2 62 00 AB AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9C 26 01 00 0E 04 04 00 AD 00 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 21 [11:54:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9C 26 01 00 0E 04 04 00 AD 00 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 [11:54:59]wFMCommunicate OK [11:54:59]SAM_PROTO_GetFieldsCounters done [11:54:59]requested_item shift.num is exist - process it [11:54:59]requested_item shift.opened is exist - process it [11:54:59]req_shift_opened [11:54:59]FM_GetShiftState [11:54:59]SAM_PROTO_GetShiftState [11:54:59]wFMCommunicate request_size=4 [11:54:59]MH_SAM_APDU [11:54:59]CAPDU: 80 13 01 00 [11:54:59]Write to MH i2c: E2 08 00 AC AB 80 13 01 00 00 00 00 00 D4 [11:54:59]Write i2c OK [11:54:59]MH_I2C_Read... [11:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:59]Read from MH i2c: E2 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: E2 0E 00 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: E2 0E 00 AC AB 00 09 00 01 99 41 18 67 00 00 00 00 90 00 39 [11:54:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:54:59]wFMCommunicate OK [11:54:59]SAM_PROTO_GetShiftState done [11:54:59]FM_GetShiftState done [11:54:59]req_shift_opened done [11:54:59]requested_item shift.open_date is exist - process it [11:54:59]req_shift_open_date [11:54:59]req_shift_open_date done [11:54:59]produce_requested_data done [11:54:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75420,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:54:59]process_action_free close_receipt [11:54:59]json_value_free [11:54:59]json_value_free done [11:54:59]process_json_proto returns [11:54:59]Send response to host [11:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75420,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:54:59]free response buf [11:54:59]execute_script done [11:54:59]execute_script returns [11:54:59]free content buf [11:54:59]Sock 9.Close socket [11:54:59]Sock 9.Thread stoped [11:55:01]accept exits with 7 [11:55:01]New connection [11:55:01]New thread 3067465060 created [11:55:01]Thread 3067321700 joined [11:55:01]Waiting for new connection... [11:55:01] Sock 7.Parse request [11:55:01]Sock 7.Check first char [11:55:01]Sock 7.First char is OK [11:55:01]request: POST /json_proto HTTP/1.0 [11:55:01]Method: POST [11:55:01]URL: /json_proto [11:55:01]Method is POST - this is cgi request [11:55:01]url: /json_proto [11:55:01]query_string will be loaded in cgi processing [11:55:01]execute_cgi json_proto POST (null) [11:55:01]execute_cgi path=json_proto method=POST [11:55:01]POST find Content-Length [11:55:01]Host: 172.17.44.196:8080 [11:55:01]Content-Length: 675 [11:55:01]Content-Type: application/json [11:55:01] [11:55:01]POST finish read [11:55:01]Found Content-Length = 675 [11:55:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:01]execute_script... [11:55: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)1965422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:01]POST & json_proto [11:55:01]process_json_proto [11:55:01]json parsed OK: [11:55:01]protocol is kg_v1.0 [11:55:01]action value=close_receipt [11:55:01]process_action close_receipt [11:55:01]cmd_close_receipt [11:55:01]MH_GetDate [11:55:01]Write to MH i2c: F0 00 00 AD AB 47 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: F0 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: F0 09 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: F0 09 00 AD AB 00 1C E4 18 67 E7 19 F8 65 2C [11:55:01]GetLastDocTimeStamp 1729684502 [11:55:01]current date 1729684508 [11:55:01]FM_GetShiftState [11:55:01]SAM_PROTO_GetShiftState [11:55:01]wFMCommunicate request_size=4 [11:55:01]MH_SAM_APDU [11:55:01]CAPDU: 80 13 01 00 [11:55:01]Write to MH i2c: E2 08 00 AE AB 80 13 01 00 00 00 00 00 D6 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:01]Read from MH i2c: E2 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 0E 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 0E 00 AE AB 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3B [11:55:01]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:55:01]wFMCommunicate OK [11:55:01]SAM_PROTO_GetShiftState done [11:55:01]FM_GetShiftState done [11:55:01]opened in 1729642905 [11:55:01]opened+sec_in_day 1729729305 [11:55:01]quantity*price = 70027 [11:55:01]sum+1 = 70029 [11:55:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 154 23.10.2024 11:55 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75421 ФПД: 42286211842295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115508&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75421&fm=42286211842295&tin=02508201610067®Number=0000000000161154&sum=70000 [11:55:02]StoreToDocumentArchive [11:55:02]shift 173 fd 75421 [11:55:02]save to /storage/0173/doc_00075421 [11:55:02]save last doc name /storage/0173/doc_00075421 to /storage/kkm_last_doc_name [11:55:02]save OK [11:55:02]Clear old archive folders... [11:55:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:55:02]tlvbuf is 00FDA2D0 [11:55:02]SAM_PROTO_ClearQueue [11:55:02]wFMCommunicate request_size=4 [11:55:02]MH_SAM_APDU [11:55:02]CAPDU: 80 09 00 00 [11:55:02]Write to MH i2c: E2 08 00 BB AB 80 09 00 00 00 00 00 00 D8 [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 [11:55:02]MH_I2C_Read... [11:55:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:02]Read from MH i2c: E2 03 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 BB AB 00 90 00 DA [11:55:02]RAPDU: 90 00 [11:55:02]wFMCommunicate OK [11:55:02]SAM_PROTO_ClearQueue done [11:55:02]KKMCreateOFDPacket [11:55:02]OFDProtocolAddRootSTLVToBuf [11:55:02]FM_MakeSignedData [11:55:02]FM_MakeSignedData [11:55:02]SAM_PROTO_SignData [11:55:02]wFMCommunicate request_size=4 [11:55:02]MH_SAM_APDU [11:55:02]CAPDU: 80 0D 01 02 [11:55:02]Write to MH i2c: E2 08 00 BC AB 80 0D 01 02 00 00 00 00 E0 [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:02]Read from MH i2c: E2 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 BC AB 00 90 00 DB [11:55:02]RAPDU: 90 00 [11:55:02]wFMCommunicate OK [11:55:02]wFMCommunicate request_size=255 [11:55:02]MH_SAM_APDU [11:55:02]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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 9A 00 00 00 F4 03 04 00 1C E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9D 26 01 00 35 04 06 00 26 75 86 A2 [11:55:02]Write to MH i2c: E2 02 01 BD AB 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 9A 00 00 00 F4 03 04 00 1C E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9D 26 01 00 35 04 06 00 26 75 86 A2 00 00 A1 [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]OFD Sender: No OFD packet to send [11:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:02]Read from MH i2c: E2 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 BD AB 00 90 00 DC [11:55:02]RAPDU: 90 00 [11:55:02]wFMCommunicate OK [11:55:02]wFMCommunicate request_size=7 [11:55:02]MH_SAM_APDU [11:55:02]CAPDU: 80 0D 02 02 02 C0 F7 [11:55:02]Write to MH i2c: E2 0A 00 BE AB 80 0D 02 02 02 00 C0 F7 00 00 9E [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:02]Read from MH i2c: E2 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 [11:55:02]MH_I2C_Read... [11:55:02]Read from MH i2c: E2 03 00 BE AB 00 90 00 DD [11:55:02]RAPDU: 90 00 [11:55:02]wFMCommunicate OK [11:55:02]wFMCommunicate request_size=4 [11:55:02]MH_SAM_APDU [11:55:02]CAPDU: 80 0D 03 02 [11:55:02]Write to MH i2c: E2 08 00 BF AB 80 0D 03 02 00 00 00 00 E5 [11:55:02]Write i2c OK [11:55:02]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 0B 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 0B 00 BF AB 00 F3 9C E2 24 A2 E6 18 68 90 00 83 [11:55:03]RAPDU: F3 9C E2 24 A2 E6 18 68 90 00 [11:55:03]wFMCommunicate OK [11:55:03]SAM_PROTO_SignData done [11:55:03]FM_MakeSignedData done [11:55:03]CreateOFDProtocolMessage [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 11 00 00 [11:55:03]Write to MH i2c: E2 08 00 C0 AB 80 11 00 00 00 00 00 00 E5 [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 17 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 17 00 C0 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 32 [11:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:55:03]wFMCommunicate OK [11:55:03]CreateOFDProtocolMessage done [11:55:03]OFDSenderStorePacket 75421 [11:55:03]StoreOFDPacket docnum=75421 [11:55:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 A1 AA 04 01 33 84 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 9A 00 00 00 F4 03 04 00 1C E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9D 26 01 00 35 04 06 00 26 75 86 A2 C0 F7 F3 9C E2 24 A2 E6 18 68 [11:55:03]CheckFolder [11:55:03]dirname=/storage/ofd_packets [11:55:03]CheckFolder done [11:55:03]ProducePacketName [11:55:03]name=ofd_packets/00075421 [11:55:03]NVStorageSaveData ofd_packets/00075421 [11:55:03]File name is /storage/ofd_packets/00075421 [11:55:03]Write 298 bytes [11:55:03]NVStorageSaveData done [11:55:03]OFDSenderStorePacket done [11:55:03]KKMCreateOFDPacket done [11:55:03]NVStorageSaveData kkm_last_timestamp [11:55:03]File name is /storage/kkm_last_timestamp [11:55:03]Write 4 bytes [11:55:03]NVStorageSaveData done [11:55:03]ExternCall_PrintAddStr [11:55:03]wPrintStart [11:55:03]Write to MH i2c: 01 00 00 C1 AB 6C [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 C1 AB 00 00 00 00 00 FF 0F 81 [11:55:03]RasterBufferAndPrint [11:55:03]line Счет N : (1)1965422 [11:55:03]line ИНН: 02508201610067 [11:55:03]line Контрольно-Кассовый Чек [11:55:03]line ПРОДАЖА [11:55:03]line ТРК (МРК, ГНК) : 11 [11:55:03]line Товар: 2710194210 [11:55:03]line ДТ-К-5 [11:55:03]line 9.190 * 76.20 [11:55:03]line = 700.28 [11:55:03]line НДС 12% НСП 1% [11:55:03]line > о реализуемом товаре [11:55:03]line ОКРУГЛЕНИЕ: -0.28 [11:55:03]line ИТОГО: 700.00 [11:55:03]line Внесено: 700.00 [11:55:03]line СДАЧА: 0.00 [11:55:03]line НСП 1% : 6.20 [11:55:03]line НДС 12% : 74.37 [11:55:03]line Наличными: 700.00 [11:55:03]line Безнал.: 0.00 [11:55:03]line Место: АЗС № 133 "Партнер Нефть" [11:55:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:55:03]line СНО: Общий режим [11:55:03]line Чек 154 23.10.2024 11:55 [11:55:03]line Смена: 173 ФФД: 1.0 [11:55:03]line ЗНМ: 0300000020 [11:55:03]line РНМ: 0000000000161154 [11:55:03]line Версия ККМ: v1.0 [11:55:03]line ФМ: 0000000000963323 [11:55:03]line ФД: 75421 [11:55:03]line ФПД: 42286211842295 [11:55:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115508&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75421&fm=42286211842295&tin=02508201610067®Number=0000000000161154&sum=70000 [11:55:03]written 0, free lines is 4095 [11:55:03]OFD Sender: Processing packet 75421 [packets to send 15, broken 14] [11:55:03]ProducePacketName [11:55:03]name=ofd_packets/00075421 [11:55:03]OFD Sender: To server: pG, [11:55:03]CommunicateWithHost lk.salyk.kg:30040 [11:55:03]ConnectInit lk.salyk.kg [11:55:03]Connected sock=10 [11:55:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 A1 AA 04 01 33 84 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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 9A 00 00 00 F4 03 04 00 1C E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9D 26 01 00 35 04 06 00 26 75 86 A2 C0 F7 F3 9C E2 24 A2 E6 18 68 [11:55:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 80 E8 47 00 A4 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9D 26 01 00 F4 03 04 00 F7 8C 18 67 B6 04 01 00 00 C8 5A E9 F6 D7 03 52 4E [11:55:03]CommunicateWithHost err = 0 [11:55:03]CheckOFDResponse [11:55:03]1017 (14) - 77093643461234 [11:55:03]1041 (16) - 0000000000963323 [11:55:03]1040 (4) - 75421 [11:55:03]1012 (4) - 23.10.2024 05:43 [11:55:03]1206 (1) - 0 [11:55:03]OFD Sender: Remove packet 75421 [11:55:03]ProducePacketName [11:55:03]name=ofd_packets/00075421 [11:55:03]NVStorageDeleteData [11:55:03]Write to MH i2c: 01 00 00 EB AB 96 [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 EB AB 00 00 00 00 00 BB 0C 64 [11:55:03]RasterBufferAndPrint [11:55:03]line [11:55:03]line [11:55:03]line [11:55:03]line [11:55:03]line [11:55:03]written 0, free lines is 3268 [11:55:03]MH_Cut [11:55:03]Write to MH i2c: D1 01 00 F2 AB 01 6F [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: D1 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: D1 01 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: D1 01 00 F2 AB 00 6E [11:55:03]Write to MH i2c: 01 00 00 F3 AB 9E [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:04]OFD Sender: No OFD packet to send [11:55:04]*** Cut start [11:55:04]*** Partial cut [11:55:04]*** CUTSNS_PIN = 1 [11:55:04]*** CUTSNS_PIN = 0 [11:55:04]*** Brake cut motor [11:55:05]Read from MH i2c: 01 [11:55:05]MH_I2C_Read... [11:55:05]*** Stop cut motor [11:55:05]*** Cut end [11:55:05]Read from MH i2c: 01 07 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: 01 07 00 F3 AB 00 00 00 00 00 FF 0F B3 [11:55:05]process_action close_receipt done [11:55:05]requested_data is exist [11:55:05]produce_requested_data [11:55:05]requested_item fm.sn is exist - process it [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 11 00 00 [11:55:05]Write to MH i2c: E2 08 00 F4 AB 80 11 00 00 00 00 00 00 19 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 17 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 17 00 F4 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 66 [11:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:55:05]wFMCommunicate OK [11:55:05]requested_item fd.num is exist - process it [11:55:05]SAM_PROTO_GetFieldsCounters [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 13 00 00 [11:55:05]Write to MH i2c: E2 08 00 F5 AB 80 13 00 00 00 00 00 00 1C [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 62 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 62 00 F5 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9D 26 01 00 0E 04 04 00 AD 00 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 6F [11:55:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9D 26 01 00 0E 04 04 00 AD 00 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 [11:55:05]wFMCommunicate OK [11:55:05]SAM_PROTO_GetFieldsCounters done [11:55:05]requested_item shift.num is exist - process it [11:55:05]requested_item shift.opened is exist - process it [11:55:05]req_shift_opened [11:55:05]FM_GetShiftState [11:55:05]SAM_PROTO_GetShiftState [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 13 01 00 [11:55:05]Write to MH i2c: E2 08 00 F6 AB 80 13 01 00 00 00 00 00 1E [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 0E 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 0E 00 F6 AB 00 09 00 01 99 41 18 67 00 00 00 00 90 00 83 [11:55:05]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:55:05]wFMCommunicate OK [11:55:05]SAM_PROTO_GetShiftState done [11:55:05]FM_GetShiftState done [11:55:05]req_shift_opened done [11:55:05]requested_item shift.open_date is exist - process it [11:55:05]req_shift_open_date [11:55:05]req_shift_open_date done [11:55:05]produce_requested_data done [11:55:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75421,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:55:05]process_action_free close_receipt [11:55:05]json_value_free [11:55:05]json_value_free done [11:55:05]process_json_proto returns [11:55:05]Send response to host [11:55:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75421,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:55:05]free response buf [11:55:05]execute_script done [11:55:05]execute_script returns [11:55:05]free content buf [11:55:05]Sock 7.Close socket [11:55:05]Sock 7.Thread stoped [11:55:06]accept exits with 9 [11:55:06]New connection [11:55:06]New thread 3067321700 created [11:55:06]Thread 3067465060 joined [11:55:06]Waiting for new connection... [11:55:06] Sock 9.Parse request [11:55:06]Sock 9.Check first char [11:55:06]Sock 9.First char is OK [11:55:06]request: POST /json_proto HTTP/1.0 [11:55:06]Method: POST [11:55:06]URL: /json_proto [11:55:06]Method is POST - this is cgi request [11:55:06]url: /json_proto [11:55:06]query_string will be loaded in cgi processing [11:55:06]execute_cgi json_proto POST (null) [11:55:06]execute_cgi path=json_proto method=POST [11:55:06]POST find Content-Length [11:55:06]Host: 172.17.44.196:8080 [11:55:06]Content-Length: 842 [11:55:06]Content-Type: application/json [11:55:06] [11:55:06]POST finish read [11:55:06]Found Content-Length = 842 [11:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273235", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:06]execute_script... [11:55:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273235", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:06]POST & json_proto [11:55:06]process_json_proto [11:55:06]json parsed OK: [11:55:06]protocol is kg_v1.0 [11:55:06]action value=close_receipt [11:55:06]process_action close_receipt [11:55:06]cmd_close_receipt [11:55:06]MH_GetDate [11:55:06]Write to MH i2c: F0 00 00 F7 AB 91 [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: F0 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: F0 09 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: F0 09 00 F7 AB 00 21 E4 18 67 E7 19 F8 65 7B [11:55:06]GetLastDocTimeStamp 1729684508 [11:55:06]current date 1729684513 [11:55:06]FM_GetShiftState [11:55:06]SAM_PROTO_GetShiftState [11:55:06]wFMCommunicate request_size=4 [11:55:06]MH_SAM_APDU [11:55:06]CAPDU: 80 13 01 00 [11:55:06]Write to MH i2c: E2 08 00 F8 AB 80 13 01 00 00 00 00 00 20 [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:06]Read from MH i2c: E2 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 0E 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 0E 00 F8 AB 00 09 00 01 99 41 18 67 00 00 00 00 90 00 85 [11:55:06]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:55:06]wFMCommunicate OK [11:55:06]SAM_PROTO_GetShiftState done [11:55:06]FM_GetShiftState done [11:55:06]opened in 1729642905 [11:55:06]opened+sec_in_day 1729729305 [11:55:06]quantity*price = 13000 [11:55:06]sum+1 = 13001 [11:55:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001610012 Пиво Арпа 0,5л 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.43 НДС 12% : 29.20 Наличными: 275.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 155 23.10.2024 11:55 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75422 ФПД: 178645461030802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115513&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75422&fm=178645461030802&tin=02508201610067®Number=0000000000161154&sum=27500 0 [11:55:08]StoreToDocumentArchive [11:55:08]shift 173 fd 75422 [11:55:08]save to /storage/0173/doc_00075422 [11:55:08]save last doc name /storage/0173/doc_00075422 to /storage/kkm_last_doc_name [11:55:08]save OK [11:55:08]Clear old archive folders... [11:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=356 [11:55:08]tlvbuf is 00EBDDE0 [11:55:08]SAM_PROTO_ClearQueue [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 09 00 00 [11:55:08]Write to MH i2c: E2 08 00 05 AC 80 09 00 00 00 00 00 00 23 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 05 AC 00 90 00 25 [11:55:08]RAPDU: 90 00 [11:55:08]wFMCommunicate OK [11:55:08]SAM_PROTO_ClearQueue done [11:55:08]KKMCreateOFDPacket [11:55:08]OFDProtocolAddRootSTLVToBuf [11:55:08]FM_MakeSignedData [11:55:08]FM_MakeSignedData [11:55:08]SAM_PROTO_SignData [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 0D 01 02 [11:55:08]Write to MH i2c: E2 08 00 06 AC 80 0D 01 02 00 00 00 00 2B [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 06 AC 00 90 00 26 [11:55:08]RAPDU: 90 00 [11:55:08]wFMCommunicate OK [11:55:08]wFMCommunicate request_size=255 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 0D 02 02 FA 03 00 64 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 [11:55:08]Write to MH i2c: E2 02 01 07 AC 80 0D 02 02 FA 00 03 00 64 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 00 5E [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 07 AC 00 90 00 27 [11:55:08]RAPDU: 90 00 [11:55:08]wFMCommunicate OK [11:55:08]wFMCommunicate request_size=115 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 0D 02 02 6E 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9E 26 01 00 35 04 06 00 A2 7A 23 3E D7 92 [11:55:08]Write to MH i2c: E2 76 00 08 AC 80 0D 02 02 6E 00 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9E 26 01 00 35 04 06 00 A2 7A 23 3E D7 92 00 00 74 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 08 AC 00 90 00 28 [11:55:08]RAPDU: 90 00 [11:55:08]wFMCommunicate OK [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 0D 03 02 [11:55:08]Write to MH i2c: E2 08 00 09 AC 80 0D 03 02 00 00 00 00 30 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 0B 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 0B 00 09 AC 00 5A 24 58 4D 6E 1D 33 80 90 00 92 [11:55:08]RAPDU: 5A 24 58 4D 6E 1D 33 80 90 00 [11:55:08]wFMCommunicate OK [11:55:08]SAM_PROTO_SignData done [11:55:08]FM_MakeSignedData done [11:55:08]CreateOFDProtocolMessage [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 11 00 00 [11:55:08]Write to MH i2c: E2 08 00 0A AC 80 11 00 00 00 00 00 00 30 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 17 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 17 00 0A AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7D [11:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:55:08]wFMCommunicate OK [11:55:08]CreateOFDProtocolMessage done [11:55:08]OFDSenderStorePacket 75422 [11:55:08]StoreOFDPacket docnum=75422 [11:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 78 01 00 00 AA C7 70 01 DD 60 5A 03 01 00 03 00 64 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9E 26 01 00 35 04 06 00 A2 7A 23 3E D7 92 5A 24 58 4D 6E 1D 33 80 [11:55:08]CheckFolder [11:55:08]dirname=/storage/ofd_packets [11:55:08]CheckFolder done [11:55:08]ProducePacketName [11:55:08]name=ofd_packets/00075422 [11:55:08]NVStorageSaveData ofd_packets/00075422 [11:55:08]File name is /storage/ofd_packets/00075422 [11:55:08]Write 406 bytes [11:55:08]NVStorageSaveData done [11:55:08]OFDSenderStorePacket done [11:55:08]KKMCreateOFDPacket done [11:55:08]NVStorageSaveData kkm_last_timestamp [11:55:08]File name is /storage/kkm_last_timestamp [11:55:08]Write 4 bytes [11:55:08]NVStorageSaveData done [11:55:08]ExternCall_PrintAddStr [11:55:08]wPrintStart [11:55:08]Write to MH i2c: 01 00 00 0B AC B7 [11:55:08]OFD Sender: Processing packet 75422 [packets to send 15, broken 14] [11:55:08]ProducePacketName [11:55:08]name=ofd_packets/00075422 [11:55:08]OFD Sender: To server: pG, [11:55:08]CommunicateWithHost lk.salyk.kg:30040 [11:55:08]ConnectInit lk.salyk.kg [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 07 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 07 00 0B AC 00 00 00 00 00 FF 0F CC [11:55:08]RasterBufferAndPrint [11:55:08]line Счет N : (3)273235 [11:55:08]line ИНН: 02508201610067 [11:55:08]line Контрольно-Кассовый Чек [11:55:08]line ПРОДАЖА [11:55:08]line Товар: 48741156 [11:55:08]line Сигареты LD Blue [11:55:08]line 1.000 * 130.00 [11:55:08]line = 130.00 [11:55:08]line НДС 12% НСП 1% [11:55:08]line > о реализуемом товаре [11:55:08]line Товар: 4700001610012 [11:55:08]line Пиво Арпа 0,5л [11:55:08]line 1.000 * 145.00 [11:55:08]line = 145.00 [11:55:08]line НДС 12% НСП 1% [11:55:08]line > о реализуемом товаре [11:55:08]line ИТОГО: 275.00 [11:55:08]line НСП 1% : 2.43 [11:55:08]line НДС 12% : 29.20 [11:55:08]line Наличными: 275.00 [11:55:08]line Безнал.: 0.00 [11:55:08]line Место: АЗС № 133 "Партнер Нефть" [11:55:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:55:08]line СНО: Общий режим [11:55:08]line Чек 155 23.10.2024 11:55 [11:55:08]line Смена: 173 ФФД: 1.0 [11:55:08]line ЗНМ: 0300000020 [11:55:08]line РНМ: 0000000000161154 [11:55:08]line Версия ККМ: v1.0 [11:55:08]line ФМ: 0000000000963323 [11:55:08]line ФД: 75422 [11:55:08]line ФПД: 178645461030802 [11:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115513&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75422&fm=178645461030802&tin=02508201610067®Number=0000000000161154&sum=27500 [11:55:08]line 0 [11:55:08]written 0, free lines is 4095 [11:55:09]Connected sock=10 [11:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 78 01 00 00 AA C7 70 01 DD 60 5A 03 01 00 03 00 64 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9E 26 01 00 35 04 06 00 A2 7A 23 3E D7 92 5A 24 58 4D 6E 1D 33 80 [11:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4C 2B 47 00 0A 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9E 26 01 00 F4 03 04 00 FD 8C 18 67 B6 04 01 00 00 FC 6F 5D A1 88 CC 0E B6 [11:55:09]CommunicateWithHost err = 0 [11:55:09]CheckOFDResponse [11:55:09]1017 (14) - 77093643461234 [11:55:09]1041 (16) - 0000000000963323 [11:55:09]1040 (4) - 75422 [11:55:09]1012 (4) - 23.10.2024 05:43 [11:55:09]1206 (1) - 0 [11:55:09]OFD Sender: Remove packet 75422 [11:55:09]ProducePacketName [11:55:09]name=ofd_packets/00075422 [11:55:09]NVStorageDeleteData [11:55:09]Write to MH i2c: 01 00 00 38 AC E4 [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: 01 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: 01 07 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: 01 07 00 38 AC 00 00 00 00 00 7F 0C 76 [11:55:09]RasterBufferAndPrint [11:55:09]line [11:55:09]line [11:55:09]line [11:55:09]line [11:55:09]line [11:55:09]written 0, free lines is 3220 [11:55:09]MH_Cut [11:55:09]Write to MH i2c: D1 01 00 3F AC 01 BD [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: D1 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: D1 01 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: D1 01 00 3F AC 00 BC [11:55:09]Write to MH i2c: 01 00 00 40 AC EC [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]OFD Sender: No OFD packet to send [11:55:10]*** Cut start [11:55:10]*** Partial cut [11:55:10]*** CUTSNS_PIN = 1 [11:55:10]*** CUTSNS_PIN = 0 [11:55:10]*** Brake cut motor [11:55:10]Read from MH i2c: 01 [11:55:10]MH_I2C_Read... [11:55:10]*** Stop cut motor [11:55:10]*** Cut end [11:55:10]Read from MH i2c: 01 07 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: 01 07 00 40 AC 00 00 00 00 00 FF 0F 01 [11:55:10]process_action close_receipt done [11:55:10]requested_data is exist [11:55:10]produce_requested_data [11:55:10]requested_item fm.sn is exist - process it [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 11 00 00 [11:55:10]Write to MH i2c: E2 08 00 41 AC 80 11 00 00 00 00 00 00 67 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 17 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 17 00 41 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B4 [11:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:55:11]wFMCommunicate OK [11:55:11]requested_item fd.num is exist - process it [11:55:11]SAM_PROTO_GetFieldsCounters [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 13 00 00 [11:55:11]Write to MH i2c: E2 08 00 42 AC 80 13 00 00 00 00 00 00 6A [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 62 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 62 00 42 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9E 26 01 00 0E 04 04 00 AD 00 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 C1 [11:55:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9E 26 01 00 0E 04 04 00 AD 00 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 [11:55:11]wFMCommunicate OK [11:55:11]SAM_PROTO_GetFieldsCounters done [11:55:11]requested_item shift.num is exist - process it [11:55:11]requested_item shift.opened is exist - process it [11:55:11]req_shift_opened [11:55:11]FM_GetShiftState [11:55:11]SAM_PROTO_GetShiftState [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 13 01 00 [11:55:11]Write to MH i2c: E2 08 00 43 AC 80 13 01 00 00 00 00 00 6C [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 0E 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 0E 00 43 AC 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D1 [11:55:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:55:11]wFMCommunicate OK [11:55:11]SAM_PROTO_GetShiftState done [11:55:11]FM_GetShiftState done [11:55:11]req_shift_opened done [11:55:11]requested_item shift.open_date is exist - process it [11:55:11]req_shift_open_date [11:55:11]req_shift_open_date done [11:55:11]produce_requested_data done [11:55:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75422,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:55:11]process_action_free close_receipt [11:55:11]json_value_free [11:55:11]json_value_free done [11:55:11]process_json_proto returns [11:55:11]Send response to host [11:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75422,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:55:11]free response buf [11:55:11]execute_script done [11:55:11]execute_script returns [11:55:11]free content buf [11:55:11]Sock 9.Close socket [11:55:11]Sock 9.Thread stoped [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]accept exits with 7 [11:56:19]New connection [11:56:19]New thread 3067465060 created [11:56:19]Thread 3067321700 joined [11:56:19]Waiting for new connection... [11:56:19] Sock 7.Parse request [11:56:19]Sock 7.Check first char [11:56:19]Sock 7.First char is OK [11:56:19]request: POST /json_proto HTTP/1.0 [11:56:19]Method: POST [11:56:19]URL: /json_proto [11:56:19]Method is POST - this is cgi request [11:56:19]url: /json_proto [11:56:19]query_string will be loaded in cgi processing [11:56:19]execute_cgi json_proto POST (null) [11:56:19]execute_cgi path=json_proto method=POST [11:56:19]POST find Content-Length [11:56:19]Host: 172.17.44.196:8080 [11:56:19]Content-Length: 792 [11:56:19]Content-Type: application/json [11:56:19] [11:56:19]POST finish read [11:56:19]Found Content-Length = 792 [11:56:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00886", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:19]execute_script... [11:56:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00886", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:19]POST & json_proto [11:56:19]process_json_proto [11:56:19]json parsed OK: [11:56:19]protocol is kg_v1.0 [11:56:19]action value=close_receipt [11:56:19]process_action close_receipt [11:56:19]cmd_close_receipt [11:56:19]MH_GetDate [11:56:19]Write to MH i2c: F0 00 00 44 AC DF [11:56:19]Write i2c OK [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: F0 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: F0 09 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: F0 09 00 44 AC 00 6A E4 18 67 E7 19 F8 65 12 [11:56:19]GetLastDocTimeStamp 1729684513 [11:56:19]current date 1729684586 [11:56:19]FM_GetShiftState [11:56:19]SAM_PROTO_GetShiftState [11:56:19]wFMCommunicate request_size=4 [11:56:19]MH_SAM_APDU [11:56:19]CAPDU: 80 13 01 00 [11:56:19]Write to MH i2c: E2 08 00 45 AC 80 13 01 00 00 00 00 00 6E [11:56:19]Write i2c OK [11:56:19]MH_I2C_Read... [11:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:19]Read from MH i2c: E2 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 0E 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 0E 00 45 AC 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D3 [11:56:19]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:56:19]wFMCommunicate OK [11:56:19]SAM_PROTO_GetShiftState done [11:56:19]FM_GetShiftState done [11:56:19]opened in 1729642905 [11:56:19]opened+sec_in_day 1729729305 [11:56:19]quantity*price = 0 [11:56:19]sum+1 = 1 [11:56:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 156 23.10.2024 11:56 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: Топливная Карта 00886 ФМ: 0000000000963323 ФД: 75423 ФПД: 237984894292175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115626&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75423&fm=237984894292175&tin=02508201610067®Number=0000000000161154&sum=0 [11:56:20]StoreToDocumentArchive [11:56:20]shift 173 fd 75423 [11:56:20]save to /storage/0173/doc_00075423 [11:56:20]save last doc name /storage/0173/doc_00075423 to /storage/kkm_last_doc_name [11:56:20]save OK [11:56:20]Clear old archive folders... [11:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:20]tlvbuf is 010782F0 [11:56:20]SAM_PROTO_ClearQueue [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 09 00 00 [11:56:20]Write to MH i2c: E2 08 00 52 AC 80 09 00 00 00 00 00 00 70 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 52 AC 00 90 00 72 [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]SAM_PROTO_ClearQueue done [11:56:20]KKMCreateOFDPacket [11:56:20]OFDProtocolAddRootSTLVToBuf [11:56:20]FM_MakeSignedData [11:56:20]FM_MakeSignedData [11:56:20]SAM_PROTO_SignData [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 0D 01 02 [11:56:20]Write to MH i2c: E2 08 00 53 AC 80 0D 01 02 00 00 00 00 78 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 53 AC 00 90 00 73 [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]wFMCommunicate request_size=255 [11:56:20]MH_SAM_APDU [11:56: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 6A E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9F 26 01 00 35 04 06 00 D8 [11:56:20]Write to MH i2c: E2 02 01 54 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 6A E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9F 26 01 00 35 04 06 00 D8 00 00 C4 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 54 AC 00 90 00 74 [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]wFMCommunicate request_size=10 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 0D 02 02 05 72 2D 16 10 CF [11:56:20]Write to MH i2c: E2 0D 00 55 AC 80 0D 02 02 05 00 72 2D 16 10 CF 00 00 19 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 55 AC 00 90 00 75 [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 0D 03 02 [11:56:20]Write to MH i2c: E2 08 00 56 AC 80 0D 03 02 00 00 00 00 7D [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 0B 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 0B 00 56 AC 00 66 8D 12 C7 4F D2 B3 09 90 00 27 [11:56:20]RAPDU: 66 8D 12 C7 4F D2 B3 09 90 00 [11:56:20]wFMCommunicate OK [11:56:20]SAM_PROTO_SignData done [11:56:20]FM_MakeSignedData done [11:56:20]CreateOFDProtocolMessage [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 11 00 00 [11:56:20]Write to MH i2c: E2 08 00 57 AC 80 11 00 00 00 00 00 00 7D [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 17 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 17 00 57 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CA [11:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:56:20]wFMCommunicate OK [11:56:20]CreateOFDProtocolMessage done [11:56:20]OFDSenderStorePacket 75423 [11:56:20]StoreOFDPacket docnum=75423 [11:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E4 B3 07 01 65 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 6A E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9F 26 01 00 35 04 06 00 D8 72 2D 16 10 CF 66 8D 12 C7 4F D2 B3 09 [11:56:20]CheckFolder [11:56:20]dirname=/storage/ofd_packets [11:56:20]CheckFolder done [11:56:20]ProducePacketName [11:56:20]name=ofd_packets/00075423 [11:56:20]NVStorageSaveData ofd_packets/00075423 [11:56:20]File name is /storage/ofd_packets/00075423 [11:56:20]Write 301 bytes [11:56:20]NVStorageSaveData done [11:56:20]OFDSenderStorePacket done [11:56:20]KKMCreateOFDPacket done [11:56:20]NVStorageSaveData kkm_last_timestamp [11:56:20]File name is /storage/kkm_last_timestamp [11:56:20]Write 4 bytes [11:56:20]NVStorageSaveData done [11:56:20]ExternCall_PrintAddStr [11:56:20]wPrintStart [11:56:20]Write to MH i2c: 01 00 00 58 AC 04 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: 01 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: 01 07 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: 01 07 00 58 AC 00 00 00 00 00 FF 0F 19 [11:56:20]RasterBufferAndPrint [11:56:20]line Счет N : (1)1965423 [11:56:20]line ИНН: 02508201610067 [11:56:20]line Контрольно-Кассовый Чек [11:56:20]line ПРОДАЖА [11:56:20]line ТРК (МРК, ГНК) : 63 [11:56:20]line Товар: 2710124130 [11:56:20]line Аи-92-К-5 [11:56:20]line 5.000 * 0.00 [11:56:20]line = 0.00 [11:56:20]line НДС 12% НСП 1% [11:56:20]line > о реализуемом товаре [11:56:20]line ИТОГО: 0.00 [11:56:20]line НСП 1% : 0.00 [11:56:20]line НДС 12% : 0.00 [11:56:20]line Наличными: 0.00 [11:56:20]line Безнал.: 0.00 [11:56:20]line Место: АЗС № 133 "Партнер Нефть" [11:56:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:56:20]line СНО: Общий режим [11:56:20]line Чек 156 23.10.2024 11:56 [11:56:20]line Смена: 173 ФФД: 1.0 [11:56:20]line ЗНМ: 0300000020 [11:56:20]line РНМ: 0000000000161154 [11:56:20]line Версия ККМ: v1.0 [11:56:20]line Талоны: Топливная Карта [11:56:20]line 00886 [11:56:20]line ФМ: 0000000000963323 [11:56:20]line ФД: 75423 [11:56:20]line ФПД: 237984894292175 [11:56:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115626&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75423&fm=237984894292175&tin=02508201610067®Number=0000000000161154&sum=0 [11:56:21]OFD Sender: Processing packet 75423 [packets to send 15, broken 14] [11:56:21]ProducePacketName [11:56:21]name=ofd_packets/00075423 [11:56:21]OFD Sender: To server: pG, [11:56:21]CommunicateWithHost lk.salyk.kg:30040 [11:56:21]ConnectInit lk.salyk.kg [11:56:21]written 0, free lines is 4095 [11:56:21]Connected sock=11 [11:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 E4 B3 07 01 65 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 6A E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9F 26 01 00 35 04 06 00 D8 72 2D 16 10 CF 66 8D 12 C7 4F D2 B3 09 [11:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 97 FA 47 00 D8 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 9F 26 01 00 F4 03 04 00 45 8D 18 67 B6 04 01 00 00 CD 45 68 9B C7 36 2A 58 [11:56:21]CommunicateWithHost err = 0 [11:56:21]CheckOFDResponse [11:56:21]1017 (14) - 77093643461234 [11:56:21]1041 (16) - 0000000000963323 [11:56:21]1040 (4) - 75423 [11:56:21]1012 (4) - 23.10.2024 05:44 [11:56:21]1206 (1) - 0 [11:56:21]OFD Sender: Remove packet 75423 [11:56:21]ProducePacketName [11:56:21]name=ofd_packets/00075423 [11:56:21]NVStorageDeleteData [11:56:21]Write to MH i2c: 01 00 00 81 AC 2D [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 07 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 07 00 81 AC 00 00 00 00 00 C3 0C 03 [11:56:21]RasterBufferAndPrint [11:56:21]line [11:56:21]line [11:56:21]line [11:56:21]line [11:56:21]line [11:56:21]written 0, free lines is 3270 [11:56:21]MH_Cut [11:56:21]Write to MH i2c: D1 01 00 88 AC 01 06 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: D1 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: D1 01 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: D1 01 00 88 AC 00 05 [11:56:21]Write to MH i2c: 01 00 00 89 AC 35 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:22]OFD Sender: No OFD packet to send [11:56:22]*** Cut start [11:56:22]*** Partial cut [11:56:22]*** CUTSNS_PIN = 1 [11:56:22]*** CUTSNS_PIN = 0 [11:56:22]*** Brake cut motor [11:56:23]Read from MH i2c: 01 [11:56:23]MH_I2C_Read... [11:56:23]*** Stop cut motor [11:56:23]*** Cut end [11:56:23]Read from MH i2c: 01 07 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: 01 07 00 89 AC 00 00 00 00 00 FF 0F 4A [11:56:23]process_action close_receipt done [11:56:23]requested_data is exist [11:56:23]produce_requested_data [11:56:23]requested_item fm.sn is exist - process it [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 11 00 00 [11:56:23]Write to MH i2c: E2 08 00 8A AC 80 11 00 00 00 00 00 00 B0 [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 17 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 17 00 8A AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FD [11:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:56:23]wFMCommunicate OK [11:56:23]requested_item fd.num is exist - process it [11:56:23]SAM_PROTO_GetFieldsCounters [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 13 00 00 [11:56:23]Write to MH i2c: E2 08 00 8B AC 80 13 00 00 00 00 00 00 B3 [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 62 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 62 00 8B AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9F 26 01 00 0E 04 04 00 AD 00 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 0E [11:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 9F 26 01 00 0E 04 04 00 AD 00 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 [11:56:23]wFMCommunicate OK [11:56:23]SAM_PROTO_GetFieldsCounters done [11:56:23]requested_item shift.num is exist - process it [11:56:23]requested_item shift.opened is exist - process it [11:56:23]req_shift_opened [11:56:23]FM_GetShiftState [11:56:23]SAM_PROTO_GetShiftState [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 13 01 00 [11:56:23]Write to MH i2c: E2 08 00 8C AC 80 13 01 00 00 00 00 00 B5 [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 0E 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 0E 00 8C AC 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1A [11:56:23]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:56:23]wFMCommunicate OK [11:56:23]SAM_PROTO_GetShiftState done [11:56:23]FM_GetShiftState done [11:56:23]req_shift_opened done [11:56:23]requested_item shift.open_date is exist - process it [11:56:23]req_shift_open_date [11:56:23]req_shift_open_date done [11:56:23]produce_requested_data done [11:56:23]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75423,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:56:23]process_action_free close_receipt [11:56:23]json_value_free [11:56:23]json_value_free done [11:56:23]process_json_proto returns [11:56:23]Send response to host [11:56:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75423,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:56:23]free response buf [11:56:23]execute_script done [11:56:23]execute_script returns [11:56:23]free content buf [11:56:23]Sock 7.Close socket [11:56:23]Sock 7.Thread stoped [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:43]accept exits with 9 [11:56:43]New connection [11:56:43]New thread 3067321700 created [11:56:43]Thread 3067465060 joined [11:56:43]Waiting for new connection... [11:56:43] Sock 9.Parse request [11:56:43]Sock 9.Check first char [11:56:43]Sock 9.First char is OK [11:56:43]request: POST /json_proto HTTP/1.0 [11:56:43]Method: POST [11:56:43]URL: /json_proto [11:56:43]Method is POST - this is cgi request [11:56:43]url: /json_proto [11:56:43]query_string will be loaded in cgi processing [11:56:43]execute_cgi json_proto POST (null) [11:56:43]execute_cgi path=json_proto method=POST [11:56:43]POST find Content-Length [11:56:43]Host: 172.17.44.196:8080 [11:56:43]Content-Length: 679 [11:56:43]Content-Type: application/json [11:56:43] [11:56:43]POST finish read [11:56:43]Found Content-Length = 679 [11:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [11:56:43]execute_script... [11: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)1965424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [11:56:43]POST & json_proto [11:56:43]process_json_proto [11:56:43]json parsed OK: [11:56:43]protocol is kg_v1.0 [11:56:43]action value=close_receipt [11:56:43]process_action close_receipt [11:56:43]cmd_close_receipt [11:56:43]MH_GetDate [11:56:43]Write to MH i2c: F0 00 00 8D AC 28 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: F0 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: F0 09 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: F0 09 00 8D AC 00 82 E4 18 67 E7 19 F8 65 73 [11:56:43]GetLastDocTimeStamp 1729684586 [11:56:43]current date 1729684610 [11:56:43]FM_GetShiftState [11:56:43]SAM_PROTO_GetShiftState [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 13 01 00 [11:56:43]Write to MH i2c: E2 08 00 8E AC 80 13 01 00 00 00 00 00 B7 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 0E 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 0E 00 8E AC 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1C [11:56:43]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:56:43]wFMCommunicate OK [11:56:43]SAM_PROTO_GetShiftState done [11:56:43]FM_GetShiftState done [11:56:43]opened in 1729642905 [11:56:43]opened+sec_in_day 1729729305 [11:56:43]quantity*price = 80012 [11:56:43]sum+1 = 80013 [11:56:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 157 23.10.2024 11:56 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75424 ФПД: 250976224936884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115650&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75424&fm=250976224936884&tin=02508201610067®Number=0000000000161154&sum=80000 [11:56:44]StoreToDocumentArchive [11:56:44]shift 173 fd 75424 [11:56:44]save to /storage/0173/doc_00075424 [11:56:44]save last doc name /storage/0173/doc_00075424 to /storage/kkm_last_doc_name [11:56:44]save OK [11:56:44]Clear old archive folders... [11:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:44]tlvbuf is 00FABE80 [11:56:44]SAM_PROTO_ClearQueue [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 09 00 00 [11:56:44]Write to MH i2c: E2 08 00 9B AC 80 09 00 00 00 00 00 00 B9 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 03 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 03 00 9B AC 00 90 00 BB [11:56:44]RAPDU: 90 00 [11:56:44]wFMCommunicate OK [11:56:44]SAM_PROTO_ClearQueue done [11:56:44]KKMCreateOFDPacket [11:56:44]OFDProtocolAddRootSTLVToBuf [11:56:44]FM_MakeSignedData [11:56:44]FM_MakeSignedData [11:56:44]SAM_PROTO_SignData [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 0D 01 02 [11:56:44]Write to MH i2c: E2 08 00 9C AC 80 0D 01 02 00 00 00 00 C1 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 03 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 03 00 9C AC 00 90 00 BC [11:56:44]RAPDU: 90 00 [11:56:44]wFMCommunicate OK [11:56:44]wFMCommunicate request_size=255 [11:56:44]MH_SAM_APDU [11: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 9D 00 00 00 F4 03 04 00 82 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A0 26 01 00 35 04 06 00 E4 [11:56:44]Write to MH i2c: E2 02 01 9D 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 9D 00 00 00 F4 03 04 00 82 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A0 26 01 00 35 04 06 00 E4 00 00 09 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 03 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 03 00 9D AC 00 90 00 BD [11:56:44]RAPDU: 90 00 [11:56:44]wFMCommunicate OK [11:56:44]wFMCommunicate request_size=10 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 0D 02 02 05 42 F4 BC 03 B4 [11:56:44]Write to MH i2c: E2 0D 00 9E AC 80 0D 02 02 05 00 42 F4 BC 03 B4 00 00 77 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 03 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 03 00 9E AC 00 90 00 BE [11:56:44]RAPDU: 90 00 [11:56:44]wFMCommunicate OK [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 0D 03 02 [11:56:44]Write to MH i2c: E2 08 00 9F AC 80 0D 03 02 00 00 00 00 C6 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 0B 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 0B 00 9F AC 00 6B AD 39 01 AB 12 5A 90 90 00 C0 [11:56:44]RAPDU: 6B AD 39 01 AB 12 5A 90 90 00 [11:56:44]wFMCommunicate OK [11:56:44]SAM_PROTO_SignData done [11:56:44]FM_MakeSignedData done [11:56:44]CreateOFDProtocolMessage [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 11 00 00 [11:56:44]Write to MH i2c: E2 08 00 A0 AC 80 11 00 00 00 00 00 00 C6 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 17 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 17 00 A0 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 13 [11:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:56:44]wFMCommunicate OK [11:56:44]CreateOFDProtocolMessage done [11:56:44]OFDSenderStorePacket 75424 [11:56:44]StoreOFDPacket docnum=75424 [11:56:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 18 B3 07 01 0F E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 9D 00 00 00 F4 03 04 00 82 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A0 26 01 00 35 04 06 00 E4 42 F4 BC 03 B4 6B AD 39 01 AB 12 5A 90 [11:56:44]CheckFolder [11:56:44]dirname=/storage/ofd_packets [11:56:44]CheckFolder done [11:56:44]ProducePacketName [11:56:44]name=ofd_packets/00075424 [11:56:44]NVStorageSaveData ofd_packets/00075424 [11:56:44]File name is /storage/ofd_packets/00075424 [11:56:44]Write 301 bytes [11:56:44]NVStorageSaveData done [11:56:44]OFDSenderStorePacket done [11:56:44]KKMCreateOFDPacket done [11:56:44]NVStorageSaveData kkm_last_timestamp [11:56:44]File name is /storage/kkm_last_timestamp [11:56:44]Write 4 bytes [11:56:44]NVStorageSaveData done [11:56:44]ExternCall_PrintAddStr [11:56:44]wPrintStart [11:56:44]Write to MH i2c: 01 00 00 A1 AC 4D [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: 01 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: 01 07 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: 01 07 00 A1 AC 00 00 00 00 00 FF 0F 62 [11:56:44]RasterBufferAndPrint [11:56:44]line Счет N : (1)1965424 [11:56:44]line ИНН: 02508201610067 [11:56:44]line Контрольно-Кассовый Чек [11:56:44]line ПРОДАЖА [11:56:44]line ТРК (МРК, ГНК) : 53 [11:56:44]line Товар: 2710124130 [11:56:44]line Аи-92-К-5 [11:56:44]line 11.960 * 66.90 [11:56:44]line = 800.12 [11:56:44]line НДС 12% НСП 1% [11:56:44]line > о реализуемом товаре [11:56:44]line ОКРУГЛЕНИЕ: -0.12 [11:56:44]line ИТОГО: 800.00 [11:56:44]line Внесено: 800.00 [11:56:44]line СДАЧА: 0.00 [11:56:44]line НСП 1% : 7.08 [11:56:44]line НДС 12% : 84.97 [11:56:44]line Наличными: 800.00 [11:56:44]line Безнал.: 0.00 [11:56:44]line Место: АЗС № 133 "Партнер Нефть" [11:56:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:56:44]line СНО: Общий режим [11:56:44]line Чек 157 23.10.2024 11:56 [11:56:44]line Смена: 173 ФФД: 1.0 [11:56:44]line ЗНМ: 0300000020 [11:56:44]line РНМ: 0000000000161154 [11:56:44]line Версия ККМ: v1.0 [11:56:44]line ФМ: 0000000000963323 [11:56:44]line ФД: 75424 [11:56:44]line ФПД: 250976224936884 [11:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115650&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75424&fm=250976224936884&tin=02508201610067®Number=0000000000161154&sum=80000 [11:56:45]OFD Sender: Processing packet 75424 [packets to send 15, broken 14] [11:56:45]ProducePacketName [11:56:45]name=ofd_packets/00075424 [11:56:45]OFD Sender: To server: pG, [11:56:45]CommunicateWithHost lk.salyk.kg:30040 [11:56:45]ConnectInit lk.salyk.kg [11:56:45]written 0, free lines is 4095 [11:56:45]Connected sock=10 [11:56:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 18 B3 07 01 0F E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 9D 00 00 00 F4 03 04 00 82 E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A0 26 01 00 35 04 06 00 E4 42 F4 BC 03 B4 6B AD 39 01 AB 12 5A 90 [11:56:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 08 22 47 00 F3 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A0 26 01 00 F4 03 04 00 5D 8D 18 67 B6 04 01 00 00 4C 5B 7F 15 C2 96 61 52 [11:56:45]CommunicateWithHost err = 0 [11:56:45]CheckOFDResponse [11:56:45]1017 (14) - 77093643461234 [11:56:45]1041 (16) - 0000000000963323 [11:56:45]1040 (4) - 75424 [11:56:45]1012 (4) - 23.10.2024 05:45 [11:56:45]1206 (1) - 0 [11:56:45]OFD Sender: Remove packet 75424 [11:56:45]ProducePacketName [11:56:45]name=ofd_packets/00075424 [11:56:45]NVStorageDeleteData [11:56:45]Write to MH i2c: 01 00 00 CB AC 77 [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: 01 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: 01 07 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: 01 07 00 CB AC 00 00 00 00 00 B7 0C 41 [11:56:45]RasterBufferAndPrint [11:56:45]line [11:56:45]line [11:56:45]line [11:56:45]line [11:56:45]line [11:56:45]written 0, free lines is 3261 [11:56:45]MH_Cut [11:56:45]Write to MH i2c: D1 01 00 D2 AC 01 50 [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: D1 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: D1 01 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: D1 01 00 D2 AC 00 4F [11:56:45]Write to MH i2c: 01 00 00 D3 AC 7F [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:46]OFD Sender: No OFD packet to send [11:56:46]*** Cut start [11:56:46]*** Partial cut [11:56:46]*** CUTSNS_PIN = 1 [11:56:46]*** CUTSNS_PIN = 0 [11:56:46]*** Brake cut motor [11:56:47]Read from MH i2c: 01 [11:56:47]MH_I2C_Read... [11:56:47]*** Stop cut motor [11:56:47]*** Cut end [11:56:47]Read from MH i2c: 01 07 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: 01 07 00 D3 AC 00 00 00 00 00 FF 0F 94 [11:56:47]process_action close_receipt done [11:56:47]requested_data is exist [11:56:47]produce_requested_data [11:56:47]requested_item fm.sn is exist - process it [11:56:47]wFMCommunicate request_size=4 [11:56:47]MH_SAM_APDU [11:56:47]CAPDU: 80 11 00 00 [11:56:47]Write to MH i2c: E2 08 00 D4 AC 80 11 00 00 00 00 00 00 FA [11:56:47]Write i2c OK [11:56:47]MH_I2C_Read... [11:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:47]Read from MH i2c: E2 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 17 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 17 00 D4 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 47 [11:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:56:47]wFMCommunicate OK [11:56:47]requested_item fd.num is exist - process it [11:56:47]SAM_PROTO_GetFieldsCounters [11:56:47]wFMCommunicate request_size=4 [11:56:47]MH_SAM_APDU [11:56:47]CAPDU: 80 13 00 00 [11:56:47]Write to MH i2c: E2 08 00 D5 AC 80 13 00 00 00 00 00 00 FD [11:56:47]Write i2c OK [11:56:47]MH_I2C_Read... [11:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:47]Read from MH i2c: E2 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 62 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 62 00 D5 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A0 26 01 00 0E 04 04 00 AD 00 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 5C [11:56:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A0 26 01 00 0E 04 04 00 AD 00 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 [11:56:47]wFMCommunicate OK [11:56:47]SAM_PROTO_GetFieldsCounters done [11:56:47]requested_item shift.num is exist - process it [11:56:47]requested_item shift.opened is exist - process it [11:56:47]req_shift_opened [11:56:47]FM_GetShiftState [11:56:47]SAM_PROTO_GetShiftState [11:56:47]wFMCommunicate request_size=4 [11:56:47]MH_SAM_APDU [11:56:47]CAPDU: 80 13 01 00 [11:56:47]Write to MH i2c: E2 08 00 D6 AC 80 13 01 00 00 00 00 00 FF [11:56:47]Write i2c OK [11:56:47]MH_I2C_Read... [11:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:47]Read from MH i2c: E2 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 0E 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 0E 00 D6 AC 00 09 00 01 99 41 18 67 00 00 00 00 90 00 64 [11:56:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:56:47]wFMCommunicate OK [11:56:47]SAM_PROTO_GetShiftState done [11:56:47]FM_GetShiftState done [11:56:47]req_shift_opened done [11:56:47]requested_item shift.open_date is exist - process it [11:56:47]req_shift_open_date [11:56:47]req_shift_open_date done [11:56:47]produce_requested_data done [11:56:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75424,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:56:47]process_action_free close_receipt [11:56:47]json_value_free [11:56:47]json_value_free done [11:56:47]process_json_proto returns [11:56:47]Send response to host [11:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75424,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:56:47]free response buf [11:56:47]execute_script done [11:56:47]execute_script returns [11:56:47]free content buf [11:56:47]Sock 9.Close socket [11:56:47]Sock 9.Thread stoped [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:26]accept exits with 7 [11:57:26]New connection [11:57:26]New thread 3067465060 created [11:57:26]Thread 3067321700 joined [11:57:26]Waiting for new connection... [11:57:26] Sock 7.Parse request [11:57:26]Sock 7.Check first char [11:57:26]Sock 7.First char is OK [11:57:26]request: POST /json_proto HTTP/1.0 [11:57:26]Method: POST [11:57:26]URL: /json_proto [11:57:26]Method is POST - this is cgi request [11:57:26]url: /json_proto [11:57:26]query_string will be loaded in cgi processing [11:57:26]execute_cgi json_proto POST (null) [11:57:26]execute_cgi path=json_proto method=POST [11:57:26]POST find Content-Length [11:57:26]Host: 172.17.44.196:8080 [11:57:26]Content-Length: 679 [11:57:26]Content-Type: application/json [11:57:26] [11:57:26]POST finish read [11:57:26]Found Content-Length = 679 [11:57:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:26]execute_script... [11:57: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)1965425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:26]POST & json_proto [11:57:26]process_json_proto [11:57:26]json parsed OK: [11:57:26]protocol is kg_v1.0 [11:57:26]action value=close_receipt [11:57:26]process_action close_receipt [11:57:26]cmd_close_receipt [11:57:26]MH_GetDate [11:57:26]Write to MH i2c: F0 00 00 D7 AC 72 [11:57:26]Write i2c OK [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: F0 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: F0 09 00 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: F0 09 00 D7 AC 00 AD E4 18 67 E7 19 F8 65 E8 [11:57:26]GetLastDocTimeStamp 1729684610 [11:57:26]current date 1729684653 [11:57:26]FM_GetShiftState [11:57:26]SAM_PROTO_GetShiftState [11:57:26]wFMCommunicate request_size=4 [11:57:26]MH_SAM_APDU [11:57:26]CAPDU: 80 13 01 00 [11:57:26]Write to MH i2c: E2 08 00 D8 AC 80 13 01 00 00 00 00 00 01 [11:57:26]Write i2c OK [11:57:26]MH_I2C_Read... [11:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:26]Read from MH i2c: E2 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: E2 0E 00 [11:57:26]MH_I2C_Read... [11:57:26]Read from MH i2c: E2 0E 00 D8 AC 00 09 00 01 99 41 18 67 00 00 00 00 90 00 66 [11:57:26]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:57:26]wFMCommunicate OK [11:57:26]SAM_PROTO_GetShiftState done [11:57:26]FM_GetShiftState done [11:57:26]opened in 1729642905 [11:57:26]opened+sec_in_day 1729729305 [11:57:26]quantity*price = 70044 [11:57:26]sum+1 = 70045 [11:57:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 158 23.10.2024 11:57 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75425 ФПД: 165062629099600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115733&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75425&fm=165062629099600&tin=02508201610067®Number=0000000000161154&sum=70000 [11:57:27]StoreToDocumentArchive [11:57:27]shift 173 fd 75425 [11:57:27]save to /storage/0173/doc_00075425 [11:57:27]save last doc name /storage/0173/doc_00075425 to /storage/kkm_last_doc_name [11:57:27]save OK [11:57:27]Clear old archive folders... [11:57:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:27]tlvbuf is 00DC5590 [11:57:27]SAM_PROTO_ClearQueue [11:57:27]wFMCommunicate request_size=4 [11:57:27]MH_SAM_APDU [11:57:27]CAPDU: 80 09 00 00 [11:57:27]Write to MH i2c: E2 08 00 E5 AC 80 09 00 00 00 00 00 00 03 [11:57:27]Write i2c OK [11:57:27]MH_I2C_Read... [11:57:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:27]Read from MH i2c: E2 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 03 00 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 03 00 E5 AC 00 90 00 05 [11:57:27]RAPDU: 90 00 [11:57:27]wFMCommunicate OK [11:57:27]SAM_PROTO_ClearQueue done [11:57:27]KKMCreateOFDPacket [11:57:27]OFDProtocolAddRootSTLVToBuf [11:57:27]FM_MakeSignedData [11:57:27]FM_MakeSignedData [11:57:27]SAM_PROTO_SignData [11:57:27]wFMCommunicate request_size=4 [11:57:27]MH_SAM_APDU [11:57:27]CAPDU: 80 0D 01 02 [11:57:27]Write to MH i2c: E2 08 00 E6 AC 80 0D 01 02 00 00 00 00 0B [11:57:27]Write i2c OK [11:57:27]MH_I2C_Read... [11:57:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:27]Read from MH i2c: E2 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 03 00 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 03 00 E6 AC 00 90 00 06 [11:57:27]RAPDU: 90 00 [11:57:27]wFMCommunicate OK [11:57:27]wFMCommunicate request_size=255 [11:57:27]MH_SAM_APDU [11:57: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 9E 00 00 00 F4 03 04 00 AD E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A1 26 01 00 35 04 06 00 96 [11:57:27]Write to MH i2c: E2 02 01 E7 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 9E 00 00 00 F4 03 04 00 AD E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A1 26 01 00 35 04 06 00 96 00 00 56 [11:57:27]Write i2c OK [11:57:27]MH_I2C_Read... [11:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:27]Read from MH i2c: E2 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 03 00 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 03 00 E7 AC 00 90 00 07 [11:57:27]RAPDU: 90 00 [11:57:27]wFMCommunicate OK [11:57:27]wFMCommunicate request_size=10 [11:57:27]MH_SAM_APDU [11:57:27]CAPDU: 80 0D 02 02 05 1F A3 5F 88 50 [11:57:27]Write to MH i2c: E2 0D 00 E8 AC 80 0D 02 02 05 00 1F A3 5F 88 50 00 00 11 [11:57:27]Write i2c OK [11:57:27]MH_I2C_Read... [11:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:27]Read from MH i2c: E2 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 03 00 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 03 00 E8 AC 00 90 00 08 [11:57:27]RAPDU: 90 00 [11:57:27]wFMCommunicate OK [11:57:27]wFMCommunicate request_size=4 [11:57:27]MH_SAM_APDU [11:57:27]CAPDU: 80 0D 03 02 [11:57:27]Write to MH i2c: E2 08 00 E9 AC 80 0D 03 02 00 00 00 00 10 [11:57:27]Write i2c OK [11:57:27]MH_I2C_Read... [11:57:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:27]Read from MH i2c: E2 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 0B 00 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 0B 00 E9 AC 00 B9 2B D8 B8 65 91 4C 29 90 00 F0 [11:57:27]RAPDU: B9 2B D8 B8 65 91 4C 29 90 00 [11:57:27]wFMCommunicate OK [11:57:27]SAM_PROTO_SignData done [11:57:27]FM_MakeSignedData done [11:57:27]CreateOFDProtocolMessage [11:57:27]wFMCommunicate request_size=4 [11:57:27]MH_SAM_APDU [11:57:27]CAPDU: 80 11 00 00 [11:57:27]Write to MH i2c: E2 08 00 EA AC 80 11 00 00 00 00 00 00 10 [11:57:27]Write i2c OK [11:57:27]MH_I2C_Read... [11:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:27]Read from MH i2c: E2 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 17 00 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: E2 17 00 EA AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [11:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:57:27]wFMCommunicate OK [11:57:27]CreateOFDProtocolMessage done [11:57:27]OFDSenderStorePacket 75425 [11:57:27]StoreOFDPacket docnum=75425 [11:57:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4F A5 07 01 47 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 9E 00 00 00 F4 03 04 00 AD E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A1 26 01 00 35 04 06 00 96 1F A3 5F 88 50 B9 2B D8 B8 65 91 4C 29 [11:57:27]CheckFolder [11:57:27]dirname=/storage/ofd_packets [11:57:27]CheckFolder done [11:57:27]ProducePacketName [11:57:27]name=ofd_packets/00075425 [11:57:27]NVStorageSaveData ofd_packets/00075425 [11:57:27]File name is /storage/ofd_packets/00075425 [11:57:27]Write 301 bytes [11:57:27]NVStorageSaveData done [11:57:27]OFDSenderStorePacket done [11:57:27]KKMCreateOFDPacket done [11:57:27]NVStorageSaveData kkm_last_timestamp [11:57:27]File name is /storage/kkm_last_timestamp [11:57:27]Write 4 bytes [11:57:27]NVStorageSaveData done [11:57:27]ExternCall_PrintAddStr [11:57:27]wPrintStart [11:57:27]Write to MH i2c: 01 00 00 EB AC 97 [11:57:27]Write i2c OK [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: 01 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: 01 07 00 [11:57:27]MH_I2C_Read... [11:57:27]Read from MH i2c: 01 07 00 EB AC 00 00 00 00 00 FF 0F AC [11:57:27]RasterBufferAndPrint [11:57:27]line Счет N : (1)1965425 [11:57:27]line ИНН: 02508201610067 [11:57:27]line Контрольно-Кассовый Чек [11:57:27]line ПРОДАЖА [11:57:27]line ТРК (МРК, ГНК) : 33 [11:57:27]line Товар: 2710124130 [11:57:27]line Аи-92-К-5 [11:57:27]line 10.470 * 66.90 [11:57:27]line = 700.44 [11:57:27]line НДС 12% НСП 1% [11:57:27]line > о реализуемом товаре [11:57:27]line ОКРУГЛЕНИЕ: -0.44 [11:57:27]line ИТОГО: 700.00 [11:57:27]line Внесено: 700.00 [11:57:27]line СДАЧА: 0.00 [11:57:27]line НСП 1% : 6.20 [11:57:27]line НДС 12% : 74.38 [11:57:27]line Наличными: 700.00 [11:57:27]line Безнал.: 0.00 [11:57:27]line Место: АЗС № 133 "Партнер Нефть" [11:57:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:57:27]line СНО: Общий режим [11:57:27]line Чек 158 23.10.2024 11:57 [11:57:27]line Смена: 173 ФФД: 1.0 [11:57:27]line ЗНМ: 0300000020 [11:57:27]line РНМ: 0000000000161154 [11:57:27]line Версия ККМ: v1.0 [11:57:27]line ФМ: 0000000000963323 [11:57:27]line ФД: 75425 [11:57:27]line ФПД: 165062629099600 [11:57:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115733&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75425&fm=165062629099600&tin=02508201610067®Number=0000000000161154&sum=70000 [11:57:28]OFD Sender: Processing packet 75425 [packets to send 15, broken 14] [11:57:28]ProducePacketName [11:57:28]name=ofd_packets/00075425 [11:57:28]OFD Sender: To server: pG, [11:57:28]CommunicateWithHost lk.salyk.kg:30040 [11:57:28]ConnectInit lk.salyk.kg [11:57:28]written 0, free lines is 4095 [11:57:28]Connected sock=10 [11:57:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 4F A5 07 01 47 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 9E 00 00 00 F4 03 04 00 AD E4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A1 26 01 00 35 04 06 00 96 1F A3 5F 88 50 B9 2B D8 B8 65 91 4C 29 [11:57:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0F D0 47 00 E5 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 39 36 33 33 32 33 10 04 04 00 A1 26 01 00 F4 03 04 00 88 8D 18 67 B6 04 01 00 00 10 0F 50 AF D0 C7 E3 AA [11:57:28]CommunicateWithHost err = 0 [11:57:28]CheckOFDResponse [11:57:28]1017 (14) - 77093643461234 [11:57:28]1041 (16) - 0000000000963323 [11:57:28]1040 (4) - 75425 [11:57:28]1012 (4) - 23.10.2024 05:45 [11:57:28]1206 (1) - 0 [11:57:28]OFD Sender: Remove packet 75425 [11:57:28]ProducePacketName [11:57:28]name=ofd_packets/00075425 [11:57:28]NVStorageDeleteData [11:57:28]Write to MH i2c: 01 00 00 15 AD C2 [11:57:28]Write i2c OK [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: 01 [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: 01 07 00 [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: 01 07 00 15 AD 00 00 00 00 00 B6 0C 8B [11:57:28]RasterBufferAndPrint [11:57:28]line [11:57:28]line [11:57:28]line [11:57:28]line [11:57:28]line [11:57:28]written 0, free lines is 3259 [11:57:28]MH_Cut [11:57:28]Write to MH i2c: D1 01 00 1C AD 01 9B [11:57:28]Write i2c OK [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: D1 [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: D1 01 00 [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: D1 01 00 1C AD 00 9A [11:57:28]Write to MH i2c: 01 00 00 1D AD CA [11:57:28]Write i2c OK [11:57:28]MH_I2C_Read... [11:57:29]OFD Sender: No OFD packet to send [11:57:29]*** Cut start [11:57:29]*** Partial cut [11:57:29]*** CUTSNS_PIN = 1 [11:57:29]*** CUTSNS_PIN = 0 [11:57:29]*** Brake cut motor [11:57:30]Read from MH i2c: 01 [11:57:30]MH_I2C_Read... [11:57:30]*** Stop cut motor [11:57:30]*** Cut end [11:57:30]Read from MH i2c: 01 07 00 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: 01 07 00 1D AD 00 00 00 00 00 FF 0F DF [11:57:30]process_action close_receipt done [11:57:30]requested_data is exist [11:57:30]produce_requested_data [11:57:30]requested_item fm.sn is exist - process it [11:57:30]wFMCommunicate request_size=4 [11:57:30]MH_SAM_APDU [11:57:30]CAPDU: 80 11 00 00 [11:57:30]Write to MH i2c: E2 08 00 1E AD 80 11 00 00 00 00 00 00 45 [11:57:30]Write i2c OK [11:57:30]MH_I2C_Read... [11:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:30]Read from MH i2c: E2 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 17 00 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 17 00 1E AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 92 [11:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:57:30]wFMCommunicate OK [11:57:30]requested_item fd.num is exist - process it [11:57:30]SAM_PROTO_GetFieldsCounters [11:57:30]wFMCommunicate request_size=4 [11:57:30]MH_SAM_APDU [11:57:30]CAPDU: 80 13 00 00 [11:57:30]Write to MH i2c: E2 08 00 1F AD 80 13 00 00 00 00 00 00 48 [11:57:30]Write i2c OK [11:57:30]MH_I2C_Read... [11:57:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:30]Read from MH i2c: E2 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 62 00 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 62 00 1F AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A1 26 01 00 0E 04 04 00 AD 00 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 AB [11:57:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A1 26 01 00 0E 04 04 00 AD 00 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 [11:57:30]wFMCommunicate OK [11:57:30]SAM_PROTO_GetFieldsCounters done [11:57:30]requested_item shift.num is exist - process it [11:57:30]requested_item shift.opened is exist - process it [11:57:30]req_shift_opened [11:57:30]FM_GetShiftState [11:57:30]SAM_PROTO_GetShiftState [11:57:30]wFMCommunicate request_size=4 [11:57:30]MH_SAM_APDU [11:57:30]CAPDU: 80 13 01 00 [11:57:30]Write to MH i2c: E2 08 00 20 AD 80 13 01 00 00 00 00 00 4A [11:57:30]Write i2c OK [11:57:30]MH_I2C_Read... [11:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:30]Read from MH i2c: E2 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 0E 00 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 0E 00 20 AD 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AF [11:57:30]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:57:30]wFMCommunicate OK [11:57:30]SAM_PROTO_GetShiftState done [11:57:30]FM_GetShiftState done [11:57:30]req_shift_opened done [11:57:30]requested_item shift.open_date is exist - process it [11:57:30]req_shift_open_date [11:57:30]req_shift_open_date done [11:57:30]produce_requested_data done [11:57:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75425,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:57:30]process_action_free close_receipt [11:57:30]json_value_free [11:57:30]json_value_free done [11:57:30]process_json_proto returns [11:57:30]Send response to host [11:57:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75425,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:57:30]free response buf [11:57:30]execute_script done [11:57:30]execute_script returns [11:57:30]free content buf [11:57:30]Sock 7.Close socket [11:57:30]Sock 7.Thread stoped [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:41]accept exits with 9 [11:59:41]New connection [11:59:41]New thread 3067321700 created [11:59:41]Thread 3067465060 joined [11:59:41]Waiting for new connection... [11:59:41] Sock 9.Parse request [11:59:41]Sock 9.Check first char [11:59:41]Sock 9.First char is OK [11:59:41]request: POST /json_proto HTTP/1.0 [11:59:41]Method: POST [11:59:41]URL: /json_proto [11:59:41]Method is POST - this is cgi request [11:59:41]url: /json_proto [11:59:41]query_string will be loaded in cgi processing [11:59:41]execute_cgi json_proto POST (null) [11:59:41]execute_cgi path=json_proto method=POST [11:59:41]POST find Content-Length [11:59:41]Host: 172.17.44.196:8080 [11:59:41]Content-Length: 754 [11:59:41]Content-Type: application/json [11:59:41] [11:59:41]POST finish read [11:59:41]Found Content-Length = 754 [11:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 9.670, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30127411", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:41]execute_script... [11:59: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)1965427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 9.670, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30127411", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:41]POST & json_proto [11:59:41]process_json_proto [11:59:41]json parsed OK: [11:59:41]protocol is kg_v1.0 [11:59:41]action value=close_receipt [11:59:41]process_action close_receipt [11:59:41]cmd_close_receipt [11:59:41]MH_GetDate [11:59:41]Write to MH i2c: F0 00 00 21 AD BD [11:59:41]Write i2c OK [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: F0 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: F0 09 00 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: F0 09 00 21 AD 00 34 E5 18 67 E7 19 F8 65 BB [11:59:41]GetLastDocTimeStamp 1729684653 [11:59:41]current date 1729684788 [11:59:41]FM_GetShiftState [11:59:41]SAM_PROTO_GetShiftState [11:59:41]wFMCommunicate request_size=4 [11:59:41]MH_SAM_APDU [11:59:41]CAPDU: 80 13 01 00 [11:59:41]Write to MH i2c: E2 08 00 22 AD 80 13 01 00 00 00 00 00 4C [11:59:41]Write i2c OK [11:59:41]MH_I2C_Read... [11:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:41]Read from MH i2c: E2 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: E2 0E 00 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: E2 0E 00 22 AD 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B1 [11:59:41]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:59:41]wFMCommunicate OK [11:59:41]SAM_PROTO_GetShiftState done [11:59:41]FM_GetShiftState done [11:59:41]opened in 1729642905 [11:59:41]opened+sec_in_day 1729729305 [11:59:41]quantity*price = 0 [11:59:41]sum+1 = 1 [11:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 159 23.10.2024 11:59 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30127411 ФМ: 0000000000963323 ФД: 75426 ФПД: 278709997814489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115948&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75426&fm=278709997814489&tin=02508201610067®Number=0000000000161154&sum=0 [11:59:42]StoreToDocumentArchive [11:59:42]shift 173 fd 75426 [11:59:42]save to /storage/0173/doc_00075426 [11:59:42]save last doc name /storage/0173/doc_00075426 to /storage/kkm_last_doc_name [11:59:42]save OK [11:59:42]Clear old archive folders... [11:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:42]tlvbuf is 00E4CB80 [11:59:42]SAM_PROTO_ClearQueue [11:59:42]wFMCommunicate request_size=4 [11:59:42]MH_SAM_APDU [11:59:42]CAPDU: 80 09 00 00 [11:59:42]Write to MH i2c: E2 08 00 2F AD 80 09 00 00 00 00 00 00 4E [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:42]Read from MH i2c: E2 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 2F AD 00 90 00 50 [11:59:42]RAPDU: 90 00 [11:59:42]wFMCommunicate OK [11:59:42]SAM_PROTO_ClearQueue done [11:59:42]KKMCreateOFDPacket [11:59:42]OFDProtocolAddRootSTLVToBuf [11:59:42]FM_MakeSignedData [11:59:42]FM_MakeSignedData [11:59:42]SAM_PROTO_SignData [11:59:42]wFMCommunicate request_size=4 [11:59:42]MH_SAM_APDU [11:59:42]CAPDU: 80 0D 01 02 [11:59:42]Write to MH i2c: E2 08 00 30 AD 80 0D 01 02 00 00 00 00 56 [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:42]Read from MH i2c: E2 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 30 AD 00 90 00 51 [11:59:42]RAPDU: 90 00 [11:59:42]wFMCommunicate OK [11:59:42]wFMCommunicate request_size=255 [11:59:42]MH_SAM_APDU [11:59: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 C6 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 34 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A2 26 01 00 35 04 06 00 FD [11:59:42]Write to MH i2c: E2 02 01 31 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 C6 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 34 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A2 26 01 00 35 04 06 00 FD 00 00 E8 [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:42]Read from MH i2c: E2 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 31 AD 00 90 00 52 [11:59:42]RAPDU: 90 00 [11:59:42]wFMCommunicate OK [11:59:42]wFMCommunicate request_size=10 [11:59:42]MH_SAM_APDU [11:59:42]CAPDU: 80 0D 02 02 05 7C 3A 6A 42 D9 [11:59:42]Write to MH i2c: E2 0D 00 32 AD 80 0D 02 02 05 00 7C 3A 6A 42 D9 00 00 9E [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 32 AD 00 90 00 53 [11:59:43]RAPDU: 90 00 [11:59:43]wFMCommunicate OK [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 0D 03 02 [11:59:43]Write to MH i2c: E2 08 00 33 AD 80 0D 03 02 00 00 00 00 5B [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 0B 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 0B 00 33 AD 00 26 CE 54 E9 D6 C1 AE 9E 90 00 70 [11:59:43]RAPDU: 26 CE 54 E9 D6 C1 AE 9E 90 00 [11:59:43]wFMCommunicate OK [11:59:43]SAM_PROTO_SignData done [11:59:43]FM_MakeSignedData done [11:59:43]CreateOFDProtocolMessage [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 11 00 00 [11:59:43]Write to MH i2c: E2 08 00 34 AD 80 11 00 00 00 00 00 00 5B [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 17 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 17 00 34 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A8 [11:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:59:43]wFMCommunicate OK [11:59:43]CreateOFDProtocolMessage done [11:59:43]OFDSenderStorePacket 75426 [11:59:43]StoreOFDPacket docnum=75426 [11:59:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 36 54 07 01 66 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 C6 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 34 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A2 26 01 00 35 04 06 00 FD 7C 3A 6A 42 D9 26 CE 54 E9 D6 C1 AE 9E [11:59:43]CheckFolder [11:59:43]dirname=/storage/ofd_packets [11:59:43]CheckFolder done [11:59:43]ProducePacketName [11:59:43]name=ofd_packets/00075426 [11:59:43]NVStorageSaveData ofd_packets/00075426 [11:59:43]File name is /storage/ofd_packets/00075426 [11:59:43]Write 301 bytes [11:59:43]NVStorageSaveData done [11:59:43]OFDSenderStorePacket done [11:59:43]KKMCreateOFDPacket done [11:59:43]NVStorageSaveData kkm_last_timestamp [11:59:43]File name is /storage/kkm_last_timestamp [11:59:43]Write 4 bytes [11:59:43]NVStorageSaveData done [11:59:43]ExternCall_PrintAddStr [11:59:43]wPrintStart [11:59:43]Write to MH i2c: 01 00 00 35 AD E2 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 07 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 07 00 35 AD 00 00 00 00 00 FF 0F F7 [11:59:43]RasterBufferAndPrint [11:59:43]line Счет N : (1)1965427 [11:59:43]line ИНН: 02508201610067 [11:59:43]line Контрольно-Кассовый Чек [11:59:43]line ПРОДАЖА [11:59:43]line ТРК (МРК, ГНК) : 63 [11:59:43]line Товар: 2710124130 [11:59:43]line Аи-92-К-5 [11:59:43]line 9.670 * 0.00 [11:59:43]line = 0.00 [11:59:43]line НДС 12% НСП 1% [11:59:43]line > о реализуемом товаре [11:59:43]line ИТОГО: 0.00 [11:59:43]line НСП 1% : 0.00 [11:59:43]line НДС 12% : 0.00 [11:59:43]line Наличными: 0.00 [11:59:43]line Безнал.: 0.00 [11:59:43]line Место: АЗС № 133 "Партнер Нефть" [11:59:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:59:43]line СНО: Общий режим [11:59:43]line Чек 159 23.10.2024 11:59 [11:59:43]line Смена: 173 ФФД: 1.0 [11:59:43]line ЗНМ: 0300000020 [11:59:43]line РНМ: 0000000000161154 [11:59:43]line Версия ККМ: v1.0 [11:59:43]line Талоны: ТК ГПНА Online [11:59:43]line 30127411 [11:59:43]line ФМ: 0000000000963323 [11:59:43]line ФД: 75426 [11:59:43]line ФПД: 278709997814489 [11:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115948&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75426&fm=278709997814489&tin=02508201610067®Number=0000000000161154&sum=0 [11:59:43]OFD Sender: Processing packet 75426 [packets to send 15, broken 14] [11:59:43]ProducePacketName [11:59:43]name=ofd_packets/00075426 [11:59:43]OFD Sender: To server: pG, [11:59:43]CommunicateWithHost lk.salyk.kg:30040 [11:59:43]ConnectInit lk.salyk.kg [11:59:43]written 0, free lines is 4095 [11:59:43]Connected sock=10 [11:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 36 54 07 01 66 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 C6 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 34 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A2 26 01 00 35 04 06 00 FD 7C 3A 6A 42 D9 26 CE 54 E9 D6 C1 AE 9E [11:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 47 A8 47 00 64 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A2 26 01 00 F4 03 04 00 0F 8E 18 67 B6 04 01 00 00 4A 66 65 CB 8A 3E AB 90 [11:59:43]CommunicateWithHost err = 0 [11:59:43]CheckOFDResponse [11:59:43]1017 (14) - 77093643461234 [11:59:43]1041 (16) - 0000000000963323 [11:59:43]1040 (4) - 75426 [11:59:43]1012 (4) - 23.10.2024 05:47 [11:59:43]1206 (1) - 0 [11:59:43]OFD Sender: Remove packet 75426 [11:59:43]ProducePacketName [11:59:43]name=ofd_packets/00075426 [11:59:43]NVStorageDeleteData [11:59:43]Write to MH i2c: 01 00 00 5E AD 0B [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 07 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 07 00 5E AD 00 00 00 00 00 CF 0C ED [11:59:43]RasterBufferAndPrint [11:59:43]line [11:59:43]line [11:59:43]line [11:59:43]line [11:59:43]line [11:59:43]written 0, free lines is 3284 [11:59:43]MH_Cut [11:59:43]Write to MH i2c: D1 01 00 65 AD 01 E4 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: D1 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: D1 01 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: D1 01 00 65 AD 00 E3 [11:59:43]Write to MH i2c: 01 00 00 66 AD 13 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:44]OFD Sender: No OFD packet to send [11:59:44]*** Cut start [11:59:44]*** Partial cut [11:59:44]*** CUTSNS_PIN = 1 [11:59:44]*** CUTSNS_PIN = 0 [11:59:45]*** Brake cut motor [11:59:45]Read from MH i2c: 01 [11:59:45]MH_I2C_Read... [11:59:45]*** Stop cut motor [11:59:45]*** Cut end [11:59:45]Read from MH i2c: 01 07 00 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: 01 07 00 66 AD 00 00 00 00 00 FF 0F 28 [11:59:45]process_action close_receipt done [11:59:45]requested_data is exist [11:59:45]produce_requested_data [11:59:45]requested_item fm.sn is exist - process it [11:59:45]wFMCommunicate request_size=4 [11:59:45]MH_SAM_APDU [11:59:45]CAPDU: 80 11 00 00 [11:59:45]Write to MH i2c: E2 08 00 67 AD 80 11 00 00 00 00 00 00 8E [11:59:45]Write i2c OK [11:59:45]MH_I2C_Read... [11:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:45]Read from MH i2c: E2 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 17 00 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 17 00 67 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DB [11:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:59:45]wFMCommunicate OK [11:59:45]requested_item fd.num is exist - process it [11:59:45]SAM_PROTO_GetFieldsCounters [11:59:45]wFMCommunicate request_size=4 [11:59:45]MH_SAM_APDU [11:59:45]CAPDU: 80 13 00 00 [11:59:45]Write to MH i2c: E2 08 00 68 AD 80 13 00 00 00 00 00 00 91 [11:59:45]Write i2c OK [11:59:45]MH_I2C_Read... [11:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:45]Read from MH i2c: E2 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 62 00 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 62 00 68 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A2 26 01 00 0E 04 04 00 AD 00 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 F8 [11:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A2 26 01 00 0E 04 04 00 AD 00 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 [11:59:45]wFMCommunicate OK [11:59:45]SAM_PROTO_GetFieldsCounters done [11:59:45]requested_item shift.num is exist - process it [11:59:45]requested_item shift.opened is exist - process it [11:59:45]req_shift_opened [11:59:45]FM_GetShiftState [11:59:45]SAM_PROTO_GetShiftState [11:59:45]wFMCommunicate request_size=4 [11:59:45]MH_SAM_APDU [11:59:45]CAPDU: 80 13 01 00 [11:59:45]Write to MH i2c: E2 08 00 69 AD 80 13 01 00 00 00 00 00 93 [11:59:45]Write i2c OK [11:59:45]MH_I2C_Read... [11:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:45]Read from MH i2c: E2 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 0E 00 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 0E 00 69 AD 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F8 [11:59:45]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:59:45]wFMCommunicate OK [11:59:45]SAM_PROTO_GetShiftState done [11:59:45]FM_GetShiftState done [11:59:45]req_shift_opened done [11:59:45]requested_item shift.open_date is exist - process it [11:59:45]req_shift_open_date [11:59:45]req_shift_open_date done [11:59:45]produce_requested_data done [11:59:45]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75426,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:59:45]process_action_free close_receipt [11:59:45]json_value_free [11:59:45]json_value_free done [11:59:45]process_json_proto returns [11:59:45]Send response to host [11:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75426,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:59:45]free response buf [11:59:45]execute_script done [11:59:45]execute_script returns [11:59:45]free content buf [11:59:45]Sock 9.Close socket [11:59:45]Sock 9.Thread stoped [11:59:46]accept exits with 7 [11:59:46]New connection [11:59:46]New thread 3067465060 created [11:59:46]Thread 3067321700 joined [11:59:46]Waiting for new connection... [11:59:46] Sock 7.Parse request [11:59:46]Sock 7.Check first char [11:59:46]Sock 7.First char is OK [11:59:46]request: POST /json_proto HTTP/1.0 [11:59:46]Method: POST [11:59:46]URL: /json_proto [11:59:46]Method is POST - this is cgi request [11:59:46]url: /json_proto [11:59:46]query_string will be loaded in cgi processing [11:59:46]execute_cgi json_proto POST (null) [11:59:46]execute_cgi path=json_proto method=POST [11:59:46]POST find Content-Length [11:59:46]Host: 172.17.44.196:8080 [11:59:46]Content-Length: 664 [11:59:46]Content-Type: application/json [11:59:46] [11:59:46]POST finish read [11:59:46]Found Content-Length = 664 [11:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:46]execute_script... [11:59: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)1965428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:46]POST & json_proto [11:59:46]process_json_proto [11:59:46]json parsed OK: [11:59:46]protocol is kg_v1.0 [11:59:46]action value=close_receipt [11:59:46]process_action close_receipt [11:59:46]cmd_close_receipt [11:59:46]MH_GetDate [11:59:46]Write to MH i2c: F0 00 00 6A AD 06 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: F0 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: F0 09 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: F0 09 00 6A AD 00 39 E5 18 67 E7 19 F8 65 09 [11:59:46]GetLastDocTimeStamp 1729684788 [11:59:46]current date 1729684793 [11:59:46]FM_GetShiftState [11:59:46]SAM_PROTO_GetShiftState [11:59:46]wFMCommunicate request_size=4 [11:59:46]MH_SAM_APDU [11:59:46]CAPDU: 80 13 01 00 [11:59:46]Write to MH i2c: E2 08 00 6B AD 80 13 01 00 00 00 00 00 95 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 0E 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 0E 00 6B AD 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FA [11:59:46]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:59:46]wFMCommunicate OK [11:59:46]SAM_PROTO_GetShiftState done [11:59:46]FM_GetShiftState done [11:59:46]opened in 1729642905 [11:59:46]opened+sec_in_day 1729729305 [11:59:46]quantity*price = 100000 [11:59:46]sum+1 = 100002 [11:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 160 23.10.2024 11:59 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75427 ФПД: 130250647792756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115953&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75427&fm=130250647792756&tin=02508201610067®Number=0000000000161154&sum=100000 [11:59:47]StoreToDocumentArchive [11:59:47]shift 173 fd 75427 [11:59:47]save to /storage/0173/doc_00075427 [11:59:47]save last doc name /storage/0173/doc_00075427 to /storage/kkm_last_doc_name [11:59:47]save OK [11:59:47]Clear old archive folders... [11:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:59:47]tlvbuf is 00C92FE0 [11:59:47]SAM_PROTO_ClearQueue [11:59:47]wFMCommunicate request_size=4 [11:59:47]MH_SAM_APDU [11:59:47]CAPDU: 80 09 00 00 [11:59:47]Write to MH i2c: E2 08 00 78 AD 80 09 00 00 00 00 00 00 97 [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:47]Read from MH i2c: E2 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 78 AD 00 90 00 99 [11:59:47]RAPDU: 90 00 [11:59:47]wFMCommunicate OK [11:59:47]SAM_PROTO_ClearQueue done [11:59:47]KKMCreateOFDPacket [11:59:47]OFDProtocolAddRootSTLVToBuf [11:59:47]FM_MakeSignedData [11:59:47]FM_MakeSignedData [11:59:47]SAM_PROTO_SignData [11:59:47]wFMCommunicate request_size=4 [11:59:47]MH_SAM_APDU [11:59:47]CAPDU: 80 0D 01 02 [11:59:47]Write to MH i2c: E2 08 00 79 AD 80 0D 01 02 00 00 00 00 9F [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:47]Read from MH i2c: E2 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 79 AD 00 90 00 9A [11:59:47]RAPDU: 90 00 [11:59:47]wFMCommunicate OK [11:59:47]wFMCommunicate request_size=253 [11:59:47]MH_SAM_APDU [11:59:47]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 39 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A3 26 01 00 35 04 06 00 76 76 57 97 EC 74 [11:59:47]Write to MH i2c: E2 00 01 7A AD 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 39 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A3 26 01 00 35 04 06 00 76 76 57 97 EC 74 00 00 F2 [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:48]Read from MH i2c: E2 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 03 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 03 00 7A AD 00 90 00 9B [11:59:48]RAPDU: 90 00 [11:59:48]wFMCommunicate OK [11:59:48]wFMCommunicate request_size=4 [11:59:48]MH_SAM_APDU [11:59:48]CAPDU: 80 0D 03 02 [11:59:48]Write to MH i2c: E2 08 00 7B AD 80 0D 03 02 00 00 00 00 A3 [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:48]Read from MH i2c: E2 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 0B 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 0B 00 7B AD 00 BA FF 2D 5D C1 11 FD E5 90 00 9B [11:59:48]RAPDU: BA FF 2D 5D C1 11 FD E5 90 00 [11:59:48]wFMCommunicate OK [11:59:48]SAM_PROTO_SignData done [11:59:48]FM_MakeSignedData done [11:59:48]CreateOFDProtocolMessage [11:59:48]wFMCommunicate request_size=4 [11:59:48]MH_SAM_APDU [11:59:48]CAPDU: 80 11 00 00 [11:59:48]Write to MH i2c: E2 08 00 7C AD 80 11 00 00 00 00 00 00 A3 [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:48]Read from MH i2c: E2 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 17 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 17 00 7C AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F0 [11:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:59:48]wFMCommunicate OK [11:59:48]CreateOFDProtocolMessage done [11:59:48]OFDSenderStorePacket 75427 [11:59:48]StoreOFDPacket docnum=75427 [11:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 EC B5 00 01 01 24 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 39 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A3 26 01 00 35 04 06 00 76 76 57 97 EC 74 BA FF 2D 5D C1 11 FD E5 [11:59:48]CheckFolder [11:59:48]dirname=/storage/ofd_packets [11:59:48]CheckFolder done [11:59:48]ProducePacketName [11:59:48]name=ofd_packets/00075427 [11:59:48]NVStorageSaveData ofd_packets/00075427 [11:59:48]File name is /storage/ofd_packets/00075427 [11:59:48]Write 294 bytes [11:59:48]NVStorageSaveData done [11:59:48]OFDSenderStorePacket done [11:59:48]KKMCreateOFDPacket done [11:59:48]NVStorageSaveData kkm_last_timestamp [11:59:48]File name is /storage/kkm_last_timestamp [11:59:48]Write 4 bytes [11:59:48]NVStorageSaveData done [11:59:48]ExternCall_PrintAddStr [11:59:48]wPrintStart [11:59:48]Write to MH i2c: 01 00 00 7D AD 2A [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: 01 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: 01 07 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: 01 07 00 7D AD 00 00 00 00 00 FF 0F 3F [11:59:48]RasterBufferAndPrint [11:59:48]line Счет N : (1)1965428 [11:59:48]line ИНН: 02508201610067 [11:59:48]line Контрольно-Кассовый Чек [11:59:48]line ПРОДАЖА [11:59:48]line ТРК (МРК, ГНК) : 42 [11:59:48]line Товар: 2710124130 [11:59:48]line SU-92 [11:59:48]line 14.620 * 68.40 [11:59:48]line = 1000.01 [11:59:48]line НДС 12% НСП 1% [11:59:48]line > о реализуемом товаре [11:59:48]line ОКРУГЛЕНИЕ: -0.01 [11:59:48]line ИТОГО: 1000.00 [11:59:48]line Внесено: 1000.00 [11:59:48]line СДАЧА: 0.00 [11:59:48]line НСП 1% : 8.85 [11:59:48]line НДС 12% : 106.20 [11:59:48]line Наличными: 1000.00 [11:59:48]line Безнал.: 0.00 [11:59:48]line Место: АЗС № 133 "Партнер Нефть" [11:59:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [11:59:48]line СНО: Общий режим [11:59:48]line Чек 160 23.10.2024 11:59 [11:59:48]line Смена: 173 ФФД: 1.0 [11:59:48]line ЗНМ: 0300000020 [11:59:48]line РНМ: 0000000000161154 [11:59:48]line Версия ККМ: v1.0 [11:59:48]line ФМ: 0000000000963323 [11:59:48]line ФД: 75427 [11:59:48]line ФПД: 130250647792756 [11:59:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115953&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75427&fm=130250647792756&tin=02508201610067®Number=0000000000161154&sum=100000 [11:59:48]OFD Sender: Processing packet 75427 [packets to send 15, broken 14] [11:59:48]ProducePacketName [11:59:48]name=ofd_packets/00075427 [11:59:48]OFD Sender: To server: pG, [11:59:48]CommunicateWithHost lk.salyk.kg:30040 [11:59:48]ConnectInit lk.salyk.kg [11:59:48]written 0, free lines is 4095 [11:59:48]Connected sock=10 [11:59:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 EC B5 00 01 01 24 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 39 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A3 26 01 00 35 04 06 00 76 76 57 97 EC 74 BA FF 2D 5D C1 11 FD E5 [11:59:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 48 40 47 00 FD 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A3 26 01 00 F4 03 04 00 14 8E 18 67 B6 04 01 00 00 1E EE 40 E6 7A 83 69 6A [11:59:48]CommunicateWithHost err = 0 [11:59:48]CheckOFDResponse [11:59:48]1017 (14) - 77093643461234 [11:59:48]1041 (16) - 0000000000963323 [11:59:48]1040 (4) - 75427 [11:59:48]1012 (4) - 23.10.2024 05:48 [11:59:48]1206 (1) - 0 [11:59:48]OFD Sender: Remove packet 75427 [11:59:48]ProducePacketName [11:59:48]name=ofd_packets/00075427 [11:59:48]NVStorageDeleteData [11:59:48]Write to MH i2c: 01 00 00 A7 AD 54 [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: 01 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: 01 07 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: 01 07 00 A7 AD 00 00 00 00 00 B6 0C 1D [11:59:48]RasterBufferAndPrint [11:59:48]line [11:59:48]line [11:59:48]line [11:59:48]line [11:59:48]line [11:59:48]written 0, free lines is 3263 [11:59:48]MH_Cut [11:59:48]Write to MH i2c: D1 01 00 AE AD 01 2D [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: D1 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: D1 01 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: D1 01 00 AE AD 00 2C [11:59:48]Write to MH i2c: 01 00 00 AF AD 5C [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:49]OFD Sender: No OFD packet to send [11:59:49]*** Cut start [11:59:49]*** Partial cut [11:59:49]*** CUTSNS_PIN = 1 [11:59:49]*** CUTSNS_PIN = 0 [11:59:50]*** Brake cut motor [11:59:50]Read from MH i2c: 01 [11:59:50]MH_I2C_Read... [11:59:50]*** Stop cut motor [11:59:50]*** Cut end [11:59:50]Read from MH i2c: 01 07 00 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: 01 07 00 AF AD 00 00 00 00 00 FF 0F 71 [11:59:50]process_action close_receipt done [11:59:50]requested_data is exist [11:59:50]produce_requested_data [11:59:50]requested_item fm.sn is exist - process it [11:59:50]wFMCommunicate request_size=4 [11:59:50]MH_SAM_APDU [11:59:50]CAPDU: 80 11 00 00 [11:59:50]Write to MH i2c: E2 08 00 B0 AD 80 11 00 00 00 00 00 00 D7 [11:59:50]Write i2c OK [11:59:50]MH_I2C_Read... [11:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:50]Read from MH i2c: E2 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 17 00 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 17 00 B0 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 24 [11:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [11:59:50]wFMCommunicate OK [11:59:50]requested_item fd.num is exist - process it [11:59:50]SAM_PROTO_GetFieldsCounters [11:59:50]wFMCommunicate request_size=4 [11:59:50]MH_SAM_APDU [11:59:50]CAPDU: 80 13 00 00 [11:59:50]Write to MH i2c: E2 08 00 B1 AD 80 13 00 00 00 00 00 00 DA [11:59:50]Write i2c OK [11:59:50]MH_I2C_Read... [11:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:50]Read from MH i2c: E2 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 62 00 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 62 00 B1 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A3 26 01 00 0E 04 04 00 AD 00 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 45 [11:59:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A3 26 01 00 0E 04 04 00 AD 00 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 [11:59:50]wFMCommunicate OK [11:59:50]SAM_PROTO_GetFieldsCounters done [11:59:50]requested_item shift.num is exist - process it [11:59:50]requested_item shift.opened is exist - process it [11:59:50]req_shift_opened [11:59:50]FM_GetShiftState [11:59:50]SAM_PROTO_GetShiftState [11:59:50]wFMCommunicate request_size=4 [11:59:50]MH_SAM_APDU [11:59:50]CAPDU: 80 13 01 00 [11:59:50]Write to MH i2c: E2 08 00 B2 AD 80 13 01 00 00 00 00 00 DC [11:59:50]Write i2c OK [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 [11:59:50]MH_I2C_Read... [11:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:50]Read from MH i2c: E2 0E 00 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 0E 00 B2 AD 00 09 00 01 99 41 18 67 00 00 00 00 90 00 41 [11:59:50]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [11:59:50]wFMCommunicate OK [11:59:50]SAM_PROTO_GetShiftState done [11:59:50]FM_GetShiftState done [11:59:50]req_shift_opened done [11:59:50]requested_item shift.open_date is exist - process it [11:59:50]req_shift_open_date [11:59:50]req_shift_open_date done [11:59:50]produce_requested_data done [11:59:50]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75427,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [11:59:50]process_action_free close_receipt [11:59:50]json_value_free [11:59:50]json_value_free done [11:59:50]process_json_proto returns [11:59:50]Send response to host [11:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75427,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [11:59:50]free response buf [11:59:50]execute_script done [11:59:50]execute_script returns [11:59:50]free content buf [11:59:50]Sock 7.Close socket [11:59:50]Sock 7.Thread stoped [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:43]accept exits with 9 [12:00:43]New connection [12:00:43]New thread 3067321700 created [12:00:43]Thread 3067465060 joined [12:00:43]Waiting for new connection... [12:00:43] Sock 9.Parse request [12:00:43]Sock 9.Check first char [12:00:43]Sock 9.First char is OK [12:00:43]request: POST /json_proto HTTP/1.0 [12:00:43]Method: POST [12:00:43]URL: /json_proto [12:00:43]Method is POST - this is cgi request [12:00:43]url: /json_proto [12:00:43]query_string will be loaded in cgi processing [12:00:43]execute_cgi json_proto POST (null) [12:00:43]execute_cgi path=json_proto method=POST [12:00:43]POST find Content-Length [12:00:43]Host: 172.17.44.196:8080 [12:00:43]Content-Length: 770 [12:00:43]Content-Type: application/json [12:00:43] [12:00:43]POST finish read [12:00:43]Found Content-Length = 770 [12:00:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:43]execute_script... [12:00: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)1965429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:43]POST & json_proto [12:00:43]process_json_proto [12:00:43]json parsed OK: [12:00:43]protocol is kg_v1.0 [12:00:43]action value=close_receipt [12:00:43]process_action close_receipt [12:00:43]cmd_close_receipt [12:00:43]MH_GetDate [12:00:43]Write to MH i2c: F0 00 00 B3 AD 4F [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: F0 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: F0 09 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: F0 09 00 B3 AD 00 73 E5 18 67 E7 19 F8 65 8C [12:00:43]GetLastDocTimeStamp 1729684793 [12:00:43]current date 1729684851 [12:00:43]FM_GetShiftState [12:00:43]SAM_PROTO_GetShiftState [12:00:43]wFMCommunicate request_size=4 [12:00:43]MH_SAM_APDU [12:00:43]CAPDU: 80 13 01 00 [12:00:43]Write to MH i2c: E2 08 00 B4 AD 80 13 01 00 00 00 00 00 DE [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:43]Read from MH i2c: E2 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 0E 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 0E 00 B4 AD 00 09 00 01 99 41 18 67 00 00 00 00 90 00 43 [12:00:43]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:00:43]wFMCommunicate OK [12:00:43]SAM_PROTO_GetShiftState done [12:00:43]FM_GetShiftState done [12:00:43]opened in 1729642905 [12:00:43]opened+sec_in_day 1729729305 [12:00:43]quantity*price = 100015 [12:00:43]sum+1 = 100017 [12:00:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 161 23.10.2024 12:00 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75428 ФПД: 148994494098630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120051&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75428&fm=148994494098630&tin=02508201610067®Number=0000000000161154&sum=100016 [12:00:45]StoreToDocumentArchive [12:00:45]shift 173 fd 75428 [12:00:45]save to /storage/0173/doc_00075428 [12:00:45]save last doc name /storage/0173/doc_00075428 to /storage/kkm_last_doc_name [12:00:45]save OK [12:00:45]Clear old archive folders... [12:00:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:45]tlvbuf is 01091740 [12:00:45]SAM_PROTO_ClearQueue [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 09 00 00 [12:00:45]Write to MH i2c: E2 08 00 C1 AD 80 09 00 00 00 00 00 00 E0 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 C1 AD 00 90 00 E2 [12:00:45]RAPDU: 90 00 [12:00:45]wFMCommunicate OK [12:00:45]SAM_PROTO_ClearQueue done [12:00:45]KKMCreateOFDPacket [12:00:45]OFDProtocolAddRootSTLVToBuf [12:00:45]FM_MakeSignedData [12:00:45]FM_MakeSignedData [12:00:45]SAM_PROTO_SignData [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 0D 01 02 [12:00:45]Write to MH i2c: E2 08 00 C2 AD 80 0D 01 02 00 00 00 00 E8 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 C2 AD 00 90 00 E3 [12:00:45]RAPDU: 90 00 [12:00:45]wFMCommunicate OK [12:00:45]wFMCommunicate request_size=255 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 73 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A4 26 01 00 35 04 06 00 87 [12:00:45]Write to MH i2c: E2 02 01 C3 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 73 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A4 26 01 00 35 04 06 00 87 00 00 FB [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 C3 AD 00 90 00 E4 [12:00:45]RAPDU: 90 00 [12:00:45]wFMCommunicate OK [12:00:45]wFMCommunicate request_size=10 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 0D 02 02 05 82 7B E4 EC C6 [12:00:45]Write to MH i2c: E2 0D 00 C4 AD 80 0D 02 02 05 00 82 7B E4 EC C6 00 00 88 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 C4 AD 00 90 00 E5 [12:00:45]RAPDU: 90 00 [12:00:45]wFMCommunicate OK [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 0D 03 02 [12:00:45]Write to MH i2c: E2 08 00 C5 AD 80 0D 03 02 00 00 00 00 ED [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 0B 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 0B 00 C5 AD 00 D1 71 21 B1 A8 A9 94 36 90 00 1D [12:00:45]RAPDU: D1 71 21 B1 A8 A9 94 36 90 00 [12:00:45]wFMCommunicate OK [12:00:45]SAM_PROTO_SignData done [12:00:45]FM_MakeSignedData done [12:00:45]CreateOFDProtocolMessage [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 11 00 00 [12:00:45]Write to MH i2c: E2 08 00 C6 AD 80 11 00 00 00 00 00 00 ED [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 17 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 17 00 C6 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3A [12:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:00:45]wFMCommunicate OK [12:00:45]CreateOFDProtocolMessage done [12:00:45]OFDSenderStorePacket 75428 [12:00:45]StoreOFDPacket docnum=75428 [12:00:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 45 96 07 01 2D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 73 E5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A4 26 01 00 35 04 06 00 87 82 7B E4 EC C6 D1 71 21 B1 A8 A9 94 36 [12:00:45]CheckFolder [12:00:45]dirname=/storage/ofd_packets [12:00:45]CheckFolder done [12:00:45]ProducePacketName [12:00:45]name=ofd_packets/00075428 [12:00:45]NVStorageSaveData ofd_packets/00075428 [12:00:45]File name is /storage/ofd_packets/00075428 [12:00:45]Write 301 bytes [12:00:45]NVStorageSaveData done [12:00:45]OFDSenderStorePacket done [12:00:45]KKMCreateOFDPacket done [12:00:45]NVStorageSaveData kkm_last_timestamp [12:00:45]File name is /storage/kkm_last_timestamp [12:00:45]Write 4 bytes [12:00:45]NVStorageSaveData done [12:00:45]ExternCall_PrintAddStr [12:00:45]wPrintStart [12:00:45]Write to MH i2c: 01 00 00 C7 AD 74 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 C7 AD 00 00 00 00 00 FF 0F 89 [12:00:45]RasterBufferAndPrint [12:00:45]line Счет N : (1)1965429 [12:00:45]line ИНН: 02508201610067 [12:00:45]line Контрольно-Кассовый Чек [12:00:45]line ПРОДАЖА [12:00:45]line ТРК (МРК, ГНК) : 33 [12:00:45]line Товар: 2710124130 [12:00:45]line Аи-92-К-5 [12:00:45]line 14.950 * 66.90 [12:00:45]line = 1000.16 [12:00:45]line НДС 12% НСП 1% [12:00:45]line > о реализуемом товаре [12:00:45]line ИТОГО: 1000.16 [12:00:45]line НСП 1% : 8.85 [12:00:45]line НДС 12% : 106.21 [12:00:45]line Наличными: 0.00 [12:00:45]line Безнал.: 1000.16 [12:00:45]line Место: АЗС № 133 "Партнер Нефть" [12:00:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:00:45]line СНО: Общий режим [12:00:45]line Чек 161 23.10.2024 12:00 [12:00:45]line Смена: 173 ФФД: 1.0 [12:00:45]line ЗНМ: 0300000020 [12:00:45]line РНМ: 0000000000161154 [12:00:45]line Версия ККМ: v1.0 [12:00:45]line Платежная система: Mbank [12:00:45]line ФМ: 0000000000963323 [12:00:45]line ФД: 75428 [12:00:45]line ФПД: 148994494098630 [12:00:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120051&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75428&fm=148994494098630&tin=02508201610067®Number=0000000000161154&sum=100016 [12:00:45]OFD Sender: Processing packet 75428 [packets to send 15, broken 14] [12:00:45]ProducePacketName [12:00:45]name=ofd_packets/00075428 [12:00:45]OFD Sender: To server: pG, [12:00:45]CommunicateWithHost lk.salyk.kg:30040 [12:00:45]ConnectInit lk.salyk.kg [12:00:45]written 0, free lines is 4095 [12:00:46]Write to MH i2c: 01 00 00 EF AD 9C [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 07 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 07 00 EF AD 00 00 00 00 00 DD 0C 8C [12:00:46]RasterBufferAndPrint [12:00:46]line [12:00:46]line [12:00:46]line [12:00:46]line [12:00:46]line [12:00:46]written 0, free lines is 3297 [12:00:46]MH_Cut [12:00:46]Write to MH i2c: D1 01 00 F6 AD 01 75 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: D1 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: D1 01 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: D1 01 00 F6 AD 00 74 [12:00:46]Write to MH i2c: 01 00 00 F7 AD A4 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:47]*** Cut start [12:00:47]*** Partial cut [12:00:47]*** CUTSNS_PIN = 1 [12:00:47]*** CUTSNS_PIN = 0 [12:00:47]*** Brake cut motor [12:00:47]Read from MH i2c: 01 [12:00:47]MH_I2C_Read... [12:00:47]*** Stop cut motor [12:00:47]*** Cut end [12:00:47]Read from MH i2c: 01 07 00 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: 01 07 00 F7 AD 00 00 00 00 00 FF 0F B9 [12:00:47]process_action close_receipt done [12:00:47]requested_data is exist [12:00:47]produce_requested_data [12:00:47]requested_item fm.sn is exist - process it [12:00:47]wFMCommunicate request_size=4 [12:00:47]MH_SAM_APDU [12:00:47]CAPDU: 80 11 00 00 [12:00:47]Write to MH i2c: E2 08 00 F8 AD 80 11 00 00 00 00 00 00 1F [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:47]Read from MH i2c: E2 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: E2 17 00 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: E2 17 00 F8 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6C [12:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:00:47]wFMCommunicate OK [12:00:47]requested_item fd.num is exist - process it [12:00:47]SAM_PROTO_GetFieldsCounters [12:00:47]wFMCommunicate request_size=4 [12:00:47]MH_SAM_APDU [12:00:47]CAPDU: 80 13 00 00 [12:00:47]Write to MH i2c: E2 08 00 F9 AD 80 13 00 00 00 00 00 00 22 [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 62 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 62 00 F9 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 26 01 00 0E 04 04 00 AD 00 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 91 [12:00:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 26 01 00 0E 04 04 00 AD 00 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 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_GetFieldsCounters done [12:00:48]requested_item shift.num is exist - process it [12:00:48]requested_item shift.opened is exist - process it [12:00:48]req_shift_opened [12:00:48]FM_GetShiftState [12:00:48]SAM_PROTO_GetShiftState [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 13 01 00 [12:00:48]Write to MH i2c: E2 08 00 FA AD 80 13 01 00 00 00 00 00 24 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 FA AD 00 09 00 01 99 41 18 67 00 00 00 00 90 00 89 [12:00:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_GetShiftState done [12:00:48]FM_GetShiftState done [12:00:48]req_shift_opened done [12:00:48]requested_item shift.open_date is exist - process it [12:00:48]req_shift_open_date [12:00:48]req_shift_open_date done [12:00:48]produce_requested_data done [12:00:48]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75428,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:00:48]process_action_free close_receipt [12:00:48]json_value_free [12:00:48]json_value_free done [12:00:48]process_json_proto returns [12:00:48]Send response to host [12:00:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75428,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:00:48]free response buf [12:00:48]execute_script done [12:00:48]execute_script returns [12:00:48]free content buf [12:00:48]Sock 9.Close socket [12:00:48]Sock 9.Thread stoped [00:00:08] *** EcrCore started. Build 196 *** [00:00:08]/dev/ttyS4 opened [00:00:08]MH_InterfaceInit /dev/i2c-1 [00:00:08]Malloc ok [00:00:08]MH_GetMetrics [00:00:08]Write to MH i2c: 00 00 00 01 00 00 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 29 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 BB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 60 [00:00:08]Are we in boot? [00:00:08]We are in boot - try to switch [00:00:08]Write to MH i2c: A0 00 00 02 00 A1 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:08]*** [00:00:08]Read from MH i2c: A0 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: A0 01 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:08]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:08]*** Waiting for read because exit forced [00:00:08]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725BB (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 18927224+1710758375=1729685599 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:09]*** Is cutter blocked? [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 03 00 02 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 BB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 61 [00:00:09]Are we in boot? [00:00:09]We are not in boot now [00:00:09]Write to MH i2c: 01 00 00 04 00 04 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:09]Model is 3 [00:00:09]MH firmware is 30620 [00:00:09]MH boot firmware is 3 [00:00:09]MH_SetPrinterDots 448 [00:00:09]HeadWidthInBytes 56 [00:00:09]maxmasksize 7 [00:00:09]Write to MH i2c: D6 06 00 05 00 78 00 64 00 FF FF BA [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:09]Write to MH i2c: D5 00 00 06 00 DA [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 60 E8 18 67 E7 19 F8 65 23 [12:13:20]Current date/time: 23.10.2024 12:13 [12:13:20]FM_Init [12:13:20]wFMConnect [12:13:20]MH_SAM_On [12:13:20]Write to MH i2c: E0 00 00 08 00 E7 [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]*** iso7816_init finished! [12:13:20]*** atr: [12:13:20]*** 0F 3B D5 18 FF 81 91 FE [12:13:20]*** 1F C3 80 73 C8 21 10 0A [12:13:20]*** 00 00 00 00 00 00 00 00 [12:13:20]*** 00 00 00 00 00 00 00 00 [12:13:20]*** 00 00 00 00 00 00 00 00 [12:13:20]*** 00 00 00 00 00 00 00 00 [12:13:20]*** 00 00 00 00 00 00 00 00 [12:13:20]*** 00 00 00 00 00 00 00 00 [12:13:20]Read from MH i2c: E0 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E0 10 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:13:20]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:13:20]wFMCommunicate request_size=10 [12:13:20]MH_SAM_APDU [12:13:20]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:13:20]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:13:20]Read from MH i2c: E2 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 03 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:13:20]RAPDU: 90 00 [12:13:20]wFMCommunicate OK [12:13:20]wFMCommunicate request_size=4 [12:13:20]MH_SAM_APDU [12:13:20]CAPDU: 80 11 00 00 [12:13:20]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:20]Read from MH i2c: E2 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 17 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D1 [12:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:13:20]wFMCommunicate OK [12:13:20]Detected FM SN is 0000000000963323 [12:13:20]Stored FM SN is 0000000000963323 [12:13:20]wFMCommunicate request_size=9 [12:13:20]MH_SAM_APDU [12:13:20]CAPDU: 80 16 00 00 04 FB CB 00 00 [12:13:20]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FB CB 00 00 00 00 58 [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:13:20]Read from MH i2c: E2 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 03 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:13:20]RAPDU: 90 00 [12:13:20]wFMCommunicate OK [12:13:20]FM PIN OK [12:13:20]wFMCommunicate request_size=8 [12:13:20]MH_SAM_APDU [12:13:20]CAPDU: 80 14 04 00 03 02 00 01 [12:13:20]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:13:20]Read from MH i2c: E2 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 03 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:13:20]RAPDU: 90 00 [12:13:20]wFMCommunicate OK [12:13:20]wFMCommunicate request_size=13 [12:13:20]MH_SAM_APDU [12:13:20]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:13:20]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:13:20]Read from MH i2c: E2 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 03 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:13:20]RAPDU: 90 00 [12:13:20]wFMCommunicate OK [12:13:20]wFMCommunicate request_size=4 [12:13:20]MH_SAM_APDU [12:13:20]CAPDU: 80 11 00 00 [12:13:20]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:20]Read from MH i2c: E2 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 17 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D5 [12:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:13:20]wFMCommunicate OK [12:13:20]DocumentArchiveInit [12:13:20]Start Httpd... [12:13:20]Httpd thread 3066895716 created [12:13:20]Write to MH i2c: 01 00 00 0F 00 0F [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: 01 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: 01 07 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:13:20]MH Int Process started [12:13:20]Allocated Socket 7 [12:13:20]Bind OK [12:13:20]Listen OK [12:13:20]httpd running on port 8080 [12:13:20]Waiting for new connection... [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:26]accept exits with 8 [12:13:26]New connection [12:13:26]New thread 3066608996 created [12:13:26]Waiting for new connection... [12:13:26] Sock 8.Parse request [12:13:26]Sock 8.Check first char [12:13:26]Sock 8.First char is OK [12:13:26]request: POST /json_proto HTTP/1.0 [12:13:26]Method: POST [12:13:26]URL: /json_proto [12:13:26]Method is POST - this is cgi request [12:13:26]url: /json_proto [12:13:26]query_string will be loaded in cgi processing [12:13:26]execute_cgi json_proto POST (null) [12:13:26]execute_cgi path=json_proto method=POST [12:13:26]POST find Content-Length [12:13:26]Host: 172.17.44.196:8080 [12:13:26]Content-Length: 215 [12:13:26]Content-Type: application/json [12:13:26] [12:13:26]POST finish read [12:13:26]Found Content-Length = 215 [12:13:26]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" ] } } [12:13:26]execute_script... [12:13:26]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" ] } } [12:13:26]POST & json_proto [12:13:26]process_json_proto [12:13:26]json parsed OK: [12:13:26]protocol is kg_v1.0 [12:13:26]action value=get_value [12:13:26]process_action get_value [12:13:26]cmd_get_value [12:13:26]process_action get_value done [12:13:26]requested_data is exist [12:13:26]produce_requested_data [12:13:26]requested_item kkm.sn is exist - process it [12:13:26]requested_item kkm.ver is exist - process it [12:13:26]requested_item fm.sn is exist - process it [12:13:26]wFMCommunicate request_size=4 [12:13:26]MH_SAM_APDU [12:13:26]CAPDU: 80 11 00 00 [12:13:26]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:26]Read from MH i2c: E2 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 17 00 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D7 [12:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:13:26]wFMCommunicate OK [12:13:26]requested_item fd.num is exist - process it [12:13:26]SAM_PROTO_GetFieldsCounters [12:13:26]wFMCommunicate request_size=4 [12:13:26]MH_SAM_APDU [12:13:26]CAPDU: 80 13 00 00 [12:13:26]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:26]Read from MH i2c: E2 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 62 00 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 26 01 00 0E 04 04 00 AD 00 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 FC [12:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 26 01 00 0E 04 04 00 AD 00 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 [12:13:26]wFMCommunicate OK [12:13:26]SAM_PROTO_GetFieldsCounters done [12:13:26]requested_item shift.num is exist - process it [12:13:26]requested_item shift.opened is exist - process it [12:13:26]req_shift_opened [12:13:26]FM_GetShiftState [12:13:26]SAM_PROTO_GetShiftState [12:13:26]wFMCommunicate request_size=4 [12:13:26]MH_SAM_APDU [12:13:26]CAPDU: 80 13 01 00 [12:13:26]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:26]Read from MH i2c: E2 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 0E 00 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F4 [12:13:26]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:13:26]wFMCommunicate OK [12:13:26]SAM_PROTO_GetShiftState done [12:13:26]FM_GetShiftState done [12:13:26]req_shift_opened done [12:13:26]requested_item shift.open_date is exist - process it [12:13:26]req_shift_open_date [12:13:26]req_shift_open_date done [12:13:26]produce_requested_data done [12:13:26]produce_requested_data return {"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":75428,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:13:26]process_action_free get_value [12:13:26]json_value_free [12:13:26]json_value_free done [12:13:26]process_json_proto returns [12:13:26]Send response to host [12:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":75428,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:13:26]free response buf [12:13:26]execute_script done [12:13:26]execute_script returns [12:13:26]free content buf [12:13:26]Sock 8.Close socket [12:13:26]Sock 8.Thread stoped [12:13:26]accept exits with 9 [12:13:26]New connection [12:13:26]New thread 3066465636 created [12:13:26]Thread 3066608996 joined [12:13:26]Waiting for new connection... [12:13:26] Sock 9.Parse request [12:13:26]Sock 9.Check first char [12:13:26]Sock 9.First char is OK [12:13:26]request: POST /json_proto HTTP/1.0 [12:13:26]Method: POST [12:13:26]URL: /json_proto [12:13:26]Method is POST - this is cgi request [12:13:26]url: /json_proto [12:13:26]query_string will be loaded in cgi processing [12:13:26]execute_cgi json_proto POST (null) [12:13:26]execute_cgi path=json_proto method=POST [12:13:26]POST find Content-Length [12:13:26]Host: 172.17.44.196:8080 [12:13:26]Content-Length: 331 [12:13:26]Content-Type: application/json [12:13:26] [12:13:26]POST finish read [12:13:26]Found Content-Length = 331 [12:13: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" ] } } [12:13:26]execute_script... [12:13: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" ] } } [12:13:26]POST & json_proto [12:13:26]process_json_proto [12:13:26]json parsed OK: [12:13:26]protocol is kg_v1.0 [12:13:26]action value=get_value [12:13:26]process_action get_value [12:13:26]cmd_get_value [12:13:26]process_action get_value done [12:13:26]requested_data is exist [12:13:26]produce_requested_data [12:13:26]requested_item fm.sale.total is exist - process it [12:13:26]SAM_PROTO_GetFMData [12:13:26]wFMCommunicate request_size=4 [12:13:26]MH_SAM_APDU [12:13:26]CAPDU: 80 13 03 00 [12:13:26]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:13:27]Read from MH i2c: E2 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 FD 00 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 4A 25 01 00 69 04 A3 00 6F 04 04 00 5A 24 01 00 B1 04 05 00 3C 8D 60 31 01 70 04 05 00 52 A6 C1 00 01 72 04 04 00 EA E6 9E 30 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 8C 19 70 20 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 73 F3 B3 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 6F [12:13:27]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4A 25 01 00 69 04 A3 00 6F 04 04 00 5A 24 01 00 B1 04 05 00 3C 8D 60 31 01 70 04 05 00 52 A6 C1 00 01 72 04 04 00 EA E6 9E 30 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 8C 19 70 20 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 73 F3 B3 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 [12:13:27]wFMCommunicate OK [12:13:27]wFMCommunicate request_size=4 [12:13:27]MH_SAM_APDU [12:13:27]CAPDU: 80 17 00 00 [12:13:27]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:27]Read from MH i2c: E2 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 FD 00 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [12:13:27]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:27]wFMCommunicate OK [12:13:27]wFMCommunicate request_size=4 [12:13:27]MH_SAM_APDU [12:13:27]CAPDU: 80 17 00 00 [12:13:27]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:27]Read from MH i2c: E2 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 FD 00 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [12:13:27]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:27]wFMCommunicate OK [12:13:27]wFMCommunicate request_size=4 [12:13:27]MH_SAM_APDU [12:13:27]CAPDU: 80 17 00 00 [12:13:27]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:27]Read from MH i2c: E2 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 FD 00 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [12:13:27]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:27]wFMCommunicate OK [12:13:27]wFMCommunicate request_size=4 [12:13:27]MH_SAM_APDU [12:13:27]CAPDU: 80 17 00 00 [12:13:27]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 E3 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 E3 00 17 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 76 [12:13:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:13:28]wFMCommunicate OK [12:13:28]SAM_PROTO_GetFMData done [12:13:28]requested_item fm.sale_refund.total is exist - process it [12:13:28]requested_item fm.buy.total is exist - process it [12:13:28]requested_item shift.sale.total is exist - process it [12:13:28]SAM_PROTO_GetShiftData [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 13 02 00 [12:13:28]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 FD 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 A1 00 00 00 69 04 9C 00 6F 04 04 00 A1 00 00 00 B1 04 03 00 A5 7F 83 70 04 03 00 58 3D 6F 72 04 03 00 4D 42 14 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 F4 F7 0D 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 02 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 1B [12:13:28]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 A1 00 00 00 69 04 9C 00 6F 04 04 00 A1 00 00 00 B1 04 03 00 A5 7F 83 70 04 03 00 58 3D 6F 72 04 03 00 4D 42 14 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 F4 F7 0D 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 02 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [12:13:28]wFMCommunicate OK [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 17 00 00 [12:13:28]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 FD 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 FD 00 19 00 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 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 90 00 B2 [12:13:28]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 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 90 00 [12:13:28]wFMCommunicate OK [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 17 00 00 [12:13:28]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:29]Read from MH i2c: E2 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 FD 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [12:13:29]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:29]wFMCommunicate OK [12:13:29]wFMCommunicate request_size=4 [12:13:29]MH_SAM_APDU [12:13:29]CAPDU: 80 17 00 00 [12:13:29]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:29]Read from MH i2c: E2 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 FD 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 19 [12:13:29]RAPDU: 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 90 00 [12:13:29]wFMCommunicate OK [12:13:29]wFMCommunicate request_size=4 [12:13:29]MH_SAM_APDU [12:13:29]CAPDU: 80 17 00 00 [12:13:29]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:13:29]Read from MH i2c: E2 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 CC 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [12:13:29]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:13:29]wFMCommunicate OK [12:13:29]SAM_PROTO_GetShiftData done [12:13:29]requested_item shift.sale.total_cash is exist - process it [12:13:29]requested_item shift.sale_refund.total is exist - process it [12:13:29]requested_item shift.sale_refund.total_cash is exist - process it [12:13:29]requested_item shift.buy.total is exist - process it [12:13:29]requested_item shift.buy.total_cash is exist - process it [12:13:29]produce_requested_data done [12:13:29]produce_requested_data return {"fm.sale.total":51233784.92,"fm.sale_refund.total":702227.00,"fm.buy.total":0.00,"shift.sale.total":86178.93,"shift.sale.total_cash":72902.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} [12:13:29]process_action_free get_value [12:13:29]json_value_free [12:13:29]json_value_free done [12:13:29]process_json_proto returns [12:13:29]Send response to host [12:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":51233784.92,"fm.sale_refund.total":702227.00,"fm.buy.total":0.00,"shift.sale.total":86178.93,"shift.sale.total_cash":72902.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}}} [12:13:29]free response buf [12:13:29]execute_script done [12:13:29]execute_script returns [12:13:29]free content buf [12:13:29]Sock 9.Close socket [12:13:29]Sock 9.Thread stoped [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:40]accept exits with 8 [12:13:40]New connection [12:13:40]New thread 3066608996 created [12:13:40]Thread 3066465636 joined [12:13:40]Waiting for new connection... [12:13:40] Sock 8.Parse request [12:13:40]Sock 8.Check first char [12:13:40]Sock 8.First char is OK [12:13:40]request: POST /json_proto HTTP/1.0 [12:13:40]Method: POST [12:13:40]URL: /json_proto [12:13:40]Method is POST - this is cgi request [12:13:40]url: /json_proto [12:13:40]query_string will be loaded in cgi processing [12:13:40]execute_cgi json_proto POST (null) [12:13:40]execute_cgi path=json_proto method=POST [12:13:40]POST find Content-Length [12:13:40]Host: 172.17.44.196:8080 [12:13:40]Content-Length: 215 [12:13:40]Content-Type: application/json [12:13:40] [12:13:40]POST finish read [12:13:40]Found Content-Length = 215 [12:13:40]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" ] } } [12:13:40]execute_script... [12:13:40]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" ] } } [12:13:40]POST & json_proto [12:13:40]process_json_proto [12:13:40]json parsed OK: [12:13:40]protocol is kg_v1.0 [12:13:40]action value=get_value [12:13:40]process_action get_value [12:13:40]cmd_get_value [12:13:40]process_action get_value done [12:13:40]requested_data is exist [12:13:40]produce_requested_data [12:13:40]requested_item kkm.sn is exist - process it [12:13:40]requested_item kkm.ver is exist - process it [12:13:40]requested_item fm.sn is exist - process it [12:13:40]wFMCommunicate request_size=4 [12:13:40]MH_SAM_APDU [12:13:40]CAPDU: 80 11 00 00 [12:13:40]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 17 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E4 [12:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:13:40]wFMCommunicate OK [12:13:40]requested_item fd.num is exist - process it [12:13:40]SAM_PROTO_GetFieldsCounters [12:13:40]wFMCommunicate request_size=4 [12:13:40]MH_SAM_APDU [12:13:40]CAPDU: 80 13 00 00 [12:13:40]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 62 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 26 01 00 0E 04 04 00 AD 00 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 09 [12:13:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 26 01 00 0E 04 04 00 AD 00 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 [12:13:40]wFMCommunicate OK [12:13:40]SAM_PROTO_GetFieldsCounters done [12:13:40]requested_item shift.num is exist - process it [12:13:40]requested_item shift.opened is exist - process it [12:13:40]req_shift_opened [12:13:40]FM_GetShiftState [12:13:40]SAM_PROTO_GetShiftState [12:13:40]wFMCommunicate request_size=4 [12:13:40]MH_SAM_APDU [12:13:40]CAPDU: 80 13 01 00 [12:13:40]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 0E 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 01 [12:13:40]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:13:40]wFMCommunicate OK [12:13:40]SAM_PROTO_GetShiftState done [12:13:40]FM_GetShiftState done [12:13:40]req_shift_opened done [12:13:40]requested_item shift.open_date is exist - process it [12:13:40]req_shift_open_date [12:13:40]req_shift_open_date done [12:13:40]produce_requested_data done [12:13:40]produce_requested_data return {"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":75428,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:13:40]process_action_free get_value [12:13:40]json_value_free [12:13:40]json_value_free done [12:13:40]process_json_proto returns [12:13:40]Send response to host [12:13:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":75428,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:13:40]free response buf [12:13:40]execute_script done [12:13:40]execute_script returns [12:13:40]free content buf [12:13:40]Sock 8.Close socket [12:13:40]Sock 8.Thread stoped [12:13:40]accept exits with 9 [12:13:40]New connection [12:13:40]New thread 3066465636 created [12:13:40]Thread 3066608996 joined [12:13:40]Waiting for new connection... [12:13:40] Sock 9.Parse request [12:13:40]Sock 9.Check first char [12:13:40]Sock 9.First char is OK [12:13:40]request: POST /json_proto HTTP/1.0 [12:13:40]Method: POST [12:13:40]URL: /json_proto [12:13:40]Method is POST - this is cgi request [12:13:40]url: /json_proto [12:13:40]query_string will be loaded in cgi processing [12:13:40]execute_cgi json_proto POST (null) [12:13:40]execute_cgi path=json_proto method=POST [12:13:40]POST find Content-Length [12:13:40]Host: 172.17.44.196:8080 [12:13:40]Content-Length: 331 [12:13:40]Content-Type: application/json [12:13:40] [12:13:40]POST finish read [12:13:40]Found Content-Length = 331 [12:13:40]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" ] } } [12:13:40]execute_script... [12:13:41]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" ] } } [12:13:41]POST & json_proto [12:13:41]process_json_proto [12:13:41]json parsed OK: [12:13:41]protocol is kg_v1.0 [12:13:41]action value=get_value [12:13:41]process_action get_value [12:13:41]cmd_get_value [12:13:41]process_action get_value done [12:13:41]requested_data is exist [12:13:41]produce_requested_data [12:13:41]requested_item fm.sale.total is exist - process it [12:13:41]SAM_PROTO_GetFMData [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 13 03 00 [12:13:41]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 FD 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 FD 00 20 00 00 C6 04 85 04 C2 04 6E 04 04 00 4A 25 01 00 69 04 A3 00 6F 04 04 00 5A 24 01 00 B1 04 05 00 3C 8D 60 31 01 70 04 05 00 52 A6 C1 00 01 72 04 04 00 EA E6 9E 30 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 8C 19 70 20 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 73 F3 B3 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 7C [12:13:41]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4A 25 01 00 69 04 A3 00 6F 04 04 00 5A 24 01 00 B1 04 05 00 3C 8D 60 31 01 70 04 05 00 52 A6 C1 00 01 72 04 04 00 EA E6 9E 30 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 8C 19 70 20 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 73 F3 B3 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 [12:13:41]wFMCommunicate OK [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 17 00 00 [12:13:41]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 FD 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 FD 00 21 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 84 [12:13:41]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:41]wFMCommunicate OK [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 17 00 00 [12:13:41]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:42]Read from MH i2c: E2 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 FD 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 FD 00 22 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C9 [12:13:42]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:42]wFMCommunicate OK [12:13:42]wFMCommunicate request_size=4 [12:13:42]MH_SAM_APDU [12:13:42]CAPDU: 80 17 00 00 [12:13:42]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:42]Read from MH i2c: E2 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 FD 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 FD 00 23 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1E [12:13:42]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:42]wFMCommunicate OK [12:13:42]wFMCommunicate request_size=4 [12:13:42]MH_SAM_APDU [12:13:42]CAPDU: 80 17 00 00 [12:13:42]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:13:42]Read from MH i2c: E2 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 E3 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 E3 00 24 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 83 [12:13:42]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:13:42]wFMCommunicate OK [12:13:42]SAM_PROTO_GetFMData done [12:13:42]requested_item fm.sale_refund.total is exist - process it [12:13:42]requested_item fm.buy.total is exist - process it [12:13:42]requested_item shift.sale.total is exist - process it [12:13:42]SAM_PROTO_GetShiftData [12:13:42]wFMCommunicate request_size=4 [12:13:42]MH_SAM_APDU [12:13:42]CAPDU: 80 13 02 00 [12:13:42]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 FD 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 FD 00 25 00 00 AF 04 AA 04 AB 04 6E 04 04 00 A1 00 00 00 69 04 9C 00 6F 04 04 00 A1 00 00 00 B1 04 03 00 A5 7F 83 70 04 03 00 58 3D 6F 72 04 03 00 4D 42 14 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 F4 F7 0D 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 02 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 28 [12:13:43]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 A1 00 00 00 69 04 9C 00 6F 04 04 00 A1 00 00 00 B1 04 03 00 A5 7F 83 70 04 03 00 58 3D 6F 72 04 03 00 4D 42 14 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 F4 F7 0D 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 02 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [12:13:43]wFMCommunicate OK [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 17 00 00 [12:13:43]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 FD 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 FD 00 26 00 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 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 90 00 BF [12:13:43]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 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 90 00 [12:13:43]wFMCommunicate OK [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 17 00 00 [12:13:43]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 FD 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 FD 00 27 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [12:13:43]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:43]wFMCommunicate OK [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 17 00 00 [12:13:43]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:44]Read from MH i2c: E2 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: E2 FD 00 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: E2 FD 00 28 00 00 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 90 00 26 [12:13:44]RAPDU: 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 90 00 [12:13:44]wFMCommunicate OK [12:13:44]wFMCommunicate request_size=4 [12:13:44]MH_SAM_APDU [12:13:44]CAPDU: 80 17 00 00 [12:13:44]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [12:13:44]Write i2c OK [12:13:44]MH_I2C_Read... [12:13:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:13:44]Read from MH i2c: E2 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: E2 CC 00 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: E2 CC 00 29 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8A [12:13:44]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:13:44]wFMCommunicate OK [12:13:44]SAM_PROTO_GetShiftData done [12:13:44]requested_item shift.sale.total_cash is exist - process it [12:13:44]requested_item shift.sale_refund.total is exist - process it [12:13:44]requested_item shift.sale_refund.total_cash is exist - process it [12:13:44]requested_item shift.buy.total is exist - process it [12:13:44]requested_item shift.buy.total_cash is exist - process it [12:13:44]produce_requested_data done [12:13:44]produce_requested_data return {"fm.sale.total":51233784.92,"fm.sale_refund.total":702227.00,"fm.buy.total":0.00,"shift.sale.total":86178.93,"shift.sale.total_cash":72902.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} [12:13:44]process_action_free get_value [12:13:44]json_value_free [12:13:44]json_value_free done [12:13:44]process_json_proto returns [12:13:44]Send response to host [12:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":51233784.92,"fm.sale_refund.total":702227.00,"fm.buy.total":0.00,"shift.sale.total":86178.93,"shift.sale.total_cash":72902.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}}} [12:13:44]free response buf [12:13:44]execute_script done [12:13:44]execute_script returns [12:13:44]free content buf [12:13:44]Sock 9.Close socket [12:13:44]Sock 9.Thread stoped [12:13:44]accept exits with 8 [12:13:44]New connection [12:13:44]New thread 3066608996 created [12:13:44]Thread 3066465636 joined [12:13:44]Waiting for new connection... [12:13:44] Sock 8.Parse request [12:13:44]Sock 8.Check first char [12:13:44]Sock 8.First char is OK [12:13:44]request: POST /json_proto HTTP/1.0 [12:13:44]Method: POST [12:13:44]URL: /json_proto [12:13:44]Method is POST - this is cgi request [12:13:44]url: /json_proto [12:13:44]query_string will be loaded in cgi processing [12:13:44]execute_cgi json_proto POST (null) [12:13:44]execute_cgi path=json_proto method=POST [12:13:44]POST find Content-Length [12:13:44]Host: 172.17.44.196:8080 [12:13:44]Content-Length: 331 [12:13:44]Content-Type: application/json [12:13:44] [12:13:44]POST finish read [12:13:44]Found Content-Length = 331 [12:13:44]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" ] } } [12:13:44]execute_script... [12:13:44]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" ] } } [12:13:44]POST & json_proto [12:13:44]process_json_proto [12:13:44]json parsed OK: [12:13:44]protocol is kg_v1.0 [12:13:44]action value=get_value [12:13:44]process_action get_value [12:13:44]cmd_get_value [12:13:44]process_action get_value done [12:13:44]requested_data is exist [12:13:44]produce_requested_data [12:13:44]requested_item fm.sale.total is exist - process it [12:13:44]SAM_PROTO_GetFMData [12:13:44]wFMCommunicate request_size=4 [12:13:44]MH_SAM_APDU [12:13:44]CAPDU: 80 13 03 00 [12:13:44]Write to MH i2c: E2 08 00 2A 00 80 13 03 00 00 00 00 00 A9 [12:13:44]Write i2c OK [12:13:44]MH_I2C_Read... [12:13:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:13:45]Read from MH i2c: E2 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 FD 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 FD 00 2A 00 00 C6 04 85 04 C2 04 6E 04 04 00 4A 25 01 00 69 04 A3 00 6F 04 04 00 5A 24 01 00 B1 04 05 00 3C 8D 60 31 01 70 04 05 00 52 A6 C1 00 01 72 04 04 00 EA E6 9E 30 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 8C 19 70 20 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 73 F3 B3 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 86 [12:13:45]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4A 25 01 00 69 04 A3 00 6F 04 04 00 5A 24 01 00 B1 04 05 00 3C 8D 60 31 01 70 04 05 00 52 A6 C1 00 01 72 04 04 00 EA E6 9E 30 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 8C 19 70 20 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 73 F3 B3 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 [12:13:45]wFMCommunicate OK [12:13:45]wFMCommunicate request_size=4 [12:13:45]MH_SAM_APDU [12:13:45]CAPDU: 80 17 00 00 [12:13:45]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [12:13:45]Write i2c OK [12:13:45]MH_I2C_Read... [12:13:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:45]Read from MH i2c: E2 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 FD 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 FD 00 2B 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [12:13:45]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:45]wFMCommunicate OK [12:13:45]wFMCommunicate request_size=4 [12:13:45]MH_SAM_APDU [12:13:45]CAPDU: 80 17 00 00 [12:13:45]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [12:13:45]Write i2c OK [12:13:45]MH_I2C_Read... [12:13:45]OFD Sender: No OFD packet to send [12:13:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:45]Read from MH i2c: E2 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 FD 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 FD 00 2C 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D3 [12:13:45]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:45]wFMCommunicate OK [12:13:45]wFMCommunicate request_size=4 [12:13:45]MH_SAM_APDU [12:13:45]CAPDU: 80 17 00 00 [12:13:45]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [12:13:45]Write i2c OK [12:13:45]MH_I2C_Read... [12:13:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:46]Read from MH i2c: E2 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 FD 00 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 FD 00 2D 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 28 [12:13:46]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:46]wFMCommunicate OK [12:13:46]wFMCommunicate request_size=4 [12:13:46]MH_SAM_APDU [12:13:46]CAPDU: 80 17 00 00 [12:13:46]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [12:13:46]Write i2c OK [12:13:46]MH_I2C_Read... [12:13:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:13:46]Read from MH i2c: E2 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 E3 00 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 E3 00 2E 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [12:13:46]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:13:46]wFMCommunicate OK [12:13:46]SAM_PROTO_GetFMData done [12:13:46]requested_item fm.sale_refund.total is exist - process it [12:13:46]requested_item fm.buy.total is exist - process it [12:13:46]requested_item shift.sale.total is exist - process it [12:13:46]SAM_PROTO_GetShiftData [12:13:46]wFMCommunicate request_size=4 [12:13:46]MH_SAM_APDU [12:13:46]CAPDU: 80 13 02 00 [12:13:46]Write to MH i2c: E2 08 00 2F 00 80 13 02 00 00 00 00 00 AD [12:13:46]Write i2c OK [12:13:46]MH_I2C_Read... [12:13:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:13:47]Read from MH i2c: E2 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 FD 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 FD 00 2F 00 00 AF 04 AA 04 AB 04 6E 04 04 00 A1 00 00 00 69 04 9C 00 6F 04 04 00 A1 00 00 00 B1 04 03 00 A5 7F 83 70 04 03 00 58 3D 6F 72 04 03 00 4D 42 14 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 F4 F7 0D 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 02 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 32 [12:13:47]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 A1 00 00 00 69 04 9C 00 6F 04 04 00 A1 00 00 00 B1 04 03 00 A5 7F 83 70 04 03 00 58 3D 6F 72 04 03 00 4D 42 14 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 F4 F7 0D 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 02 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [12:13:47]wFMCommunicate OK [12:13:47]wFMCommunicate request_size=4 [12:13:47]MH_SAM_APDU [12:13:47]CAPDU: 80 17 00 00 [12:13:47]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:47]Read from MH i2c: E2 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 FD 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 FD 00 30 00 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 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 90 00 C9 [12:13:47]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 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 90 00 [12:13:47]wFMCommunicate OK [12:13:47]wFMCommunicate request_size=4 [12:13:47]MH_SAM_APDU [12:13:47]CAPDU: 80 17 00 00 [12:13:47]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:47]Read from MH i2c: E2 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 FD 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 FD 00 31 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [12:13:47]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:48]wFMCommunicate OK [12:13:48]wFMCommunicate request_size=4 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 17 00 00 [12:13:48]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 FD 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 FD 00 32 00 00 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 90 00 30 [12:13:48]RAPDU: 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 90 00 [12:13:48]wFMCommunicate OK [12:13:48]wFMCommunicate request_size=4 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 17 00 00 [12:13:48]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 CC 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 CC 00 33 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [12:13:48]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:13:48]wFMCommunicate OK [12:13:48]SAM_PROTO_GetShiftData done [12:13:48]requested_item shift.sale.total_cash is exist - process it [12:13:48]requested_item shift.sale_refund.total is exist - process it [12:13:48]requested_item shift.sale_refund.total_cash is exist - process it [12:13:48]requested_item shift.buy.total is exist - process it [12:13:48]requested_item shift.buy.total_cash is exist - process it [12:13:48]produce_requested_data done [12:13:48]produce_requested_data return {"fm.sale.total":51233784.92,"fm.sale_refund.total":702227.00,"fm.buy.total":0.00,"shift.sale.total":86178.93,"shift.sale.total_cash":72902.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} [12:13:48]process_action_free get_value [12:13:48]json_value_free [12:13:48]json_value_free done [12:13:48]process_json_proto returns [12:13:48]Send response to host [12:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":51233784.92,"fm.sale_refund.total":702227.00,"fm.buy.total":0.00,"shift.sale.total":86178.93,"shift.sale.total_cash":72902.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}}} [12:13:48]free response buf [12:13:48]execute_script done [12:13:48]execute_script returns [12:13:48]free content buf [12:13:48]Sock 8.Close socket [12:13:48]Sock 8.Thread stoped [12:13:48]accept exits with 9 [12:13:48]New connection [12:13:48]New thread 3066465636 created [12:13:48]Thread 3066608996 joined [12:13:48]Waiting for new connection... [12:13:48] Sock 9.Parse request [12:13:48]Sock 9.Check first char [12:13:48]Sock 9.First char is OK [12:13:48]request: POST /json_proto HTTP/1.0 [12:13:48]Method: POST [12:13:48]URL: /json_proto [12:13:48]Method is POST - this is cgi request [12:13:48]url: /json_proto [12:13:48]query_string will be loaded in cgi processing [12:13:48]execute_cgi json_proto POST (null) [12:13:48]execute_cgi path=json_proto method=POST [12:13:48]POST find Content-Length [12:13:48]Host: 172.17.44.196:8080 [12:13:48]Content-Length: 257 [12:13:48]Content-Type: application/json [12:13:48] [12:13:48]POST finish read [12:13:48]Found Content-Length = 257 [12:13:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:48]execute_script... [12:13:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u0440\u043C\u043E\u043D\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:48]POST & json_proto [12:13:48]process_json_proto [12:13:48]json parsed OK: [12:13:48]protocol is kg_v1.0 [12:13:48]action value=x_report [12:13:48]process_action x_report [12:13:48]cmd_x_report [12:13:48]MH_GetDate [12:13:48]Write to MH i2c: F0 00 00 34 00 23 [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: F0 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: F0 09 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: F0 09 00 34 00 00 7D E8 18 67 E7 19 F8 65 6D [12:13:48]GetLastDocTimeStamp 112 [12:13:48]current date 1729685629 [12:13:48]FM_GetShiftState [12:13:48]SAM_PROTO_GetShiftState [12:13:48]wFMCommunicate request_size=4 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 13 01 00 [12:13:48]Write to MH i2c: E2 08 00 35 00 80 13 01 00 00 00 00 00 B2 [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:48]Read from MH i2c: E2 0E 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 0E 00 35 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 17 [12:13:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:13:48]wFMCommunicate OK [12:13:48]SAM_PROTO_GetShiftState done [12:13:48]FM_GetShiftState done [12:13:48]KKMCreateXReportDocument [12:13:48]Load OK [12:13:48]Malloc new data [12:13:48]MH_GetDate [12:13:48]Write to MH i2c: F0 00 00 36 00 25 [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: F0 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: F0 09 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: F0 09 00 36 00 00 7D E8 18 67 E7 19 F8 65 6F [12:13:48]Malloc new data [12:13:48]Malloc new data [12:13:48]wFMCommunicate request_size=4 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 11 00 00 [12:13:48]Write to MH i2c: E2 08 00 37 00 80 11 00 00 00 00 00 00 B1 [12:13:49]Write i2c OK [12:13:49]MH_I2C_Read... [12:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:49]Read from MH i2c: E2 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 17 00 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 17 00 37 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FE [12:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:13:49]wFMCommunicate OK [12:13:49]SAM_PROTO_GetFieldsCounters [12:13:49]wFMCommunicate request_size=4 [12:13:49]MH_SAM_APDU [12:13:49]CAPDU: 80 13 00 00 [12:13:49]Write to MH i2c: E2 08 00 38 00 80 13 00 00 00 00 00 00 B4 [12:13:49]Write i2c OK [12:13:49]MH_I2C_Read... [12:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:49]Read from MH i2c: E2 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 62 00 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 62 00 38 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 26 01 00 0E 04 04 00 AD 00 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 23 [12:13:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 26 01 00 0E 04 04 00 AD 00 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 [12:13:49]wFMCommunicate OK [12:13:49]SAM_PROTO_GetFieldsCounters done [12:13:49]Malloc new data [12:13:49]Malloc new data [12:13:49]Malloc new data [12:13:49]KKMCreateXReportDocument OK [12:13:49]KKMSetXReportData OK [12:13:49]KKMPrepareXReportFMData [12:13:49]SAM_PROTO_GetShiftData [12:13:49]wFMCommunicate request_size=4 [12:13:49]MH_SAM_APDU [12:13:49]CAPDU: 80 13 02 00 [12:13:49]Write to MH i2c: E2 08 00 39 00 80 13 02 00 00 00 00 00 B7 [12:13:49]Write i2c OK [12:13:49]MH_I2C_Read... [12:13:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:13:49]Read from MH i2c: E2 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 FD 00 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 FD 00 39 00 00 AF 04 AA 04 AB 04 6E 04 04 00 A1 00 00 00 69 04 9C 00 6F 04 04 00 A1 00 00 00 B1 04 03 00 A5 7F 83 70 04 03 00 58 3D 6F 72 04 03 00 4D 42 14 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 F4 F7 0D 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 02 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 3C [12:13:49]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 A1 00 00 00 69 04 9C 00 6F 04 04 00 A1 00 00 00 B1 04 03 00 A5 7F 83 70 04 03 00 58 3D 6F 72 04 03 00 4D 42 14 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 F4 F7 0D 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 02 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [12:13:49]wFMCommunicate OK [12:13:49]wFMCommunicate request_size=4 [12:13:49]MH_SAM_APDU [12:13:49]CAPDU: 80 17 00 00 [12:13:49]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [12:13:49]Write i2c OK [12:13:49]MH_I2C_Read... [12:13:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:50]Read from MH i2c: E2 [12:13:50]MH_I2C_Read... [12:13:50]Read from MH i2c: E2 FD 00 [12:13:50]MH_I2C_Read... [12:13:50]Read from MH i2c: E2 FD 00 3A 00 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 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 90 00 D3 [12:13:50]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 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 90 00 [12:13:50]wFMCommunicate OK [12:13:50]wFMCommunicate request_size=4 [12:13:50]MH_SAM_APDU [12:13:50]CAPDU: 80 17 00 00 [12:13:50]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [12:13:50]Write i2c OK [12:13:50]MH_I2C_Read... [12:13:50]OFD Sender: No OFD packet to send [12:13:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:50]Read from MH i2c: E2 [12:13:50]MH_I2C_Read... [12:13:50]Read from MH i2c: E2 FD 00 [12:13:50]MH_I2C_Read... [12:13:50]Read from MH i2c: E2 FD 00 3B 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [12:13:50]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:50]wFMCommunicate OK [12:13:50]wFMCommunicate request_size=4 [12:13:50]MH_SAM_APDU [12:13:50]CAPDU: 80 17 00 00 [12:13:50]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [12:13:50]Write i2c OK [12:13:50]MH_I2C_Read... [12:13:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:51]Read from MH i2c: E2 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: E2 FD 00 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: E2 FD 00 3C 00 00 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 90 00 3A [12:13:51]RAPDU: 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 90 00 [12:13:51]wFMCommunicate OK [12:13:51]wFMCommunicate request_size=4 [12:13:51]MH_SAM_APDU [12:13:51]CAPDU: 80 17 00 00 [12:13:51]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [12:13:51]Write i2c OK [12:13:51]MH_I2C_Read... [12:13:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:13:51]Read from MH i2c: E2 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: E2 CC 00 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: E2 CC 00 3D 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E [12:13:51]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:13:51]wFMCommunicate OK [12:13:51]SAM_PROTO_GetShiftData done [12:13:51]1194 (1195) - счетчики итогов смены [12:13:51] 1134 (4) - 161 - количество чеков со всеми признаками расчетов [12:13:51] 1129 (156) - счетчики операций «приход» [12:13:51] 1135 (4) - 161 - количество чеков по признаку расчетов [12:13:51] 1201 (3) - 86178.93 - общая итоговая сумма в чеках [12:13:51] 1136 (3) - 72902.00 - итоговая сумма в чеках наличными [12:13:51] 1138 (3) - 13276.93 - итоговая сумма в чеках безналичными [12:13:51] 1024 (123) - суммы налогов [12:13:51] 1006 (9) - суммы НДС [12:13:51] 1010 (1) - 0% - код ставки НДС [12:13:51] 1011 (0) - 0.00 - сумма НДС по ставке [12:13:51] 1006 (12) - суммы НДС [12:13:51] 1010 (1) - 12% - код ставки НДС [12:13:51] 1011 (3) - 9154.44 - сумма НДС по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 0% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (12) - суммы НСП [12:13:51] 1014 (1) - 1% - код ставки НСП [12:13:51] 1015 (3) - 762.90 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 2% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 3% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 5% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 0,50% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 1,50% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1130 (141) - счетчики операций «возврат прихода» [12:13:51] 1135 (4) - 0 - количество чеков по признаку расчетов [12:13:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:13:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:13:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:13:51] 1024 (117) - суммы налогов [12:13:51] 1006 (9) - суммы НДС [12:13:51] 1010 (1) - 0% - код ставки НДС [12:13:51] 1011 (0) - 0.00 - сумма НДС по ставке [12:13:51] 1006 (9) - суммы НДС [12:13:51] 1010 (1) - 12% - код ставки НДС [12:13:51] 1011 (0) - 0.00 - сумма НДС по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 0% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 1% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 2% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 3% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 5% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 0,50% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 1,50% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1131 (141) - счетчики операций «расход» [12:13:51] 1135 (4) - 0 - количество чеков по признаку расчетов [12:13:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:13:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:13:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:13:51] 1024 (117) - суммы налогов [12:13:51] 1006 (9) - суммы НДС [12:13:51] 1010 (1) - 0% - код ставки НДС [12:13:51] 1011 (0) - 0.00 - сумма НДС по ставке [12:13:51] 1006 (9) - суммы НДС [12:13:51] 1010 (1) - 12% - код ставки НДС [12:13:51] 1011 (0) - 0.00 - сумма НДС по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 0% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 1% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 2% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 3% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 5% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 0,50% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 1,50% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:51] 1132 (141) - счетчики операций «возврат расхода» [12:13:51] 1135 (4) - 0 - количество чеков по признаку расчетов [12:13:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:13:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:13:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:13:51] 1024 (117) - суммы налогов [12:13:51] 1006 (9) - суммы НДС [12:13:51] 1010 (1) - 0% - код ставки НДС [12:13:51] 1011 (0) - 0.00 - сумма НДС по ставке [12:13:51] 1006 (9) - суммы НДС [12:13:51] 1010 (1) - 12% - код ставки НДС [12:13:51] 1011 (0) - 0.00 - сумма НДС по ставке [12:13:51] 1007 (9) - суммы НСП [12:13:51] 1014 (1) - 0% - код ставки НСП [12:13:51] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:52] 1007 (9) - суммы НСП [12:13:52] 1014 (1) - 1% - код ставки НСП [12:13:52] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:52] 1007 (9) - суммы НСП [12:13:52] 1014 (1) - 2% - код ставки НСП [12:13:52] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:52] 1007 (9) - суммы НСП [12:13:52] 1014 (1) - 3% - код ставки НСП [12:13:52] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:52] 1007 (9) - суммы НСП [12:13:52] 1014 (1) - 5% - код ставки НСП [12:13:52] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:52] 1007 (9) - суммы НСП [12:13:52] 1014 (1) - 0,50% - код ставки НСП [12:13:52] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:52] 1007 (9) - суммы НСП [12:13:52] 1014 (1) - 1,50% - код ставки НСП [12:13:52] 1015 (0) - 0.00 - сумма НСП по ставке [12:13:52] 1133 (588) - - счетчики коррекции - не используются [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1194 (04AA) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1134 (046E) [12:13:52]Malloc new data [12:13:52]Processing tag 1129 (0469) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1135 (046F) [12:13:52]Malloc new data [12:13:52]Processing tag 1201 (04B1) [12:13:52]Malloc new data [12:13:52]Processing tag 1136 (0470) [12:13:52]Malloc new data [12:13:52]Processing tag 1138 (0472) [12:13:52]Malloc new data [12:13:52]Processing tag 1024 (0400) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1006 (03EE) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1010 (03F2) [12:13:52]Malloc new data [12:13:52]Processing tag 1011 (03F3) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1006 (03EE) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1010 (03F2) [12:13:52]Malloc new data [12:13:52]Processing tag 1011 (03F3) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]SetTLVBufToDocument err=0 [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1130 (046A) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1135 (046F) [12:13:52]Malloc new data [12:13:52]Processing tag 1201 (04B1) [12:13:52]Malloc new data [12:13:52]Processing tag 1136 (0470) [12:13:52]Malloc new data [12:13:52]Processing tag 1138 (0472) [12:13:52]Malloc new data [12:13:52]Processing tag 1024 (0400) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1006 (03EE) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1010 (03F2) [12:13:52]Malloc new data [12:13:52]Processing tag 1011 (03F3) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1006 (03EE) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1010 (03F2) [12:13:52]Malloc new data [12:13:52]Processing tag 1011 (03F3) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]SetTLVBufToDocument err=0 [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1131 (046B) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1135 (046F) [12:13:52]Malloc new data [12:13:52]Processing tag 1201 (04B1) [12:13:52]Malloc new data [12:13:52]Processing tag 1136 (0470) [12:13:52]Malloc new data [12:13:52]Processing tag 1138 (0472) [12:13:52]Malloc new data [12:13:52]Processing tag 1024 (0400) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1006 (03EE) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1010 (03F2) [12:13:52]Malloc new data [12:13:52]Processing tag 1011 (03F3) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1006 (03EE) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1010 (03F2) [12:13:52]Malloc new data [12:13:52]Processing tag 1011 (03F3) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]SetTLVBufToDocument err=0 [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1132 (046C) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1135 (046F) [12:13:52]Malloc new data [12:13:52]Processing tag 1201 (04B1) [12:13:52]Malloc new data [12:13:52]Processing tag 1136 (0470) [12:13:52]Malloc new data [12:13:52]Processing tag 1138 (0472) [12:13:52]Malloc new data [12:13:52]Processing tag 1024 (0400) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1006 (03EE) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1010 (03F2) [12:13:52]Malloc new data [12:13:52]Processing tag 1011 (03F3) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1006 (03EE) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1010 (03F2) [12:13:52]Malloc new data [12:13:52]Processing tag 1011 (03F3) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1007 (03EF) [12:13:52]Load OK [12:13:52]SetTLVBufToDocument [12:13:52]Processing tag 1014 (03F6) [12:13:52]Malloc new data [12:13:52]Processing tag 1015 (03F7) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]SetTLVBufToDocument err=0 [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Processing tag 1133 (046D) [12:13:52]Malloc new data [12:13:52]SetTLVBufToDocument err=0 [12:13:52]SetTLVBufToDocument err=0 [12:13:52]Malloc new data [12:13:52]SAM_PROTO_GetFMData [12:13:52]wFMCommunicate request_size=4 [12:13:52]MH_SAM_APDU [12:13:52]CAPDU: 80 13 03 00 [12:13:52]Write to MH i2c: E2 08 00 3E 00 80 13 03 00 00 00 00 00 BD [12:13:52]Write i2c OK [12:13:52]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 FD 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 FD 00 3E 00 00 C6 04 85 04 C2 04 6E 04 04 00 4A 25 01 00 69 04 A3 00 6F 04 04 00 5A 24 01 00 B1 04 05 00 3C 8D 60 31 01 70 04 05 00 52 A6 C1 00 01 72 04 04 00 EA E6 9E 30 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 8C 19 70 20 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 73 F3 B3 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 9A [12:13:53]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4A 25 01 00 69 04 A3 00 6F 04 04 00 5A 24 01 00 B1 04 05 00 3C 8D 60 31 01 70 04 05 00 52 A6 C1 00 01 72 04 04 00 EA E6 9E 30 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 8C 19 70 20 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 73 F3 B3 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 [12:13:53]wFMCommunicate OK [12:13:53]wFMCommunicate request_size=4 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 17 00 00 [12:13:53]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 FD 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 FD 00 3F 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [12:13:54]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:54]wFMCommunicate OK [12:13:54]wFMCommunicate request_size=4 [12:13:54]MH_SAM_APDU [12:13:54]CAPDU: 80 17 00 00 [12:13:54]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [12:13:54]Write i2c OK [12:13:54]MH_I2C_Read... [12:13:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:54]Read from MH i2c: E2 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: E2 FD 00 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: E2 FD 00 40 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [12:13:54]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:54]wFMCommunicate OK [12:13:54]wFMCommunicate request_size=4 [12:13:54]MH_SAM_APDU [12:13:54]CAPDU: 80 17 00 00 [12:13:54]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [12:13:54]Write i2c OK [12:13:54]MH_I2C_Read... [12:13:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:54]Read from MH i2c: E2 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: E2 FD 00 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: E2 FD 00 41 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [12:13:55]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:55]wFMCommunicate OK [12:13:55]wFMCommunicate request_size=4 [12:13:55]MH_SAM_APDU [12:13:55]CAPDU: 80 17 00 00 [12:13:55]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:13:55]Read from MH i2c: E2 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 E3 00 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 E3 00 42 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 [12:13:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:13:55]wFMCommunicate OK [12:13:55]SAM_PROTO_GetFMData done [12:13:55]FM_GetFMData:85 04 C2 04 6E 04 04 00 4A 25 01 00 69 04 A3 00 6F 04 04 00 5A 24 01 00 B1 04 05 00 3C 8D 60 31 01 70 04 05 00 52 A6 C1 00 01 72 04 04 00 EA E6 9E 30 00 04 7D 00 OFD Sender: No OFD packet to send [12:13:55]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 8C 19 70 20 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 73 F3 B3 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 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 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:13:56]oper:6F 04 04 00 5A 24 01 00 B1 04 05 00 3C 8D 60 31 01 70 04 05 00 52 A6 C1 00 01 72 04 04 00 EA E6 9E 30 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 8C 19 70 20 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 73 F3 B3 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 [12:13:56]total:3C 8D 60 31 01 [12:13:56]Malloc new data [12:13:56]oper:6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 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 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:13:56]total:6C 83 2F 04 [12:13:56]Malloc new data [12:13:56]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 [12:13:56]total: [12:13:56]Malloc new data [12:13:56]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 [12:13:56]total: [12:13:56]Malloc new data [12:13:56]KKMPrepareXReportFMData err=0 [12:13:56]Х отчет ИНН: 02508201610067 Кассир: Ормонова Д. 23.10.2024 12:13 Смена: 10 РНМ: 0000000000161154 ЗНМ: 0300000020 СНО: Общий режим Всего чеков: 161 ИТОГИ ПРИХОД Чеков: 161 Общий итог: 86178.93 Итого наличными: 72902.00 Итого безнал.: 13276.93 НДС 0% : 0.00 НДС 12% : 9154.44 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 762.90 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Общий итог: 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 Нал. в кассе: 72902.00 НС Приход: 51233784.92 НС Возвр.Прихода: 702227.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963323 [12:13:56]StoreToDocumentArchive [12:13:56]MH_GetDate [12:13:56]Write to MH i2c: F0 00 00 43 00 32 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: F0 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: F0 09 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: F0 09 00 43 00 00 85 E8 18 67 E7 19 F8 65 84 [12:13:56]shift 10 fd 1729685637 [12:13:56]Create dir for shift 0010 [12:13:56]save to /storage/0010/doc_1729685637 [12:13:56]save last doc name /storage/0010/doc_1729685637 to /storage/kkm_last_doc_name [12:13:56]save OK [12:13:56]Clear old archive folders... [12:13:56]NVStorageSaveData kkm_last_timestamp [12:13:56]File name is /storage/kkm_last_timestamp [12:13:56]Write 4 bytes [12:13:56]NVStorageSaveData done [12:13:56]ExternCall_PrintAddStr [12:13:56]wPrintStart [12:13:56]Write to MH i2c: 01 00 00 44 00 44 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 07 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FF 0F 59 [12:13:56]RasterBufferAndPrint [12:13:56]line Х отчет [12:13:56]line ИНН: 02508201610067 [12:13:56]line Кассир: Ормонова Д. [12:13:56]line 23.10.2024 12:13 [12:13:56]line Смена: 10 [12:13:56]line РНМ: 0000000000161154 [12:13:56]line ЗНМ: 0300000020 [12:13:56]line СНО: Общий режим [12:13:56]line Всего чеков: 161 [12:13:56]line ИТОГИ ПРИХОД [12:13:56]line Чеков: 161 [12:13:56]line Общий итог: 86178.93 [12:13:56]line Итого наличными: 72902.00 [12:13:56]line Итого безнал.: 13276.93 [12:13:56]line НДС 0% : 0.00 [12:13:56]line НДС 12% : 9154.44 [12:13:56]line НСП 0% : 0.00 [12:13:57]line НСП 1,50% : 0.00 [12:13:57]line НСП 0,50% : 0.00 [12:13:57]line НСП 5% : 0.00 [12:13:57]line НСП 3% : 0.00 [12:13:57]line НСП 2% : 0.00 [12:13:57]line НСП 1% : 762.90 [12:13:57]line ИТОГИ ВОЗВРАТ ПРИХОДА [12:13:57]line Чеков: 0 [12:13:57]line Общий итог: 0.00 [12:13:57]line Итого наличными: 0.00 [12:13:57]line Итого безнал.: 0.00 [12:13:57]line НДС 0% : 0.00 [12:13:57]line НДС 12% : 0.00 [12:13:57]line НСП 0% : 0.00 [12:13:57]line НСП 1,50% : 0.00 [12:13:57]line НСП 0,50% : 0.00 [12:13:57]line НСП 5% : 0.00 [12:13:57]line НСП 3% : 0.00 [12:13:57]line НСП 2% : 0.00 [12:13:57]line НСП 1% : 0.00 [12:13:57]line ИТОГИ РАСХОД [12:13:57]line Чеков: 0 [12:13:57]line Общий итог: 0.00 [12:13:57]line Итого наличными: 0.00 [12:13:57]line Итого безнал.: 0.00 [12:13:57]line НДС 0% : 0.00 [12:13:57]line НДС 12% : 0.00 [12:13:57]line НСП 0% : 0.00 [12:13:57]line НСП 1,50% : 0.00 [12:13:57]line НСП 0,50% : 0.00 [12:13:57]line НСП 5% : 0.00 [12:13:57]line НСП 3% : 0.00 [12:13:57]line НСП 2% : 0.00 [12:13:57]line НСП 1% : 0.00 [12:13:57]line ИТОГИ ВОЗВРАТ РАСХОДА [12:13:57]line Чеков: 0 [12:13:57]line Общий итог: 0.00 [12:13:57]line Итого наличными: 0.00 [12:13:57]line Итого безнал.: 0.00 [12:13:57]line НДС 0% : 0.00 [12:13:57]line НДС 12% : 0.00 [12:13:57]line НСП 0% : 0.00 [12:13:57]line НСП 1,50% : 0.00 [12:13:57]line НСП 0,50% : 0.00 [12:13:57]line НСП 5% : 0.00 [12:13:57]line НСП 3% : 0.00 [12:13:57]line НСП 2% : 0.00 [12:13:57]line НСП 1% : 0.00 [12:13:57]line Сумма внесений: 0.00 [12:13:57]line Сумма выплат: 0.00 [12:13:57]line Нал. в кассе: 72902.00 [12:13:57]line НС Приход: 51233784.92 [12:13:57]line НС Возвр.Прихода: 702227.00 [12:13:57]line НС Расход: 0.00 [12:13:57]line НС Возвр.Расхода: 0.00 [12:13:57]line ФМ: 0000000000963323 [12:13:57]written 0, free lines is 4095 [12:13:57]Write to MH i2c: 01 00 00 8F 00 8F [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: 01 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: 01 07 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 18 0A B8 [12:13:57]RasterBufferAndPrint [12:13:57]line [12:13:57]line [12:13:57]line [12:13:57]line [12:13:57]line [12:13:57]written 0, free lines is 2608 [12:13:57]MH_Cut [12:13:57]Write to MH i2c: D1 01 00 96 00 01 68 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: D1 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: D1 01 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: D1 01 00 96 00 00 67 [12:13:57]Write to MH i2c: 01 00 00 97 00 97 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:59]*** Cut start [12:13:59]*** Partial cut [12:13:59]*** CUTSNS_PIN = 1 [12:13:59]*** CUTSNS_PIN = 0 [12:13:59]*** Brake cut motor [12:13:59]Read from MH i2c: 01 [12:13:59]MH_I2C_Read... [12:13:59]*** Stop cut motor [12:13:59]*** Cut end [12:13:59]Read from MH i2c: 01 07 00 [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [12:13:59]process_action x_report done [12:13:59]requested_data is exist [12:13:59]produce_requested_data [12:13:59]requested_item fd.num is exist - process it [12:13:59]SAM_PROTO_GetFieldsCounters [12:13:59]wFMCommunicate request_size=4 [12:13:59]MH_SAM_APDU [12:13:59]CAPDU: 80 13 00 00 [12:13:59]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [12:13:59]Write i2c OK [12:13:59]MH_I2C_Read... [12:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:59]Read from MH i2c: E2 [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: E2 62 00 [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 26 01 00 0E 04 04 00 AD 00 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 83 [12:14:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A4 26 01 00 0E 04 04 00 AD 00 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 [12:14:00]wFMCommunicate OK [12:14:00]SAM_PROTO_GetFieldsCounters done [12:14:00]requested_item shift.num is exist - process it [12:14:00]requested_item shift.opened is exist - process it [12:14:00]req_shift_opened [12:14:00]FM_GetShiftState [12:14:00]SAM_PROTO_GetShiftState [12:14:00]wFMCommunicate request_size=4 [12:14:00]MH_SAM_APDU [12:14:00]CAPDU: 80 13 01 00 [12:14:00]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [12:14:00]Write i2c OK [12:14:00]MH_I2C_Read... [12:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:00]Read from MH i2c: E2 [12:14:00]MH_I2C_Read... [12:14:00]Read from MH i2c: E2 0E 00 [12:14:00]MH_I2C_Read... [12:14:00]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7B [12:14:00]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:14:00]wFMCommunicate OK [12:14:00]SAM_PROTO_GetShiftState done [12:14:00]FM_GetShiftState done [12:14:00]req_shift_opened done [12:14:00]requested_item shift.open_date is exist - process it [12:14:00]req_shift_open_date [12:14:00]req_shift_open_date done [12:14:00]produce_requested_data done [12:14:00]produce_requested_data return {"fd.num":75428,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:14:00]process_action_free x_report [12:14:00]json_value_free [12:14:00]json_value_free done [12:14:00]process_json_proto returns [12:14:00]Send response to host [12:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":75428,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:14:00]free response buf [12:14:00]execute_script done [12:14:00]execute_script returns [12:14:00]free content buf [12:14:00]Sock 9.Close socket [12:14:00]Sock 9.Thread stoped [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:48]accept exits with 8 [12:14:48]New connection [12:14:48]New thread 3066608996 created [12:14:48]Thread 3066465636 joined [12:14:48]Waiting for new connection... [12:14:48] Sock 8.Parse request [12:14:48]Sock 8.Check first char [12:14:48]Sock 8.First char is OK [12:14:48]request: POST /json_proto HTTP/1.0 [12:14:48]Method: POST [12:14:48]URL: /json_proto [12:14:48]Method is POST - this is cgi request [12:14:48]url: /json_proto [12:14:48]query_string will be loaded in cgi processing [12:14:48]execute_cgi json_proto POST (null) [12:14:48]execute_cgi path=json_proto method=POST [12:14:48]POST find Content-Length [12:14:48]Host: 172.17.44.196:8080 [12:14:48]Content-Length: 626 [12:14:48]Content-Type: application/json [12:14:48] [12:14:48]POST finish read [12:14:48]Found Content-Length = 626 [12:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273236", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:48]execute_script... [12:14:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273236", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:48]POST & json_proto [12:14:48]process_json_proto [12:14:48]json parsed OK: [12:14:48]protocol is kg_v1.0 [12:14:48]action value=close_receipt [12:14:48]process_action close_receipt [12:14:48]cmd_close_receipt [12:14:48]MH_GetDate [12:14:48]Write to MH i2c: F0 00 00 9A 00 89 [12:14:48]Write i2c OK [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: F0 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: F0 09 00 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: F0 09 00 9A 00 00 B8 E8 18 67 E7 19 F8 65 0E [12:14:48]GetLastDocTimeStamp 1729685629 [12:14:48]current date 1729685688 [12:14:48]FM_GetShiftState [12:14:48]SAM_PROTO_GetShiftState [12:14:48]wFMCommunicate request_size=4 [12:14:48]MH_SAM_APDU [12:14:48]CAPDU: 80 13 01 00 [12:14:48]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [12:14:48]Write i2c OK [12:14:48]MH_I2C_Read... [12:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:48]Read from MH i2c: E2 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 0E 00 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7D [12:14:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:14:48]wFMCommunicate OK [12:14:48]SAM_PROTO_GetShiftState done [12:14:48]FM_GetShiftState done [12:14:48]opened in 1729642905 [12:14:48]opened+sec_in_day 1729729305 [12:14:48]quantity*price = 1000 [12:14:48]sum+1 = 1001 [12:14:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 162 23.10.2024 12:14 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75429 ФПД: 221195144307459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121448&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75429&fm=221195144307459&tin=02508201610067®Number=0000000000161154&sum=1000 0 [12:14:49]StoreToDocumentArchive [12:14:49]shift 173 fd 75429 [12:14:49]save to /storage/0173/doc_00075429 [12:14:49]save last doc name /storage/0173/doc_00075429 to /storage/kkm_last_doc_name [12:14:49]save OK [12:14:49]Clear old archive folders... [12:14:49]Remove dir /storage/0010 [12:14:49]opendir ok [12:14:49]file . [12:14:49]file .. [12:14:49]file doc_1729685637 [12:14:49]remove file /storage/0010/doc_1729685637 [12:14:49]remove dir /storage/0010 [12:14:49]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:14:49]tlvbuf is 00774630 [12:14:49]SAM_PROTO_ClearQueue [12:14:49]wFMCommunicate request_size=4 [12:14:49]MH_SAM_APDU [12:14:49]CAPDU: 80 09 00 00 [12:14:49]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [12:14:49]Write i2c OK [12:14:49]MH_I2C_Read... [12:14:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:49]Read from MH i2c: E2 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: E2 03 00 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [12:14:49]RAPDU: 90 00 [12:14:49]wFMCommunicate OK [12:14:49]SAM_PROTO_ClearQueue done [12:14:49]KKMCreateOFDPacket [12:14:49]OFDProtocolAddRootSTLVToBuf [12:14:49]FM_MakeSignedData [12:14:49]FM_MakeSignedData [12:14:49]SAM_PROTO_SignData [12:14:49]wFMCommunicate request_size=4 [12:14:49]MH_SAM_APDU [12:14:49]CAPDU: 80 0D 01 02 [12:14:49]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [12:14:49]Write i2c OK [12:14:49]MH_I2C_Read... [12:14:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:49]Read from MH i2c: E2 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: E2 03 00 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [12:14:49]RAPDU: 90 00 [12:14:49]wFMCommunicate OK [12:14:49]wFMCommunicate request_size=255 [12:14:49]MH_SAM_APDU [12:14:49]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 B8 E8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [12:14:49]Write to MH i2c: E2 02 01 AA 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 B8 E8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 C8 [12:14:49]Write i2c OK [12:14:49]MH_I2C_Read... [12:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:50]Read from MH i2c: E2 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 03 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [12:14:50]RAPDU: 90 00 [12:14:50]wFMCommunicate OK [12:14:50]wFMCommunicate request_size=32 [12:14:50]MH_SAM_APDU [12:14:50]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 A5 26 01 00 35 04 06 00 C9 2D 02 00 A3 03 [12:14:50]Write to MH i2c: E2 23 00 AB 00 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 A5 26 01 00 35 04 06 00 C9 2D 02 00 A3 03 00 00 E6 [12:14:50]Write i2c OK [12:14:50]MH_I2C_Read... [12:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:50]Read from MH i2c: E2 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 03 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [12:14:50]RAPDU: 90 00 [12:14:50]wFMCommunicate OK [12:14:50]wFMCommunicate request_size=4 [12:14:50]MH_SAM_APDU [12:14:50]CAPDU: 80 0D 03 02 [12:14:50]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [12:14:50]Write i2c OK [12:14:50]MH_I2C_Read... [12:14:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:50]Read from MH i2c: E2 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 0B 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 0B 00 AC 00 00 24 C4 A1 38 F6 81 2F 0A 90 00 99 [12:14:50]RAPDU: 24 C4 A1 38 F6 81 2F 0A 90 00 [12:14:50]wFMCommunicate OK [12:14:50]SAM_PROTO_SignData done [12:14:50]FM_MakeSignedData done [12:14:50]CreateOFDProtocolMessage [12:14:50]wFMCommunicate request_size=4 [12:14:50]MH_SAM_APDU [12:14:50]CAPDU: 80 11 00 00 [12:14:50]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [12:14:50]Write i2c OK [12:14:50]MH_I2C_Read... [12:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:50]Read from MH i2c: E2 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 17 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 74 [12:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:14:50]wFMCommunicate OK [12:14:50]CreateOFDProtocolMessage done [12:14:50]OFDSenderStorePacket 75429 [12:14:50]StoreOFDPacket docnum=75429 [12:14:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 58 3D 1D 01 C5 7A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 B8 E8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A5 26 01 00 35 04 06 00 C9 2D 02 00 A3 03 24 C4 A1 38 F6 81 2F 0A [12:14:50]CheckFolder [12:14:50]dirname=/storage/ofd_packets [12:14:50]CheckFolder done [12:14:50]ProducePacketName [12:14:50]name=ofd_packets/00075429 [12:14:50]NVStorageSaveData ofd_packets/00075429 [12:14:50]File name is /storage/ofd_packets/00075429 [12:14:50]Write 323 bytes [12:14:50]NVStorageSaveData done [12:14:50]OFDSenderStorePacket done [12:14:50]KKMCreateOFDPacket done [12:14:50]NVStorageSaveData kkm_last_timestamp [12:14:50]File name is /storage/kkm_last_timestamp [12:14:50]Write 4 bytes [12:14:50]NVStorageSaveData done [12:14:50]ExternCall_PrintAddStr [12:14:50]wPrintStart [12:14:50]Write to MH i2c: 01 00 00 AE 00 AE [12:14:50]Write i2c OK [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: 01 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: 01 07 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [12:14:50]RasterBufferAndPrint [12:14:50]line Счет N : (3)273236 [12:14:50]line ИНН: 02508201610067 [12:14:50]line Контрольно-Кассовый Чек [12:14:50]line ПРОДАЖА [12:14:50]line Товар: 46226624 [12:14:50]line Mentos ПВ Клубника 6*100*2 [12:14:50]line 1.000 * 10.00 [12:14:50]line = 10.00 [12:14:50]line НДС 12% НСП 1% [12:14:50]line > о реализуемом товаре [12:14:50]line ИТОГО: 10.00 [12:14:50]line НСП 1% : 0.09 [12:14:50]line НДС 12% : 1.06 [12:14:50]line Наличными: 10.00 [12:14:50]line Безнал.: 0.00 [12:14:50]line Место: АЗС № 133 "Партнер Нефть" [12:14:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:14:50]line СНО: Общий режим [12:14:50]line Чек 162 23.10.2024 12:14 [12:14:50]line Смена: 173 ФФД: 1.0 [12:14:50]line ЗНМ: 0300000020 [12:14:50]line РНМ: 0000000000161154 [12:14:50]line Версия ККМ: v1.0 [12:14:50]line ФМ: 0000000000963323 [12:14:50]line ФД: 75429 [12:14:50]line ФПД: 221195144307459 [12:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121448&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75429&fm=221195144307459&tin=02508201610067®Number=0000000000161154&sum=1000 [12:14:50]OFD Sender: Processing packet 75429 [packets to send 16, broken 15] [12:14:50]ProducePacketName [12:14:50]name=ofd_packets/00075429 [12:14:50]OFD Sender: To server: pG, [12:14:50]CommunicateWithHost lk.salyk.kg:30040 [12:14:50]ConnectInit lk.salyk.kg [12:14:50]line 0 [12:14:50]written 0, free lines is 4095 [12:14:50]Connected sock=10 [12:14:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 58 3D 1D 01 C5 7A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 B8 E8 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A5 26 01 00 35 04 06 00 C9 2D 02 00 A3 03 24 C4 A1 38 F6 81 2F 0A [12:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 21 80 47 00 E8 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 39 36 33 33 32 33 10 04 04 00 A5 26 01 00 F4 03 04 00 93 91 18 67 B6 04 01 00 00 E7 47 D8 7F 9E 1C D3 D9 [12:14:50]CommunicateWithHost err = 0 [12:14:50]CheckOFDResponse [12:14:50]1017 (14) - 77093643461234 [12:14:50]1041 (16) - 0000000000963323 [12:14:50]1040 (4) - 75429 [12:14:50]1012 (4) - 23.10.2024 06:02 [12:14:50]1206 (1) - 0 [12:14:50]OFD Sender: Remove packet 75429 [12:14:50]ProducePacketName [12:14:50]name=ofd_packets/00075429 [12:14:50]NVStorageDeleteData [12:14:51]Write to MH i2c: 01 00 00 D5 00 D5 [12:14:51]Write i2c OK [12:14:51]MH_I2C_Read... [12:14:51]Read from MH i2c: 01 [12:14:51]MH_I2C_Read... [12:14:51]Read from MH i2c: 01 07 00 [12:14:51]MH_I2C_Read... [12:14:51]Read from MH i2c: 01 07 00 D5 00 00 00 00 00 00 CB 0C B3 [12:14:51]RasterBufferAndPrint [12:14:51]line [12:14:51]line [12:14:51]line [12:14:51]line [12:14:51]line [12:14:51]written 0, free lines is 3278 [12:14:51]MH_Cut [12:14:51]Write to MH i2c: D1 01 00 DC 00 01 AE [12:14:51]Write i2c OK [12:14:51]MH_I2C_Read... [12:14:51]Read from MH i2c: D1 [12:14:51]MH_I2C_Read... [12:14:51]Read from MH i2c: D1 01 00 [12:14:51]MH_I2C_Read... [12:14:51]Read from MH i2c: D1 01 00 DC 00 00 AD [12:14:51]Write to MH i2c: 01 00 00 DD 00 DD [12:14:51]Write i2c OK [12:14:51]MH_I2C_Read... [12:14:51]OFD Sender: No OFD packet to send [12:14:52]*** Cut start [12:14:52]*** Partial cut [12:14:52]*** CUTSNS_PIN = 1 [12:14:52]*** CUTSNS_PIN = 0 [12:14:52]*** Brake cut motor [12:14:52]Read from MH i2c: 01 [12:14:52]MH_I2C_Read... [12:14:52]*** Stop cut motor [12:14:52]*** Cut end [12:14:52]Read from MH i2c: 01 07 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: 01 07 00 DD 00 00 00 00 00 00 FF 0F F2 [12:14:52]process_action close_receipt done [12:14:52]requested_data is exist [12:14:52]produce_requested_data [12:14:52]requested_item fm.sn is exist - process it [12:14:52]wFMCommunicate request_size=4 [12:14:52]MH_SAM_APDU [12:14:52]CAPDU: 80 11 00 00 [12:14:52]Write to MH i2c: E2 08 00 DE 00 80 11 00 00 00 00 00 00 58 [12:14:52]Write i2c OK [12:14:52]MH_I2C_Read... [12:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:52]Read from MH i2c: E2 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 17 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 17 00 DE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A5 [12:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:14:52]wFMCommunicate OK [12:14:52]requested_item fd.num is exist - process it [12:14:52]SAM_PROTO_GetFieldsCounters [12:14:52]wFMCommunicate request_size=4 [12:14:52]MH_SAM_APDU [12:14:52]CAPDU: 80 13 00 00 [12:14:52]Write to MH i2c: E2 08 00 DF 00 80 13 00 00 00 00 00 00 5B [12:14:52]Write i2c OK [12:14:52]MH_I2C_Read... [12:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:52]Read from MH i2c: E2 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 62 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 62 00 DF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A5 26 01 00 0E 04 04 00 AD 00 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 CE [12:14:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A5 26 01 00 0E 04 04 00 AD 00 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 [12:14:52]wFMCommunicate OK [12:14:52]SAM_PROTO_GetFieldsCounters done [12:14:52]requested_item shift.num is exist - process it [12:14:52]requested_item shift.opened is exist - process it [12:14:52]req_shift_opened [12:14:52]FM_GetShiftState [12:14:52]SAM_PROTO_GetShiftState [12:14:52]wFMCommunicate request_size=4 [12:14:52]MH_SAM_APDU [12:14:52]CAPDU: 80 13 01 00 [12:14:52]Write to MH i2c: E2 08 00 E0 00 80 13 01 00 00 00 00 00 5D [12:14:52]Write i2c OK [12:14:52]MH_I2C_Read... [12:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:52]Read from MH i2c: E2 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 0E 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 0E 00 E0 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C2 [12:14:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:14:52]wFMCommunicate OK [12:14:52]SAM_PROTO_GetShiftState done [12:14:52]FM_GetShiftState done [12:14:52]req_shift_opened done [12:14:52]requested_item shift.open_date is exist - process it [12:14:52]req_shift_open_date [12:14:52]req_shift_open_date done [12:14:52]produce_requested_data done [12:14:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75429,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:14:52]process_action_free close_receipt [12:14:52]json_value_free [12:14:52]json_value_free done [12:14:52]process_json_proto returns [12:14:52]Send response to host [12:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75429,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:14:52]free response buf [12:14:52]execute_script done [12:14:52]execute_script returns [12:14:52]free content buf [12:14:52]Sock 8.Close socket [12:14:52]Sock 8.Thread stoped [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]accept exits with 9 [12:19:06]New connection [12:19:06]New thread 3066465636 created [12:19:06]Thread 3066608996 joined [12:19:06]Waiting for new connection... [12:19:06] Sock 9.Parse request [12:19:06]Sock 9.Check first char [12:19:06]Sock 9.First char is OK [12:19:06]request: POST /json_proto HTTP/1.0 [12:19:06]Method: POST [12:19:06]URL: /json_proto [12:19:06]Method is POST - this is cgi request [12:19:06]url: /json_proto [12:19:06]query_string will be loaded in cgi processing [12:19:06]execute_cgi json_proto POST (null) [12:19:06]execute_cgi path=json_proto method=POST [12:19:06]POST find Content-Length [12:19:06]Host: 172.17.44.196:8080 [12:19:06]Content-Length: 680 [12:19:06]Content-Type: application/json [12:19:06] [12:19:06]POST finish read [12:19:06]Found Content-Length = 680 [12:19:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:19:06]execute_script... [12:19:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:19:06]POST & json_proto [12:19:06]process_json_proto [12:19:06]json parsed OK: [12:19:06]protocol is kg_v1.0 [12:19:06]action value=close_receipt [12:19:06]process_action close_receipt [12:19:06]cmd_close_receipt [12:19:06]MH_GetDate [12:19:06]Write to MH i2c: F0 00 00 E1 00 D0 [12:19:06]Write i2c OK [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: F0 [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: F0 09 00 [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: F0 09 00 E1 00 00 BA E9 18 67 E7 19 F8 65 58 [12:19:06]GetLastDocTimeStamp 1729685688 [12:19:06]current date 1729685946 [12:19:06]FM_GetShiftState [12:19:06]SAM_PROTO_GetShiftState [12:19:06]wFMCommunicate request_size=4 [12:19:06]MH_SAM_APDU [12:19:06]CAPDU: 80 13 01 00 [12:19:06]Write to MH i2c: E2 08 00 E2 00 80 13 01 00 00 00 00 00 5F [12:19:06]Write i2c OK [12:19:06]MH_I2C_Read... [12:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:06]Read from MH i2c: E2 [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: E2 0E 00 [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: E2 0E 00 E2 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C4 [12:19:06]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:19:06]wFMCommunicate OK [12:19:06]SAM_PROTO_GetShiftState done [12:19:06]FM_GetShiftState done [12:19:06]opened in 1729642905 [12:19:06]opened+sec_in_day 1729729305 [12:19:06]quantity*price = 100050 [12:19:06]sum+1 = 100052 [12:19:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 163 23.10.2024 12:19 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75430 ФПД: 233277302907225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121906&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75430&fm=233277302907225&tin=02508201610067®Number=0000000000161154&sum=100000 [12:19:07]StoreToDocumentArchive [12:19:07]shift 173 fd 75430 [12:19:07]save to /storage/0173/doc_00075430 [12:19:07]save last doc name /storage/0173/doc_00075430 to /storage/kkm_last_doc_name [12:19:07]save OK [12:19:07]Clear old archive folders... [12:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:19:07]tlvbuf is 0077E730 [12:19:07]SAM_PROTO_ClearQueue [12:19:07]wFMCommunicate request_size=4 [12:19:07]MH_SAM_APDU [12:19:07]CAPDU: 80 09 00 00 [12:19:07]Write to MH i2c: E2 08 00 EF 00 80 09 00 00 00 00 00 00 61 [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:07]Read from MH i2c: E2 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 03 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 03 00 EF 00 00 90 00 63 [12:19:07]RAPDU: 90 00 [12:19:07]wFMCommunicate OK [12:19:07]SAM_PROTO_ClearQueue done [12:19:07]KKMCreateOFDPacket [12:19:07]OFDProtocolAddRootSTLVToBuf [12:19:07]FM_MakeSignedData [12:19:07]FM_MakeSignedData [12:19:07]SAM_PROTO_SignData [12:19:07]wFMCommunicate request_size=4 [12:19:07]MH_SAM_APDU [12:19:07]CAPDU: 80 0D 01 02 [12:19:07]Write to MH i2c: E2 08 00 F0 00 80 0D 01 02 00 00 00 00 69 [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:07]Read from MH i2c: E2 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 03 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 03 00 F0 00 00 90 00 64 [12:19:07]RAPDU: 90 00 [12:19:07]wFMCommunicate OK [12:19:07]wFMCommunicate request_size=255 [12:19:07]MH_SAM_APDU [12:19: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BA E9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A6 26 01 00 35 04 06 00 D4 2A 1A C6 [12:19:07]Write to MH i2c: E2 02 01 F1 00 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BA E9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A6 26 01 00 35 04 06 00 D4 2A 1A C6 00 00 FE [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:07]Read from MH i2c: E2 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 03 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 03 00 F1 00 00 90 00 65 [12:19:07]RAPDU: 90 00 [12:19:07]wFMCommunicate OK [12:19:07]wFMCommunicate request_size=7 [12:19:07]MH_SAM_APDU [12:19:07]CAPDU: 80 0D 02 02 02 21 59 [12:19:07]Write to MH i2c: E2 0A 00 F2 00 80 0D 02 02 02 00 21 59 00 00 EA [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:07]Read from MH i2c: E2 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 03 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [12:19:07]RAPDU: 90 00 [12:19:07]wFMCommunicate OK [12:19:07]wFMCommunicate request_size=4 [12:19:07]MH_SAM_APDU [12:19:07]CAPDU: 80 0D 03 02 [12:19:07]Write to MH i2c: E2 08 00 F3 00 80 0D 03 02 00 00 00 00 6E [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:07]Read from MH i2c: E2 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 0B 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 0B 00 F3 00 00 31 57 C5 DC 09 0C 8D 74 90 00 AE [12:19:07]RAPDU: 31 57 C5 DC 09 0C 8D 74 90 00 [12:19:07]wFMCommunicate OK [12:19:07]SAM_PROTO_SignData done [12:19:07]FM_MakeSignedData done [12:19:07]CreateOFDProtocolMessage [12:19:07]wFMCommunicate request_size=4 [12:19:07]MH_SAM_APDU [12:19:07]CAPDU: 80 11 00 00 [12:19:07]Write to MH i2c: E2 08 00 F4 00 80 11 00 00 00 00 00 00 6E [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:07]Read from MH i2c: E2 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 17 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: E2 17 00 F4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BB [12:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:19:07]wFMCommunicate OK [12:19:07]CreateOFDProtocolMessage done [12:19:07]OFDSenderStorePacket 75430 [12:19:07]StoreOFDPacket docnum=75430 [12:19:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 84 83 04 01 09 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BA E9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A6 26 01 00 35 04 06 00 D4 2A 1A C6 21 59 31 57 C5 DC 09 0C 8D 74 [12:19:07]CheckFolder [12:19:07]dirname=/storage/ofd_packets [12:19:07]CheckFolder done [12:19:07]ProducePacketName [12:19:07]name=ofd_packets/00075430 [12:19:07]NVStorageSaveData ofd_packets/00075430 [12:19:07]File name is /storage/ofd_packets/00075430 [12:19:07]Write 298 bytes [12:19:07]NVStorageSaveData done [12:19:07]OFDSenderStorePacket done [12:19:07]KKMCreateOFDPacket done [12:19:07]NVStorageSaveData kkm_last_timestamp [12:19:07]File name is /storage/kkm_last_timestamp [12:19:07]Write 4 bytes [12:19:07]NVStorageSaveData done [12:19:07]ExternCall_PrintAddStr [12:19:07]wPrintStart [12:19:07]Write to MH i2c: 01 00 00 F5 00 F5 [12:19:07]Write i2c OK [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: 01 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: 01 07 00 [12:19:07]MH_I2C_Read... [12:19:07]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [12:19:07]RasterBufferAndPrint [12:19:07]line Счет N : (1)1965463 [12:19:07]line ИНН: 02508201610067 [12:19:07]line Контрольно-Кассовый Чек [12:19:07]line ПРОДАЖА [12:19:07]line ТРК (МРК, ГНК) : 11 [12:19:07]line Товар: 2710194210 [12:19:07]line ДТ-К-5 [12:19:07]line 13.130 * 76.20 [12:19:07]line = 1000.51 [12:19:07]line НДС 12% НСП 1% [12:19:07]line > о реализуемом товаре [12:19:07]line ОКРУГЛЕНИЕ: -0.51 [12:19:07]line ИТОГО: 1000.00 [12:19:07]line Внесено: 1000.00 [12:19:07]line СДАЧА: 0.00 [12:19:07]line НСП 1% : 8.85 [12:19:07]line НДС 12% : 106.25 [12:19:07]line Наличными: 1000.00 [12:19:07]line Безнал.: 0.00 [12:19:07]line Место: АЗС № 133 "Партнер Нефть" [12:19:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:19:07]line СНО: Общий режим [12:19:07]line Чек 163 23.10.2024 12:19 [12:19:07]line Смена: 173 ФФД: 1.0 [12:19:07]line ЗНМ: 0300000020 [12:19:07]line РНМ: 0000000000161154 [12:19:07]line Версия ККМ: v1.0 [12:19:07]line ФМ: 0000000000963323 [12:19:07]line ФД: 75430 [12:19:07]line ФПД: 233277302907225 [12:19:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121906&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75430&fm=233277302907225&tin=02508201610067®Number=0000000000161154&sum=100000 [12:19:08]OFD Sender: Processing packet 75430 [packets to send 16, broken 15] [12:19:08]ProducePacketName [12:19:08]name=ofd_packets/00075430 [12:19:08]OFD Sender: To server: pG, [12:19:08]CommunicateWithHost lk.salyk.kg:30040 [12:19:08]ConnectInit lk.salyk.kg [12:19:08]written 0, free lines is 4095 [12:19:08]Connected sock=10 [12:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 84 83 04 01 09 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BA E9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A6 26 01 00 35 04 06 00 D4 2A 1A C6 21 59 31 57 C5 DC 09 0C 8D 74 [12:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7F 56 47 00 44 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 39 36 33 33 32 33 10 04 04 00 A6 26 01 00 F4 03 04 00 95 92 18 67 B6 04 01 00 00 B9 F3 D3 2D 1B A3 FF E7 [12:19:08]CommunicateWithHost err = 0 [12:19:08]CheckOFDResponse [12:19:08]1017 (14) - 77093643461234 [12:19:08]1041 (16) - 0000000000963323 [12:19:08]1040 (4) - 75430 [12:19:08]1012 (4) - 23.10.2024 06:07 [12:19:08]1206 (1) - 0 [12:19:08]OFD Sender: Remove packet 75430 [12:19:08]ProducePacketName [12:19:08]name=ofd_packets/00075430 [12:19:08]NVStorageDeleteData [12:19:08]Write to MH i2c: 01 00 00 1F 01 20 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: 01 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: 01 07 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: 01 07 00 1F 01 00 00 00 00 00 95 0C C8 [12:19:08]RasterBufferAndPrint [12:19:08]line [12:19:08]line [12:19:08]line [12:19:08]line [12:19:08]line [12:19:08]written 0, free lines is 3224 [12:19:08]MH_Cut [12:19:08]Write to MH i2c: D1 01 00 26 01 01 F9 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: D1 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: D1 01 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: D1 01 00 26 01 00 F8 [12:19:08]Write to MH i2c: 01 00 00 27 01 28 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:09]OFD Sender: No OFD packet to send [12:19:09]*** Cut start [12:19:09]*** Partial cut [12:19:09]*** CUTSNS_PIN = 1 [12:19:09]*** CUTSNS_PIN = 0 [12:19:09]*** Brake cut motor [12:19:10]Read from MH i2c: 01 [12:19:10]MH_I2C_Read... [12:19:10]*** Stop cut motor [12:19:10]*** Cut end [12:19:10]Read from MH i2c: 01 07 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: 01 07 00 27 01 00 00 00 00 00 FF 0F 3D [12:19:10]process_action close_receipt done [12:19:10]requested_data is exist [12:19:10]produce_requested_data [12:19:10]requested_item fm.sn is exist - process it [12:19:10]wFMCommunicate request_size=4 [12:19:10]MH_SAM_APDU [12:19:10]CAPDU: 80 11 00 00 [12:19:10]Write to MH i2c: E2 08 00 28 01 80 11 00 00 00 00 00 00 A3 [12:19:10]Write i2c OK [12:19:10]MH_I2C_Read... [12:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:10]Read from MH i2c: E2 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 17 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 17 00 28 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F0 [12:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:19:10]wFMCommunicate OK [12:19:10]requested_item fd.num is exist - process it [12:19:10]SAM_PROTO_GetFieldsCounters [12:19:10]wFMCommunicate request_size=4 [12:19:10]MH_SAM_APDU [12:19:10]CAPDU: 80 13 00 00 [12:19:10]Write to MH i2c: E2 08 00 29 01 80 13 00 00 00 00 00 00 A6 [12:19:10]Write i2c OK [12:19:10]MH_I2C_Read... [12:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:10]Read from MH i2c: E2 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 62 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 62 00 29 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A6 26 01 00 0E 04 04 00 AD 00 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 1D [12:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A6 26 01 00 0E 04 04 00 AD 00 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 [12:19:10]wFMCommunicate OK [12:19:10]SAM_PROTO_GetFieldsCounters done [12:19:10]requested_item shift.num is exist - process it [12:19:10]requested_item shift.opened is exist - process it [12:19:10]req_shift_opened [12:19:10]FM_GetShiftState [12:19:10]SAM_PROTO_GetShiftState [12:19:10]wFMCommunicate request_size=4 [12:19:10]MH_SAM_APDU [12:19:10]CAPDU: 80 13 01 00 [12:19:10]Write to MH i2c: E2 08 00 2A 01 80 13 01 00 00 00 00 00 A8 [12:19:10]Write i2c OK [12:19:10]MH_I2C_Read... [12:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:10]Read from MH i2c: E2 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 0E 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 0E 00 2A 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 0D [12:19:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:19:10]wFMCommunicate OK [12:19:10]SAM_PROTO_GetShiftState done [12:19:10]FM_GetShiftState done [12:19:10]req_shift_opened done [12:19:10]requested_item shift.open_date is exist - process it [12:19:10]req_shift_open_date [12:19:10]req_shift_open_date done [12:19:10]produce_requested_data done [12:19:10]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75430,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:19:10]process_action_free close_receipt [12:19:10]json_value_free [12:19:10]json_value_free done [12:19:10]process_json_proto returns [12:19:10]Send response to host [12:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75430,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:19:10]free response buf [12:19:10]execute_script done [12:19:10]execute_script returns [12:19:10]free content buf [12:19:10]Sock 9.Close socket [12:19:10]Sock 9.Thread stoped [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:13]accept exits with 8 [12:20:13]New connection [12:20:13]New thread 3066608996 created [12:20:13]Thread 3066465636 joined [12:20:13]Waiting for new connection... [12:20:13] Sock 8.Parse request [12:20:13]Sock 8.Check first char [12:20:13]Sock 8.First char is OK [12:20:13]request: POST /json_proto HTTP/1.0 [12:20:13]Method: POST [12:20:13]URL: /json_proto [12:20:13]Method is POST - this is cgi request [12:20:13]url: /json_proto [12:20:13]query_string will be loaded in cgi processing [12:20:13]execute_cgi json_proto POST (null) [12:20:13]execute_cgi path=json_proto method=POST [12:20:13]POST find Content-Length [12:20:13]Host: 172.17.44.196:8080 [12:20:13]Content-Length: 678 [12:20:13]Content-Type: application/json [12:20:13] [12:20:13]POST finish read [12:20:13]Found Content-Length = 678 [12:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:13]execute_script... [12:20: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)1965465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:13]POST & json_proto [12:20:13]process_json_proto [12:20:13]json parsed OK: [12:20:13]protocol is kg_v1.0 [12:20:13]action value=close_receipt [12:20:13]process_action close_receipt [12:20:13]cmd_close_receipt [12:20:13]MH_GetDate [12:20:13]Write to MH i2c: F0 00 00 2B 01 1B [12:20:13]Write i2c OK [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: F0 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: F0 09 00 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: F0 09 00 2B 01 00 FE E9 18 67 E7 19 F8 65 E7 [12:20:13]GetLastDocTimeStamp 1729685946 [12:20:13]current date 1729686014 [12:20:13]FM_GetShiftState [12:20:13]SAM_PROTO_GetShiftState [12:20:13]wFMCommunicate request_size=4 [12:20:13]MH_SAM_APDU [12:20:13]CAPDU: 80 13 01 00 [12:20:13]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [12:20:13]Write i2c OK [12:20:13]MH_I2C_Read... [12:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:13]Read from MH i2c: E2 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: E2 0E 00 [12:20:13]MH_I2C_Read... [12:20:13]Read from MH i2c: E2 0E 00 2C 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 0F [12:20:13]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:20:13]wFMCommunicate OK [12:20:13]SAM_PROTO_GetShiftState done [12:20:13]FM_GetShiftState done [12:20:13]opened in 1729642905 [12:20:13]opened+sec_in_day 1729729305 [12:20:13]quantity*price = 40006 [12:20:13]sum+1 = 40007 [12:20:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 164 23.10.2024 12:20 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75431 ФПД: 46591111423526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122014&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75431&fm=46591111423526&tin=02508201610067®Number=0000000000161154&sum=40000 [12:20:15]StoreToDocumentArchive [12:20:15]shift 173 fd 75431 [12:20:15]save to /storage/0173/doc_00075431 [12:20:15]save last doc name /storage/0173/doc_00075431 to /storage/kkm_last_doc_name [12:20:15]save OK [12:20:15]Clear old archive folders... [12:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:15]tlvbuf is 00778440 [12:20:15]SAM_PROTO_ClearQueue [12:20:15]wFMCommunicate request_size=4 [12:20:15]MH_SAM_APDU [12:20:15]CAPDU: 80 09 00 00 [12:20:15]Write to MH i2c: E2 08 00 39 01 80 09 00 00 00 00 00 00 AC [12:20:15]Write i2c OK [12:20:15]MH_I2C_Read... [12:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:15]Read from MH i2c: E2 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 03 00 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 03 00 39 01 00 90 00 AE [12:20:15]RAPDU: 90 00 [12:20:15]wFMCommunicate OK [12:20:15]SAM_PROTO_ClearQueue done [12:20:15]KKMCreateOFDPacket [12:20:15]OFDProtocolAddRootSTLVToBuf [12:20:15]FM_MakeSignedData [12:20:15]FM_MakeSignedData [12:20:15]SAM_PROTO_SignData [12:20:15]wFMCommunicate request_size=4 [12:20:15]MH_SAM_APDU [12:20:15]CAPDU: 80 0D 01 02 [12:20:15]Write to MH i2c: E2 08 00 3A 01 80 0D 01 02 00 00 00 00 B4 [12:20:15]Write i2c OK [12:20:15]MH_I2C_Read... [12:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:15]Read from MH i2c: E2 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 03 00 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 03 00 3A 01 00 90 00 AF [12:20:15]RAPDU: 90 00 [12:20:15]wFMCommunicate OK [12:20:15]wFMCommunicate request_size=255 [12:20:15]MH_SAM_APDU [12:20: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 A4 00 00 00 F4 03 04 00 FE E9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A7 26 01 00 35 04 06 00 2A [12:20:15]Write to MH i2c: E2 02 01 3B 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 A4 00 00 00 F4 03 04 00 FE E9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A7 26 01 00 35 04 06 00 2A 00 00 B4 [12:20:15]Write i2c OK [12:20:15]MH_I2C_Read... [12:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:15]Read from MH i2c: E2 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 03 00 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [12:20:15]RAPDU: 90 00 [12:20:15]wFMCommunicate OK [12:20:15]wFMCommunicate request_size=10 [12:20:15]MH_SAM_APDU [12:20:15]CAPDU: 80 0D 02 02 05 5F D6 A5 66 26 [12:20:15]Write to MH i2c: E2 0D 00 3C 01 80 0D 02 02 05 00 5F D6 A5 66 26 00 00 27 [12:20:15]Write i2c OK [12:20:15]MH_I2C_Read... [12:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:15]Read from MH i2c: E2 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 03 00 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [12:20:15]RAPDU: 90 00 [12:20:15]wFMCommunicate OK [12:20:15]wFMCommunicate request_size=4 [12:20:15]MH_SAM_APDU [12:20:15]CAPDU: 80 0D 03 02 [12:20:15]Write to MH i2c: E2 08 00 3D 01 80 0D 03 02 00 00 00 00 B9 [12:20:15]Write i2c OK [12:20:15]MH_I2C_Read... [12:20:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:15]Read from MH i2c: E2 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 0B 00 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 0B 00 3D 01 00 50 AB C3 ED C7 19 31 D9 90 00 4F [12:20:15]RAPDU: 50 AB C3 ED C7 19 31 D9 90 00 [12:20:15]wFMCommunicate OK [12:20:15]SAM_PROTO_SignData done [12:20:15]FM_MakeSignedData done [12:20:15]CreateOFDProtocolMessage [12:20:15]wFMCommunicate request_size=4 [12:20:15]MH_SAM_APDU [12:20:15]CAPDU: 80 11 00 00 [12:20:15]Write to MH i2c: E2 08 00 3E 01 80 11 00 00 00 00 00 00 B9 [12:20:15]Write i2c OK [12:20:15]MH_I2C_Read... [12:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:15]Read from MH i2c: E2 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 17 00 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: E2 17 00 3E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 06 [12:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:20:15]wFMCommunicate OK [12:20:15]CreateOFDProtocolMessage done [12:20:15]OFDSenderStorePacket 75431 [12:20:15]StoreOFDPacket docnum=75431 [12:20:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 1A 3C 07 01 D5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 A4 00 00 00 F4 03 04 00 FE E9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A7 26 01 00 35 04 06 00 2A 5F D6 A5 66 26 50 AB C3 ED C7 19 31 D9 [12:20:15]CheckFolder [12:20:15]dirname=/storage/ofd_packets [12:20:15]CheckFolder done [12:20:15]ProducePacketName [12:20:15]name=ofd_packets/00075431 [12:20:15]NVStorageSaveData ofd_packets/00075431 [12:20:15]File name is /storage/ofd_packets/00075431 [12:20:15]Write 301 bytes [12:20:15]NVStorageSaveData done [12:20:15]OFDSenderStorePacket done [12:20:15]KKMCreateOFDPacket done [12:20:15]NVStorageSaveData kkm_last_timestamp [12:20:15]File name is /storage/kkm_last_timestamp [12:20:15]Write 4 bytes [12:20:15]NVStorageSaveData done [12:20:15]ExternCall_PrintAddStr [12:20:15]wPrintStart [12:20:15]Write to MH i2c: 01 00 00 3F 01 40 [12:20:15]Write i2c OK [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: 01 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: 01 07 00 [12:20:15]MH_I2C_Read... [12:20:15]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 FF 0F 55 [12:20:15]RasterBufferAndPrint [12:20:15]line Счет N : (1)1965465 [12:20:15]line ИНН: 02508201610067 [12:20:15]line Контрольно-Кассовый Чек [12:20:15]line ПРОДАЖА [12:20:15]line ТРК (МРК, ГНК) : 43 [12:20:15]line Товар: 2710124130 [12:20:15]line Аи-92-К-5 [12:20:15]line 5.980 * 66.90 [12:20:15]line = 400.06 [12:20:15]line НДС 12% НСП 1% [12:20:15]line > о реализуемом товаре [12:20:15]line ОКРУГЛЕНИЕ: -0.06 [12:20:15]line ИТОГО: 400.00 [12:20:15]line Внесено: 400.00 [12:20:15]line СДАЧА: 0.00 [12:20:15]line НСП 1% : 3.54 [12:20:15]line НДС 12% : 42.48 [12:20:15]line Наличными: 400.00 [12:20:15]line Безнал.: 0.00 [12:20:15]line Место: АЗС № 133 "Партнер Нефть" [12:20:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:20:15]line СНО: Общий режим [12:20:15]line Чек 164 23.10.2024 12:20 [12:20:15]line Смена: 173 ФФД: 1.0 [12:20:15]line ЗНМ: 0300000020 [12:20:15]line РНМ: 0000000000161154 [12:20:15]line Версия ККМ: v1.0 [12:20:15]line ФМ: 0000000000963323 [12:20:15]line ФД: 75431 [12:20:15]line ФПД: 46591111423526 [12:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122014&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75431&fm=46591111423526&tin=02508201610067®Number=0000000000161154&sum=40000 [12:20:15]OFD Sender: Processing packet 75431 [packets to send 16, broken 15] [12:20:15]ProducePacketName [12:20:15]name=ofd_packets/00075431 [12:20:15]OFD Sender: To server: pG, [12:20:15]CommunicateWithHost lk.salyk.kg:30040 [12:20:15]ConnectInit lk.salyk.kg [12:20:15]written 0, free lines is 4095 [12:20:15]Connected sock=10 [12:20:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 1A 3C 07 01 D5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 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 A4 00 00 00 F4 03 04 00 FE E9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A7 26 01 00 35 04 06 00 2A 5F D6 A5 66 26 50 AB C3 ED C7 19 31 D9 [12:20:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 99 04 47 00 EE 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A7 26 01 00 F4 03 04 00 D9 92 18 67 B6 04 01 00 00 F3 E4 B3 97 06 A2 15 3B [12:20:16]CommunicateWithHost err = 0 [12:20:16]CheckOFDResponse [12:20:16]1017 (14) - 77093643461234 [12:20:16]1041 (16) - 0000000000963323 [12:20:16]1040 (4) - 75431 [12:20:16]1012 (4) - 23.10.2024 06:08 [12:20:16]1206 (1) - 0 [12:20:16]OFD Sender: Remove packet 75431 [12:20:16]ProducePacketName [12:20:16]name=ofd_packets/00075431 [12:20:16]NVStorageDeleteData [12:20:16]Write to MH i2c: 01 00 00 69 01 6A [12:20:16]Write i2c OK [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: 01 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: 01 07 00 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 A5 0C 22 [12:20:16]RasterBufferAndPrint [12:20:16]line [12:20:16]line [12:20:16]line [12:20:16]line [12:20:16]line [12:20:16]written 0, free lines is 3241 [12:20:16]MH_Cut [12:20:16]Write to MH i2c: D1 01 00 70 01 01 43 [12:20:16]Write i2c OK [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: D1 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: D1 01 00 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: D1 01 00 70 01 00 42 [12:20:16]Write to MH i2c: 01 00 00 71 01 72 [12:20:16]Write i2c OK [12:20:16]MH_I2C_Read... [12:20:16]OFD Sender: No OFD packet to send [12:20:17]*** Cut start [12:20:17]*** Partial cut [12:20:17]*** CUTSNS_PIN = 1 [12:20:17]*** CUTSNS_PIN = 0 [12:20:17]*** Brake cut motor [12:20:17]Read from MH i2c: 01 [12:20:17]MH_I2C_Read... [12:20:17]*** Stop cut motor [12:20:17]*** Cut end [12:20:17]Read from MH i2c: 01 07 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 FF 0F 87 [12:20:17]process_action close_receipt done [12:20:17]requested_data is exist [12:20:17]produce_requested_data [12:20:17]requested_item fm.sn is exist - process it [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 11 00 00 [12:20:17]Write to MH i2c: E2 08 00 72 01 80 11 00 00 00 00 00 00 ED [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 17 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 17 00 72 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3A [12:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:20:17]wFMCommunicate OK [12:20:17]requested_item fd.num is exist - process it [12:20:17]SAM_PROTO_GetFieldsCounters [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 13 00 00 [12:20:17]Write to MH i2c: E2 08 00 73 01 80 13 00 00 00 00 00 00 F0 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:18]Read from MH i2c: E2 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: E2 62 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: E2 62 00 73 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A7 26 01 00 0E 04 04 00 AD 00 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 6B [12:20:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A7 26 01 00 0E 04 04 00 AD 00 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 [12:20:18]wFMCommunicate OK [12:20:18]SAM_PROTO_GetFieldsCounters done [12:20:18]requested_item shift.num is exist - process it [12:20:18]requested_item shift.opened is exist - process it [12:20:18]req_shift_opened [12:20:18]FM_GetShiftState [12:20:18]SAM_PROTO_GetShiftState [12:20:18]wFMCommunicate request_size=4 [12:20:18]MH_SAM_APDU [12:20:18]CAPDU: 80 13 01 00 [12:20:18]Write to MH i2c: E2 08 00 74 01 80 13 01 00 00 00 00 00 F2 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:18]Read from MH i2c: E2 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: E2 0E 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: E2 0E 00 74 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 57 [12:20:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:20:18]wFMCommunicate OK [12:20:18]SAM_PROTO_GetShiftState done [12:20:18]FM_GetShiftState done [12:20:18]req_shift_opened done [12:20:18]requested_item shift.open_date is exist - process it [12:20:18]req_shift_open_date [12:20:18]req_shift_open_date done [12:20:18]produce_requested_data done [12:20:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75431,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:20:18]process_action_free close_receipt [12:20:18]json_value_free [12:20:18]json_value_free done [12:20:18]process_json_proto returns [12:20:18]Send response to host [12:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75431,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:20:18]free response buf [12:20:18]execute_script done [12:20:18]execute_script returns [12:20:18]free content buf [12:20:18]Sock 8.Close socket [12:20:18]Sock 8.Thread stoped [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:27]accept exits with 9 [12:21:27]New connection [12:21:27]New thread 3066465636 created [12:21:27]Thread 3066608996 joined [12:21:27]Waiting for new connection... [12:21:27] Sock 9.Parse request [12:21:27]Sock 9.Check first char [12:21:27]Sock 9.First char is OK [12:21:27]request: POST /json_proto HTTP/1.0 [12:21:27]Method: POST [12:21:27]URL: /json_proto [12:21:27]Method is POST - this is cgi request [12:21:27]url: /json_proto [12:21:27]query_string will be loaded in cgi processing [12:21:27]execute_cgi json_proto POST (null) [12:21:27]execute_cgi path=json_proto method=POST [12:21:27]POST find Content-Length [12:21:27]Host: 172.17.44.196:8080 [12:21:27]Content-Length: 677 [12:21:27]Content-Type: application/json [12:21:27] [12:21:27]POST finish read [12:21:27]Found Content-Length = 677 [12:21:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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:21:27]execute_script... [12:21: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)1965464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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:21:27]POST & json_proto [12:21:27]process_json_proto [12:21:27]json parsed OK: [12:21:27]protocol is kg_v1.0 [12:21:27]action value=close_receipt [12:21:27]process_action close_receipt [12:21:27]cmd_close_receipt [12:21:27]MH_GetDate [12:21:27]Write to MH i2c: F0 00 00 75 01 65 [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: F0 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: F0 09 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: F0 09 00 75 01 00 47 EA 18 67 E7 19 F8 65 7B [12:21:27]GetLastDocTimeStamp 1729686014 [12:21:27]current date 1729686087 [12:21:27]FM_GetShiftState [12:21:27]SAM_PROTO_GetShiftState [12:21:27]wFMCommunicate request_size=4 [12:21:27]MH_SAM_APDU [12:21:27]CAPDU: 80 13 01 00 [12:21:27]Write to MH i2c: E2 08 00 76 01 80 13 01 00 00 00 00 00 F4 [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 0E 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 0E 00 76 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 59 [12:21:27]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:21:27]wFMCommunicate OK [12:21:27]SAM_PROTO_GetShiftState done [12:21:27]FM_GetShiftState done [12:21:27]opened in 1729642905 [12:21:27]opened+sec_in_day 1729729305 [12:21:27]quantity*price = 150037 [12:21:27]sum+1 = 150038 [12:21:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 165 23.10.2024 12:21 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75432 ФПД: 67444511376977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122127&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75432&fm=67444511376977&tin=02508201610067®Number=0000000000161154&sum=150000 [12:21:28]StoreToDocumentArchive [12:21:28]shift 173 fd 75432 [12:21:28]save to /storage/0173/doc_00075432 [12:21:28]save last doc name /storage/0173/doc_00075432 to /storage/kkm_last_doc_name [12:21:28]save OK [12:21:28]Clear old archive folders... [12:21:28]ProcessDocumentItem done err = 0, tmpTLVsize=245 [12:21:28]tlvbuf is 0078D750 [12:21:28]SAM_PROTO_ClearQueue [12:21:28]wFMCommunicate request_size=4 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 09 00 00 [12:21:28]Write to MH i2c: E2 08 00 83 01 80 09 00 00 00 00 00 00 F6 [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 83 01 00 90 00 F8 [12:21:28]RAPDU: 90 00 [12:21:28]wFMCommunicate OK [12:21:28]SAM_PROTO_ClearQueue done [12:21:28]KKMCreateOFDPacket [12:21:28]OFDProtocolAddRootSTLVToBuf [12:21:28]FM_MakeSignedData [12:21:28]FM_MakeSignedData [12:21:28]SAM_PROTO_SignData [12:21:28]wFMCommunicate request_size=4 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 0D 01 02 [12:21:28]Write to MH i2c: E2 08 00 84 01 80 0D 01 02 00 00 00 00 FE [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 03 00 84 01 00 90 00 F9 [12:21:28]RAPDU: 90 00 [12:21:28]wFMCommunicate OK [12:21:28]wFMCommunicate request_size=254 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 47 EA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A8 26 01 00 35 04 06 00 3D 57 26 24 86 51 [12:21:28]Write to MH i2c: E2 01 01 85 01 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 47 EA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A8 26 01 00 35 04 06 00 3D 57 26 24 86 51 00 00 2F [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:29]Read from MH i2c: E2 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: E2 03 00 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: E2 03 00 85 01 00 90 00 FA [12:21:29]RAPDU: 90 00 [12:21:29]wFMCommunicate OK [12:21:29]wFMCommunicate request_size=4 [12:21:29]MH_SAM_APDU [12:21:29]CAPDU: 80 0D 03 02 [12:21:29]Write to MH i2c: E2 08 00 86 01 80 0D 03 02 00 00 00 00 02 [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:29]Read from MH i2c: E2 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: E2 0B 00 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: E2 0B 00 86 01 00 54 D7 F2 1E 73 55 20 BC 90 00 E2 [12:21:29]RAPDU: 54 D7 F2 1E 73 55 20 BC 90 00 [12:21:29]wFMCommunicate OK [12:21:29]SAM_PROTO_SignData done [12:21:29]FM_MakeSignedData done [12:21:29]CreateOFDProtocolMessage [12:21:29]wFMCommunicate request_size=4 [12:21:29]MH_SAM_APDU [12:21:29]CAPDU: 80 11 00 00 [12:21:29]Write to MH i2c: E2 08 00 87 01 80 11 00 00 00 00 00 00 02 [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:29]Read from MH i2c: E2 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: E2 17 00 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: E2 17 00 87 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4F [12:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:21:29]wFMCommunicate OK [12:21:29]CreateOFDProtocolMessage done [12:21:29]OFDSenderStorePacket 75432 [12:21:29]StoreOFDPacket docnum=75432 [12:21:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 F7 82 01 01 C7 5E 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 47 EA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A8 26 01 00 35 04 06 00 3D 57 26 24 86 51 54 D7 F2 1E 73 55 20 BC [12:21:29]CheckFolder [12:21:29]dirname=/storage/ofd_packets [12:21:29]CheckFolder done [12:21:29]ProducePacketName [12:21:29]name=ofd_packets/00075432 [12:21:29]NVStorageSaveData ofd_packets/00075432 [12:21:29]File name is /storage/ofd_packets/00075432 [12:21:29]Write 295 bytes [12:21:29]NVStorageSaveData done [12:21:29]OFDSenderStorePacket done [12:21:29]KKMCreateOFDPacket done [12:21:29]NVStorageSaveData kkm_last_timestamp [12:21:29]File name is /storage/kkm_last_timestamp [12:21:29]Write 4 bytes [12:21:29]NVStorageSaveData done [12:21:29]ExternCall_PrintAddStr [12:21:29]wPrintStart [12:21:29]Write to MH i2c: 01 00 00 88 01 89 [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 07 00 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 FF 0F 9E [12:21:29]RasterBufferAndPrint [12:21:29]line Счет N : (1)1965464 [12:21:29]line ИНН: 02508201610067 [12:21:29]line Контрольно-Кассовый Чек [12:21:29]line ПРОДАЖА [12:21:29]line ТРК (МРК, ГНК) : 71 [12:21:29]line Товар: 2711129700 [12:21:29]line ГАЗ [12:21:29]line 38.570 * 38.90 [12:21:29]line = 1500.37 [12:21:29]line НДС 12% НСП 1% [12:21:29]line > о реализуемом товаре [12:21:29]line ОКРУГЛЕНИЕ: -0.37 [12:21:29]line ИТОГО: 1500.00 [12:21:29]line Внесено: 1500.00 [12:21:29]line СДАЧА: 0.00 [12:21:29]line НСП 1% : 13.28 [12:21:29]line НДС 12% : 159.33 [12:21:29]line Наличными: 1500.00 [12:21:29]line Безнал.: 0.00 [12:21:29]line Место: АЗС № 133 "Партнер Нефть" [12:21:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:21:29]line СНО: Общий режим [12:21:29]line Чек 165 23.10.2024 12:21 [12:21:29]line Смена: 173 ФФД: 1.0 [12:21:29]line ЗНМ: 0300000020 [12:21:29]line РНМ: 0000000000161154 [12:21:29]line Версия ККМ: v1.0 [12:21:29]line ФМ: 0000000000963323 [12:21:29]line ФД: 75432 [12:21:29]line ФПД: 67444511376977 [12:21:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122127&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75432&fm=67444511376977&tin=02508201610067®Number=0000000000161154&sum=150000 [12:21:29]OFD Sender: Processing packet 75432 [packets to send 16, broken 15] [12:21:29]ProducePacketName [12:21:29]name=ofd_packets/00075432 [12:21:29]OFD Sender: To server: pG, [12:21:29]CommunicateWithHost lk.salyk.kg:30040 [12:21:29]ConnectInit lk.salyk.kg [12:21:29]written 0, free lines is 4095 [12:21:29]Connected sock=10 [12:21:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 F7 82 01 01 C7 5E 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 47 EA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A8 26 01 00 35 04 06 00 3D 57 26 24 86 51 54 D7 F2 1E 73 55 20 BC [12:21:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2E CD 47 00 60 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A8 26 01 00 F4 03 04 00 22 93 18 67 B6 04 01 00 00 D7 16 DB B3 3F 89 DD 60 [12:21:29]CommunicateWithHost err = 0 [12:21:29]CheckOFDResponse [12:21:29]1017 (14) - 77093643461234 [12:21:29]1041 (16) - 0000000000963323 [12:21:29]1040 (4) - 75432 [12:21:29]1012 (4) - 23.10.2024 06:09 [12:21:29]1206 (1) - 0 [12:21:29]OFD Sender: Remove packet 75432 [12:21:29]ProducePacketName [12:21:29]name=ofd_packets/00075432 [12:21:29]NVStorageDeleteData [12:21:29]Write to MH i2c: 01 00 00 B2 01 B3 [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 07 00 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: 01 07 00 B2 01 00 00 00 00 00 97 0C 5D [12:21:29]RasterBufferAndPrint [12:21:29]line [12:21:29]line [12:21:29]line [12:21:29]line [12:21:29]line [12:21:29]written 0, free lines is 3228 [12:21:29]MH_Cut [12:21:29]Write to MH i2c: D1 01 00 B9 01 01 8C [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: D1 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: D1 01 00 [12:21:29]MH_I2C_Read... [12:21:29]Read from MH i2c: D1 01 00 B9 01 00 8B [12:21:29]Write to MH i2c: 01 00 00 BA 01 BB [12:21:29]Write i2c OK [12:21:29]MH_I2C_Read... [12:21:30]OFD Sender: No OFD packet to send [12:21:30]*** Cut start [12:21:30]*** Partial cut [12:21:30]*** CUTSNS_PIN = 1 [12:21:30]*** CUTSNS_PIN = 0 [12:21:31]*** Brake cut motor [12:21:31]Read from MH i2c: 01 [12:21:31]MH_I2C_Read... [12:21:31]*** Stop cut motor [12:21:31]*** Cut end [12:21:31]Read from MH i2c: 01 07 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: 01 07 00 BA 01 00 00 00 00 00 FF 0F D0 [12:21:31]process_action close_receipt done [12:21:31]requested_data is exist [12:21:31]produce_requested_data [12:21:31]requested_item fm.sn is exist - process it [12:21:31]wFMCommunicate request_size=4 [12:21:31]MH_SAM_APDU [12:21:31]CAPDU: 80 11 00 00 [12:21:31]Write to MH i2c: E2 08 00 BB 01 80 11 00 00 00 00 00 00 36 [12:21:31]Write i2c OK [12:21:31]MH_I2C_Read... [12:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 17 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 17 00 BB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 83 [12:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:21:31]wFMCommunicate OK [12:21:31]requested_item fd.num is exist - process it [12:21:31]SAM_PROTO_GetFieldsCounters [12:21:31]wFMCommunicate request_size=4 [12:21:31]MH_SAM_APDU [12:21:31]CAPDU: 80 13 00 00 [12:21:31]Write to MH i2c: E2 08 00 BC 01 80 13 00 00 00 00 00 00 39 [12:21:31]Write i2c OK [12:21:31]MH_I2C_Read... [12:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 62 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 62 00 BC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A8 26 01 00 0E 04 04 00 AD 00 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 B8 [12:21:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A8 26 01 00 0E 04 04 00 AD 00 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 [12:21:31]wFMCommunicate OK [12:21:31]SAM_PROTO_GetFieldsCounters done [12:21:31]requested_item shift.num is exist - process it [12:21:31]requested_item shift.opened is exist - process it [12:21:31]req_shift_opened [12:21:31]FM_GetShiftState [12:21:31]SAM_PROTO_GetShiftState [12:21:31]wFMCommunicate request_size=4 [12:21:31]MH_SAM_APDU [12:21:31]CAPDU: 80 13 01 00 [12:21:31]Write to MH i2c: E2 08 00 BD 01 80 13 01 00 00 00 00 00 3B [12:21:31]Write i2c OK [12:21:31]MH_I2C_Read... [12:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 0E 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 0E 00 BD 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A0 [12:21:31]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:21:31]wFMCommunicate OK [12:21:31]SAM_PROTO_GetShiftState done [12:21:31]FM_GetShiftState done [12:21:31]req_shift_opened done [12:21:31]requested_item shift.open_date is exist - process it [12:21:31]req_shift_open_date [12:21:31]req_shift_open_date done [12:21:31]produce_requested_data done [12:21:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75432,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:21:31]process_action_free close_receipt [12:21:31]json_value_free [12:21:31]json_value_free done [12:21:31]process_json_proto returns [12:21:31]Send response to host [12:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75432,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:21:31]free response buf [12:21:31]execute_script done [12:21:31]execute_script returns [12:21:31]free content buf [12:21:31]Sock 9.Close socket [12:21:31]Sock 9.Thread stoped [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:51]accept exits with 8 [12:23:51]New connection [12:23:51]New thread 3066608996 created [12:23:51]Thread 3066465636 joined [12:23:51]Waiting for new connection... [12:23:51] Sock 8.Parse request [12:23:51]Sock 8.Check first char [12:23:51]Sock 8.First char is OK [12:23:51]request: POST /json_proto HTTP/1.0 [12:23:51]Method: POST [12:23:51]URL: /json_proto [12:23:51]Method is POST - this is cgi request [12:23:51]url: /json_proto [12:23:51]query_string will be loaded in cgi processing [12:23:51]execute_cgi json_proto POST (null) [12:23:51]execute_cgi path=json_proto method=POST [12:23:51]POST find Content-Length [12:23:51]Host: 172.17.44.196:8080 [12:23:51]Content-Length: 623 [12:23:51]Content-Type: application/json [12:23:51] [12:23:51]POST finish read [12:23:51]Found Content-Length = 623 [12:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273239", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:51]execute_script... [12:23:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273239", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:51]POST & json_proto [12:23:51]process_json_proto [12:23:51]json parsed OK: [12:23:51]protocol is kg_v1.0 [12:23:51]action value=close_receipt [12:23:51]process_action close_receipt [12:23:51]cmd_close_receipt [12:23:51]MH_GetDate [12:23:51]Write to MH i2c: F0 00 00 BE 01 AE [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: F0 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: F0 09 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: F0 09 00 BE 01 00 D7 EA 18 67 E7 19 F8 65 54 [12:23:51]GetLastDocTimeStamp 1729686087 [12:23:51]current date 1729686231 [12:23:51]FM_GetShiftState [12:23:51]SAM_PROTO_GetShiftState [12:23:51]wFMCommunicate request_size=4 [12:23:51]MH_SAM_APDU [12:23:51]CAPDU: 80 13 01 00 [12:23:51]Write to MH i2c: E2 08 00 BF 01 80 13 01 00 00 00 00 00 3D [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:51]Read from MH i2c: E2 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 0E 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 0E 00 BF 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A2 [12:23:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:23:51]wFMCommunicate OK [12:23:51]SAM_PROTO_GetShiftState done [12:23:51]FM_GetShiftState done [12:23:51]opened in 1729642905 [12:23:51]opened+sec_in_day 1729729305 [12:23:51]quantity*price = 14000 [12:23:51]sum+1 = 14001 [12:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 166 23.10.2024 12:23 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75433 ФПД: 189160763804881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122351&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75433&fm=189160763804881&tin=02508201610067®Number=0000000000161154&sum=14000 0 [12:23:52]StoreToDocumentArchive [12:23:52]shift 173 fd 75433 [12:23:52]save to /storage/0173/doc_00075433 [12:23:52]save last doc name /storage/0173/doc_00075433 to /storage/kkm_last_doc_name [12:23:52]save OK [12:23:52]Clear old archive folders... [12:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:23:52]tlvbuf is 00776020 [12:23:52]SAM_PROTO_ClearQueue [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 09 00 00 [12:23:52]Write to MH i2c: E2 08 00 CC 01 80 09 00 00 00 00 00 00 3F [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 CC 01 00 90 00 41 [12:23:52]RAPDU: 90 00 [12:23:52]wFMCommunicate OK [12:23:52]SAM_PROTO_ClearQueue done [12:23:52]KKMCreateOFDPacket [12:23:52]OFDProtocolAddRootSTLVToBuf [12:23:52]FM_MakeSignedData [12:23:52]FM_MakeSignedData [12:23:52]SAM_PROTO_SignData [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 0D 01 02 [12:23:52]Write to MH i2c: E2 08 00 CD 01 80 0D 01 02 00 00 00 00 47 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 CD 01 00 90 00 42 [12:23:52]RAPDU: 90 00 [12:23:52]wFMCommunicate OK [12:23:52]wFMCommunicate request_size=255 [12:23:52]MH_SAM_APDU [12:23:52]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D7 EA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [12:23:52]Write to MH i2c: E2 02 01 CE 01 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D7 EA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 63 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 03 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 03 00 CE 01 00 90 00 43 [12:23:53]RAPDU: 90 00 [12:23:53]wFMCommunicate OK [12:23:53]wFMCommunicate request_size=34 [12:23:53]MH_SAM_APDU [12:23:53]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A9 26 01 00 35 04 06 00 AC 0A 6C 21 CC D1 [12:23:53]Write to MH i2c: E2 25 00 CF 01 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A9 26 01 00 35 04 06 00 AC 0A 6C 21 CC D1 00 00 B5 [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 03 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 03 00 CF 01 00 90 00 44 [12:23:53]RAPDU: 90 00 [12:23:53]wFMCommunicate OK [12:23:53]wFMCommunicate request_size=4 [12:23:53]MH_SAM_APDU [12:23:53]CAPDU: 80 0D 03 02 [12:23:53]Write to MH i2c: E2 08 00 D0 01 80 0D 03 02 00 00 00 00 4C [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 0B 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 0B 00 D0 01 00 E8 22 61 EC 79 A4 B7 26 90 00 9E [12:23:53]RAPDU: E8 22 61 EC 79 A4 B7 26 90 00 [12:23:53]wFMCommunicate OK [12:23:53]SAM_PROTO_SignData done [12:23:53]FM_MakeSignedData done [12:23:53]CreateOFDProtocolMessage [12:23:53]wFMCommunicate request_size=4 [12:23:53]MH_SAM_APDU [12:23:53]CAPDU: 80 11 00 00 [12:23:53]Write to MH i2c: E2 08 00 D1 01 80 11 00 00 00 00 00 00 4C [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 17 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 17 00 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 99 [12:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:23:53]wFMCommunicate OK [12:23:53]CreateOFDProtocolMessage done [12:23:53]OFDSenderStorePacket 75433 [12:23:53]StoreOFDPacket docnum=75433 [12:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 1D AD 1F 01 7D 87 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D7 EA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A9 26 01 00 35 04 06 00 AC 0A 6C 21 CC D1 E8 22 61 EC 79 A4 B7 26 [12:23:53]CheckFolder [12:23:53]dirname=/storage/ofd_packets [12:23:53]CheckFolder done [12:23:53]ProducePacketName [12:23:53]name=ofd_packets/00075433 [12:23:53]NVStorageSaveData ofd_packets/00075433 [12:23:53]File name is /storage/ofd_packets/00075433 [12:23:53]Write 325 bytes [12:23:53]NVStorageSaveData done [12:23:53]OFDSenderStorePacket done [12:23:53]KKMCreateOFDPacket done [12:23:53]NVStorageSaveData kkm_last_timestamp [12:23:53]File name is /storage/kkm_last_timestamp [12:23:53]Write 4 bytes [12:23:53]NVStorageSaveData done [12:23:53]ExternCall_PrintAddStr [12:23:53]wPrintStart [12:23:53]Write to MH i2c: 01 00 00 D2 01 D3 [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: 01 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: 01 07 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 FF 0F E8 [12:23:53]RasterBufferAndPrint [12:23:53]line Счет N : (3)273239 [12:23:53]line ИНН: 02508201610067 [12:23:53]line Контрольно-Кассовый Чек [12:23:53]line ПРОДАЖА [12:23:53]line Товар: 48743587 [12:23:53]line Сигареты Winston XStyle Silver [12:23:53]line 1.000 * 140.00 [12:23:53]line = 140.00 [12:23:53]line НДС 12% НСП 1% [12:23:53]line > о реализуемом товаре [12:23:53]line ИТОГО: 140.00 [12:23:53]line НСП 1% : 1.24 [12:23:53]line НДС 12% : 14.87 [12:23:53]line Наличными: 140.00 [12:23:53]line Безнал.: 0.00 [12:23:53]line Место: АЗС № 133 "Партнер Нефть" [12:23:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:23:53]line СНО: Общий режим [12:23:53]line Чек 166 23.10.2024 12:23 [12:23:53]line Смена: 173 ФФД: 1.0 [12:23:53]line ЗНМ: 0300000020 [12:23:53]line РНМ: 0000000000161154 [12:23:53]line Версия ККМ: v1.0 [12:23:53]line ФМ: 0000000000963323 [12:23:53]line ФД: 75433 [12:23:53]line ФПД: 189160763804881 [12:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T122351&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75433&fm=189160763804881&tin=02508201610067®Number=0000000000161154&sum=14000 [12:23:53]line 0 [12:23:53]OFD Sender: Processing packet 75433 [packets to send 16, broken 15] [12:23:53]ProducePacketName [12:23:53]name=ofd_packets/00075433 [12:23:53]OFD Sender: To server: pG, [12:23:53]CommunicateWithHost lk.salyk.kg:30040 [12:23:53]ConnectInit lk.salyk.kg [12:23:53]written 0, free lines is 4095 [12:23:53]Connected sock=10 [12:23:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 1D AD 1F 01 7D 87 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 D7 EA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A9 26 01 00 35 04 06 00 AC 0A 6C 21 CC D1 E8 22 61 EC 79 A4 B7 26 [12:23:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CA F2 47 00 9D 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 A9 26 01 00 F4 03 04 00 B2 93 18 67 B6 04 01 00 00 3E 42 90 E2 91 31 A7 71 [12:23:53]CommunicateWithHost err = 0 [12:23:53]CheckOFDResponse [12:23:53]1017 (14) - 77093643461234 [12:23:53]1041 (16) - 0000000000963323 [12:23:53]1040 (4) - 75433 [12:23:53]1012 (4) - 23.10.2024 06:12 [12:23:53]1206 (1) - 0 [12:23:53]OFD Sender: Remove packet 75433 [12:23:53]ProducePacketName [12:23:53]name=ofd_packets/00075433 [12:23:53]NVStorageDeleteData [12:23:54]Write to MH i2c: 01 00 00 FA 01 FB [12:23:54]Write i2c OK [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: 01 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: 01 07 00 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: 01 07 00 FA 01 00 00 00 00 00 CF 0C DD [12:23:54]RasterBufferAndPrint [12:23:54]line [12:23:54]line [12:23:54]line [12:23:54]line [12:23:54]line [12:23:54]written 0, free lines is 3283 [12:23:54]MH_Cut [12:23:54]Write to MH i2c: D1 01 00 01 02 01 D5 [12:23:54]Write i2c OK [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: D1 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: D1 01 00 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: D1 01 00 01 02 00 D4 [12:23:54]Write to MH i2c: 01 00 00 02 02 04 [12:23:54]Write i2c OK [12:23:54]MH_I2C_Read... [12:23:54]OFD Sender: No OFD packet to send [12:23:55]*** Cut start [12:23:55]*** Partial cut [12:23:55]*** CUTSNS_PIN = 1 [12:23:55]*** CUTSNS_PIN = 0 [12:23:55]*** Brake cut motor [12:23:55]Read from MH i2c: 01 [12:23:55]MH_I2C_Read... [12:23:55]*** Stop cut motor [12:23:55]*** Cut end [12:23:55]Read from MH i2c: 01 07 00 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: 01 07 00 02 02 00 00 00 00 00 FF 0F 19 [12:23:55]process_action close_receipt done [12:23:55]requested_data is exist [12:23:55]produce_requested_data [12:23:55]requested_item fm.sn is exist - process it [12:23:55]wFMCommunicate request_size=4 [12:23:55]MH_SAM_APDU [12:23:55]CAPDU: 80 11 00 00 [12:23:55]Write to MH i2c: E2 08 00 03 02 80 11 00 00 00 00 00 00 7F [12:23:55]Write i2c OK [12:23:55]MH_I2C_Read... [12:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:55]Read from MH i2c: E2 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 17 00 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 17 00 03 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CC [12:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:23:55]wFMCommunicate OK [12:23:55]requested_item fd.num is exist - process it [12:23:55]SAM_PROTO_GetFieldsCounters [12:23:55]wFMCommunicate request_size=4 [12:23:55]MH_SAM_APDU [12:23:55]CAPDU: 80 13 00 00 [12:23:55]Write to MH i2c: E2 08 00 04 02 80 13 00 00 00 00 00 00 82 [12:23:55]Write i2c OK [12:23:55]MH_I2C_Read... [12:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:55]Read from MH i2c: E2 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 62 00 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 62 00 04 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A9 26 01 00 0E 04 04 00 AD 00 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 05 [12:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 A9 26 01 00 0E 04 04 00 AD 00 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 [12:23:55]wFMCommunicate OK [12:23:55]SAM_PROTO_GetFieldsCounters done [12:23:55]requested_item shift.num is exist - process it [12:23:55]requested_item shift.opened is exist - process it [12:23:55]req_shift_opened [12:23:55]FM_GetShiftState [12:23:55]SAM_PROTO_GetShiftState [12:23:55]wFMCommunicate request_size=4 [12:23:55]MH_SAM_APDU [12:23:55]CAPDU: 80 13 01 00 [12:23:55]Write to MH i2c: E2 08 00 05 02 80 13 01 00 00 00 00 00 84 [12:23:55]Write i2c OK [12:23:55]MH_I2C_Read... [12:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:55]Read from MH i2c: E2 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 0E 00 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 0E 00 05 02 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E9 [12:23:55]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:23:55]wFMCommunicate OK [12:23:55]SAM_PROTO_GetShiftState done [12:23:55]FM_GetShiftState done [12:23:55]req_shift_opened done [12:23:55]requested_item shift.open_date is exist - process it [12:23:55]req_shift_open_date [12:23:55]req_shift_open_date done [12:23:55]produce_requested_data done [12:23:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75433,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:23:55]process_action_free close_receipt [12:23:55]json_value_free [12:23:55]json_value_free done [12:23:55]process_json_proto returns [12:23:55]Send response to host [12:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75433,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:23:55]free response buf [12:23:55]execute_script done [12:23:55]execute_script returns [12:23:55]free content buf [12:23:55]Sock 8.Close socket [12:23:55]Sock 8.Thread stoped [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:52]accept exits with 9 [12:32:52]New connection [12:32:52]New thread 3066465636 created [12:32:52]Thread 3066608996 joined [12:32:52]Waiting for new connection... [12:32:52] Sock 9.Parse request [12:32:52]Sock 9.Check first char [12:32:52]Sock 9.First char is OK [12:32:52]request: POST /json_proto HTTP/1.0 [12:32:52]Method: POST [12:32:52]URL: /json_proto [12:32:52]Method is POST - this is cgi request [12:32:52]url: /json_proto [12:32:52]query_string will be loaded in cgi processing [12:32:52]execute_cgi json_proto POST (null) [12:32:52]execute_cgi path=json_proto method=POST [12:32:52]POST find Content-Length [12:32:52]Host: 172.17.44.196:8080 [12:32:52]Content-Length: 751 [12:32:52]Content-Type: application/json [12:32:52] [12:32:52]POST finish read [12:32:52]Found Content-Length = 751 [12:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273240", "tax_sys" : 0, "items" : [ { "code": "48745079", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B L\u0026M LOFT SEA BLUE", "price" : 118.00, "quantity" : 1.000, "sum" : 118.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: Mbank", "payments": [ { "type": 1, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:52]execute_script... [12:32:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273240", "tax_sys" : 0, "items" : [ { "code": "48745079", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B L\u0026M LOFT SEA BLUE", "price" : 118.00, "quantity" : 1.000, "sum" : 118.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: Mbank", "payments": [ { "type": 1, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:52]POST & json_proto [12:32:52]process_json_proto [12:32:52]json parsed OK: [12:32:52]protocol is kg_v1.0 [12:32:52]action value=close_receipt [12:32:52]process_action close_receipt [12:32:52]cmd_close_receipt [12:32:52]MH_GetDate [12:32:52]Write to MH i2c: F0 00 00 06 02 F7 [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: F0 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: F0 09 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: F0 09 00 06 02 00 F4 EC 18 67 E7 19 F8 65 BC [12:32:52]GetLastDocTimeStamp 1729686231 [12:32:52]current date 1729686772 [12:32:52]FM_GetShiftState [12:32:52]SAM_PROTO_GetShiftState [12:32:52]wFMCommunicate request_size=4 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 13 01 00 [12:32:52]Write to MH i2c: E2 08 00 07 02 80 13 01 00 00 00 00 00 86 [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 0E 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 0E 00 07 02 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EB [12:32:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:32:52]wFMCommunicate OK [12:32:52]SAM_PROTO_GetShiftState done [12:32:52]FM_GetShiftState done [12:32:52]opened in 1729642905 [12:32:52]opened+sec_in_day 1729729305 [12:32:52]quantity*price = 11800 [12:32:52]sum+1 = 11801 [12:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 118.00 НСП 1% : 1.04 НДС 12% : 12.53 Наличными: 0.00 Безнал.: 118.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 167 23.10.2024 12:32 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75434 ФПД: 217411188215173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123252&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75434&fm=217411188215173&tin=02508201610067®Number=0000000000161154&sum=11800 0 [12:32:53]StoreToDocumentArchive [12:32:53]shift 173 fd 75434 [12:32:53]save to /storage/0173/doc_00075434 [12:32:53]save last doc name /storage/0173/doc_00075434 to /storage/kkm_last_doc_name [12:32:53]save OK [12:32:53]Clear old archive folders... [12:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:32:53]tlvbuf is 007757C0 [12:32:53]SAM_PROTO_ClearQueue [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 09 00 00 [12:32:53]Write to MH i2c: E2 08 00 14 02 80 09 00 00 00 00 00 00 88 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]SAM_PROTO_ClearQueue done [12:32:53]KKMCreateOFDPacket [12:32:53]OFDProtocolAddRootSTLVToBuf [12:32:53]FM_MakeSignedData [12:32:53]FM_MakeSignedData [12:32:53]SAM_PROTO_SignData [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 01 02 [12:32:53]Write to MH i2c: E2 08 00 15 02 80 0D 01 02 00 00 00 00 90 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]wFMCommunicate request_size=255 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 38 37 34 35 30 37 39 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 4F 46 54 20 53 45 41 20 42 4C 55 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F4 EC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:32:53]Write to MH i2c: E2 02 01 16 02 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 38 37 34 35 30 37 39 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 4F 46 54 20 53 45 41 20 42 4C 55 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F4 EC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 44 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:54]Read from MH i2c: E2 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: E2 03 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [12:32:54]RAPDU: 90 00 [12:32:54]wFMCommunicate OK [12:32:54]wFMCommunicate request_size=30 [12:32:54]MH_SAM_APDU [12:32:54]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 AA 26 01 00 35 04 06 00 C5 BB FC A4 CD 85 [12:32:54]Write to MH i2c: E2 21 00 17 02 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 AA 26 01 00 35 04 06 00 C5 BB FC A4 CD 85 00 00 C9 [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:54]Read from MH i2c: E2 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: E2 03 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: E2 03 00 17 02 00 90 00 8D [12:32:54]RAPDU: 90 00 [12:32:54]wFMCommunicate OK [12:32:54]wFMCommunicate request_size=4 [12:32:54]MH_SAM_APDU [12:32:54]CAPDU: 80 0D 03 02 [12:32:54]Write to MH i2c: E2 08 00 18 02 80 0D 03 02 00 00 00 00 95 [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:54]Read from MH i2c: E2 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: E2 0B 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: E2 0B 00 18 02 00 CA 8E DE F0 1F 66 9B 71 90 00 4D [12:32:54]RAPDU: CA 8E DE F0 1F 66 9B 71 90 00 [12:32:54]wFMCommunicate OK [12:32:54]SAM_PROTO_SignData done [12:32:54]FM_MakeSignedData done [12:32:54]CreateOFDProtocolMessage [12:32:54]wFMCommunicate request_size=4 [12:32:54]MH_SAM_APDU [12:32:54]CAPDU: 80 11 00 00 [12:32:54]Write to MH i2c: E2 08 00 19 02 80 11 00 00 00 00 00 00 95 [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:54]Read from MH i2c: E2 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: E2 17 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: E2 17 00 19 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E2 [12:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:32:54]wFMCommunicate OK [12:32:54]CreateOFDProtocolMessage done [12:32:54]OFDSenderStorePacket 75434 [12:32:54]StoreOFDPacket docnum=75434 [12:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 4F 2F 1B 01 FD 68 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 38 37 34 35 30 37 39 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 4F 46 54 20 53 45 41 20 42 4C 55 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F4 EC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AA 26 01 00 35 04 06 00 C5 BB FC A4 CD 85 CA 8E DE F0 1F 66 9B 71 [12:32:54]CheckFolder [12:32:54]dirname=/storage/ofd_packets [12:32:54]CheckFolder done [12:32:54]ProducePacketName [12:32:54]name=ofd_packets/00075434 [12:32:54]NVStorageSaveData ofd_packets/00075434 [12:32:54]File name is /storage/ofd_packets/00075434 [12:32:54]Write 321 bytes [12:32:54]NVStorageSaveData done [12:32:54]OFDSenderStorePacket done [12:32:54]KKMCreateOFDPacket done [12:32:54]NVStorageSaveData kkm_last_timestamp [12:32:54]File name is /storage/kkm_last_timestamp [12:32:54]Write 4 bytes [12:32:54]NVStorageSaveData done [12:32:54]ExternCall_PrintAddStr [12:32:54]wPrintStart [12:32:54]Write to MH i2c: 01 00 00 1A 02 1C [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 07 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 FF 0F 31 [12:32:54]RasterBufferAndPrint [12:32:54]line Счет N : (3)273240 [12:32:54]line ИНН: 02508201610067 [12:32:54]line Контрольно-Кассовый Чек [12:32:54]line ПРОДАЖА [12:32:54]line Товар: 48745079 [12:32:54]line Сигареты L&M LOFT SEA BLUE [12:32:54]line 1.000 * 118.00 [12:32:54]line = 118.00 [12:32:54]line НДС 12% НСП 1% [12:32:54]line > о реализуемом товаре [12:32:54]line ИТОГО: 118.00 [12:32:54]line НСП 1% : 1.04 [12:32:54]line НДС 12% : 12.53 [12:32:54]line Наличными: 0.00 [12:32:54]line Безнал.: 118.00 [12:32:54]line Место: АЗС № 133 "Партнер Нефть" [12:32:54]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:32:54]line СНО: Общий режим [12:32:54]line Чек 167 23.10.2024 12:32 [12:32:54]line Смена: 173 ФФД: 1.0 [12:32:54]line ЗНМ: 0300000020 [12:32:54]line РНМ: 0000000000161154 [12:32:54]line Версия ККМ: v1.0 [12:32:54]line Платежная система: Mbank [12:32:54]line ФМ: 0000000000963323 [12:32:54]line ФД: 75434 [12:32:54]line ФПД: 217411188215173 [12:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123252&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75434&fm=217411188215173&tin=02508201610067®Number=0000000000161154&sum=11800 [12:32:54]line 0 [12:32:54]OFD Sender: Processing packet 75434 [packets to send 16, broken 15] [12:32:54]ProducePacketName [12:32:54]name=ofd_packets/00075434 [12:32:54]OFD Sender: To server: pG, [12:32:54]CommunicateWithHost lk.salyk.kg:30040 [12:32:54]ConnectInit lk.salyk.kg [12:32:54]written 0, free lines is 4095 [12:32:54]Connected sock=10 [12:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 4F 2F 1B 01 FD 68 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 38 37 34 35 30 37 39 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 26 4D 20 4C 4F 46 54 20 53 45 41 20 42 4C 55 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F4 EC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AA 26 01 00 35 04 06 00 C5 BB FC A4 CD 85 CA 8E DE F0 1F 66 9B 71 [12:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D9 F3 47 00 BE 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AA 26 01 00 F4 03 04 00 CF 95 18 67 B6 04 01 00 00 E2 55 FE 7B 8E AC CF A7 [12:32:54]CommunicateWithHost err = 0 [12:32:54]CheckOFDResponse [12:32:54]1017 (14) - 77093643461234 [12:32:54]1041 (16) - 0000000000963323 [12:32:54]1040 (4) - 75434 [12:32:54]1012 (4) - 23.10.2024 06:21 [12:32:54]1206 (1) - 0 [12:32:54]OFD Sender: Remove packet 75434 [12:32:54]ProducePacketName [12:32:54]name=ofd_packets/00075434 [12:32:54]NVStorageDeleteData [12:32:54]Write to MH i2c: 01 00 00 42 02 44 [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 07 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 B1 0C 08 [12:32:54]RasterBufferAndPrint [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]written 0, free lines is 3253 [12:32:55]MH_Cut [12:32:55]Write to MH i2c: D1 01 00 49 02 01 1D [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: D1 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: D1 01 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: D1 01 00 49 02 00 1C [12:32:55]Write to MH i2c: 01 00 00 4A 02 4C [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]OFD Sender: No OFD packet to send [12:32:55]*** Cut start [12:32:55]*** Partial cut [12:32:55]*** CUTSNS_PIN = 1 [12:32:56]*** CUTSNS_PIN = 0 [12:32:56]*** Brake cut motor [12:32:56]Read from MH i2c: 01 [12:32:56]MH_I2C_Read... [12:32:56]*** Stop cut motor [12:32:56]*** Cut end [12:32:56]Read from MH i2c: 01 07 00 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 FF 0F 61 [12:32:56]process_action close_receipt done [12:32:56]requested_data is exist [12:32:56]produce_requested_data [12:32:56]requested_item fm.sn is exist - process it [12:32:56]wFMCommunicate request_size=4 [12:32:56]MH_SAM_APDU [12:32:56]CAPDU: 80 11 00 00 [12:32:56]Write to MH i2c: E2 08 00 4B 02 80 11 00 00 00 00 00 00 C7 [12:32:56]Write i2c OK [12:32:56]MH_I2C_Read... [12:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:56]Read from MH i2c: E2 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: E2 17 00 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: E2 17 00 4B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 14 [12:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:32:56]wFMCommunicate OK [12:32:56]requested_item fd.num is exist - process it [12:32:56]SAM_PROTO_GetFieldsCounters [12:32:56]wFMCommunicate request_size=4 [12:32:56]MH_SAM_APDU [12:32:56]CAPDU: 80 13 00 00 [12:32:56]Write to MH i2c: E2 08 00 4C 02 80 13 00 00 00 00 00 00 CA [12:32:56]Write i2c OK [12:32:56]MH_I2C_Read... [12:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:56]Read from MH i2c: E2 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: E2 62 00 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: E2 62 00 4C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AA 26 01 00 0E 04 04 00 AD 00 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 51 [12:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AA 26 01 00 0E 04 04 00 AD 00 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 [12:32:56]wFMCommunicate OK [12:32:56]SAM_PROTO_GetFieldsCounters done [12:32:56]requested_item shift.num is exist - process it [12:32:56]requested_item shift.opened is exist - process it [12:32:56]req_shift_opened [12:32:56]FM_GetShiftState [12:32:56]SAM_PROTO_GetShiftState [12:32:56]wFMCommunicate request_size=4 [12:32:56]MH_SAM_APDU [12:32:56]CAPDU: 80 13 01 00 [12:32:56]Write to MH i2c: E2 08 00 4D 02 80 13 01 00 00 00 00 00 CC [12:32:56]Write i2c OK [12:32:56]MH_I2C_Read... [12:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:56]Read from MH i2c: E2 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: E2 0E 00 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: E2 0E 00 4D 02 00 09 00 01 99 41 18 67 00 00 00 00 90 00 31 [12:32:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:32:56]wFMCommunicate OK [12:32:56]SAM_PROTO_GetShiftState done [12:32:56]FM_GetShiftState done [12:32:56]req_shift_opened done [12:32:56]requested_item shift.open_date is exist - process it [12:32:56]req_shift_open_date [12:32:56]req_shift_open_date done [12:32:56]produce_requested_data done [12:32:56]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75434,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:32:56]process_action_free close_receipt [12:32:56]json_value_free [12:32:56]json_value_free done [12:32:56]process_json_proto returns [12:32:56]Send response to host [12:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75434,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:32:56]free response buf [12:32:56]execute_script done [12:32:56]execute_script returns [12:32:56]free content buf [12:32:56]Sock 9.Close socket [12:32:56]Sock 9.Thread stoped [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:20]accept exits with 8 [12:33:20]New connection [12:33:20]New thread 3066608996 created [12:33:20]Thread 3066465636 joined [12:33:20]Waiting for new connection... [12:33:20] Sock 8.Parse request [12:33:20]Sock 8.Check first char [12:33:20]Sock 8.First char is OK [12:33:20]request: POST /json_proto HTTP/1.0 [12:33:20]Method: POST [12:33:20]URL: /json_proto [12:33:20]Method is POST - this is cgi request [12:33:20]url: /json_proto [12:33:20]query_string will be loaded in cgi processing [12:33:20]execute_cgi json_proto POST (null) [12:33:20]execute_cgi path=json_proto method=POST [12:33:20]POST find Content-Length [12:33:20]Host: 172.17.44.196:8080 [12:33:20]Content-Length: 621 [12:33:20]Content-Type: application/json [12:33:20] [12:33:20]POST finish read [12:33:20]Found Content-Length = 621 [12:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273241", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:20]execute_script... [12:33: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)273241", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:20]POST & json_proto [12:33:20]process_json_proto [12:33:20]json parsed OK: [12:33:20]protocol is kg_v1.0 [12:33:20]action value=close_receipt [12:33:20]process_action close_receipt [12:33:20]cmd_close_receipt [12:33:20]MH_GetDate [12:33:20]Write to MH i2c: F0 00 00 4E 02 3F [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: F0 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: F0 09 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: F0 09 00 4E 02 00 10 ED 18 67 E7 19 F8 65 21 [12:33:20]GetLastDocTimeStamp 1729686772 [12:33:20]current date 1729686800 [12:33:20]FM_GetShiftState [12:33:20]SAM_PROTO_GetShiftState [12:33:20]wFMCommunicate request_size=4 [12:33:20]MH_SAM_APDU [12:33:20]CAPDU: 80 13 01 00 [12:33:20]Write to MH i2c: E2 08 00 4F 02 80 13 01 00 00 00 00 00 CE [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:20]Read from MH i2c: E2 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 0E 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 0E 00 4F 02 00 09 00 01 99 41 18 67 00 00 00 00 90 00 33 [12:33:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:33:20]wFMCommunicate OK [12:33:20]SAM_PROTO_GetShiftState done [12:33:20]FM_GetShiftState done [12:33:20]opened in 1729642905 [12:33:20]opened+sec_in_day 1729729305 [12:33:20]quantity*price = 14000 [12:33:20]sum+1 = 14001 [12:33:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 168 23.10.2024 12:33 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75435 ФПД: 196960756262939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123320&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75435&fm=196960756262939&tin=02508201610067®Number=0000000000161154&sum=14000 0 [12:33:21]StoreToDocumentArchive [12:33:21]shift 173 fd 75435 [12:33:21]save to /storage/0173/doc_00075435 [12:33:21]save last doc name /storage/0173/doc_00075435 to /storage/kkm_last_doc_name [12:33:21]save OK [12:33:21]Clear old archive folders... [12:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:33:21]tlvbuf is 00780DD0 [12:33:21]SAM_PROTO_ClearQueue [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 09 00 00 [12:33:21]Write to MH i2c: E2 08 00 5C 02 80 09 00 00 00 00 00 00 D0 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 03 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 03 00 5C 02 00 90 00 D2 [12:33:21]RAPDU: 90 00 [12:33:21]wFMCommunicate OK [12:33:21]SAM_PROTO_ClearQueue done [12:33:21]KKMCreateOFDPacket [12:33:21]OFDProtocolAddRootSTLVToBuf [12:33:21]FM_MakeSignedData [12:33:21]FM_MakeSignedData [12:33:21]SAM_PROTO_SignData [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 0D 01 02 [12:33:21]Write to MH i2c: E2 08 00 5D 02 80 0D 01 02 00 00 00 00 D8 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 03 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 03 00 5D 02 00 90 00 D3 [12:33:21]RAPDU: 90 00 [12:33:21]wFMCommunicate OK [12:33:21]wFMCommunicate request_size=255 [12:33:21]MH_SAM_APDU [12:33: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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 10 ED 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [12:33:21]Write to MH i2c: E2 02 01 5E 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 10 ED 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 97 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 03 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [12:33:22]RAPDU: 90 00 [12:33:22]wFMCommunicate OK [12:33:22]wFMCommunicate request_size=32 [12:33:22]MH_SAM_APDU [12:33:22]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 AB 26 01 00 35 04 06 00 B3 22 7F E9 68 1B [12:33:22]Write to MH i2c: E2 23 00 5F 02 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 AB 26 01 00 35 04 06 00 B3 22 7F E9 68 1B 00 00 C4 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 03 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [12:33:22]RAPDU: 90 00 [12:33:22]wFMCommunicate OK [12:33:22]wFMCommunicate request_size=4 [12:33:22]MH_SAM_APDU [12:33:22]CAPDU: 80 0D 03 02 [12:33:22]Write to MH i2c: E2 08 00 60 02 80 0D 03 02 00 00 00 00 DD [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 0B 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 0B 00 60 02 00 7F A7 CC 21 66 A8 F8 06 90 00 FD [12:33:22]RAPDU: 7F A7 CC 21 66 A8 F8 06 90 00 [12:33:22]wFMCommunicate OK [12:33:22]SAM_PROTO_SignData done [12:33:22]FM_MakeSignedData done [12:33:22]CreateOFDProtocolMessage [12:33:22]wFMCommunicate request_size=4 [12:33:22]MH_SAM_APDU [12:33:22]CAPDU: 80 11 00 00 [12:33:22]Write to MH i2c: E2 08 00 61 02 80 11 00 00 00 00 00 00 DD [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 17 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 17 00 61 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2A [12:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:33:22]wFMCommunicate OK [12:33:22]CreateOFDProtocolMessage done [12:33:22]OFDSenderStorePacket 75435 [12:33:22]StoreOFDPacket docnum=75435 [12:33:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 78 DD 1D 01 9D 82 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 10 ED 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AB 26 01 00 35 04 06 00 B3 22 7F E9 68 1B 7F A7 CC 21 66 A8 F8 06 [12:33:22]CheckFolder [12:33:22]dirname=/storage/ofd_packets [12:33:22]CheckFolder done [12:33:22]ProducePacketName [12:33:22]name=ofd_packets/00075435 [12:33:22]NVStorageSaveData ofd_packets/00075435 [12:33:22]File name is /storage/ofd_packets/00075435 [12:33:22]Write 323 bytes [12:33:22]NVStorageSaveData done [12:33:22]OFDSenderStorePacket done [12:33:22]KKMCreateOFDPacket done [12:33:22]NVStorageSaveData kkm_last_timestamp [12:33:22]File name is /storage/kkm_last_timestamp [12:33:22]Write 4 bytes [12:33:22]NVStorageSaveData done [12:33:22]ExternCall_PrintAddStr [12:33:22]wPrintStart [12:33:22]Write to MH i2c: 01 00 00 62 02 64 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 07 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [12:33:22]RasterBufferAndPrint [12:33:22]line Счет N : (3)273241 [12:33:22]line ИНН: 02508201610067 [12:33:22]line Контрольно-Кассовый Чек [12:33:22]line ПРОДАЖА [12:33:22]line Товар: 48743570 [12:33:22]line Сигареты Winston XStyle Blue [12:33:22]line 1.000 * 140.00 [12:33:22]line = 140.00 [12:33:22]line НДС 12% НСП 1% [12:33:22]line > о реализуемом товаре [12:33:22]line ИТОГО: 140.00 [12:33:22]line НСП 1% : 1.24 [12:33:22]line НДС 12% : 14.87 [12:33:22]line Наличными: 140.00 [12:33:22]line Безнал.: 0.00 [12:33:22]line Место: АЗС № 133 "Партнер Нефть" [12:33:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:33:22]line СНО: Общий режим [12:33:22]line Чек 168 23.10.2024 12:33 [12:33:22]line Смена: 173 ФФД: 1.0 [12:33:22]line ЗНМ: 0300000020 [12:33:22]line РНМ: 0000000000161154 [12:33:22]line Версия ККМ: v1.0 [12:33:22]line ФМ: 0000000000963323 [12:33:22]line ФД: 75435 [12:33:22]line ФПД: 196960756262939 [12:33:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123320&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75435&fm=196960756262939&tin=02508201610067®Number=0000000000161154&sum=14000 [12:33:22]line 0 [12:33:22]OFD Sender: Processing packet 75435 [packets to send 16, broken 15] [12:33:22]ProducePacketName [12:33:22]name=ofd_packets/00075435 [12:33:22]OFD Sender: To server: pG, [12:33:22]CommunicateWithHost lk.salyk.kg:30040 [12:33:22]ConnectInit lk.salyk.kg [12:33:22]written 0, free lines is 4095 [12:33:22]Connected sock=10 [12:33:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 78 DD 1D 01 9D 82 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 10 ED 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AB 26 01 00 35 04 06 00 B3 22 7F E9 68 1B 7F A7 CC 21 66 A8 F8 06 [12:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 30 3E 47 00 8C 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 39 36 33 33 32 33 10 04 04 00 AB 26 01 00 F4 03 04 00 EB 95 18 67 B6 04 01 00 00 1F 50 A3 F5 76 AF D8 93 [12:33:22]CommunicateWithHost err = 0 [12:33:22]CheckOFDResponse [12:33:22]1017 (14) - 77093643461234 [12:33:22]1041 (16) - 0000000000963323 [12:33:22]1040 (4) - 75435 [12:33:22]1012 (4) - 23.10.2024 06:21 [12:33:22]1206 (1) - 0 [12:33:22]OFD Sender: Remove packet 75435 [12:33:22]ProducePacketName [12:33:22]name=ofd_packets/00075435 [12:33:22]NVStorageDeleteData [12:33:22]Write to MH i2c: 01 00 00 89 02 8B [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 07 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 D7 0C 75 [12:33:22]RasterBufferAndPrint [12:33:22]line [12:33:22]line [12:33:22]line [12:33:22]line [12:33:22]line [12:33:22]written 0, free lines is 3290 [12:33:22]MH_Cut [12:33:22]Write to MH i2c: D1 01 00 90 02 01 64 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: D1 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: D1 01 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: D1 01 00 90 02 00 63 [12:33:22]Write to MH i2c: 01 00 00 91 02 93 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:23]OFD Sender: No OFD packet to send [12:33:23]*** Cut start [12:33:23]*** Partial cut [12:33:23]*** CUTSNS_PIN = 1 [12:33:23]*** CUTSNS_PIN = 0 [12:33:24]*** Brake cut motor [12:33:24]Read from MH i2c: 01 [12:33:24]MH_I2C_Read... [12:33:24]*** Stop cut motor [12:33:24]*** Cut end [12:33:24]Read from MH i2c: 01 07 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: 01 07 00 91 02 00 00 00 00 00 FF 0F A8 [12:33:24]process_action close_receipt done [12:33:24]requested_data is exist [12:33:24]produce_requested_data [12:33:24]requested_item fm.sn is exist - process it [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 11 00 00 [12:33:24]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 17 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5B [12:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:33:24]wFMCommunicate OK [12:33:24]requested_item fd.num is exist - process it [12:33:24]SAM_PROTO_GetFieldsCounters [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 13 00 00 [12:33:24]Write to MH i2c: E2 08 00 93 02 80 13 00 00 00 00 00 00 11 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 62 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 62 00 93 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AB 26 01 00 0E 04 04 00 AD 00 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 9C [12:33:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AB 26 01 00 0E 04 04 00 AD 00 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 [12:33:24]wFMCommunicate OK [12:33:24]SAM_PROTO_GetFieldsCounters done [12:33:24]requested_item shift.num is exist - process it [12:33:24]requested_item shift.opened is exist - process it [12:33:24]req_shift_opened [12:33:24]FM_GetShiftState [12:33:24]SAM_PROTO_GetShiftState [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 13 01 00 [12:33:24]Write to MH i2c: E2 08 00 94 02 80 13 01 00 00 00 00 00 13 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 0E 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 0E 00 94 02 00 09 00 01 99 41 18 67 00 00 00 00 90 00 78 [12:33:24]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:33:24]wFMCommunicate OK [12:33:24]SAM_PROTO_GetShiftState done [12:33:24]FM_GetShiftState done [12:33:24]req_shift_opened done [12:33:24]requested_item shift.open_date is exist - process it [12:33:24]req_shift_open_date [12:33:24]req_shift_open_date done [12:33:24]produce_requested_data done [12:33:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75435,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:33:24]process_action_free close_receipt [12:33:24]json_value_free [12:33:24]json_value_free done [12:33:24]process_json_proto returns [12:33:24]Send response to host [12:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75435,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:33:24]free response buf [12:33:24]execute_script done [12:33:24]execute_script returns [12:33:24]free content buf [12:33:24]Sock 8.Close socket [12:33:24]Sock 8.Thread stoped [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [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:27]accept exits with 9 [12:45:27]New connection [12:45:27]New thread 3066465636 created [12:45:27]Thread 3066608996 joined [12:45:27]Waiting for new connection... [12:45:27] Sock 9.Parse request [12:45:27]Sock 9.Check first char [12:45:27]Sock 9.First char is OK [12:45:27]request: POST /json_proto HTTP/1.0 [12:45:27]Method: POST [12:45:27]URL: /json_proto [12:45:27]Method is POST - this is cgi request [12:45:27]url: /json_proto [12:45:27]query_string will be loaded in cgi processing [12:45:27]execute_cgi json_proto POST (null) [12:45:27]execute_cgi path=json_proto method=POST [12:45:27]POST find Content-Length [12:45:27]Host: 172.17.44.196:8080 [12:45:27]Content-Length: 611 [12:45:27]Content-Type: application/json [12:45:27] [12:45:27]POST finish read [12:45:27]Found Content-Length = 611 [12:45:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273242", "tax_sys" : 0, "items" : [ { "code": "48742078", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:27]execute_script... [12:45:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273242", "tax_sys" : 0, "items" : [ { "code": "48742078", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:27]POST & json_proto [12:45:27]process_json_proto [12:45:27]json parsed OK: [12:45:27]protocol is kg_v1.0 [12:45:27]action value=close_receipt [12:45:27]process_action close_receipt [12:45:27]cmd_close_receipt [12:45:27]MH_GetDate [12:45:27]Write to MH i2c: F0 00 00 95 02 86 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: F0 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: F0 09 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: F0 09 00 95 02 00 E7 EF 18 67 E7 19 F8 65 41 [12:45:27]GetLastDocTimeStamp 1729686800 [12:45:27]current date 1729687527 [12:45:27]FM_GetShiftState [12:45:27]SAM_PROTO_GetShiftState [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 13 01 00 [12:45:27]Write to MH i2c: E2 08 00 96 02 80 13 01 00 00 00 00 00 15 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 0E 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 0E 00 96 02 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7A [12:45:27]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:45:27]wFMCommunicate OK [12:45:27]SAM_PROTO_GetShiftState done [12:45:27]FM_GetShiftState done [12:45:27]opened in 1729642905 [12:45:27]opened+sec_in_day 1729729305 [12:45:27]quantity*price = 13000 [12:45:27]sum+1 = 13001 [12:45:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 169 23.10.2024 12:45 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75436 ФПД: 7969839410141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124527&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75436&fm=7969839410141&tin=02508201610067®Number=0000000000161154&sum=13000 0 [12:45:28]StoreToDocumentArchive [12:45:28]shift 173 fd 75436 [12:45:28]save to /storage/0173/doc_00075436 [12:45:28]save last doc name /storage/0173/doc_00075436 to /storage/kkm_last_doc_name [12:45:28]save OK [12:45:28]Clear old archive folders... [12:45:28]ProcessDocumentItem done err = 0, tmpTLVsize=263 [12:45:28]tlvbuf is 00787B90 [12:45:28]SAM_PROTO_ClearQueue [12:45:28]wFMCommunicate request_size=4 [12:45:28]MH_SAM_APDU [12:45:28]CAPDU: 80 09 00 00 [12:45:28]Write to MH i2c: E2 08 00 A3 02 80 09 00 00 00 00 00 00 17 [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:28]Read from MH i2c: E2 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: E2 03 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: E2 03 00 A3 02 00 90 00 19 [12:45:28]RAPDU: 90 00 [12:45:28]wFMCommunicate OK [12:45:28]SAM_PROTO_ClearQueue done [12:45:28]KKMCreateOFDPacket [12:45:28]OFDProtocolAddRootSTLVToBuf [12:45:28]FM_MakeSignedData [12:45:28]FM_MakeSignedData [12:45:28]SAM_PROTO_SignData [12:45:28]wFMCommunicate request_size=4 [12:45:28]MH_SAM_APDU [12:45:28]CAPDU: 80 0D 01 02 [12:45:28]Write to MH i2c: E2 08 00 A4 02 80 0D 01 02 00 00 00 00 1F [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:28]Read from MH i2c: E2 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: E2 03 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: E2 03 00 A4 02 00 90 00 1A [12:45:28]RAPDU: 90 00 [12:45:28]wFMCommunicate OK [12:45:28]wFMCommunicate request_size=255 [12:45:28]MH_SAM_APDU [12:45:28]CAPDU: 80 0D 02 02 FA 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E7 EF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 [12:45:28]Write to MH i2c: E2 02 01 A5 02 80 0D 02 02 FA 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E7 EF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 00 00 54 [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]OFD Sender: No OFD packet to send [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:29]Read from MH i2c: E2 03 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [12:45:29]RAPDU: 90 00 [12:45:29]wFMCommunicate OK [12:45:29]wFMCommunicate request_size=22 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 0D 02 02 11 04 04 00 AC 26 01 00 35 04 06 00 07 3F 9F 72 6B DD [12:45:29]Write to MH i2c: E2 19 00 A6 02 80 0D 02 02 11 00 04 04 00 AC 26 01 00 35 04 06 00 07 3F 9F 72 6B DD 00 00 FD [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 03 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 03 00 A6 02 00 90 00 1C [12:45:29]RAPDU: 90 00 [12:45:29]wFMCommunicate OK [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 0D 03 02 [12:45:29]Write to MH i2c: E2 08 00 A7 02 80 0D 03 02 00 00 00 00 24 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 0B 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 0B 00 A7 02 00 59 0B 0A 73 C6 2F CC D0 90 00 97 [12:45:29]RAPDU: 59 0B 0A 73 C6 2F CC D0 90 00 [12:45:29]wFMCommunicate OK [12:45:29]SAM_PROTO_SignData done [12:45:29]FM_MakeSignedData done [12:45:29]CreateOFDProtocolMessage [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 11 00 00 [12:45:29]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 17 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 71 [12:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:45:29]wFMCommunicate OK [12:45:29]CreateOFDProtocolMessage done [12:45:29]OFDSenderStorePacket 75436 [12:45:29]StoreOFDPacket docnum=75436 [12:45:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1B 01 00 00 FE 47 13 01 21 C2 5A 03 01 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E7 EF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AC 26 01 00 35 04 06 00 07 3F 9F 72 6B DD 59 0B 0A 73 C6 2F CC D0 [12:45:29]CheckFolder [12:45:29]dirname=/storage/ofd_packets [12:45:29]CheckFolder done [12:45:29]ProducePacketName [12:45:29]name=ofd_packets/00075436 [12:45:29]NVStorageSaveData ofd_packets/00075436 [12:45:29]File name is /storage/ofd_packets/00075436 [12:45:29]Write 313 bytes [12:45:29]NVStorageSaveData done [12:45:29]OFDSenderStorePacket done [12:45:29]KKMCreateOFDPacket done [12:45:29]NVStorageSaveData kkm_last_timestamp [12:45:29]File name is /storage/kkm_last_timestamp [12:45:29]Write 4 bytes [12:45:29]NVStorageSaveData done [12:45:29]ExternCall_PrintAddStr [12:45:29]wPrintStart [12:45:29]Write to MH i2c: 01 00 00 A9 02 AB [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 07 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 FF 0F C0 [12:45:29]RasterBufferAndPrint [12:45:29]line Счет N : (3)273242 [12:45:29]line ИНН: 02508201610067 [12:45:29]line Контрольно-Кассовый Чек [12:45:29]line ПРОДАЖА [12:45:29]line Товар: 48742078 [12:45:29]line Сигареты LD Silver [12:45:29]line 1.000 * 130.00 [12:45:29]line = 130.00 [12:45:29]line НДС 12% НСП 1% [12:45:29]line > о реализуемом товаре [12:45:29]line ИТОГО: 130.00 [12:45:29]line НСП 1% : 1.15 [12:45:29]line НДС 12% : 13.80 [12:45:29]line Наличными: 130.00 [12:45:29]line Безнал.: 0.00 [12:45:29]line Место: АЗС № 133 "Партнер Нефть" [12:45:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:45:29]line СНО: Общий режим [12:45:29]line Чек 169 23.10.2024 12:45 [12:45:29]line Смена: 173 ФФД: 1.0 [12:45:29]line ЗНМ: 0300000020 [12:45:29]line РНМ: 0000000000161154 [12:45:29]line Версия ККМ: v1.0 [12:45:29]line ФМ: 0000000000963323 [12:45:29]line ФД: 75436 [12:45:29]line ФПД: 7969839410141 [12:45:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124527&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75436&fm=7969839410141&tin=02508201610067®Number=0000000000161154&sum=13000 [12:45:29]OFD Sender: Processing packet 75436 [packets to send 16, broken 15] [12:45:29]ProducePacketName [12:45:29]name=ofd_packets/00075436 [12:45:29]OFD Sender: To server: pG, [12:45:29]CommunicateWithHost lk.salyk.kg:30040 [12:45:29]ConnectInit lk.salyk.kg [12:45:29]line 0 [12:45:29]written 0, free lines is 4095 [12:45:29]Connected sock=10 [12:45:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1B 01 00 00 FE 47 13 01 21 C2 5A 03 01 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E7 EF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AC 26 01 00 35 04 06 00 07 3F 9F 72 6B DD 59 0B 0A 73 C6 2F CC D0 [12:45:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FF 0B 47 00 F4 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AC 26 01 00 F4 03 04 00 C2 98 18 67 B6 04 01 00 00 66 4B EB 0D D0 F3 EC C9 [12:45:29]CommunicateWithHost err = 0 [12:45:29]CheckOFDResponse [12:45:29]1017 (14) - 77093643461234 [12:45:29]1041 (16) - 0000000000963323 [12:45:29]1040 (4) - 75436 [12:45:29]1012 (4) - 23.10.2024 06:33 [12:45:29]1206 (1) - 0 [12:45:29]OFD Sender: Remove packet 75436 [12:45:29]ProducePacketName [12:45:29]name=ofd_packets/00075436 [12:45:29]NVStorageDeleteData [12:45:29]Write to MH i2c: 01 00 00 D0 02 D2 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 07 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 D7 0C BC [12:45:29]RasterBufferAndPrint [12:45:29]line [12:45:29]line [12:45:29]line [12:45:29]line [12:45:29]line [12:45:29]written 0, free lines is 3290 [12:45:29]MH_Cut [12:45:29]Write to MH i2c: D1 01 00 D7 02 01 AB [12:45:30]Write i2c OK [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: D1 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: D1 01 00 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: D1 01 00 D7 02 00 AA [12:45:30]Write to MH i2c: 01 00 00 D8 02 DA [12:45:30]Write i2c OK [12:45:30]MH_I2C_Read... [12:45:30]OFD Sender: No OFD packet to send [12:45:30]*** Cut start [12:45:30]*** Partial cut [12:45:30]*** CUTSNS_PIN = 1 [12:45:30]*** CUTSNS_PIN = 0 [12:45:31]*** Brake cut motor [12:45:31]Read from MH i2c: 01 [12:45:31]MH_I2C_Read... [12:45:31]*** Stop cut motor [12:45:31]*** Cut end [12:45:31]Read from MH i2c: 01 07 00 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 FF 0F EF [12:45:31]process_action close_receipt done [12:45:31]requested_data is exist [12:45:31]produce_requested_data [12:45:31]requested_item fm.sn is exist - process it [12:45:31]wFMCommunicate request_size=4 [12:45:31]MH_SAM_APDU [12:45:31]CAPDU: 80 11 00 00 [12:45:31]Write to MH i2c: E2 08 00 D9 02 80 11 00 00 00 00 00 00 55 [12:45:31]Write i2c OK [12:45:31]MH_I2C_Read... [12:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:31]Read from MH i2c: E2 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 17 00 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 17 00 D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A2 [12:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:45:31]wFMCommunicate OK [12:45:31]requested_item fd.num is exist - process it [12:45:31]SAM_PROTO_GetFieldsCounters [12:45:31]wFMCommunicate request_size=4 [12:45:31]MH_SAM_APDU [12:45:31]CAPDU: 80 13 00 00 [12:45:31]Write to MH i2c: E2 08 00 DA 02 80 13 00 00 00 00 00 00 58 [12:45:31]Write i2c OK [12:45:31]MH_I2C_Read... [12:45:31]int [12:45:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:31]*** FLAG_PRN_PAP1 set [12:45:31]*** FLAG_PRN_PAP2 set [12:45:31]Read from MH i2c: E2 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 62 00 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 62 00 DA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AC 26 01 00 0E 04 04 00 AD 00 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 E7 [12:45:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AC 26 01 00 0E 04 04 00 AD 00 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 [12:45:31]wFMCommunicate OK [12:45:31]SAM_PROTO_GetFieldsCounters done [12:45:31]requested_item shift.num is exist - process it [12:45:31]requested_item shift.opened is exist - process it [12:45:31]req_shift_opened [12:45:31]FM_GetShiftState [12:45:31]SAM_PROTO_GetShiftState [12:45:31]wFMCommunicate request_size=4 [12:45:31]MH_SAM_APDU [12:45:31]CAPDU: 80 13 01 00 [12:45:31]Write to MH i2c: 01 00 00 DB 02 DD [12:45:31]Write i2c OK [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: 01 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: 01 07 00 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: 01 07 00 DB 02 00 03 00 00 00 FF 0F F5 [12:45:31]state=0 [12:45:31]No paper [12:45:31]Cover opened [12:45:31]Write to MH i2c: E2 08 00 DC 02 80 13 01 00 00 00 00 00 5B [12:45:31]Write i2c OK [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 [12:45:31]MH_I2C_Read... [12:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:31]Read from MH i2c: E2 0E 00 [12:45:31]MH_I2C_Read... [12:45:31]Read from MH i2c: E2 0E 00 DC 02 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C0 [12:45:31]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:45:31]wFMCommunicate OK [12:45:31]SAM_PROTO_GetShiftState done [12:45:31]FM_GetShiftState done [12:45:31]req_shift_opened done [12:45:31]requested_item shift.open_date is exist - process it [12:45:31]req_shift_open_date [12:45:31]req_shift_open_date done [12:45:31]produce_requested_data done [12:45:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75436,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:45:31]process_action_free close_receipt [12:45:31]json_value_free [12:45:31]json_value_free done [12:45:31]process_json_proto returns [12:45:31]Send response to host [12:45:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75436,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:45:31]free response buf [12:45:31]execute_script done [12:45:31]execute_script returns [12:45:31]free content buf [12:45:31]Sock 9.Close socket [12:45:31]Sock 9.Thread stoped [12:45:35]OFD Sender: No OFD packet to send [12:45:35]int [12:45:35]Write to MH i2c: 01 00 00 DD 02 DF [12:45:35]*** FLAG_PRN_PAP1 reset [12:45:35]*** FLAG_PRN_PAP2 reset [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 07 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 07 00 DD 02 00 00 00 00 00 FF 0F F4 [12:45:35]state=3 [12:45:35]Cover closed [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:53]int [12:45:53]Write to MH i2c: 01 00 00 DE 02 E0 [12:45:53]*** FLAG_PRN_PAP1 set [12:45:53]Write i2c OK [12:45:53]MH_I2C_Read... [12:45:53]Read from MH i2c: 01 [12:45:53]MH_I2C_Read... [12:45:53]Read from MH i2c: 01 07 00 [12:45:53]MH_I2C_Read... [12:45:53]Read from MH i2c: 01 07 00 DE 02 00 01 00 00 00 FF 0F F6 [12:45:53]state=0 [12:45:53]No paper [12:45:53]int [12:45:53]Write to MH i2c: 01 00 00 DF 02 E1 [12:45:53]*** FLAG_PRN_PAP2 set [12:45:53]Write i2c OK [12:45:53]MH_I2C_Read... [12:45:53]Read from MH i2c: 01 [12:45:53]MH_I2C_Read... [12:45:53]Read from MH i2c: 01 07 00 [12:45:53]MH_I2C_Read... [12:45:53]Read from MH i2c: 01 07 00 DF 02 00 03 00 00 00 FF 0F F9 [12:45:53]state=0 [12:45:53]No paper [12:45:53]Cover opened [12:45:55]OFD Sender: No OFD packet to send [12:45:58]Write to MH i2c: 01 00 00 E0 02 E2 [12:45:58]Write i2c OK [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: 01 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: 01 07 00 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: 01 07 00 E0 02 00 03 00 00 00 FF 0F FA [12:45:58]state=3 [12:45:58]No paper [12:45:58]Cover opened [12:46:00]OFD Sender: No OFD packet to send [12:46:01]int [12:46:01]Write to MH i2c: 01 00 00 E1 02 E3 [12:46:01]*** FLAG_PRN_PAP1 reset [12:46:01]Write i2c OK [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: 01 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: 01 07 00 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: 01 07 00 E1 02 00 02 00 00 00 FF 0F FA [12:46:01]state=3 [12:46:01]Cover opened [12:46:01]*** FLAG_PRN_PAP2 reset [12:46:02]*** FLAG_PRN_KEY set [12:46:02]*** FLAG_PRN_KEY reset [12:46:02]*** FLAG_PRN_KEY set [12:46:03]*** FLAG_PRN_KEY reset [12:46:04]*** FLAG_PRN_PAP1 set [12:46:04]*** FLAG_PRN_PAP2 set [12:46:05]*** FLAG_PRN_PAP1 reset [12:46:05]*** FLAG_PRN_PAP2 reset [12:46:05]OFD Sender: No OFD packet to send [12:46:06]*** FLAG_PRN_KEY set [12:46:06]Write to MH i2c: 01 00 00 E2 02 E4 [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 E2 02 00 08 00 00 00 FF 0F 01 [12:46:06]state=3 [12:46:06]Key pressed [12:46:06]Cover closed [12:46:06]int [12:46:06]Write to MH i2c: 01 00 00 E3 02 E5 [12:46:06]*** FLAG_PRN_KEY reset [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 E3 02 00 00 00 00 00 FF 0F FA [12:46:06]state=0 [12:46:06]int [12:46:06]Write to MH i2c: 01 00 00 E4 02 E6 [12:46:06]*** FLAG_PRN_KEY set [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 E4 02 00 08 00 00 00 FF 0F 03 [12:46:06]state=0 [12:46:06]Key pressed [12:46:06]Feed [12:46:06]Write to MH i2c: D8 00 00 E5 02 BE [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: D8 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: D8 01 00 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: D8 01 00 E5 02 00 BF [12:46:06]int [12:46:06]Write to MH i2c: 01 00 00 E6 02 E8 [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 E6 02 00 48 00 00 00 3C 00 73 [12:46:06]state=2 [12:46:06]Key pressed [12:46:07]int [12:46:07]Write to MH i2c: 01 00 00 E7 02 E9 [12:46:07]*** FLAG_PRN_KEY reset [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: 01 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: 01 07 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 F6 0F F5 [12:46:07]state=2 [12:46:07]Stop feed [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:46]accept exits with 8 [12:52:46]New connection [12:52:46]New thread 3066608996 created [12:52:46]Thread 3066465636 joined [12:52:46]Waiting for new connection... [12:52:46] Sock 8.Parse request [12:52:46]Sock 8.Check first char [12:52:46]Sock 8.First char is OK [12:52:46]request: POST /json_proto HTTP/1.0 [12:52:46]Method: POST [12:52:46]URL: /json_proto [12:52:46]Method is POST - this is cgi request [12:52:46]url: /json_proto [12:52:46]query_string will be loaded in cgi processing [12:52:46]execute_cgi json_proto POST (null) [12:52:46]execute_cgi path=json_proto method=POST [12:52:46]POST find Content-Length [12:52:46]Host: 172.17.44.196:8080 [12:52:46]Content-Length: 623 [12:52:46]Content-Type: application/json [12:52:46] [12:52:46]POST finish read [12:52:46]Found Content-Length = 623 [12:52:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273243", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:46]execute_script... [12:52: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 : (3)273243", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:46]POST & json_proto [12:52:46]process_json_proto [12:52:46]json parsed OK: [12:52:46]protocol is kg_v1.0 [12:52:46]action value=close_receipt [12:52:46]process_action close_receipt [12:52:46]cmd_close_receipt [12:52:46]MH_GetDate [12:52:46]Write to MH i2c: F0 00 00 E8 02 D9 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: F0 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: F0 09 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: F0 09 00 E8 02 00 9E F1 18 67 E7 19 F8 65 4D [12:52:46]GetLastDocTimeStamp 1729687527 [12:52:46]current date 1729687966 [12:52:46]FM_GetShiftState [12:52:46]SAM_PROTO_GetShiftState [12:52:46]wFMCommunicate request_size=4 [12:52:46]MH_SAM_APDU [12:52:46]CAPDU: 80 13 01 00 [12:52:46]Write to MH i2c: E2 08 00 E9 02 80 13 01 00 00 00 00 00 68 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:46]Read from MH i2c: E2 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 0E 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 0E 00 E9 02 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CD [12:52:46]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:52:46]wFMCommunicate OK [12:52:46]SAM_PROTO_GetShiftState done [12:52:46]FM_GetShiftState done [12:52:46]opened in 1729642905 [12:52:46]opened+sec_in_day 1729729305 [12:52:46]quantity*price = 28000 [12:52:46]sum+1 = 28001 [12:52:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 170 23.10.2024 12:52 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75437 ФПД: 174930464298665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125246&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75437&fm=174930464298665&tin=02508201610067®Number=0000000000161154&sum=28000 0 [12:52:47]StoreToDocumentArchive [12:52:47]shift 173 fd 75437 [12:52:47]save to /storage/0173/doc_00075437 [12:52:47]save last doc name /storage/0173/doc_00075437 to /storage/kkm_last_doc_name [12:52:47]save OK [12:52:47]Clear old archive folders... [12:52:47]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:52:47]tlvbuf is B6F04230 [12:52:47]SAM_PROTO_ClearQueue [12:52:47]wFMCommunicate request_size=4 [12:52:47]MH_SAM_APDU [12:52:47]CAPDU: 80 09 00 00 [12:52:47]Write to MH i2c: E2 08 00 F6 02 80 09 00 00 00 00 00 00 6A [12:52:47]Write i2c OK [12:52:47]MH_I2C_Read... [12:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:47]Read from MH i2c: E2 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: E2 03 00 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [12:52:47]RAPDU: 90 00 [12:52:47]wFMCommunicate OK [12:52:47]SAM_PROTO_ClearQueue done [12:52:47]KKMCreateOFDPacket [12:52:47]OFDProtocolAddRootSTLVToBuf [12:52:47]FM_MakeSignedData [12:52:47]FM_MakeSignedData [12:52:47]SAM_PROTO_SignData [12:52:47]wFMCommunicate request_size=4 [12:52:47]MH_SAM_APDU [12:52:47]CAPDU: 80 0D 01 02 [12:52:47]Write to MH i2c: E2 08 00 F7 02 80 0D 01 02 00 00 00 00 72 [12:52:47]Write i2c OK [12:52:47]MH_I2C_Read... [12:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:47]Read from MH i2c: E2 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: E2 03 00 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [12:52:47]RAPDU: 90 00 [12:52:47]wFMCommunicate OK [12:52:47]wFMCommunicate request_size=255 [12:52:47]MH_SAM_APDU [12:52:47]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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9E F1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [12:52:47]Write to MH i2c: E2 02 01 F8 02 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9E F1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 51 [12:52:47]Write i2c OK [12:52:47]MH_I2C_Read... [12:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:47]Read from MH i2c: E2 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: E2 03 00 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [12:52:47]RAPDU: 90 00 [12:52:47]wFMCommunicate OK [12:52:47]wFMCommunicate request_size=34 [12:52:47]MH_SAM_APDU [12:52:47]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AD 26 01 00 35 04 06 00 9F 19 2C 2F 56 A9 [12:52:47]Write to MH i2c: E2 25 00 F9 02 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AD 26 01 00 35 04 06 00 9F 19 2C 2F 56 A9 00 00 16 [12:52:47]Write i2c OK [12:52:47]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [12:52:48]RAPDU: 90 00 [12:52:48]wFMCommunicate OK [12:52:48]wFMCommunicate request_size=4 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 0D 03 02 [12:52:48]Write to MH i2c: E2 08 00 FA 02 80 0D 03 02 00 00 00 00 77 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 0B 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 0B 00 FA 02 00 4A B5 D6 96 09 9A C3 EA 90 00 33 [12:52:48]RAPDU: 4A B5 D6 96 09 9A C3 EA 90 00 [12:52:48]wFMCommunicate OK [12:52:48]SAM_PROTO_SignData done [12:52:48]FM_MakeSignedData done [12:52:48]CreateOFDProtocolMessage [12:52:48]wFMCommunicate request_size=4 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 11 00 00 [12:52:48]Write to MH i2c: E2 08 00 FB 02 80 11 00 00 00 00 00 00 77 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 17 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 17 00 FB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C4 [12:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:52:48]wFMCommunicate OK [12:52:48]CreateOFDProtocolMessage done [12:52:48]OFDSenderStorePacket 75437 [12:52:48]StoreOFDPacket docnum=75437 [12:52:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 77 F1 1F 01 BC CB 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9E F1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AD 26 01 00 35 04 06 00 9F 19 2C 2F 56 A9 4A B5 D6 96 09 9A C3 EA [12:52:48]CheckFolder [12:52:48]dirname=/storage/ofd_packets [12:52:48]CheckFolder done [12:52:48]ProducePacketName [12:52:48]name=ofd_packets/00075437 [12:52:48]NVStorageSaveData ofd_packets/00075437 [12:52:48]File name is /storage/ofd_packets/00075437 [12:52:48]Write 325 bytes [12:52:48]NVStorageSaveData done [12:52:48]OFDSenderStorePacket done [12:52:48]KKMCreateOFDPacket done [12:52:48]NVStorageSaveData kkm_last_timestamp [12:52:48]File name is /storage/kkm_last_timestamp [12:52:48]Write 4 bytes [12:52:48]NVStorageSaveData done [12:52:48]ExternCall_PrintAddStr [12:52:48]wPrintStart [12:52:48]Write to MH i2c: 01 00 00 FC 02 FE [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: 01 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: 01 07 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 FF 0F 13 [12:52:48]RasterBufferAndPrint [12:52:48]line Счет N : (3)273243 [12:52:48]line ИНН: 02508201610067 [12:52:48]line Контрольно-Кассовый Чек [12:52:48]line ПРОДАЖА [12:52:48]line Товар: 48743587 [12:52:48]line Сигареты Winston XStyle Silver [12:52:48]line 2.000 * 140.00 [12:52:48]line = 280.00 [12:52:48]line НДС 12% НСП 1% [12:52:48]line > о реализуемом товаре [12:52:48]line ИТОГО: 280.00 [12:52:48]line НСП 1% : 2.48 [12:52:48]line НДС 12% : 29.73 [12:52:48]line Наличными: 280.00 [12:52:48]line Безнал.: 0.00 [12:52:48]line Место: АЗС № 133 "Партнер Нефть" [12:52:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [12:52:48]line СНО: Общий режим [12:52:48]line Чек 170 23.10.2024 12:52 [12:52:48]line Смена: 173 ФФД: 1.0 [12:52:48]line ЗНМ: 0300000020 [12:52:48]line РНМ: 0000000000161154 [12:52:48]line Версия ККМ: v1.0 [12:52:48]line ФМ: 0000000000963323 [12:52:48]line ФД: 75437 [12:52:48]line ФПД: 174930464298665 [12:52:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125246&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75437&fm=174930464298665&tin=02508201610067®Number=0000000000161154&sum=28000 [12:52:48]line 0 [12:52:48]OFD Sender: Processing packet 75437 [packets to send 16, broken 15] [12:52:48]ProducePacketName [12:52:48]name=ofd_packets/00075437 [12:52:48]OFD Sender: To server: pG, [12:52:48]CommunicateWithHost lk.salyk.kg:30040 [12:52:48]ConnectInit lk.salyk.kg [12:52:48]written 0, free lines is 4095 [12:52:48]Connected sock=10 [12:52:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 77 F1 1F 01 BC CB 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9E F1 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AD 26 01 00 35 04 06 00 9F 19 2C 2F 56 A9 4A B5 D6 96 09 9A C3 EA [12:52:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7F 71 47 00 D2 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 39 36 33 33 32 33 10 04 04 00 AD 26 01 00 F4 03 04 00 79 9A 18 67 B6 04 01 00 00 25 3B 15 D1 B6 05 91 A7 [12:52:48]CommunicateWithHost err = 0 [12:52:48]CheckOFDResponse [12:52:48]1017 (14) - 77093643461234 [12:52:48]1041 (16) - 0000000000963323 [12:52:48]1040 (4) - 75437 [12:52:48]1012 (4) - 23.10.2024 06:40 [12:52:48]1206 (1) - 0 [12:52:48]OFD Sender: Remove packet 75437 [12:52:48]ProducePacketName [12:52:48]name=ofd_packets/00075437 [12:52:48]NVStorageDeleteData [12:52:48]Write to MH i2c: 01 00 00 24 03 27 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: 01 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: 01 07 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: 01 07 00 24 03 00 00 00 00 00 CF 0C 09 [12:52:48]RasterBufferAndPrint [12:52:48]line [12:52:48]line [12:52:48]line [12:52:48]line [12:52:48]line [12:52:48]written 0, free lines is 3282 [12:52:48]MH_Cut [12:52:48]Write to MH i2c: D1 01 00 2B 03 01 00 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: D1 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: D1 01 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: D1 01 00 2B 03 00 FF [12:52:48]Write to MH i2c: 01 00 00 2C 03 2F [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:49]OFD Sender: No OFD packet to send [12:52:49]*** Cut start [12:52:49]*** Partial cut [12:52:49]*** CUTSNS_PIN = 1 [12:52:49]*** CUTSNS_PIN = 0 [12:52:50]*** Brake cut motor [12:52:50]Read from MH i2c: 01 [12:52:50]MH_I2C_Read... [12:52:50]*** Stop cut motor [12:52:50]*** Cut end [12:52:50]Read from MH i2c: 01 07 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: 01 07 00 2C 03 00 00 00 00 00 FF 0F 44 [12:52:50]process_action close_receipt done [12:52:50]requested_data is exist [12:52:50]produce_requested_data [12:52:50]requested_item fm.sn is exist - process it [12:52:50]wFMCommunicate request_size=4 [12:52:50]MH_SAM_APDU [12:52:50]CAPDU: 80 11 00 00 [12:52:50]Write to MH i2c: E2 08 00 2D 03 80 11 00 00 00 00 00 00 AA [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:50]Read from MH i2c: E2 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 17 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 17 00 2D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F7 [12:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [12:52:50]wFMCommunicate OK [12:52:50]requested_item fd.num is exist - process it [12:52:50]SAM_PROTO_GetFieldsCounters [12:52:50]wFMCommunicate request_size=4 [12:52:50]MH_SAM_APDU [12:52:50]CAPDU: 80 13 00 00 [12:52:50]Write to MH i2c: E2 08 00 2E 03 80 13 00 00 00 00 00 00 AD [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:50]Read from MH i2c: E2 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 62 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 62 00 2E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AD 26 01 00 0E 04 04 00 AD 00 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 40 [12:52:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AD 26 01 00 0E 04 04 00 AD 00 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 [12:52:50]wFMCommunicate OK [12:52:50]SAM_PROTO_GetFieldsCounters done [12:52:50]requested_item shift.num is exist - process it [12:52:50]requested_item shift.opened is exist - process it [12:52:50]req_shift_opened [12:52:50]FM_GetShiftState [12:52:50]SAM_PROTO_GetShiftState [12:52:50]wFMCommunicate request_size=4 [12:52:50]MH_SAM_APDU [12:52:50]CAPDU: 80 13 01 00 [12:52:50]Write to MH i2c: E2 08 00 2F 03 80 13 01 00 00 00 00 00 AF [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:50]Read from MH i2c: E2 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 0E 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 0E 00 2F 03 00 09 00 01 99 41 18 67 00 00 00 00 90 00 14 [12:52:50]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [12:52:50]wFMCommunicate OK [12:52:50]SAM_PROTO_GetShiftState done [12:52:50]FM_GetShiftState done [12:52:50]req_shift_opened done [12:52:50]requested_item shift.open_date is exist - process it [12:52:50]req_shift_open_date [12:52:50]req_shift_open_date done [12:52:50]produce_requested_data done [12:52:50]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75437,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [12:52:50]process_action_free close_receipt [12:52:50]json_value_free [12:52:50]json_value_free done [12:52:50]process_json_proto returns [12:52:50]Send response to host [12:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75437,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [12:52:50]free response buf [12:52:50]execute_script done [12:52:50]execute_script returns [12:52:50]free content buf [12:52:50]Sock 8.Close socket [12:52:50]Sock 8.Thread stoped [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:01]accept exits with 9 [13:05:01]New connection [13:05:01]New thread 3066465636 created [13:05:01]Thread 3066608996 joined [13:05:01]Waiting for new connection... [13:05:01] Sock 9.Parse request [13:05:01]Sock 9.Check first char [13:05:01]Sock 9.First char is OK [13:05:01]request: POST /json_proto HTTP/1.0 [13:05:01]Method: POST [13:05:01]URL: /json_proto [13:05:01]Method is POST - this is cgi request [13:05:01]url: /json_proto [13:05:01]query_string will be loaded in cgi processing [13:05:01]execute_cgi json_proto POST (null) [13:05:01]execute_cgi path=json_proto method=POST [13:05:01]POST find Content-Length [13:05:01]Host: 172.17.44.196:8080 [13:05:01]Content-Length: 619 [13:05:01]Content-Type: application/json [13:05:01] [13:05:01]POST finish read [13:05:01]Found Content-Length = 619 [13:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273244", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:01]execute_script... [13:05: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)273244", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:01]POST & json_proto [13:05:01]process_json_proto [13:05:01]json parsed OK: [13:05:01]protocol is kg_v1.0 [13:05:01]action value=close_receipt [13:05:01]process_action close_receipt [13:05:01]cmd_close_receipt [13:05:01]MH_GetDate [13:05:01]Write to MH i2c: F0 00 00 30 03 22 [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: F0 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: F0 09 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: F0 09 00 30 03 00 7D F4 18 67 E7 19 F8 65 78 [13:05:01]GetLastDocTimeStamp 1729687966 [13:05:01]current date 1729688701 [13:05:01]FM_GetShiftState [13:05:01]SAM_PROTO_GetShiftState [13:05:01]wFMCommunicate request_size=4 [13:05:01]MH_SAM_APDU [13:05:01]CAPDU: 80 13 01 00 [13:05:01]Write to MH i2c: E2 08 00 31 03 80 13 01 00 00 00 00 00 B1 [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:01]Read from MH i2c: E2 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 0E 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 0E 00 31 03 00 09 00 01 99 41 18 67 00 00 00 00 90 00 16 [13:05:01]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:05:01]wFMCommunicate OK [13:05:01]SAM_PROTO_GetShiftState done [13:05:01]FM_GetShiftState done [13:05:01]opened in 1729642905 [13:05:01]opened+sec_in_day 1729729305 [13:05:01]quantity*price = 14000 [13:05:01]sum+1 = 14001 [13:05:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 171 23.10.2024 13:05 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75438 ФПД: 197903670710400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130501&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75438&fm=197903670710400&tin=02508201610067®Number=0000000000161154&sum=14000 0 [13:05:02]StoreToDocumentArchive [13:05:02]shift 173 fd 75438 [13:05:02]save to /storage/0173/doc_00075438 [13:05:02]save last doc name /storage/0173/doc_00075438 to /storage/kkm_last_doc_name [13:05:02]save OK [13:05:02]Clear old archive folders... [13:05:02]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:05:02]tlvbuf is 00775370 [13:05:02]SAM_PROTO_ClearQueue [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 09 00 00 [13:05:02]Write to MH i2c: E2 08 00 3E 03 80 09 00 00 00 00 00 00 B3 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 03 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 03 00 3E 03 00 90 00 B5 [13:05:02]RAPDU: 90 00 [13:05:02]wFMCommunicate OK [13:05:02]SAM_PROTO_ClearQueue done [13:05:02]KKMCreateOFDPacket [13:05:02]OFDProtocolAddRootSTLVToBuf [13:05:02]FM_MakeSignedData [13:05:02]FM_MakeSignedData [13:05:02]SAM_PROTO_SignData [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 0D 01 02 [13:05:02]Write to MH i2c: E2 08 00 3F 03 80 0D 01 02 00 00 00 00 BB [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 03 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [13:05:02]RAPDU: 90 00 [13:05:02]wFMCommunicate OK [13:05:02]wFMCommunicate request_size=255 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7D F4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:05:02]Write to MH i2c: E2 02 01 40 03 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7D F4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 80 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 03 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [13:05:02]RAPDU: 90 00 [13:05:02]wFMCommunicate OK [13:05:02]wFMCommunicate request_size=30 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 0D 02 02 19 30 39 36 33 33 32 33 10 04 04 00 AE 26 01 00 35 04 06 00 B3 FE 09 FE 10 80 [13:05:02]Write to MH i2c: E2 21 00 41 03 80 0D 02 02 19 00 30 39 36 33 33 32 33 10 04 04 00 AE 26 01 00 35 04 06 00 B3 FE 09 FE 10 80 00 00 CE [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 03 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 03 00 41 03 00 90 00 B8 [13:05:02]RAPDU: 90 00 [13:05:02]wFMCommunicate OK [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 0D 03 02 [13:05:02]Write to MH i2c: E2 08 00 42 03 80 0D 03 02 00 00 00 00 C0 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 0B 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 0B 00 42 03 00 71 D1 78 7E AB 81 98 BE 90 00 7B [13:05:02]RAPDU: 71 D1 78 7E AB 81 98 BE 90 00 [13:05:02]wFMCommunicate OK [13:05:02]SAM_PROTO_SignData done [13:05:02]FM_MakeSignedData done [13:05:02]CreateOFDProtocolMessage [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 11 00 00 [13:05:02]Write to MH i2c: E2 08 00 43 03 80 11 00 00 00 00 00 00 C0 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 17 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 17 00 43 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0D [13:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:05:03]wFMCommunicate OK [13:05:03]CreateOFDProtocolMessage done [13:05:03]OFDSenderStorePacket 75438 [13:05:03]StoreOFDPacket docnum=75438 [13:05:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 D6 CB 1B 01 B0 96 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7D F4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AE 26 01 00 35 04 06 00 B3 FE 09 FE 10 80 71 D1 78 7E AB 81 98 BE [13:05:03]CheckFolder [13:05:03]dirname=/storage/ofd_packets [13:05:03]CheckFolder done [13:05:03]ProducePacketName [13:05:03]name=ofd_packets/00075438 [13:05:03]NVStorageSaveData ofd_packets/00075438 [13:05:03]File name is /storage/ofd_packets/00075438 [13:05:03]Write 321 bytes [13:05:03]NVStorageSaveData done [13:05:03]OFDSenderStorePacket done [13:05:03]KKMCreateOFDPacket done [13:05:03]NVStorageSaveData kkm_last_timestamp [13:05:03]File name is /storage/kkm_last_timestamp [13:05:03]Write 4 bytes [13:05:03]NVStorageSaveData done [13:05:03]ExternCall_PrintAddStr [13:05:03]wPrintStart [13:05:03]Write to MH i2c: 01 00 00 44 03 47 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: 01 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: 01 07 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 FF 0F 5C [13:05:03]RasterBufferAndPrint [13:05:03]line Счет N : (3)273244 [13:05:03]line ИНН: 02508201610067 [13:05:03]line Контрольно-Кассовый Чек [13:05:03]line ПРОДАЖА [13:05:03]line Товар: 47802995 [13:05:03]line Сигареты Winston XS Silver [13:05:03]line 1.000 * 140.00 [13:05:03]line = 140.00 [13:05:03]line НДС 12% НСП 1% [13:05:03]line > о реализуемом товаре [13:05:03]line ИТОГО: 140.00 [13:05:03]line НСП 1% : 1.24 [13:05:03]line НДС 12% : 14.87 [13:05:03]line Наличными: 140.00 [13:05:03]line Безнал.: 0.00 [13:05:03]line Место: АЗС № 133 "Партнер Нефть" [13:05:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:05:03]line СНО: Общий режим [13:05:03]line Чек 171 23.10.2024 13:05 [13:05:03]line Смена: 173 ФФД: 1.0 [13:05:03]line ЗНМ: 0300000020 [13:05:03]line РНМ: 0000000000161154 [13:05:03]line Версия ККМ: v1.0 [13:05:03]line ФМ: 0000000000963323 [13:05:03]line ФД: 75438 [13:05:03]line ФПД: 197903670710400 [13:05:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130501&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75438&fm=197903670710400&tin=02508201610067®Number=0000000000161154&sum=14000 [13:05:03]line 0 [13:05:03]OFD Sender: Processing packet 75438 [packets to send 16, broken 15] [13:05:03]ProducePacketName [13:05:03]name=ofd_packets/00075438 [13:05:03]OFD Sender: To server: pG, [13:05:03]CommunicateWithHost lk.salyk.kg:30040 [13:05:03]ConnectInit lk.salyk.kg [13:05:03]written 0, free lines is 4095 [13:05:03]Connected sock=10 [13:05:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 23 01 00 00 D6 CB 1B 01 B0 96 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7D F4 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AE 26 01 00 35 04 06 00 B3 FE 09 FE 10 80 71 D1 78 7E AB 81 98 BE [13:05:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6A AB 47 00 E8 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AE 26 01 00 F4 03 04 00 58 9D 18 67 B6 04 01 00 00 AB 8F 98 4B A4 B4 25 3B [13:05:03]CommunicateWithHost err = 0 [13:05:03]CheckOFDResponse [13:05:03]1017 (14) - 77093643461234 [13:05:03]1041 (16) - 0000000000963323 [13:05:03]1040 (4) - 75438 [13:05:03]1012 (4) - 23.10.2024 06:53 [13:05:03]1206 (1) - 0 [13:05:03]OFD Sender: Remove packet 75438 [13:05:03]ProducePacketName [13:05:03]name=ofd_packets/00075438 [13:05:03]NVStorageDeleteData [13:05:03]Write to MH i2c: 01 00 00 6B 03 6E [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: 01 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: 01 07 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 CF 0C 50 [13:05:03]RasterBufferAndPrint [13:05:03]line [13:05:03]line [13:05:03]line [13:05:03]line [13:05:03]line [13:05:03]written 0, free lines is 3282 [13:05:03]MH_Cut [13:05:03]Write to MH i2c: D1 01 00 72 03 01 47 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: D1 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: D1 01 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: D1 01 00 72 03 00 46 [13:05:03]Write to MH i2c: 01 00 00 73 03 76 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:04]OFD Sender: No OFD packet to send [13:05:04]*** Cut start [13:05:04]*** Partial cut [13:05:04]*** CUTSNS_PIN = 1 [13:05:04]*** CUTSNS_PIN = 0 [13:05:05]*** Brake cut motor [13:05:05]Read from MH i2c: 01 [13:05:05]MH_I2C_Read... [13:05:05]*** Stop cut motor [13:05:05]*** Cut end [13:05:05]Read from MH i2c: 01 07 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 FF 0F 8B [13:05:05]process_action close_receipt done [13:05:05]requested_data is exist [13:05:05]produce_requested_data [13:05:05]requested_item fm.sn is exist - process it [13:05:05]wFMCommunicate request_size=4 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 11 00 00 [13:05:05]Write to MH i2c: E2 08 00 74 03 80 11 00 00 00 00 00 00 F1 [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 17 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 17 00 74 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3E [13:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:05:05]wFMCommunicate OK [13:05:05]requested_item fd.num is exist - process it [13:05:05]SAM_PROTO_GetFieldsCounters [13:05:05]wFMCommunicate request_size=4 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 13 00 00 [13:05:05]Write to MH i2c: E2 08 00 75 03 80 13 00 00 00 00 00 00 F4 [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 62 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 62 00 75 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AE 26 01 00 0E 04 04 00 AD 00 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 8B [13:05:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AE 26 01 00 0E 04 04 00 AD 00 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 [13:05:05]wFMCommunicate OK [13:05:05]SAM_PROTO_GetFieldsCounters done [13:05:05]requested_item shift.num is exist - process it [13:05:05]requested_item shift.opened is exist - process it [13:05:05]req_shift_opened [13:05:05]FM_GetShiftState [13:05:05]SAM_PROTO_GetShiftState [13:05:05]wFMCommunicate request_size=4 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 13 01 00 [13:05:05]Write to MH i2c: E2 08 00 76 03 80 13 01 00 00 00 00 00 F6 [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 0E 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 0E 00 76 03 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5B [13:05:05]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:05:05]wFMCommunicate OK [13:05:05]SAM_PROTO_GetShiftState done [13:05:05]FM_GetShiftState done [13:05:05]req_shift_opened done [13:05:05]requested_item shift.open_date is exist - process it [13:05:05]req_shift_open_date [13:05:05]req_shift_open_date done [13:05:05]produce_requested_data done [13:05:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75438,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:05:05]process_action_free close_receipt [13:05:05]json_value_free [13:05:05]json_value_free done [13:05:05]process_json_proto returns [13:05:05]Send response to host [13:05:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75438,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:05:05]free response buf [13:05:05]execute_script done [13:05:05]execute_script returns [13:05:05]free content buf [13:05:05]Sock 9.Close socket [13:05:05]Sock 9.Thread stoped [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:10]accept exits with 8 [13:08:10]New connection [13:08:10]New thread 3066608996 created [13:08:10]Thread 3066465636 joined [13:08:10]Waiting for new connection... [13:08:10] Sock 8.Parse request [13:08:10]Sock 8.Check first char [13:08:10]Sock 8.First char is OK [13:08:10]request: POST /json_proto HTTP/1.0 [13:08:10]Method: POST [13:08:10]URL: /json_proto [13:08:10]Method is POST - this is cgi request [13:08:10]url: /json_proto [13:08:10]query_string will be loaded in cgi processing [13:08:10]execute_cgi json_proto POST (null) [13:08:10]execute_cgi path=json_proto method=POST [13:08:10]POST find Content-Length [13:08:10]Host: 172.17.44.196:8080 [13:08:10]Content-Length: 715 [13:08:10]Content-Type: application/json [13:08:10] [13:08:10]POST finish read [13:08:10]Found Content-Length = 715 [13:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273245", "tax_sys" : 0, "items" : [ { "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:10]execute_script... [13:08:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273245", "tax_sys" : 0, "items" : [ { "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:10]POST & json_proto [13:08:10]process_json_proto [13:08:10]json parsed OK: [13:08:10]protocol is kg_v1.0 [13:08:10]action value=close_receipt [13:08:10]process_action close_receipt [13:08:10]cmd_close_receipt [13:08:10]MH_GetDate [13:08:10]Write to MH i2c: F0 00 00 77 03 69 [13:08:10]Write i2c OK [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: F0 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: F0 09 00 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: F0 09 00 77 03 00 3A F5 18 67 E7 19 F8 65 7D [13:08:10]GetLastDocTimeStamp 1729688701 [13:08:10]current date 1729688890 [13:08:10]FM_GetShiftState [13:08:10]SAM_PROTO_GetShiftState [13:08:10]wFMCommunicate request_size=4 [13:08:10]MH_SAM_APDU [13:08:10]CAPDU: 80 13 01 00 [13:08:10]Write to MH i2c: E2 08 00 78 03 80 13 01 00 00 00 00 00 F8 [13:08:10]Write i2c OK [13:08:10]MH_I2C_Read... [13:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:10]Read from MH i2c: E2 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 0E 00 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 0E 00 78 03 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5D [13:08:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:08:10]wFMCommunicate OK [13:08:10]SAM_PROTO_GetShiftState done [13:08:10]FM_GetShiftState done [13:08:10]opened in 1729642905 [13:08:10]opened+sec_in_day 1729729305 [13:08:10]quantity*price = 7000 [13:08:10]sum+1 = 7001 [13:08:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 172 23.10.2024 13:08 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75439 ФПД: 30638795102114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130810&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75439&fm=30638795102114&tin=02508201610067®Number=0000000000161154&sum=7000 0 [13:08:11]StoreToDocumentArchive [13:08:11]shift 173 fd 75439 [13:08:11]save to /storage/0173/doc_00075439 [13:08:11]save last doc name /storage/0173/doc_00075439 to /storage/kkm_last_doc_name [13:08:11]save OK [13:08:11]Clear old archive folders... [13:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=306 [13:08:11]tlvbuf is 00772C80 [13:08:11]SAM_PROTO_ClearQueue [13:08:11]wFMCommunicate request_size=4 [13:08:11]MH_SAM_APDU [13:08:11]CAPDU: 80 09 00 00 [13:08:11]Write to MH i2c: E2 08 00 85 03 80 09 00 00 00 00 00 00 FA [13:08:11]Write i2c OK [13:08:11]MH_I2C_Read... [13:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:11]Read from MH i2c: E2 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 03 00 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 03 00 85 03 00 90 00 FC [13:08:11]RAPDU: 90 00 [13:08:11]wFMCommunicate OK [13:08:11]SAM_PROTO_ClearQueue done [13:08:11]KKMCreateOFDPacket [13:08:11]OFDProtocolAddRootSTLVToBuf [13:08:11]FM_MakeSignedData [13:08:11]FM_MakeSignedData [13:08:11]SAM_PROTO_SignData [13:08:11]wFMCommunicate request_size=4 [13:08:11]MH_SAM_APDU [13:08:11]CAPDU: 80 0D 01 02 [13:08:11]Write to MH i2c: E2 08 00 86 03 80 0D 01 02 00 00 00 00 02 [13:08:11]Write i2c OK [13:08:11]MH_I2C_Read... [13:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:11]Read from MH i2c: E2 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 03 00 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [13:08:11]RAPDU: 90 00 [13:08:11]wFMCommunicate OK [13:08:11]wFMCommunicate request_size=255 [13:08:11]MH_SAM_APDU [13:08:11]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3A F5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 [13:08:11]Write to MH i2c: E2 02 01 87 03 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3A F5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 00 29 [13:08:11]Write i2c OK [13:08:11]MH_I2C_Read... [13:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:11]Read from MH i2c: E2 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 03 00 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [13:08:11]RAPDU: 90 00 [13:08:11]wFMCommunicate OK [13:08:11]wFMCommunicate request_size=65 [13:08:11]MH_SAM_APDU [13:08:11]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AF 26 01 00 35 04 06 00 1B DD A6 7F 97 A2 [13:08:11]Write to MH i2c: E2 44 00 88 03 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AF 26 01 00 35 04 06 00 1B DD A6 7F 97 A2 00 00 73 [13:08:11]Write i2c OK [13:08:11]MH_I2C_Read... [13:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:12]Read from MH i2c: E2 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: E2 03 00 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: E2 03 00 88 03 00 90 00 FF [13:08:12]RAPDU: 90 00 [13:08:12]wFMCommunicate OK [13:08:12]wFMCommunicate request_size=4 [13:08:12]MH_SAM_APDU [13:08:12]CAPDU: 80 0D 03 02 [13:08:12]Write to MH i2c: E2 08 00 89 03 80 0D 03 02 00 00 00 00 07 [13:08:12]Write i2c OK [13:08:12]MH_I2C_Read... [13:08:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:12]Read from MH i2c: E2 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: E2 0B 00 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: E2 0B 00 89 03 00 BD E6 C1 08 BE 6A 5A 0C 90 00 02 [13:08:12]RAPDU: BD E6 C1 08 BE 6A 5A 0C 90 00 [13:08:12]wFMCommunicate OK [13:08:12]SAM_PROTO_SignData done [13:08:12]FM_MakeSignedData done [13:08:12]CreateOFDProtocolMessage [13:08:12]wFMCommunicate request_size=4 [13:08:12]MH_SAM_APDU [13:08:12]CAPDU: 80 11 00 00 [13:08:12]Write to MH i2c: E2 08 00 8A 03 80 11 00 00 00 00 00 00 07 [13:08:12]Write i2c OK [13:08:12]MH_I2C_Read... [13:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:12]Read from MH i2c: E2 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: E2 17 00 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: E2 17 00 8A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 54 [13:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:08:12]wFMCommunicate OK [13:08:12]CreateOFDProtocolMessage done [13:08:12]OFDSenderStorePacket 75439 [13:08:12]StoreOFDPacket docnum=75439 [13:08:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 46 01 00 00 8E 06 3E 01 61 14 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3A F5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AF 26 01 00 35 04 06 00 1B DD A6 7F 97 A2 BD E6 C1 08 BE 6A 5A 0C [13:08:12]CheckFolder [13:08:12]dirname=/storage/ofd_packets [13:08:12]CheckFolder done [13:08:12]ProducePacketName [13:08:12]name=ofd_packets/00075439 [13:08:12]NVStorageSaveData ofd_packets/00075439 [13:08:12]File name is /storage/ofd_packets/00075439 [13:08:12]Write 356 bytes [13:08:12]NVStorageSaveData done [13:08:12]OFDSenderStorePacket done [13:08:12]KKMCreateOFDPacket done [13:08:12]NVStorageSaveData kkm_last_timestamp [13:08:12]File name is /storage/kkm_last_timestamp [13:08:12]Write 4 bytes [13:08:12]NVStorageSaveData done [13:08:12]ExternCall_PrintAddStr [13:08:12]wPrintStart [13:08:12]Write to MH i2c: 01 00 00 8B 03 8E [13:08:12]Write i2c OK [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: 01 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: 01 07 00 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 FF 0F A3 [13:08:12]RasterBufferAndPrint [13:08:12]line Счет N : (3)273245 [13:08:12]line ИНН: 02508201610067 [13:08:12]line Контрольно-Кассовый Чек [13:08:12]line ПРОДАЖА [13:08:12]line Товар: 4870202522688 [13:08:12]line Garden напиток со вкусом граната 0,45 ПЭ [13:08:12]line 1.000 * 70.00 [13:08:12]line = 70.00 [13:08:12]line НДС 12% НСП 1% [13:08:12]line > о реализуемом товаре [13:08:12]line ИТОГО: 70.00 [13:08:12]line НСП 1% : 0.62 [13:08:12]line НДС 12% : 7.43 [13:08:12]line Наличными: 70.00 [13:08:12]line Безнал.: 0.00 [13:08:12]line Место: АЗС № 133 "Партнер Нефть" [13:08:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:08:12]line СНО: Общий режим [13:08:12]line Чек 172 23.10.2024 13:08 [13:08:12]line Смена: 173 ФФД: 1.0 [13:08:12]line ЗНМ: 0300000020 [13:08:12]line РНМ: 0000000000161154 [13:08:12]line Версия ККМ: v1.0 [13:08:12]line ФМ: 0000000000963323 [13:08:12]line ФД: 75439 [13:08:12]line ФПД: 30638795102114 [13:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130810&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75439&fm=30638795102114&tin=02508201610067®Number=0000000000161154&sum=7000 [13:08:12]line 0 [13:08:12]OFD Sender: Processing packet 75439 [packets to send 16, broken 15] [13:08:12]ProducePacketName [13:08:12]name=ofd_packets/00075439 [13:08:12]OFD Sender: To server: pG, [13:08:12]CommunicateWithHost lk.salyk.kg:30040 [13:08:12]ConnectInit lk.salyk.kg [13:08:12]written 0, free lines is 4095 [13:08:12]Connected sock=10 [13:08:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 46 01 00 00 8E 06 3E 01 61 14 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3A F5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AF 26 01 00 35 04 06 00 1B DD A6 7F 97 A2 BD E6 C1 08 BE 6A 5A 0C [13:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1E D3 47 00 A6 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 AF 26 01 00 F4 03 04 00 15 9E 18 67 B6 04 01 00 00 A7 23 2F 52 99 D0 C0 28 [13:08:12]CommunicateWithHost err = 0 [13:08:12]CheckOFDResponse [13:08:12]1017 (14) - 77093643461234 [13:08:12]1041 (16) - 0000000000963323 [13:08:12]1040 (4) - 75439 [13:08:12]1012 (4) - 23.10.2024 06:56 [13:08:12]1206 (1) - 0 [13:08:12]OFD Sender: Remove packet 75439 [13:08:12]ProducePacketName [13:08:12]name=ofd_packets/00075439 [13:08:12]NVStorageDeleteData [13:08:12]Write to MH i2c: 01 00 00 B3 03 B6 [13:08:12]Write i2c OK [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: 01 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: 01 07 00 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 B4 0C 7D [13:08:12]RasterBufferAndPrint [13:08:12]line [13:08:12]line [13:08:12]line [13:08:12]line [13:08:12]line [13:08:12]written 0, free lines is 3257 [13:08:12]MH_Cut [13:08:12]Write to MH i2c: D1 01 00 BA 03 01 8F [13:08:12]Write i2c OK [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: D1 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: D1 01 00 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: D1 01 00 BA 03 00 8E [13:08:12]Write to MH i2c: 01 00 00 BB 03 BE [13:08:12]Write i2c OK [13:08:12]MH_I2C_Read... [13:08:13]OFD Sender: No OFD packet to send [13:08:13]*** Cut start [13:08:13]*** Partial cut [13:08:13]*** CUTSNS_PIN = 1 [13:08:13]*** CUTSNS_PIN = 0 [13:08:14]*** Brake cut motor [13:08:14]Read from MH i2c: 01 [13:08:14]MH_I2C_Read... [13:08:14]*** Stop cut motor [13:08:14]*** Cut end [13:08:14]Read from MH i2c: 01 07 00 [13:08:14]MH_I2C_Read... [13:08:14]Read from MH i2c: 01 07 00 BB 03 00 00 00 00 00 FF 0F D3 [13:08:14]process_action close_receipt done [13:08:14]requested_data is exist [13:08:14]produce_requested_data [13:08:14]requested_item fm.sn is exist - process it [13:08:14]wFMCommunicate request_size=4 [13:08:14]MH_SAM_APDU [13:08:14]CAPDU: 80 11 00 00 [13:08:14]Write to MH i2c: E2 08 00 BC 03 80 11 00 00 00 00 00 00 39 [13:08:14]Write i2c OK [13:08:14]MH_I2C_Read... [13:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:14]Read from MH i2c: E2 [13:08:14]MH_I2C_Read... [13:08:14]Read from MH i2c: E2 17 00 [13:08:14]MH_I2C_Read... [13:08:14]Read from MH i2c: E2 17 00 BC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [13:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:08:14]wFMCommunicate OK [13:08:14]requested_item fd.num is exist - process it [13:08:14]SAM_PROTO_GetFieldsCounters [13:08:14]wFMCommunicate request_size=4 [13:08:14]MH_SAM_APDU [13:08:14]CAPDU: 80 13 00 00 [13:08:14]Write to MH i2c: E2 08 00 BD 03 80 13 00 00 00 00 00 00 3C [13:08:14]Write i2c OK [13:08:14]MH_I2C_Read... [13:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:14]Read from MH i2c: E2 [13:08:14]MH_I2C_Read... [13:08:14]Read from MH i2c: E2 62 00 [13:08:14]MH_I2C_Read... [13:08:14]Read from MH i2c: E2 62 00 BD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AF 26 01 00 0E 04 04 00 AD 00 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 D7 [13:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 AF 26 01 00 0E 04 04 00 AD 00 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 [13:08:14]wFMCommunicate OK [13:08:14]SAM_PROTO_GetFieldsCounters done [13:08:14]requested_item shift.num is exist - process it [13:08:14]requested_item shift.opened is exist - process it [13:08:14]req_shift_opened [13:08:14]FM_GetShiftState [13:08:14]SAM_PROTO_GetShiftState [13:08:14]wFMCommunicate request_size=4 [13:08:14]MH_SAM_APDU [13:08:14]CAPDU: 80 13 01 00 [13:08:14]Write to MH i2c: E2 08 00 BE 03 80 13 01 00 00 00 00 00 3E [13:08:14]Write i2c OK [13:08:14]MH_I2C_Read... [13:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:14]Read from MH i2c: E2 [13:08:14]MH_I2C_Read... [13:08:14]Read from MH i2c: E2 0E 00 [13:08:14]MH_I2C_Read... [13:08:14]Read from MH i2c: E2 0E 00 BE 03 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A3 [13:08:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:08:14]wFMCommunicate OK [13:08:14]SAM_PROTO_GetShiftState done [13:08:14]FM_GetShiftState done [13:08:14]req_shift_opened done [13:08:14]requested_item shift.open_date is exist - process it [13:08:14]req_shift_open_date [13:08:14]req_shift_open_date done [13:08:14]produce_requested_data done [13:08:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75439,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:08:14]process_action_free close_receipt [13:08:14]json_value_free [13:08:14]json_value_free done [13:08:14]process_json_proto returns [13:08:14]Send response to host [13:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75439,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:08:14]free response buf [13:08:14]execute_script done [13:08:14]execute_script returns [13:08:14]free content buf [13:08:14]Sock 8.Close socket [13:08:14]Sock 8.Thread stoped [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:48]accept exits with 9 [13:10:48]New connection [13:10:48]New thread 3066465636 created [13:10:48]Thread 3066608996 joined [13:10:48]Waiting for new connection... [13:10:48] Sock 9.Parse request [13:10:48]Sock 9.Check first char [13:10:48]Sock 9.First char is OK [13:10:48]request: POST /json_proto HTTP/1.0 [13:10:48]Method: POST [13:10:48]URL: /json_proto [13:10:48]Method is POST - this is cgi request [13:10:48]url: /json_proto [13:10:48]query_string will be loaded in cgi processing [13:10:48]execute_cgi json_proto POST (null) [13:10:48]execute_cgi path=json_proto method=POST [13:10:48]POST find Content-Length [13:10:48]Host: 172.17.44.196:8080 [13:10:48]Content-Length: 644 [13:10:48]Content-Type: application/json [13:10:48] [13:10:48]POST finish read [13:10:48]Found Content-Length = 644 [13:10:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273246", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:48]execute_script... [13:10:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273246", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:48]POST & json_proto [13:10:48]process_json_proto [13:10:48]json parsed OK: [13:10:48]protocol is kg_v1.0 [13:10:48]action value=close_receipt [13:10:48]process_action close_receipt [13:10:48]cmd_close_receipt [13:10:48]MH_GetDate [13:10:48]Write to MH i2c: F0 00 00 BF 03 B1 [13:10:48]Write i2c OK [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: F0 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: F0 09 00 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: F0 09 00 BF 03 00 D9 F5 18 67 E7 19 F8 65 64 [13:10:48]GetLastDocTimeStamp 1729688890 [13:10:48]current date 1729689049 [13:10:48]FM_GetShiftState [13:10:48]SAM_PROTO_GetShiftState [13:10:48]wFMCommunicate request_size=4 [13:10:48]MH_SAM_APDU [13:10:48]CAPDU: 80 13 01 00 [13:10:48]Write to MH i2c: E2 08 00 C0 03 80 13 01 00 00 00 00 00 40 [13:10:48]Write i2c OK [13:10:48]MH_I2C_Read... [13:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:48]Read from MH i2c: E2 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: E2 0E 00 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: E2 0E 00 C0 03 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A5 [13:10:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:10:48]wFMCommunicate OK [13:10:48]SAM_PROTO_GetShiftState done [13:10:48]FM_GetShiftState done [13:10:48]opened in 1729642905 [13:10:48]opened+sec_in_day 1729729305 [13:10:48]quantity*price = 23000 [13:10:48]sum+1 = 23001 [13:10:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 173 23.10.2024 13:10 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75440 ФПД: 16244649072534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131049&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75440&fm=16244649072534&tin=02508201610067®Number=0000000000161154&sum=23000 0 [13:10:50]StoreToDocumentArchive [13:10:50]shift 173 fd 75440 [13:10:50]save to /storage/0173/doc_00075440 [13:10:50]save last doc name /storage/0173/doc_00075440 to /storage/kkm_last_doc_name [13:10:50]save OK [13:10:50]Clear old archive folders... [13:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=280 [13:10:50]tlvbuf is 00772B50 [13:10:50]SAM_PROTO_ClearQueue [13:10:50]wFMCommunicate request_size=4 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 09 00 00 [13:10:50]Write to MH i2c: E2 08 00 CD 03 80 09 00 00 00 00 00 00 42 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 CD 03 00 90 00 44 [13:10:50]RAPDU: 90 00 [13:10:50]wFMCommunicate OK [13:10:50]SAM_PROTO_ClearQueue done [13:10:50]KKMCreateOFDPacket [13:10:50]OFDProtocolAddRootSTLVToBuf [13:10:50]FM_MakeSignedData [13:10:50]FM_MakeSignedData [13:10:50]SAM_PROTO_SignData [13:10:50]wFMCommunicate request_size=4 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 0D 01 02 [13:10:50]Write to MH i2c: E2 08 00 CE 03 80 0D 01 02 00 00 00 00 4A [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 CE 03 00 90 00 45 [13:10:50]RAPDU: 90 00 [13:10:50]wFMCommunicate OK [13:10:50]wFMCommunicate request_size=255 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D9 F5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 [13:10:50]Write to MH i2c: E2 02 01 CF 03 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D9 F5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 00 90 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 CF 03 00 90 00 46 [13:10:50]RAPDU: 90 00 [13:10:50]wFMCommunicate OK [13:10:50]wFMCommunicate request_size=39 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B0 26 01 00 35 04 06 00 0E C6 40 89 97 96 [13:10:50]Write to MH i2c: E2 2A 00 D0 03 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B0 26 01 00 35 04 06 00 0E C6 40 89 97 96 00 00 A3 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 D0 03 00 90 00 47 [13:10:50]RAPDU: 90 00 [13:10:50]wFMCommunicate OK [13:10:50]wFMCommunicate request_size=4 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 0D 03 02 [13:10:50]Write to MH i2c: E2 08 00 D1 03 80 0D 03 02 00 00 00 00 4F [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 0B 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 0B 00 D1 03 00 82 87 CE 1D 71 B6 59 0F 90 00 D3 [13:10:50]RAPDU: 82 87 CE 1D 71 B6 59 0F 90 00 [13:10:50]wFMCommunicate OK [13:10:50]SAM_PROTO_SignData done [13:10:50]FM_MakeSignedData done [13:10:50]CreateOFDProtocolMessage [13:10:50]wFMCommunicate request_size=4 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 11 00 00 [13:10:50]Write to MH i2c: E2 08 00 D2 03 80 11 00 00 00 00 00 00 4F [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 17 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 17 00 D2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9C [13:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:10:50]wFMCommunicate OK [13:10:50]CreateOFDProtocolMessage done [13:10:50]OFDSenderStorePacket 75440 [13:10:50]StoreOFDPacket docnum=75440 [13:10:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 6F 5F 24 01 17 5C 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D9 F5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B0 26 01 00 35 04 06 00 0E C6 40 89 97 96 82 87 CE 1D 71 B6 59 0F [13:10:50]CheckFolder [13:10:50]dirname=/storage/ofd_packets [13:10:50]CheckFolder done [13:10:50]ProducePacketName [13:10:50]name=ofd_packets/00075440 [13:10:50]NVStorageSaveData ofd_packets/00075440 [13:10:50]File name is /storage/ofd_packets/00075440 [13:10:50]Write 330 bytes [13:10:50]NVStorageSaveData done [13:10:50]OFDSenderStorePacket done [13:10:50]KKMCreateOFDPacket done [13:10:50]NVStorageSaveData kkm_last_timestamp [13:10:50]File name is /storage/kkm_last_timestamp [13:10:50]Write 4 bytes [13:10:50]NVStorageSaveData done [13:10:50]ExternCall_PrintAddStr [13:10:50]wPrintStart [13:10:50]Write to MH i2c: 01 00 00 D3 03 D6 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: 01 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: 01 07 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 FF 0F EB [13:10:50]RasterBufferAndPrint [13:10:50]line Счет N : (3)273246 [13:10:50]line ИНН: 02508201610067 [13:10:50]line Контрольно-Кассовый Чек [13:10:50]line ПРОДАЖА [13:10:50]line Товар: 2000036210013 [13:10:50]line Кофе Капучино (GABB TRADE) [13:10:50]line 2.000 * 115.00 [13:10:50]line = 230.00 [13:10:50]line НДС 12% НСП 1% [13:10:50]line > о реализуемом товаре [13:10:50]line ИТОГО: 230.00 [13:10:50]line НСП 1% : 2.03 [13:10:50]line НДС 12% : 24.42 [13:10:50]line Наличными: 230.00 [13:10:50]line Безнал.: 0.00 [13:10:50]line Место: АЗС № 133 "Партнер Нефть" [13:10:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:10:50]line СНО: Общий режим [13:10:50]line Чек 173 23.10.2024 13:10 [13:10:50]line Смена: 173 ФФД: 1.0 [13:10:50]line ЗНМ: 0300000020 [13:10:50]line РНМ: 0000000000161154 [13:10:50]line Версия ККМ: v1.0 [13:10:50]line ФМ: 0000000000963323 [13:10:50]line ФД: 75440 [13:10:50]line ФПД: 16244649072534 [13:10:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131049&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75440&fm=16244649072534&tin=02508201610067®Number=0000000000161154&sum=23000 [13:10:50]line 0 [13:10:50]OFD Sender: Processing packet 75440 [packets to send 16, broken 15] [13:10:50]ProducePacketName [13:10:50]name=ofd_packets/00075440 [13:10:50]OFD Sender: To server: pG, [13:10:50]CommunicateWithHost lk.salyk.kg:30040 [13:10:50]ConnectInit lk.salyk.kg [13:10:50]written 0, free lines is 4095 [13:10:51]Connected sock=10 [13:10:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 6F 5F 24 01 17 5C 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D9 F5 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B0 26 01 00 35 04 06 00 0E C6 40 89 97 96 82 87 CE 1D 71 B6 59 0F [13:10:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D3 4E 47 00 06 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 39 36 33 33 32 33 10 04 04 00 B0 26 01 00 F4 03 04 00 B4 9E 18 67 B6 04 01 00 00 24 23 90 6A 13 50 32 B0 [13:10:51]CommunicateWithHost err = 0 [13:10:51]CheckOFDResponse [13:10:51]1017 (14) - 77093643461234 [13:10:51]1041 (16) - 0000000000963323 [13:10:51]1040 (4) - 75440 [13:10:51]1012 (4) - 23.10.2024 06:59 [13:10:51]1206 (1) - 0 [13:10:51]OFD Sender: Remove packet 75440 [13:10:51]ProducePacketName [13:10:51]name=ofd_packets/00075440 [13:10:51]NVStorageDeleteData [13:10:51]Write to MH i2c: 01 00 00 FA 03 FD [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 07 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 D2 0C E2 [13:10:51]RasterBufferAndPrint [13:10:51]line [13:10:51]line [13:10:51]line [13:10:51]line [13:10:51]line [13:10:51]written 0, free lines is 3286 [13:10:51]MH_Cut [13:10:51]Write to MH i2c: D1 01 00 01 04 01 D7 [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: D1 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: D1 01 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: D1 01 00 01 04 00 D6 [13:10:51]Write to MH i2c: 01 00 00 02 04 06 [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]OFD Sender: No OFD packet to send [13:10:52]*** Cut start [13:10:52]*** Partial cut [13:10:52]*** CUTSNS_PIN = 1 [13:10:52]*** CUTSNS_PIN = 0 [13:10:52]*** Brake cut motor [13:10:52]Read from MH i2c: 01 [13:10:52]MH_I2C_Read... [13:10:52]*** Stop cut motor [13:10:52]*** Cut end [13:10:52]Read from MH i2c: 01 07 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: 01 07 00 02 04 00 00 00 00 00 FF 0F 1B [13:10:52]process_action close_receipt done [13:10:52]requested_data is exist [13:10:52]produce_requested_data [13:10:52]requested_item fm.sn is exist - process it [13:10:52]wFMCommunicate request_size=4 [13:10:52]MH_SAM_APDU [13:10:52]CAPDU: 80 11 00 00 [13:10:52]Write to MH i2c: E2 08 00 03 04 80 11 00 00 00 00 00 00 81 [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:52]Read from MH i2c: E2 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 17 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 17 00 03 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CE [13:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:10:52]wFMCommunicate OK [13:10:52]requested_item fd.num is exist - process it [13:10:52]SAM_PROTO_GetFieldsCounters [13:10:52]wFMCommunicate request_size=4 [13:10:52]MH_SAM_APDU [13:10:52]CAPDU: 80 13 00 00 [13:10:52]Write to MH i2c: E2 08 00 04 04 80 13 00 00 00 00 00 00 84 [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:53]Read from MH i2c: E2 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: E2 62 00 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: E2 62 00 04 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B0 26 01 00 0E 04 04 00 AD 00 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 23 [13:10:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B0 26 01 00 0E 04 04 00 AD 00 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 [13:10:53]wFMCommunicate OK [13:10:53]SAM_PROTO_GetFieldsCounters done [13:10:53]requested_item shift.num is exist - process it [13:10:53]requested_item shift.opened is exist - process it [13:10:53]req_shift_opened [13:10:53]FM_GetShiftState [13:10:53]SAM_PROTO_GetShiftState [13:10:53]wFMCommunicate request_size=4 [13:10:53]MH_SAM_APDU [13:10:53]CAPDU: 80 13 01 00 [13:10:53]Write to MH i2c: E2 08 00 05 04 80 13 01 00 00 00 00 00 86 [13:10:53]Write i2c OK [13:10:53]MH_I2C_Read... [13:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:53]Read from MH i2c: E2 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: E2 0E 00 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: E2 0E 00 05 04 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EB [13:10:53]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:10:53]wFMCommunicate OK [13:10:53]SAM_PROTO_GetShiftState done [13:10:53]FM_GetShiftState done [13:10:53]req_shift_opened done [13:10:53]requested_item shift.open_date is exist - process it [13:10:53]req_shift_open_date [13:10:53]req_shift_open_date done [13:10:53]produce_requested_data done [13:10:53]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75440,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:10:53]process_action_free close_receipt [13:10:53]json_value_free [13:10:53]json_value_free done [13:10:53]process_json_proto returns [13:10:53]Send response to host [13:10:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75440,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:10:53]free response buf [13:10:53]execute_script done [13:10:53]execute_script returns [13:10:53]free content buf [13:10:53]Sock 9.Close socket [13:10:53]Sock 9.Thread stoped [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:30]accept exits with 8 [13:11:30]New connection [13:11:30]New thread 3066608996 created [13:11:30]Thread 3066465636 joined [13:11:30]Waiting for new connection... [13:11:30] Sock 8.Parse request [13:11:30]Sock 8.Check first char [13:11:30]Sock 8.First char is OK [13:11:30]request: POST /json_proto HTTP/1.0 [13:11:30]Method: POST [13:11:30]URL: /json_proto [13:11:30]Method is POST - this is cgi request [13:11:30]url: /json_proto [13:11:30]query_string will be loaded in cgi processing [13:11:30]execute_cgi json_proto POST (null) [13:11:30]execute_cgi path=json_proto method=POST [13:11:30]POST find Content-Length [13:11:30]Host: 172.17.44.196:8080 [13:11:30]Content-Length: 618 [13:11:30]Content-Type: application/json [13:11:30] [13:11:30]POST finish read [13:11:30]Found Content-Length = 618 [13:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273247", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:30]execute_script... [13:11:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273247", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:30]POST & json_proto [13:11:30]process_json_proto [13:11:30]json parsed OK: [13:11:30]protocol is kg_v1.0 [13:11:30]action value=close_receipt [13:11:30]process_action close_receipt [13:11:30]cmd_close_receipt [13:11:30]MH_GetDate [13:11:30]Write to MH i2c: F0 00 00 06 04 F9 [13:11:30]Write i2c OK [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: F0 [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: F0 09 00 [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: F0 09 00 06 04 00 02 F6 18 67 E7 19 F8 65 D6 [13:11:30]GetLastDocTimeStamp 1729689049 [13:11:30]current date 1729689090 [13:11:30]FM_GetShiftState [13:11:30]SAM_PROTO_GetShiftState [13:11:30]wFMCommunicate request_size=4 [13:11:30]MH_SAM_APDU [13:11:30]CAPDU: 80 13 01 00 [13:11:30]Write to MH i2c: E2 08 00 07 04 80 13 01 00 00 00 00 00 88 [13:11:30]Write i2c OK [13:11:30]MH_I2C_Read... [13:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:30]Read from MH i2c: E2 [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: E2 0E 00 [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: E2 0E 00 07 04 00 09 00 01 99 41 18 67 00 00 00 00 90 00 ED [13:11:30]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:11:30]wFMCommunicate OK [13:11:30]SAM_PROTO_GetShiftState done [13:11:30]FM_GetShiftState done [13:11:30]opened in 1729642905 [13:11:30]opened+sec_in_day 1729729305 [13:11:30]quantity*price = 12500 [13:11:30]sum+1 = 12501 [13:11:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 174 23.10.2024 13:11 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75441 ФПД: 120539280908266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131130&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75441&fm=120539280908266&tin=02508201610067®Number=0000000000161154&sum=12500 0 [13:11:31]StoreToDocumentArchive [13:11:31]shift 173 fd 75441 [13:11:31]save to /storage/0173/doc_00075441 [13:11:31]save last doc name /storage/0173/doc_00075441 to /storage/kkm_last_doc_name [13:11:31]save OK [13:11:31]Clear old archive folders... [13:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=270 [13:11:31]tlvbuf is 0078DBA0 [13:11:31]SAM_PROTO_ClearQueue [13:11:31]wFMCommunicate request_size=4 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 09 00 00 [13:11:31]Write to MH i2c: E2 08 00 14 04 80 09 00 00 00 00 00 00 8A [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 14 04 00 90 00 8C [13:11:31]RAPDU: 90 00 [13:11:31]wFMCommunicate OK [13:11:31]SAM_PROTO_ClearQueue done [13:11:31]KKMCreateOFDPacket [13:11:31]OFDProtocolAddRootSTLVToBuf [13:11:31]FM_MakeSignedData [13:11:31]FM_MakeSignedData [13:11:31]SAM_PROTO_SignData [13:11:31]wFMCommunicate request_size=4 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 0D 01 02 [13:11:31]Write to MH i2c: E2 08 00 15 04 80 0D 01 02 00 00 00 00 92 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 15 04 00 90 00 8D [13:11:31]RAPDU: 90 00 [13:11:31]wFMCommunicate OK [13:11:31]wFMCommunicate request_size=255 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 02 F6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [13:11:31]Write to MH i2c: E2 02 01 16 04 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 02 F6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 41 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]OFD Sender: No OFD packet to send [13:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 16 04 00 90 00 8E [13:11:31]RAPDU: 90 00 [13:11:31]wFMCommunicate OK [13:11:31]wFMCommunicate request_size=29 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 B1 26 01 00 35 04 06 00 6D A1 3D 05 1F EA [13:11:31]Write to MH i2c: E2 20 00 17 04 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 B1 26 01 00 35 04 06 00 6D A1 3D 05 1F EA 00 00 87 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 03 00 17 04 00 90 00 8F [13:11:31]RAPDU: 90 00 [13:11:31]wFMCommunicate OK [13:11:31]wFMCommunicate request_size=4 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 0D 03 02 [13:11:31]Write to MH i2c: E2 08 00 18 04 80 0D 03 02 00 00 00 00 97 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:32]Read from MH i2c: E2 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: E2 0B 00 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: E2 0B 00 18 04 00 40 0F 50 09 1E 2B D3 D5 90 00 31 [13:11:32]RAPDU: 40 0F 50 09 1E 2B D3 D5 90 00 [13:11:32]wFMCommunicate OK [13:11:32]SAM_PROTO_SignData done [13:11:32]FM_MakeSignedData done [13:11:32]CreateOFDProtocolMessage [13:11:32]wFMCommunicate request_size=4 [13:11:32]MH_SAM_APDU [13:11:32]CAPDU: 80 11 00 00 [13:11:32]Write to MH i2c: E2 08 00 19 04 80 11 00 00 00 00 00 00 97 [13:11:32]Write i2c OK [13:11:32]MH_I2C_Read... [13:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:32]Read from MH i2c: E2 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: E2 17 00 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: E2 17 00 19 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E4 [13:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:11:32]wFMCommunicate OK [13:11:32]CreateOFDProtocolMessage done [13:11:32]OFDSenderStorePacket 75441 [13:11:32]StoreOFDPacket docnum=75441 [13:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 F5 B0 1A 01 04 C8 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 02 F6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B1 26 01 00 35 04 06 00 6D A1 3D 05 1F EA 40 0F 50 09 1E 2B D3 D5 [13:11:32]CheckFolder [13:11:32]dirname=/storage/ofd_packets [13:11:32]CheckFolder done [13:11:32]ProducePacketName [13:11:32]name=ofd_packets/00075441 [13:11:32]NVStorageSaveData ofd_packets/00075441 [13:11:32]File name is /storage/ofd_packets/00075441 [13:11:32]Write 320 bytes [13:11:32]NVStorageSaveData done [13:11:32]OFDSenderStorePacket done [13:11:32]KKMCreateOFDPacket done [13:11:32]NVStorageSaveData kkm_last_timestamp [13:11:32]File name is /storage/kkm_last_timestamp [13:11:32]Write 4 bytes [13:11:32]NVStorageSaveData done [13:11:32]ExternCall_PrintAddStr [13:11:32]wPrintStart [13:11:32]Write to MH i2c: 01 00 00 1A 04 1E [13:11:32]Write i2c OK [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: 01 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: 01 07 00 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 FF 0F 33 [13:11:32]RasterBufferAndPrint [13:11:32]line Счет N : (3)273247 [13:11:32]line ИНН: 02508201610067 [13:11:32]line Контрольно-Кассовый Чек [13:11:32]line ПРОДАЖА [13:11:32]line Товар: 48742191 [13:11:32]line Сигареты Bond Street Blue [13:11:32]line 1.000 * 125.00 [13:11:32]line = 125.00 [13:11:32]line НДС 12% НСП 1% [13:11:32]line > о реализуемом товаре [13:11:32]line ИТОГО: 125.00 [13:11:32]line НСП 1% : 1.11 [13:11:32]line НДС 12% : 13.27 [13:11:32]line Наличными: 125.00 [13:11:32]line Безнал.: 0.00 [13:11:32]line Место: АЗС № 133 "Партнер Нефть" [13:11:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:11:32]line СНО: Общий режим [13:11:32]line Чек 174 23.10.2024 13:11 [13:11:32]line Смена: 173 ФФД: 1.0 [13:11:32]line ЗНМ: 0300000020 [13:11:32]line РНМ: 0000000000161154 [13:11:32]line Версия ККМ: v1.0 [13:11:32]line ФМ: 0000000000963323 [13:11:32]line ФД: 75441 [13:11:32]line ФПД: 120539280908266 [13:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131130&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75441&fm=120539280908266&tin=02508201610067®Number=0000000000161154&sum=12500 [13:11:32]line 0 [13:11:32]OFD Sender: Processing packet 75441 [packets to send 16, broken 15] [13:11:32]ProducePacketName [13:11:32]name=ofd_packets/00075441 [13:11:32]OFD Sender: To server: pG, [13:11:32]CommunicateWithHost lk.salyk.kg:30040 [13:11:32]ConnectInit lk.salyk.kg [13:11:32]written 0, free lines is 4095 [13:11:32]Connected sock=9 [13:11:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 F5 B0 1A 01 04 C8 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 02 F6 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B1 26 01 00 35 04 06 00 6D A1 3D 05 1F EA 40 0F 50 09 1E 2B D3 D5 [13:11:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FD 87 47 00 4E C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B1 26 01 00 F4 03 04 00 DD 9E 18 67 B6 04 01 00 00 9B F7 1A ED DC 42 59 38 [13:11:32]CommunicateWithHost err = 0 [13:11:32]CheckOFDResponse [13:11:32]1017 (14) - 77093643461234 [13:11:32]1041 (16) - 0000000000963323 [13:11:32]1040 (4) - 75441 [13:11:32]1012 (4) - 23.10.2024 06:59 [13:11:32]1206 (1) - 0 [13:11:32]OFD Sender: Remove packet 75441 [13:11:32]ProducePacketName [13:11:32]name=ofd_packets/00075441 [13:11:32]NVStorageDeleteData [13:11:32]Write to MH i2c: 01 00 00 41 04 45 [13:11:32]Write i2c OK [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: 01 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: 01 07 00 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: 01 07 00 41 04 00 00 00 00 00 D2 0C 2A [13:11:32]RasterBufferAndPrint [13:11:32]line [13:11:32]line [13:11:32]line [13:11:32]line [13:11:32]line [13:11:32]written 0, free lines is 3286 [13:11:32]MH_Cut [13:11:32]Write to MH i2c: D1 01 00 48 04 01 1E [13:11:32]Write i2c OK [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: D1 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: D1 01 00 [13:11:32]MH_I2C_Read... [13:11:32]Read from MH i2c: D1 01 00 48 04 00 1D [13:11:32]Write to MH i2c: 01 00 00 49 04 4D [13:11:32]Write i2c OK [13:11:32]MH_I2C_Read... [13:11:33]OFD Sender: No OFD packet to send [13:11:33]*** Cut start [13:11:33]*** Partial cut [13:11:33]*** CUTSNS_PIN = 1 [13:11:33]*** CUTSNS_PIN = 0 [13:11:34]*** Brake cut motor [13:11:34]Read from MH i2c: 01 [13:11:34]MH_I2C_Read... [13:11:34]*** Stop cut motor [13:11:34]*** Cut end [13:11:34]Read from MH i2c: 01 07 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 FF 0F 62 [13:11:34]process_action close_receipt done [13:11:34]requested_data is exist [13:11:34]produce_requested_data [13:11:34]requested_item fm.sn is exist - process it [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 11 00 00 [13:11:34]Write to MH i2c: E2 08 00 4A 04 80 11 00 00 00 00 00 00 C8 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 17 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 17 00 4A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 15 [13:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:11:34]wFMCommunicate OK [13:11:34]requested_item fd.num is exist - process it [13:11:34]SAM_PROTO_GetFieldsCounters [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 13 00 00 [13:11:34]Write to MH i2c: E2 08 00 4B 04 80 13 00 00 00 00 00 00 CB [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 62 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 62 00 4B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B1 26 01 00 0E 04 04 00 AD 00 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 6E [13:11:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B1 26 01 00 0E 04 04 00 AD 00 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 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_GetFieldsCounters done [13:11:34]requested_item shift.num is exist - process it [13:11:34]requested_item shift.opened is exist - process it [13:11:34]req_shift_opened [13:11:34]FM_GetShiftState [13:11:34]SAM_PROTO_GetShiftState [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 13 01 00 [13:11:34]Write to MH i2c: E2 08 00 4C 04 80 13 01 00 00 00 00 00 CD [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 0E 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 0E 00 4C 04 00 09 00 01 99 41 18 67 00 00 00 00 90 00 32 [13:11:34]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_GetShiftState done [13:11:34]FM_GetShiftState done [13:11:34]req_shift_opened done [13:11:34]requested_item shift.open_date is exist - process it [13:11:34]req_shift_open_date [13:11:34]req_shift_open_date done [13:11:34]produce_requested_data done [13:11:34]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75441,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:11:34]process_action_free close_receipt [13:11:34]json_value_free [13:11:34]json_value_free done [13:11:34]process_json_proto returns [13:11:34]Send response to host [13:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75441,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:11:34]free response buf [13:11:34]execute_script done [13:11:34]execute_script returns [13:11:34]free content buf [13:11:34]Sock 8.Close socket [13:11:34]Sock 8.Thread stoped [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:49]accept exits with 10 [13:21:49]New connection [13:21:49]New thread 3066465636 created [13:21:49]Thread 3066608996 joined [13:21:49]Waiting for new connection... [13:21:49] Sock 10.Parse request [13:21:49]Sock 10.Check first char [13:21:49]Sock 10.First char is OK [13:21:49]request: POST /json_proto HTTP/1.0 [13:21:49]Method: POST [13:21:49]URL: /json_proto [13:21:49]Method is POST - this is cgi request [13:21:49]url: /json_proto [13:21:49]query_string will be loaded in cgi processing [13:21:49]execute_cgi json_proto POST (null) [13:21:49]execute_cgi path=json_proto method=POST [13:21:49]POST find Content-Length [13:21:49]Host: 172.17.44.196:8080 [13:21:49]Content-Length: 215 [13:21:49]Content-Type: application/json [13:21:49] [13:21:49]POST finish read [13:21:49]Found Content-Length = 215 [13:21:49]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" ] } } [13:21:49]execute_script... [13:21:49]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" ] } } [13:21:49]POST & json_proto [13:21:49]process_json_proto [13:21:49]json parsed OK: [13:21:49]protocol is kg_v1.0 [13:21:49]action value=get_value [13:21:49]process_action get_value [13:21:49]cmd_get_value [13:21:49]process_action get_value done [13:21:49]requested_data is exist [13:21:49]produce_requested_data [13:21:49]requested_item kkm.sn is exist - process it [13:21:49]requested_item kkm.ver is exist - process it [13:21:49]requested_item fm.sn is exist - process it [13:21:49]wFMCommunicate request_size=4 [13:21:49]MH_SAM_APDU [13:21:49]CAPDU: 80 11 00 00 [13:21:49]Write to MH i2c: E2 08 00 4D 04 80 11 00 00 00 00 00 00 CB [13:21:49]Write i2c OK [13:21:49]MH_I2C_Read... [13:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:49]Read from MH i2c: E2 [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: E2 17 00 [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: E2 17 00 4D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 18 [13:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:21:49]wFMCommunicate OK [13:21:49]requested_item fd.num is exist - process it [13:21:49]SAM_PROTO_GetFieldsCounters [13:21:49]wFMCommunicate request_size=4 [13:21:49]MH_SAM_APDU [13:21:49]CAPDU: 80 13 00 00 [13:21:49]Write to MH i2c: E2 08 00 4E 04 80 13 00 00 00 00 00 00 CE [13:21:49]Write i2c OK [13:21:49]MH_I2C_Read... [13:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:49]Read from MH i2c: E2 [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: E2 62 00 [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: E2 62 00 4E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B1 26 01 00 0E 04 04 00 AD 00 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 71 [13:21:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B1 26 01 00 0E 04 04 00 AD 00 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 [13:21:49]wFMCommunicate OK [13:21:49]SAM_PROTO_GetFieldsCounters done [13:21:49]requested_item shift.num is exist - process it [13:21:49]requested_item shift.opened is exist - process it [13:21:49]req_shift_opened [13:21:49]FM_GetShiftState [13:21:49]SAM_PROTO_GetShiftState [13:21:49]wFMCommunicate request_size=4 [13:21:49]MH_SAM_APDU [13:21:49]CAPDU: 80 13 01 00 [13:21:49]Write to MH i2c: E2 08 00 4F 04 80 13 01 00 00 00 00 00 D0 [13:21:49]Write i2c OK [13:21:49]MH_I2C_Read... [13:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:49]Read from MH i2c: E2 [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: E2 0E 00 [13:21:49]MH_I2C_Read... [13:21:49]Read from MH i2c: E2 0E 00 4F 04 00 09 00 01 99 41 18 67 00 00 00 00 90 00 35 [13:21:49]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:21:49]wFMCommunicate OK [13:21:49]SAM_PROTO_GetShiftState done [13:21:49]FM_GetShiftState done [13:21:49]req_shift_opened done [13:21:49]requested_item shift.open_date is exist - process it [13:21:49]req_shift_open_date [13:21:49]req_shift_open_date done [13:21:49]produce_requested_data done [13:21:49]produce_requested_data return {"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":75441,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:21:49]process_action_free get_value [13:21:49]json_value_free [13:21:49]json_value_free done [13:21:49]process_json_proto returns [13:21:49]Send response to host [13:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":75441,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:21:49]free response buf [13:21:49]execute_script done [13:21:49]execute_script returns [13:21:49]free content buf [13:21:49]Sock 10.Close socket [13:21:49]Sock 10.Thread stoped [13:21:52]accept exits with 8 [13:21:52]New connection [13:21:52]New thread 3066608996 created [13:21:52]Thread 3066465636 joined [13:21:52]Waiting for new connection... [13:21:52] Sock 8.Parse request [13:21:52]Sock 8.Check first char [13:21:52]Sock 8.First char is OK [13:21:52]request: POST /json_proto HTTP/1.0 [13:21:52]Method: POST [13:21:52]URL: /json_proto [13:21:52]Method is POST - this is cgi request [13:21:52]url: /json_proto [13:21:52]query_string will be loaded in cgi processing [13:21:52]execute_cgi json_proto POST (null) [13:21:52]execute_cgi path=json_proto method=POST [13:21:52]POST find Content-Length [13:21:52]Host: 172.17.44.196:8080 [13:21:52]Content-Length: 331 [13:21:52]Content-Type: application/json [13:21:52] [13:21:52]POST finish read [13:21:52]Found Content-Length = 331 [13:21:52]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" ] } } [13:21:52]execute_script... [13:21:52]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" ] } } [13:21:52]POST & json_proto [13:21:52]process_json_proto [13:21:52]json parsed OK: [13:21:52]protocol is kg_v1.0 [13:21:52]action value=get_value [13:21:52]process_action get_value [13:21:52]cmd_get_value [13:21:52]process_action get_value done [13:21:52]requested_data is exist [13:21:52]produce_requested_data [13:21:52]requested_item fm.sale.total is exist - process it [13:21:52]SAM_PROTO_GetFMData [13:21:52]wFMCommunicate request_size=4 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 13 03 00 [13:21:52]Write to MH i2c: E2 08 00 50 04 80 13 03 00 00 00 00 00 D3 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 FD 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 FD 00 50 04 00 C6 04 85 04 C2 04 6E 04 04 00 57 25 01 00 69 04 A3 00 6F 04 04 00 67 24 01 00 B1 04 05 00 48 16 67 31 01 70 04 05 00 46 01 C8 00 01 72 04 04 00 02 15 9F 30 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 3F CB 70 20 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 42 02 B4 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 48 [13:21:52]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 57 25 01 00 69 04 A3 00 6F 04 04 00 67 24 01 00 B1 04 05 00 48 16 67 31 01 70 04 05 00 46 01 C8 00 01 72 04 04 00 02 15 9F 30 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 3F CB 70 20 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 42 02 B4 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 [13:21:52]wFMCommunicate OK [13:21:52]wFMCommunicate request_size=4 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 17 00 00 [13:21:52]Write to MH i2c: E2 08 00 51 04 80 17 00 00 00 00 00 00 D5 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 FD 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 FD 00 51 04 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [13:21:53]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:21:53]wFMCommunicate OK [13:21:53]wFMCommunicate request_size=4 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 17 00 00 [13:21:53]Write to MH i2c: E2 08 00 52 04 80 17 00 00 00 00 00 00 D6 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 FD 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 FD 00 52 04 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [13:21:53]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:21:53]wFMCommunicate OK [13:21:53]wFMCommunicate request_size=4 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 17 00 00 [13:21:53]Write to MH i2c: E2 08 00 53 04 80 17 00 00 00 00 00 00 D7 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 FD 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 FD 00 53 04 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [13:21:53]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:21:53]wFMCommunicate OK [13:21:53]wFMCommunicate request_size=4 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 17 00 00 [13:21:53]Write to MH i2c: E2 08 00 54 04 80 17 00 00 00 00 00 00 D8 [13:21:53]OFD Sender: No OFD packet to send [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [13:21:54]Read from MH i2c: E2 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 E3 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 E3 00 54 04 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B7 [13:21:54]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:21:54]wFMCommunicate OK [13:21:54]SAM_PROTO_GetFMData done [13:21:54]requested_item fm.sale_refund.total is exist - process it [13:21:54]requested_item fm.buy.total is exist - process it [13:21:54]requested_item shift.sale.total is exist - process it [13:21:54]SAM_PROTO_GetShiftData [13:21:54]wFMCommunicate request_size=4 [13:21:54]MH_SAM_APDU [13:21:54]CAPDU: 80 13 02 00 [13:21:54]Write to MH i2c: E2 08 00 55 04 80 13 02 00 00 00 00 00 D7 [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:21:54]Read from MH i2c: E2 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 FD 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 FD 00 55 04 00 AF 04 AA 04 AB 04 6E 04 04 00 AE 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 B1 08 8A 70 04 03 00 4C 98 75 72 04 03 00 65 70 14 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 A7 A9 0E 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 D1 38 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 F0 [13:21:54]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 AE 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 B1 08 8A 70 04 03 00 4C 98 75 72 04 03 00 65 70 14 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 A7 A9 0E 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 D1 38 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [13:21:54]wFMCommunicate OK [13:21:54]wFMCommunicate request_size=4 [13:21:54]MH_SAM_APDU [13:21:54]CAPDU: 80 17 00 00 [13:21:54]Write to MH i2c: E2 08 00 56 04 80 17 00 00 00 00 00 00 DA [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:21:54]Read from MH i2c: E2 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 FD 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 FD 00 56 04 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 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 90 00 F3 [13:21:54]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 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 90 00 [13:21:54]wFMCommunicate OK [13:21:54]wFMCommunicate request_size=4 [13:21:54]MH_SAM_APDU [13:21:54]CAPDU: 80 17 00 00 [13:21:54]Write to MH i2c: E2 08 00 57 04 80 17 00 00 00 00 00 00 DB [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 FD 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 FD 00 57 04 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [13:21:55]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:21:55]wFMCommunicate OK [13:21:55]wFMCommunicate request_size=4 [13:21:55]MH_SAM_APDU [13:21:55]CAPDU: 80 17 00 00 [13:21:55]Write to MH i2c: E2 08 00 58 04 80 17 00 00 00 00 00 00 DC [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 FD 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 FD 00 58 04 00 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 90 00 5A [13:21:55]RAPDU: 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 90 00 [13:21:55]wFMCommunicate OK [13:21:55]wFMCommunicate request_size=4 [13:21:55]MH_SAM_APDU [13:21:55]CAPDU: 80 17 00 00 [13:21:55]Write to MH i2c: E2 08 00 59 04 80 17 00 00 00 00 00 00 DD [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 CC 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 CC 00 59 04 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [13:21:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:21:55]wFMCommunicate OK [13:21:55]SAM_PROTO_GetShiftData done [13:21:55]requested_item shift.sale.total_cash is exist - process it [13:21:55]requested_item shift.sale_refund.total is exist - process it [13:21:55]requested_item shift.sale_refund.total_cash is exist - process it [13:21:55]requested_item shift.buy.total is exist - process it [13:21:55]requested_item shift.buy.total_cash is exist - process it [13:21:55]produce_requested_data done [13:21:55]produce_requested_data return {"fm.sale.total":51238067.92,"fm.sale_refund.total":702227.00,"fm.buy.total":0.00,"shift.sale.total":90461.93,"shift.sale.total_cash":77067.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} [13:21:55]process_action_free get_value [13:21:55]json_value_free [13:21:55]json_value_free done [13:21:55]process_json_proto returns [13:21:55]Send response to host [13:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":51238067.92,"fm.sale_refund.total":702227.00,"fm.buy.total":0.00,"shift.sale.total":90461.93,"shift.sale.total_cash":77067.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}}} [13:21:55]free response buf [13:21:55]execute_script done [13:21:55]execute_script returns [13:21:55]free content buf [13:21:55]Sock 8.Close socket [13:21:55]Sock 8.Thread stoped [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:16]accept exits with 9 [13:24:16]New connection [13:24:16]New thread 3066465636 created [13:24:16]Thread 3066608996 joined [13:24:16]Waiting for new connection... [13:24:16] Sock 9.Parse request [13:24:16]Sock 9.Check first char [13:24:16]Sock 9.First char is OK [13:24:16]request: POST /json_proto HTTP/1.0 [13:24:16]Method: POST [13:24:16]URL: /json_proto [13:24:16]Method is POST - this is cgi request [13:24:16]url: /json_proto [13:24:16]query_string will be loaded in cgi processing [13:24:16]execute_cgi json_proto POST (null) [13:24:16]execute_cgi path=json_proto method=POST [13:24:16]POST find Content-Length [13:24:16]Host: 172.17.44.196:8080 [13:24:16]Content-Length: 658 [13:24:16]Content-Type: application/json [13:24:16] [13:24:16]POST finish read [13:24:16]Found Content-Length = 658 [13:24:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273248", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:16]execute_script... [13:24:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273248", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:16]POST & json_proto [13:24:16]process_json_proto [13:24:16]json parsed OK: [13:24:16]protocol is kg_v1.0 [13:24:16]action value=close_receipt [13:24:16]process_action close_receipt [13:24:16]cmd_close_receipt [13:24:16]MH_GetDate [13:24:16]Write to MH i2c: F0 00 00 5A 04 4D [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: F0 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: F0 09 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: F0 09 00 5A 04 00 00 F9 18 67 E7 19 F8 65 2B [13:24:16]GetLastDocTimeStamp 1729689090 [13:24:16]current date 1729689856 [13:24:16]FM_GetShiftState [13:24:16]SAM_PROTO_GetShiftState [13:24:16]wFMCommunicate request_size=4 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 13 01 00 [13:24:16]Write to MH i2c: E2 08 00 5B 04 80 13 01 00 00 00 00 00 DC [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 0E 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 0E 00 5B 04 00 09 00 01 99 41 18 67 00 00 00 00 90 00 41 [13:24:16]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:24:16]wFMCommunicate OK [13:24:16]SAM_PROTO_GetShiftState done [13:24:16]FM_GetShiftState done [13:24:16]opened in 1729642905 [13:24:16]opened+sec_in_day 1729729305 [13:24:16]quantity*price = 12500 [13:24:16]sum+1 = 12501 [13:24:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 175 23.10.2024 13:24 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75442 ФПД: 103578045529454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132416&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75442&fm=103578045529454&tin=02508201610067®Number=0000000000161154&sum=12500 0 [13:24:17]StoreToDocumentArchive [13:24:17]shift 173 fd 75442 [13:24:17]save to /storage/0173/doc_00075442 [13:24:17]save last doc name /storage/0173/doc_00075442 to /storage/kkm_last_doc_name [13:24:17]save OK [13:24:17]Clear old archive folders... [13:24:17]ProcessDocumentItem done err = 0, tmpTLVsize=278 [13:24:17]tlvbuf is 00793630 [13:24:17]SAM_PROTO_ClearQueue [13:24:17]wFMCommunicate request_size=4 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 09 00 00 [13:24:17]Write to MH i2c: E2 08 00 68 04 80 09 00 00 00 00 00 00 DE [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:17]Read from MH i2c: E2 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [13:24:17]RAPDU: 90 00 [13:24:17]wFMCommunicate OK [13:24:17]SAM_PROTO_ClearQueue done [13:24:17]KKMCreateOFDPacket [13:24:17]OFDProtocolAddRootSTLVToBuf [13:24:17]FM_MakeSignedData [13:24:17]FM_MakeSignedData [13:24:17]SAM_PROTO_SignData [13:24:17]wFMCommunicate request_size=4 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 0D 01 02 [13:24:17]Write to MH i2c: E2 08 00 69 04 80 0D 01 02 00 00 00 00 E6 [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:17]Read from MH i2c: E2 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [13:24:17]RAPDU: 90 00 [13:24:17]wFMCommunicate OK [13:24:17]wFMCommunicate request_size=255 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 00 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 [13:24:17]Write to MH i2c: E2 02 01 6A 04 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 00 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 00 00 5F [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:17]Read from MH i2c: E2 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [13:24:17]RAPDU: 90 00 [13:24:17]wFMCommunicate OK [13:24:17]wFMCommunicate request_size=37 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B2 26 01 00 35 04 06 00 5E 34 24 9C 3D 6E [13:24:17]Write to MH i2c: E2 28 00 6B 04 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B2 26 01 00 35 04 06 00 5E 34 24 9C 3D 6E 00 00 10 [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:17]Read from MH i2c: E2 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [13:24:17]RAPDU: 90 00 [13:24:17]wFMCommunicate OK [13:24:17]wFMCommunicate request_size=4 [13:24:17]MH_SAM_APDU [13:24:17]CAPDU: 80 0D 03 02 [13:24:17]Write to MH i2c: E2 08 00 6C 04 80 0D 03 02 00 00 00 00 EB [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:18]Read from MH i2c: E2 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 0B 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 0B 00 6C 04 00 31 E0 BA 6F 58 73 93 8F 90 00 13 [13:24:18]RAPDU: 31 E0 BA 6F 58 73 93 8F 90 00 [13:24:18]wFMCommunicate OK [13:24:18]SAM_PROTO_SignData done [13:24:18]FM_MakeSignedData done [13:24:18]CreateOFDProtocolMessage [13:24:18]wFMCommunicate request_size=4 [13:24:18]MH_SAM_APDU [13:24:18]CAPDU: 80 11 00 00 [13:24:18]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:18]Read from MH i2c: E2 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 17 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 38 [13:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:24:18]wFMCommunicate OK [13:24:18]CreateOFDProtocolMessage done [13:24:18]OFDSenderStorePacket 75442 [13:24:18]StoreOFDPacket docnum=75442 [13:24:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 B6 8C 22 01 A2 5B 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 00 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B2 26 01 00 35 04 06 00 5E 34 24 9C 3D 6E 31 E0 BA 6F 58 73 93 8F [13:24:18]CheckFolder [13:24:18]dirname=/storage/ofd_packets [13:24:18]CheckFolder done [13:24:18]ProducePacketName [13:24:18]name=ofd_packets/00075442 [13:24:18]NVStorageSaveData ofd_packets/00075442 [13:24:18]File name is /storage/ofd_packets/00075442 [13:24:18]Write 328 bytes [13:24:18]NVStorageSaveData done [13:24:18]OFDSenderStorePacket done [13:24:18]KKMCreateOFDPacket done [13:24:18]NVStorageSaveData kkm_last_timestamp [13:24:18]File name is /storage/kkm_last_timestamp [13:24:18]Write 4 bytes [13:24:18]NVStorageSaveData done [13:24:18]ExternCall_PrintAddStr [13:24:18]wPrintStart [13:24:18]Write to MH i2c: 01 00 00 6E 04 72 [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 FF 0F 87 [13:24:18]RasterBufferAndPrint [13:24:18]line Счет N : (3)273248 [13:24:18]line ИНН: 02508201610067 [13:24:18]line Контрольно-Кассовый Чек [13:24:18]line ПРОДАЖА [13:24:18]line Товар: 5449000054227 [13:24:18]line Напиток Кока-Кола 1л [13:24:18]line 1.000 * 125.00 [13:24:18]line = 125.00 [13:24:18]line НДС 12% НСП 1% [13:24:18]line > о реализуемом товаре [13:24:18]line ИТОГО: 125.00 [13:24:18]line НСП 1% : 1.11 [13:24:18]line НДС 12% : 13.27 [13:24:18]line Наличными: 125.00 [13:24:18]line Безнал.: 0.00 [13:24:18]line Место: АЗС № 133 "Партнер Нефть" [13:24:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:24:18]line СНО: Общий режим [13:24:18]line Чек 175 23.10.2024 13:24 [13:24:18]line Смена: 173 ФФД: 1.0 [13:24:18]line ЗНМ: 0300000020 [13:24:18]line РНМ: 0000000000161154 [13:24:18]line Версия ККМ: v1.0 [13:24:18]line ФМ: 0000000000963323 [13:24:18]line ФД: 75442 [13:24:18]line ФПД: 103578045529454 [13:24:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132416&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75442&fm=103578045529454&tin=02508201610067®Number=0000000000161154&sum=12500 [13:24:18]line 0 [13:24:18]OFD Sender: Processing packet 75442 [packets to send 16, broken 15] [13:24:18]ProducePacketName [13:24:18]name=ofd_packets/00075442 [13:24:18]OFD Sender: To server: pG, [13:24:18]CommunicateWithHost lk.salyk.kg:30040 [13:24:18]ConnectInit lk.salyk.kg [13:24:18]written 0, free lines is 4095 [13:24:18]Connected sock=10 [13:24:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2A 01 00 00 B6 8C 22 01 A2 5B 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 00 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B2 26 01 00 35 04 06 00 5E 34 24 9C 3D 6E 31 E0 BA 6F 58 73 93 8F [13:24:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 46 27 47 00 EB 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B2 26 01 00 F4 03 04 00 DB A1 18 67 B6 04 01 00 00 A8 58 07 2A 05 D0 79 EB [13:24:18]CommunicateWithHost err = 0 [13:24:18]CheckOFDResponse [13:24:18]1017 (14) - 77093643461234 [13:24:18]1041 (16) - 0000000000963323 [13:24:18]1040 (4) - 75442 [13:24:18]1012 (4) - 23.10.2024 07:12 [13:24:18]1206 (1) - 0 [13:24:18]OFD Sender: Remove packet 75442 [13:24:18]ProducePacketName [13:24:18]name=ofd_packets/00075442 [13:24:18]NVStorageDeleteData [13:24:18]Write to MH i2c: 01 00 00 95 04 99 [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 CD 0C 79 [13:24:18]RasterBufferAndPrint [13:24:18]line [13:24:18]line [13:24:18]line [13:24:18]line [13:24:18]line [13:24:18]written 0, free lines is 3281 [13:24:18]MH_Cut [13:24:18]Write to MH i2c: D1 01 00 9C 04 01 72 [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: D1 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: D1 01 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: D1 01 00 9C 04 00 71 [13:24:18]Write to MH i2c: 01 00 00 9D 04 A1 [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:19]OFD Sender: No OFD packet to send [13:24:19]*** Cut start [13:24:19]*** Partial cut [13:24:19]*** CUTSNS_PIN = 1 [13:24:19]*** CUTSNS_PIN = 0 [13:24:20]*** Brake cut motor [13:24:20]Read from MH i2c: 01 [13:24:20]MH_I2C_Read... [13:24:20]*** Stop cut motor [13:24:20]*** Cut end [13:24:20]Read from MH i2c: 01 07 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FF 0F B6 [13:24:20]process_action close_receipt done [13:24:20]requested_data is exist [13:24:20]produce_requested_data [13:24:20]requested_item fm.sn is exist - process it [13:24:20]wFMCommunicate request_size=4 [13:24:20]MH_SAM_APDU [13:24:20]CAPDU: 80 11 00 00 [13:24:20]Write to MH i2c: E2 08 00 9E 04 80 11 00 00 00 00 00 00 1C [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:20]Read from MH i2c: E2 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 17 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 17 00 9E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 69 [13:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:24:20]wFMCommunicate OK [13:24:20]requested_item fd.num is exist - process it [13:24:20]SAM_PROTO_GetFieldsCounters [13:24:20]wFMCommunicate request_size=4 [13:24:20]MH_SAM_APDU [13:24:20]CAPDU: 80 13 00 00 [13:24:20]Write to MH i2c: E2 08 00 9F 04 80 13 00 00 00 00 00 00 1F [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:20]Read from MH i2c: E2 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 62 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 62 00 9F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B2 26 01 00 0E 04 04 00 AD 00 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 C6 [13:24:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B2 26 01 00 0E 04 04 00 AD 00 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 [13:24:20]wFMCommunicate OK [13:24:20]SAM_PROTO_GetFieldsCounters done [13:24:20]requested_item shift.num is exist - process it [13:24:20]requested_item shift.opened is exist - process it [13:24:20]req_shift_opened [13:24:20]FM_GetShiftState [13:24:20]SAM_PROTO_GetShiftState [13:24:20]wFMCommunicate request_size=4 [13:24:20]MH_SAM_APDU [13:24:20]CAPDU: 80 13 01 00 [13:24:20]Write to MH i2c: E2 08 00 A0 04 80 13 01 00 00 00 00 00 21 [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:20]Read from MH i2c: E2 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 0E 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: E2 0E 00 A0 04 00 09 00 01 99 41 18 67 00 00 00 00 90 00 86 [13:24:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:24:20]wFMCommunicate OK [13:24:20]SAM_PROTO_GetShiftState done [13:24:20]FM_GetShiftState done [13:24:20]req_shift_opened done [13:24:20]requested_item shift.open_date is exist - process it [13:24:20]req_shift_open_date [13:24:20]req_shift_open_date done [13:24:20]produce_requested_data done [13:24:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75442,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:24:20]process_action_free close_receipt [13:24:20]json_value_free [13:24:20]json_value_free done [13:24:20]process_json_proto returns [13:24:20]Send response to host [13:24:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75442,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:24:20]free response buf [13:24:20]execute_script done [13:24:20]execute_script returns [13:24:20]free content buf [13:24:20]Sock 9.Close socket [13:24:20]Sock 9.Thread stoped [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:35]accept exits with 8 [13:24:35]New connection [13:24:35]New thread 3066608996 created [13:24:35]Thread 3066465636 joined [13:24:35]Waiting for new connection... [13:24:35] Sock 8.Parse request [13:24:35]Sock 8.Check first char [13:24:35]Sock 8.First char is OK [13:24:35]request: POST /json_proto HTTP/1.0 [13:24:35]Method: POST [13:24:35]URL: /json_proto [13:24:35]Method is POST - this is cgi request [13:24:35]url: /json_proto [13:24:35]query_string will be loaded in cgi processing [13:24:35]execute_cgi json_proto POST (null) [13:24:35]execute_cgi path=json_proto method=POST [13:24:35]POST find Content-Length [13:24:35]Host: 172.17.44.196:8080 [13:24:35]Content-Length: 679 [13:24:35]Content-Type: application/json [13:24:35] [13:24:35]POST finish read [13:24:35]Found Content-Length = 679 [13:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [13:24:35]execute_script... [13:24: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)1965537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [13:24:35]POST & json_proto [13:24:35]process_json_proto [13:24:35]json parsed OK: [13:24:35]protocol is kg_v1.0 [13:24:35]action value=close_receipt [13:24:35]process_action close_receipt [13:24:35]cmd_close_receipt [13:24:35]MH_GetDate [13:24:35]Write to MH i2c: F0 00 00 A1 04 94 [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: F0 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: F0 09 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: F0 09 00 A1 04 00 14 F9 18 67 E7 19 F8 65 86 [13:24:35]GetLastDocTimeStamp 1729689856 [13:24:35]current date 1729689876 [13:24:35]FM_GetShiftState [13:24:35]SAM_PROTO_GetShiftState [13:24:35]wFMCommunicate request_size=4 [13:24:35]MH_SAM_APDU [13:24:35]CAPDU: 80 13 01 00 [13:24:35]Write to MH i2c: E2 08 00 A2 04 80 13 01 00 00 00 00 00 23 [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:35]Read from MH i2c: E2 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 0E 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 0E 00 A2 04 00 09 00 01 99 41 18 67 00 00 00 00 90 00 88 [13:24:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:24:35]wFMCommunicate OK [13:24:35]SAM_PROTO_GetShiftState done [13:24:35]FM_GetShiftState done [13:24:35]opened in 1729642905 [13:24:35]opened+sec_in_day 1729729305 [13:24:35]quantity*price = 80012 [13:24:35]sum+1 = 80013 [13:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 176 23.10.2024 13:24 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75443 ФПД: 144873678264069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132436&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75443&fm=144873678264069&tin=02508201610067®Number=0000000000161154&sum=80000 [13:24:37]StoreToDocumentArchive [13:24:37]shift 173 fd 75443 [13:24:37]save to /storage/0173/doc_00075443 [13:24:37]save last doc name /storage/0173/doc_00075443 to /storage/kkm_last_doc_name [13:24:37]save OK [13:24:37]Clear old archive folders... [13:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:37]tlvbuf is 0078C260 [13:24:37]SAM_PROTO_ClearQueue [13:24:37]wFMCommunicate request_size=4 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 09 00 00 [13:24:37]Write to MH i2c: E2 08 00 AF 04 80 09 00 00 00 00 00 00 25 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [13:24:37]RAPDU: 90 00 [13:24:37]wFMCommunicate OK [13:24:37]SAM_PROTO_ClearQueue done [13:24:37]KKMCreateOFDPacket [13:24:37]OFDProtocolAddRootSTLVToBuf [13:24:37]FM_MakeSignedData [13:24:37]FM_MakeSignedData [13:24:37]SAM_PROTO_SignData [13:24:37]wFMCommunicate request_size=4 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 0D 01 02 [13:24:37]Write to MH i2c: E2 08 00 B0 04 80 0D 01 02 00 00 00 00 2D [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [13:24:37]RAPDU: 90 00 [13:24:37]wFMCommunicate OK [13:24:37]wFMCommunicate request_size=255 [13:24:37]MH_SAM_APDU [13:24: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 B0 00 00 00 F4 03 04 00 14 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B3 26 01 00 35 04 06 00 83 [13:24:37]Write to MH i2c: E2 02 01 B1 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 B0 00 00 00 F4 03 04 00 14 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B3 26 01 00 35 04 06 00 83 00 00 E1 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [13:24:37]RAPDU: 90 00 [13:24:37]wFMCommunicate OK [13:24:37]wFMCommunicate request_size=10 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 0D 02 02 05 C3 08 21 57 05 [13:24:37]Write to MH i2c: E2 0D 00 B2 04 80 0D 02 02 05 00 C3 08 21 57 05 00 00 82 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [13:24:37]RAPDU: 90 00 [13:24:37]wFMCommunicate OK [13:24:37]wFMCommunicate request_size=4 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 0D 03 02 [13:24:37]Write to MH i2c: E2 08 00 B3 04 80 0D 03 02 00 00 00 00 32 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 0B 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 0B 00 B3 04 00 CD 3E B5 EB 8A 57 1C DE 90 00 B9 [13:24:37]RAPDU: CD 3E B5 EB 8A 57 1C DE 90 00 [13:24:37]wFMCommunicate OK [13:24:37]SAM_PROTO_SignData done [13:24:37]FM_MakeSignedData done [13:24:37]CreateOFDProtocolMessage [13:24:37]wFMCommunicate request_size=4 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 11 00 00 [13:24:37]Write to MH i2c: E2 08 00 B4 04 80 11 00 00 00 00 00 00 32 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 17 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 17 00 B4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7F [13:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:24:37]wFMCommunicate OK [13:24:37]CreateOFDProtocolMessage done [13:24:37]OFDSenderStorePacket 75443 [13:24:37]StoreOFDPacket docnum=75443 [13:24:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F6 34 07 01 7B 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 B0 00 00 00 F4 03 04 00 14 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B3 26 01 00 35 04 06 00 83 C3 08 21 57 05 CD 3E B5 EB 8A 57 1C DE [13:24:37]CheckFolder [13:24:37]dirname=/storage/ofd_packets [13:24:37]CheckFolder done [13:24:37]ProducePacketName [13:24:37]name=ofd_packets/00075443 [13:24:37]NVStorageSaveData ofd_packets/00075443 [13:24:37]File name is /storage/ofd_packets/00075443 [13:24:37]Write 301 bytes [13:24:37]NVStorageSaveData done [13:24:37]OFDSenderStorePacket done [13:24:37]KKMCreateOFDPacket done [13:24:37]NVStorageSaveData kkm_last_timestamp [13:24:37]File name is /storage/kkm_last_timestamp [13:24:37]Write 4 bytes [13:24:37]NVStorageSaveData done [13:24:37]ExternCall_PrintAddStr [13:24:37]wPrintStart [13:24:37]Write to MH i2c: 01 00 00 B5 04 B9 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 B5 04 00 00 00 00 00 FF 0F CE [13:24:37]RasterBufferAndPrint [13:24:37]line Счет N : (1)1965537 [13:24:37]line ИНН: 02508201610067 [13:24:37]line Контрольно-Кассовый Чек [13:24:37]line ПРОДАЖА [13:24:37]line ТРК (МРК, ГНК) : 63 [13:24:37]line Товар: 2710124130 [13:24:37]line Аи-92-К-5 [13:24:37]line 11.960 * 66.90 [13:24:37]line = 800.12 [13:24:37]line НДС 12% НСП 1% [13:24:37]line > о реализуемом товаре [13:24:37]line ОКРУГЛЕНИЕ: -0.12 [13:24:37]line ИТОГО: 800.00 [13:24:37]line Внесено: 800.00 [13:24:37]line СДАЧА: 0.00 [13:24:37]line НСП 1% : 7.08 [13:24:37]line НДС 12% : 84.97 [13:24:37]line Наличными: 800.00 [13:24:37]line Безнал.: 0.00 [13:24:37]line Место: АЗС № 133 "Партнер Нефть" [13:24:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:24:37]line СНО: Общий режим [13:24:37]line Чек 176 23.10.2024 13:24 [13:24:37]line Смена: 173 ФФД: 1.0 [13:24:37]line ЗНМ: 0300000020 [13:24:37]line РНМ: 0000000000161154 [13:24:37]line Версия ККМ: v1.0 [13:24:37]line ФМ: 0000000000963323 [13:24:37]line ФД: 75443 [13:24:37]line ФПД: 144873678264069 [13:24:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132436&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75443&fm=144873678264069&tin=02508201610067®Number=0000000000161154&sum=80000 [13:24:37]OFD Sender: Processing packet 75443 [packets to send 16, broken 15] [13:24:37]ProducePacketName [13:24:37]name=ofd_packets/00075443 [13:24:37]OFD Sender: To server: pG, [13:24:37]CommunicateWithHost lk.salyk.kg:30040 [13:24:37]ConnectInit lk.salyk.kg [13:24:37]written 0, free lines is 4095 [13:24:38]Connected sock=10 [13:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F6 34 07 01 7B 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 B0 00 00 00 F4 03 04 00 14 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B3 26 01 00 35 04 06 00 83 C3 08 21 57 05 CD 3E B5 EB 8A 57 1C DE [13:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B3 E1 47 00 7A 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B3 26 01 00 F4 03 04 00 EF A1 18 67 B6 04 01 00 00 7A E7 32 9C C0 0F D4 C9 [13:24:38]CommunicateWithHost err = 0 [13:24:38]CheckOFDResponse [13:24:38]1017 (14) - 77093643461234 [13:24:38]1041 (16) - 0000000000963323 [13:24:38]1040 (4) - 75443 [13:24:38]1012 (4) - 23.10.2024 07:12 [13:24:38]1206 (1) - 0 [13:24:38]OFD Sender: Remove packet 75443 [13:24:38]ProducePacketName [13:24:38]name=ofd_packets/00075443 [13:24:38]NVStorageDeleteData [13:24:38]Write to MH i2c: 01 00 00 DF 04 E3 [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 07 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 9E 0C 94 [13:24:38]RasterBufferAndPrint [13:24:38]line [13:24:38]line [13:24:38]line [13:24:38]line [13:24:38]line [13:24:38]written 0, free lines is 3235 [13:24:38]MH_Cut [13:24:38]Write to MH i2c: D1 01 00 E6 04 01 BC [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: D1 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: D1 01 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: D1 01 00 E6 04 00 BB [13:24:38]Write to MH i2c: 01 00 00 E7 04 EB [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]OFD Sender: No OFD packet to send [13:24:39]*** Cut start [13:24:39]*** Partial cut [13:24:39]*** CUTSNS_PIN = 1 [13:24:39]*** CUTSNS_PIN = 0 [13:24:39]*** Brake cut motor [13:24:39]Read from MH i2c: 01 [13:24:39]MH_I2C_Read... [13:24:39]*** Stop cut motor [13:24:39]*** Cut end [13:24:39]Read from MH i2c: 01 07 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 FF 0F 00 [13:24:39]process_action close_receipt done [13:24:39]requested_data is exist [13:24:39]produce_requested_data [13:24:39]requested_item fm.sn is exist - process it [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 11 00 00 [13:24:39]Write to MH i2c: E2 08 00 E8 04 80 11 00 00 00 00 00 00 66 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:39]Read from MH i2c: E2 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 17 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 17 00 E8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B3 [13:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:24:39]wFMCommunicate OK [13:24:39]requested_item fd.num is exist - process it [13:24:39]SAM_PROTO_GetFieldsCounters [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 13 00 00 [13:24:39]Write to MH i2c: E2 08 00 E9 04 80 13 00 00 00 00 00 00 69 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 62 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 62 00 E9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B3 26 01 00 0E 04 04 00 AD 00 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 14 [13:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B3 26 01 00 0E 04 04 00 AD 00 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 [13:24:40]wFMCommunicate OK [13:24:40]SAM_PROTO_GetFieldsCounters done [13:24:40]requested_item shift.num is exist - process it [13:24:40]requested_item shift.opened is exist - process it [13:24:40]req_shift_opened [13:24:40]FM_GetShiftState [13:24:40]SAM_PROTO_GetShiftState [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 13 01 00 [13:24:40]Write to MH i2c: E2 08 00 EA 04 80 13 01 00 00 00 00 00 6B [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 0E 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 0E 00 EA 04 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D0 [13:24:40]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:24:40]wFMCommunicate OK [13:24:40]SAM_PROTO_GetShiftState done [13:24:40]FM_GetShiftState done [13:24:40]req_shift_opened done [13:24:40]requested_item shift.open_date is exist - process it [13:24:40]req_shift_open_date [13:24:40]req_shift_open_date done [13:24:40]produce_requested_data done [13:24:40]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75443,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:24:40]process_action_free close_receipt [13:24:40]json_value_free [13:24:40]json_value_free done [13:24:40]process_json_proto returns [13:24:40]Send response to host [13:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75443,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:24:40]free response buf [13:24:40]execute_script done [13:24:40]execute_script returns [13:24:40]free content buf [13:24:40]Sock 8.Close socket [13:24:40]Sock 8.Thread stoped [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:06]accept exits with 9 [13:25:06]New connection [13:25:06]New thread 3066465636 created [13:25:06]Thread 3066608996 joined [13:25:06]Waiting for new connection... [13:25:06] Sock 9.Parse request [13:25:06]Sock 9.Check first char [13:25:06]Sock 9.First char is OK [13:25:06]request: POST /json_proto HTTP/1.0 [13:25:06]Method: POST [13:25:06]URL: /json_proto [13:25:06]Method is POST - this is cgi request [13:25:06]url: /json_proto [13:25:06]query_string will be loaded in cgi processing [13:25:06]execute_cgi json_proto POST (null) [13:25:06]execute_cgi path=json_proto method=POST [13:25:06]POST find Content-Length [13:25:06]Host: 172.17.44.196:8080 [13:25:06]Content-Length: 673 [13:25:06]Content-Type: application/json [13:25:06] [13:25:06]POST finish read [13:25:06]Found Content-Length = 673 [13:25:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "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:25:06]execute_script... [13:25:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "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:25:06]POST & json_proto [13:25:06]process_json_proto [13:25:06]json parsed OK: [13:25:06]protocol is kg_v1.0 [13:25:06]action value=close_receipt [13:25:06]process_action close_receipt [13:25:06]cmd_close_receipt [13:25:06]MH_GetDate [13:25:06]Write to MH i2c: F0 00 00 EB 04 DE [13:25:06]Write i2c OK [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: F0 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: F0 09 00 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: F0 09 00 EB 04 00 33 F9 18 67 E7 19 F8 65 EF [13:25:06]GetLastDocTimeStamp 1729689876 [13:25:06]current date 1729689907 [13:25:06]FM_GetShiftState [13:25:06]SAM_PROTO_GetShiftState [13:25:06]wFMCommunicate request_size=4 [13:25:06]MH_SAM_APDU [13:25:06]CAPDU: 80 13 01 00 [13:25:06]Write to MH i2c: E2 08 00 EC 04 80 13 01 00 00 00 00 00 6D [13:25:06]Write i2c OK [13:25:06]MH_I2C_Read... [13:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:06]Read from MH i2c: E2 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: E2 0E 00 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: E2 0E 00 EC 04 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D2 [13:25:06]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:25:06]wFMCommunicate OK [13:25:06]SAM_PROTO_GetShiftState done [13:25:06]FM_GetShiftState done [13:25:06]opened in 1729642905 [13:25:06]opened+sec_in_day 1729729305 [13:25:06]quantity*price = 60022 [13:25:06]sum+1 = 60024 [13:25:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 177 23.10.2024 13:25 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75444 ФПД: 244166391896805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132507&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75444&fm=244166391896805&tin=02508201610067®Number=0000000000161154&sum=60000 [13:25:08]StoreToDocumentArchive [13:25:08]shift 173 fd 75444 [13:25:08]save to /storage/0173/doc_00075444 [13:25:08]save last doc name /storage/0173/doc_00075444 to /storage/kkm_last_doc_name [13:25:08]save OK [13:25:08]Clear old archive folders... [13:25:08]ProcessDocumentItem done err = 0, tmpTLVsize=245 [13:25:08]tlvbuf is 00781DE0 [13:25:08]SAM_PROTO_ClearQueue [13:25:08]wFMCommunicate request_size=4 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 09 00 00 [13:25:08]Write to MH i2c: E2 08 00 F9 04 80 09 00 00 00 00 00 00 6F [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 F9 04 00 90 00 71 [13:25:08]RAPDU: 90 00 [13:25:08]wFMCommunicate OK [13:25:08]SAM_PROTO_ClearQueue done [13:25:08]KKMCreateOFDPacket [13:25:08]OFDProtocolAddRootSTLVToBuf [13:25:08]FM_MakeSignedData [13:25:08]FM_MakeSignedData [13:25:08]SAM_PROTO_SignData [13:25:08]wFMCommunicate request_size=4 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 0D 01 02 [13:25:08]Write to MH i2c: E2 08 00 FA 04 80 0D 01 02 00 00 00 00 77 [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [13:25:08]RAPDU: 90 00 [13:25:08]wFMCommunicate OK [13:25:08]wFMCommunicate request_size=254 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 B1 00 00 00 F4 03 04 00 33 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B4 26 01 00 35 04 06 00 DE 11 6B 0E 1A E5 [13:25:08]Write to MH i2c: E2 01 01 FB 04 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 B1 00 00 00 F4 03 04 00 33 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B4 26 01 00 35 04 06 00 DE 11 6B 0E 1A E5 00 00 30 [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [13:25:08]RAPDU: 90 00 [13:25:08]wFMCommunicate OK [13:25:08]wFMCommunicate request_size=4 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 0D 03 02 [13:25:08]Write to MH i2c: E2 08 00 FC 04 80 0D 03 02 00 00 00 00 7B [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 0B 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 0B 00 FC 04 00 BF 42 BD 4F ED F6 E4 64 90 00 B4 [13:25:08]RAPDU: BF 42 BD 4F ED F6 E4 64 90 00 [13:25:08]wFMCommunicate OK [13:25:08]SAM_PROTO_SignData done [13:25:08]FM_MakeSignedData done [13:25:08]CreateOFDProtocolMessage [13:25:08]wFMCommunicate request_size=4 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 11 00 00 [13:25:08]Write to MH i2c: E2 08 00 FD 04 80 11 00 00 00 00 00 00 7B [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 17 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 17 00 FD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C8 [13:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:25:08]wFMCommunicate OK [13:25:08]CreateOFDProtocolMessage done [13:25:08]OFDSenderStorePacket 75444 [13:25:08]StoreOFDPacket docnum=75444 [13:25:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 B0 82 01 01 F3 61 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 B1 00 00 00 F4 03 04 00 33 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B4 26 01 00 35 04 06 00 DE 11 6B 0E 1A E5 BF 42 BD 4F ED F6 E4 64 [13:25:08]CheckFolder [13:25:08]dirname=/storage/ofd_packets [13:25:08]CheckFolder done [13:25:08]ProducePacketName [13:25:08]name=ofd_packets/00075444 [13:25:08]NVStorageSaveData ofd_packets/00075444 [13:25:08]File name is /storage/ofd_packets/00075444 [13:25:08]Write 295 bytes [13:25:08]NVStorageSaveData done [13:25:08]OFDSenderStorePacket done [13:25:08]KKMCreateOFDPacket done [13:25:08]NVStorageSaveData kkm_last_timestamp [13:25:08]File name is /storage/kkm_last_timestamp [13:25:08]Write 4 bytes [13:25:08]NVStorageSaveData done [13:25:08]ExternCall_PrintAddStr [13:25:08]wPrintStart [13:25:08]Write to MH i2c: 01 00 00 FE 04 02 [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: 01 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: 01 07 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: 01 07 00 FE 04 00 00 00 00 00 FF 0F 17 [13:25:08]RasterBufferAndPrint [13:25:08]line Счет N : (1)1965535 [13:25:08]line ИНН: 02508201610067 [13:25:08]line Контрольно-Кассовый Чек [13:25:08]line ПРОДАЖА [13:25:08]line ТРК (МРК, ГНК) : 71 [13:25:08]line Товар: 2711129700 [13:25:08]line ГАЗ [13:25:08]line 15.430 * 38.90 [13:25:08]line = 600.23 [13:25:08]line НДС 12% НСП 1% [13:25:08]line > о реализуемом товаре [13:25:08]line ОКРУГЛЕНИЕ: -0.23 [13:25:08]line ИТОГО: 600.00 [13:25:08]line Внесено: 600.00 [13:25:08]line СДАЧА: 0.00 [13:25:08]line НСП 1% : 5.31 [13:25:08]line НДС 12% : 63.74 [13:25:08]line Наличными: 600.00 [13:25:08]line Безнал.: 0.00 [13:25:08]line Место: АЗС № 133 "Партнер Нефть" [13:25:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:25:08]line СНО: Общий режим [13:25:08]line Чек 177 23.10.2024 13:25 [13:25:08]line Смена: 173 ФФД: 1.0 [13:25:08]line ЗНМ: 0300000020 [13:25:08]line РНМ: 0000000000161154 [13:25:08]line Версия ККМ: v1.0 [13:25:08]line ФМ: 0000000000963323 [13:25:08]line ФД: 75444 [13:25:08]line ФПД: 244166391896805 [13:25:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132507&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75444&fm=244166391896805&tin=02508201610067®Number=0000000000161154&sum=60000 [13:25:08]OFD Sender: Processing packet 75444 [packets to send 16, broken 15] [13:25:08]ProducePacketName [13:25:08]name=ofd_packets/00075444 [13:25:08]OFD Sender: To server: pG, [13:25:08]CommunicateWithHost lk.salyk.kg:30040 [13:25:08]ConnectInit lk.salyk.kg [13:25:08]written 0, free lines is 4095 [13:25:09]Connected sock=10 [13:25:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 B0 82 01 01 F3 61 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 B1 00 00 00 F4 03 04 00 33 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B4 26 01 00 35 04 06 00 DE 11 6B 0E 1A E5 BF 42 BD 4F ED F6 E4 64 [13:25:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 55 83 47 00 BC 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B4 26 01 00 F4 03 04 00 0E A2 18 67 B6 04 01 00 00 78 A5 D3 DB CE E7 79 0A [13:25:09]CommunicateWithHost err = 0 [13:25:09]CheckOFDResponse [13:25:09]1017 (14) - 77093643461234 [13:25:09]1041 (16) - 0000000000963323 [13:25:09]1040 (4) - 75444 [13:25:09]1012 (4) - 23.10.2024 07:13 [13:25:09]1206 (1) - 0 [13:25:09]OFD Sender: Remove packet 75444 [13:25:09]ProducePacketName [13:25:09]name=ofd_packets/00075444 [13:25:09]NVStorageDeleteData [13:25:09]Write to MH i2c: 01 00 00 28 05 2D [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: 01 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: 01 07 00 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: 01 07 00 28 05 00 00 00 00 00 A4 0C E4 [13:25:09]RasterBufferAndPrint [13:25:09]line [13:25:09]line [13:25:09]line [13:25:09]line [13:25:09]line [13:25:09]written 0, free lines is 3240 [13:25:09]MH_Cut [13:25:09]Write to MH i2c: D1 01 00 2F 05 01 06 [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: D1 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: D1 01 00 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: D1 01 00 2F 05 00 05 [13:25:09]Write to MH i2c: 01 00 00 30 05 35 [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]OFD Sender: No OFD packet to send [13:25:10]*** Cut start [13:25:10]*** Partial cut [13:25:10]*** CUTSNS_PIN = 1 [13:25:10]*** CUTSNS_PIN = 0 [13:25:10]*** Brake cut motor [13:25:10]Read from MH i2c: 01 [13:25:10]MH_I2C_Read... [13:25:10]*** Stop cut motor [13:25:10]*** Cut end [13:25:10]Read from MH i2c: 01 07 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 07 00 30 05 00 00 00 00 00 FF 0F 4A [13:25:10]process_action close_receipt done [13:25:10]requested_data is exist [13:25:10]produce_requested_data [13:25:10]requested_item fm.sn is exist - process it [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 11 00 00 [13:25:10]Write to MH i2c: E2 08 00 31 05 80 11 00 00 00 00 00 00 B0 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 31 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FD [13:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:25:10]wFMCommunicate OK [13:25:10]requested_item fd.num is exist - process it [13:25:10]SAM_PROTO_GetFieldsCounters [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 13 00 00 [13:25:10]Write to MH i2c: E2 08 00 32 05 80 13 00 00 00 00 00 00 B3 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:11]Read from MH i2c: E2 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 62 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 62 00 32 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B4 26 01 00 0E 04 04 00 AD 00 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 62 [13:25:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B4 26 01 00 0E 04 04 00 AD 00 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 [13:25:11]wFMCommunicate OK [13:25:11]SAM_PROTO_GetFieldsCounters done [13:25:11]requested_item shift.num is exist - process it [13:25:11]requested_item shift.opened is exist - process it [13:25:11]req_shift_opened [13:25:11]FM_GetShiftState [13:25:11]SAM_PROTO_GetShiftState [13:25:11]wFMCommunicate request_size=4 [13:25:11]MH_SAM_APDU [13:25:11]CAPDU: 80 13 01 00 [13:25:11]Write to MH i2c: E2 08 00 33 05 80 13 01 00 00 00 00 00 B5 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:11]Read from MH i2c: E2 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 0E 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 0E 00 33 05 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1A [13:25:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:25:11]wFMCommunicate OK [13:25:11]SAM_PROTO_GetShiftState done [13:25:11]FM_GetShiftState done [13:25:11]req_shift_opened done [13:25:11]requested_item shift.open_date is exist - process it [13:25:11]req_shift_open_date [13:25:11]req_shift_open_date done [13:25:11]produce_requested_data done [13:25:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75444,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:25:11]process_action_free close_receipt [13:25:11]json_value_free [13:25:11]json_value_free done [13:25:11]process_json_proto returns [13:25:11]Send response to host [13:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75444,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:25:11]free response buf [13:25:11]execute_script done [13:25:11]execute_script returns [13:25:11]free content buf [13:25:11]Sock 9.Close socket [13:25:11]Sock 9.Thread stoped [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:33]accept exits with 8 [13:26:33]New connection [13:26:33]New thread 3066608996 created [13:26:33]Thread 3066465636 joined [13:26:33]Waiting for new connection... [13:26:33] Sock 8.Parse request [13:26:33]Sock 8.Check first char [13:26:33]Sock 8.First char is OK [13:26:33]request: POST /json_proto HTTP/1.0 [13:26:33]Method: POST [13:26:33]URL: /json_proto [13:26:33]Method is POST - this is cgi request [13:26:33]url: /json_proto [13:26:33]query_string will be loaded in cgi processing [13:26:33]execute_cgi json_proto POST (null) [13:26:33]execute_cgi path=json_proto method=POST [13:26:33]POST find Content-Length [13:26:33]Host: 172.17.44.196:8080 [13:26:33]Content-Length: 678 [13:26:33]Content-Type: application/json [13:26:33] [13:26:33]POST finish read [13:26:33]Found Content-Length = 678 [13:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:26:33]execute_script... [13:26: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)1965539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:26:33]POST & json_proto [13:26:33]process_json_proto [13:26:33]json parsed OK: [13:26:33]protocol is kg_v1.0 [13:26:33]action value=close_receipt [13:26:33]process_action close_receipt [13:26:33]cmd_close_receipt [13:26:33]MH_GetDate [13:26:33]Write to MH i2c: F0 00 00 34 05 28 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: F0 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: F0 09 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: F0 09 00 34 05 00 89 F9 18 67 E7 19 F8 65 8F [13:26:33]GetLastDocTimeStamp 1729689907 [13:26:33]current date 1729689993 [13:26:33]FM_GetShiftState [13:26:33]SAM_PROTO_GetShiftState [13:26:33]wFMCommunicate request_size=4 [13:26:33]MH_SAM_APDU [13:26:33]CAPDU: 80 13 01 00 [13:26:33]Write to MH i2c: E2 08 00 35 05 80 13 01 00 00 00 00 00 B7 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:33]Read from MH i2c: E2 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 0E 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 0E 00 35 05 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1C [13:26:33]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:26:33]wFMCommunicate OK [13:26:33]SAM_PROTO_GetShiftState done [13:26:33]FM_GetShiftState done [13:26:33]opened in 1729642905 [13:26:33]opened+sec_in_day 1729729305 [13:26:33]quantity*price = 50041 [13:26:33]sum+1 = 50042 [13:26:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 178 23.10.2024 13:26 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75445 ФПД: 138690310496240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132633&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75445&fm=138690310496240&tin=02508201610067®Number=0000000000161154&sum=50000 [13:26:34]StoreToDocumentArchive [13:26:34]shift 173 fd 75445 [13:26:34]save to /storage/0173/doc_00075445 [13:26:34]save last doc name /storage/0173/doc_00075445 to /storage/kkm_last_doc_name [13:26:34]save OK [13:26:34]Clear old archive folders... [13:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:34]tlvbuf is 0079DDF0 [13:26:34]SAM_PROTO_ClearQueue [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 09 00 00 [13:26:34]Write to MH i2c: E2 08 00 42 05 80 09 00 00 00 00 00 00 B9 [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 42 05 00 90 00 BB [13:26:34]RAPDU: 90 00 [13:26:34]wFMCommunicate OK [13:26:34]SAM_PROTO_ClearQueue done [13:26:34]KKMCreateOFDPacket [13:26:34]OFDProtocolAddRootSTLVToBuf [13:26:34]FM_MakeSignedData [13:26:34]FM_MakeSignedData [13:26:34]SAM_PROTO_SignData [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 0D 01 02 [13:26:34]Write to MH i2c: E2 08 00 43 05 80 0D 01 02 00 00 00 00 C1 [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 43 05 00 90 00 BC [13:26:34]RAPDU: 90 00 [13:26:34]wFMCommunicate OK [13:26:34]wFMCommunicate request_size=255 [13:26:34]MH_SAM_APDU [13:26: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 B2 00 00 00 F4 03 04 00 89 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B5 26 01 00 35 04 06 00 7E [13:26:34]Write to MH i2c: E2 02 01 44 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 B2 00 00 00 F4 03 04 00 89 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B5 26 01 00 35 04 06 00 7E 00 00 FD [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 44 05 00 90 00 BD [13:26:34]RAPDU: 90 00 [13:26:34]wFMCommunicate OK [13:26:34]wFMCommunicate request_size=10 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 0D 02 02 05 23 5A B0 DF F0 [13:26:34]Write to MH i2c: E2 0D 00 45 05 80 0D 02 02 05 00 23 5A B0 DF F0 00 00 CA [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [13:26:34]RAPDU: 90 00 [13:26:34]wFMCommunicate OK [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 0D 03 02 [13:26:34]Write to MH i2c: E2 08 00 46 05 80 0D 03 02 00 00 00 00 C6 [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:34]OFD Sender: No OFD packet to send [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 0B 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 0B 00 46 05 00 59 18 2D 66 DA 7C 6B D4 90 00 60 [13:26:34]RAPDU: 59 18 2D 66 DA 7C 6B D4 90 00 [13:26:34]wFMCommunicate OK [13:26:34]SAM_PROTO_SignData done [13:26:34]FM_MakeSignedData done [13:26:34]CreateOFDProtocolMessage [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 11 00 00 [13:26:34]Write to MH i2c: E2 08 00 47 05 80 11 00 00 00 00 00 00 C6 [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 17 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 17 00 47 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 13 [13:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:26:34]wFMCommunicate OK [13:26:34]CreateOFDProtocolMessage done [13:26:34]OFDSenderStorePacket 75445 [13:26:34]StoreOFDPacket docnum=75445 [13:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 9F FB 07 01 D0 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 B2 00 00 00 F4 03 04 00 89 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B5 26 01 00 35 04 06 00 7E 23 5A B0 DF F0 59 18 2D 66 DA 7C 6B D4 [13:26:34]CheckFolder [13:26:34]dirname=/storage/ofd_packets [13:26:34]CheckFolder done [13:26:34]ProducePacketName [13:26:34]name=ofd_packets/00075445 [13:26:34]NVStorageSaveData ofd_packets/00075445 [13:26:34]File name is /storage/ofd_packets/00075445 [13:26:34]Write 301 bytes [13:26:34]NVStorageSaveData done [13:26:34]OFDSenderStorePacket done [13:26:34]KKMCreateOFDPacket done [13:26:34]NVStorageSaveData kkm_last_timestamp [13:26:34]File name is /storage/kkm_last_timestamp [13:26:34]Write 4 bytes [13:26:34]NVStorageSaveData done [13:26:34]ExternCall_PrintAddStr [13:26:34]wPrintStart [13:26:34]Write to MH i2c: 01 00 00 48 05 4D [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: 01 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: 01 07 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: 01 07 00 48 05 00 00 00 00 00 FF 0F 62 [13:26:34]RasterBufferAndPrint [13:26:34]line Счет N : (1)1965539 [13:26:34]line ИНН: 02508201610067 [13:26:34]line Контрольно-Кассовый Чек [13:26:34]line ПРОДАЖА [13:26:34]line ТРК (МРК, ГНК) : 53 [13:26:34]line Товар: 2710124130 [13:26:34]line Аи-92-К-5 [13:26:34]line 7.480 * 66.90 [13:26:34]line = 500.41 [13:26:34]line НДС 12% НСП 1% [13:26:34]line > о реализуемом товаре [13:26:34]line ОКРУГЛЕНИЕ: -0.41 [13:26:34]line ИТОГО: 500.00 [13:26:34]line Внесено: 500.00 [13:26:34]line СДАЧА: 0.00 [13:26:34]line НСП 1% : 4.43 [13:26:34]line НДС 12% : 53.14 [13:26:34]line Наличными: 500.00 [13:26:34]line Безнал.: 0.00 [13:26:34]line Место: АЗС № 133 "Партнер Нефть" [13:26:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:26:34]line СНО: Общий режим [13:26:34]line Чек 178 23.10.2024 13:26 [13:26:34]line Смена: 173 ФФД: 1.0 [13:26:34]line ЗНМ: 0300000020 [13:26:34]line РНМ: 0000000000161154 [13:26:34]line Версия ККМ: v1.0 [13:26:34]line ФМ: 0000000000963323 [13:26:34]line ФД: 75445 [13:26:34]line ФПД: 138690310496240 [13:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132633&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75445&fm=138690310496240&tin=02508201610067®Number=0000000000161154&sum=50000 [13:26:35]OFD Sender: Processing packet 75445 [packets to send 16, broken 15] [13:26:35]ProducePacketName [13:26:35]name=ofd_packets/00075445 [13:26:35]OFD Sender: To server: pG, [13:26:35]CommunicateWithHost lk.salyk.kg:30040 [13:26:35]ConnectInit lk.salyk.kg [13:26:35]written 0, free lines is 4095 [13:26:35]Connected sock=10 [13:26:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 9F FB 07 01 D0 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 B2 00 00 00 F4 03 04 00 89 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B5 26 01 00 35 04 06 00 7E 23 5A B0 DF F0 59 18 2D 66 DA 7C 6B D4 [13:26:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 03 91 47 00 94 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B5 26 01 00 F4 03 04 00 64 A2 18 67 B6 04 01 00 00 84 C2 2C F1 25 2F 12 71 [13:26:35]CommunicateWithHost err = 0 [13:26:35]CheckOFDResponse [13:26:35]1017 (14) - 77093643461234 [13:26:35]1041 (16) - 0000000000963323 [13:26:35]1040 (4) - 75445 [13:26:35]1012 (4) - 23.10.2024 07:14 [13:26:35]1206 (1) - 0 [13:26:35]OFD Sender: Remove packet 75445 [13:26:35]ProducePacketName [13:26:35]name=ofd_packets/00075445 [13:26:35]NVStorageDeleteData [13:26:35]Write to MH i2c: 01 00 00 72 05 77 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 07 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 07 00 72 05 00 00 00 00 00 A5 0C 2F [13:26:35]RasterBufferAndPrint [13:26:35]line [13:26:35]line [13:26:35]line [13:26:35]line [13:26:35]line [13:26:35]written 0, free lines is 3242 [13:26:35]MH_Cut [13:26:35]Write to MH i2c: D1 01 00 79 05 01 50 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: D1 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: D1 01 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: D1 01 00 79 05 00 4F [13:26:35]Write to MH i2c: 01 00 00 7A 05 7F [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:36]OFD Sender: No OFD packet to send [13:26:36]*** Cut start [13:26:36]*** Partial cut [13:26:36]*** CUTSNS_PIN = 1 [13:26:36]*** CUTSNS_PIN = 0 [13:26:36]*** Brake cut motor [13:26:37]Read from MH i2c: 01 [13:26:37]MH_I2C_Read... [13:26:37]*** Stop cut motor [13:26:37]*** Cut end [13:26:37]Read from MH i2c: 01 07 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: 01 07 00 7A 05 00 00 00 00 00 FF 0F 94 [13:26:37]process_action close_receipt done [13:26:37]requested_data is exist [13:26:37]produce_requested_data [13:26:37]requested_item fm.sn is exist - process it [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 11 00 00 [13:26:37]Write to MH i2c: E2 08 00 7B 05 80 11 00 00 00 00 00 00 FA [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 17 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 17 00 7B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 47 [13:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:26:37]wFMCommunicate OK [13:26:37]requested_item fd.num is exist - process it [13:26:37]SAM_PROTO_GetFieldsCounters [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 13 00 00 [13:26:37]Write to MH i2c: E2 08 00 7C 05 80 13 00 00 00 00 00 00 FD [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 62 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 62 00 7C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B5 26 01 00 0E 04 04 00 AD 00 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 B0 [13:26:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B5 26 01 00 0E 04 04 00 AD 00 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 [13:26:37]wFMCommunicate OK [13:26:37]SAM_PROTO_GetFieldsCounters done [13:26:37]requested_item shift.num is exist - process it [13:26:37]requested_item shift.opened is exist - process it [13:26:37]req_shift_opened [13:26:37]FM_GetShiftState [13:26:37]SAM_PROTO_GetShiftState [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 13 01 00 [13:26:37]Write to MH i2c: E2 08 00 7D 05 80 13 01 00 00 00 00 00 FF [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 0E 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 0E 00 7D 05 00 09 00 01 99 41 18 67 00 00 00 00 90 00 64 [13:26:37]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:26:37]wFMCommunicate OK [13:26:37]SAM_PROTO_GetShiftState done [13:26:37]FM_GetShiftState done [13:26:37]req_shift_opened done [13:26:37]requested_item shift.open_date is exist - process it [13:26:37]req_shift_open_date [13:26:37]req_shift_open_date done [13:26:37]produce_requested_data done [13:26:37]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75445,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:26:37]process_action_free close_receipt [13:26:37]json_value_free [13:26:37]json_value_free done [13:26:37]process_json_proto returns [13:26:37]Send response to host [13:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75445,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:26:37]free response buf [13:26:37]execute_script done [13:26:37]execute_script returns [13:26:37]free content buf [13:26:37]Sock 8.Close socket [13:26:37]Sock 8.Thread stoped [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:03]accept exits with 9 [13:27:03]New connection [13:27:03]New thread 3066465636 created [13:27:03]Thread 3066608996 joined [13:27:03]Waiting for new connection... [13:27:03] Sock 9.Parse request [13:27:03]Sock 9.Check first char [13:27:03]Sock 9.First char is OK [13:27:03]request: POST /json_proto HTTP/1.0 [13:27:03]Method: POST [13:27:03]URL: /json_proto [13:27:03]Method is POST - this is cgi request [13:27:03]url: /json_proto [13:27:03]query_string will be loaded in cgi processing [13:27:03]execute_cgi json_proto POST (null) [13:27:03]execute_cgi path=json_proto method=POST [13:27:03]POST find Content-Length [13:27:03]Host: 172.17.44.196:8080 [13:27:03]Content-Length: 678 [13:27:03]Content-Type: application/json [13:27:03] [13:27:03]POST finish read [13:27:03]Found Content-Length = 678 [13:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:27:03]execute_script... [13:27:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:27:03]POST & json_proto [13:27:03]process_json_proto [13:27:03]json parsed OK: [13:27:03]protocol is kg_v1.0 [13:27:03]action value=close_receipt [13:27:03]process_action close_receipt [13:27:03]cmd_close_receipt [13:27:03]MH_GetDate [13:27:03]Write to MH i2c: F0 00 00 7E 05 72 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: F0 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: F0 09 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: F0 09 00 7E 05 00 A7 F9 18 67 E7 19 F8 65 F7 [13:27:03]GetLastDocTimeStamp 1729689993 [13:27:03]current date 1729690023 [13:27:03]FM_GetShiftState [13:27:03]SAM_PROTO_GetShiftState [13:27:03]wFMCommunicate request_size=4 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 13 01 00 [13:27:03]Write to MH i2c: E2 08 00 7F 05 80 13 01 00 00 00 00 00 01 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 0E 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 0E 00 7F 05 00 09 00 01 99 41 18 67 00 00 00 00 90 00 66 [13:27:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:27:03]wFMCommunicate OK [13:27:03]SAM_PROTO_GetShiftState done [13:27:03]FM_GetShiftState done [13:27:03]opened in 1729642905 [13:27:03]opened+sec_in_day 1729729305 [13:27:03]quantity*price = 50041 [13:27:03]sum+1 = 50042 [13:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 179 23.10.2024 13:27 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75446 ФПД: 62558647061704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132703&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75446&fm=62558647061704&tin=02508201610067®Number=0000000000161154&sum=50000 [13:27:04]StoreToDocumentArchive [13:27:04]shift 173 fd 75446 [13:27:04]save to /storage/0173/doc_00075446 [13:27:04]save last doc name /storage/0173/doc_00075446 to /storage/kkm_last_doc_name [13:27:04]save OK [13:27:04]Clear old archive folders... [13:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:04]tlvbuf is 007932B0 [13:27:04]SAM_PROTO_ClearQueue [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 09 00 00 [13:27:04]Write to MH i2c: E2 08 00 8C 05 80 09 00 00 00 00 00 00 03 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 8C 05 00 90 00 05 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_ClearQueue done [13:27:04]KKMCreateOFDPacket [13:27:04]OFDProtocolAddRootSTLVToBuf [13:27:04]FM_MakeSignedData [13:27:04]FM_MakeSignedData [13:27:04]SAM_PROTO_SignData [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 01 02 [13:27:04]Write to MH i2c: E2 08 00 8D 05 80 0D 01 02 00 00 00 00 0B [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 8D 05 00 90 00 06 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=255 [13:27:04]MH_SAM_APDU [13:27: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 B3 00 00 00 F4 03 04 00 A7 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B6 26 01 00 35 04 06 00 38 [13:27:04]Write to MH i2c: E2 02 01 8E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 B3 00 00 00 F4 03 04 00 A7 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B6 26 01 00 35 04 06 00 38 00 00 21 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=10 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 02 02 05 E5 91 EF 8C C8 [13:27:04]Write to MH i2c: E2 0D 00 8F 05 80 0D 02 02 05 00 E5 91 EF 8C C8 00 00 D1 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 03 02 [13:27:04]Write to MH i2c: E2 08 00 90 05 80 0D 03 02 00 00 00 00 10 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0B 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0B 00 90 05 00 65 B0 4B A5 E6 45 DC 1E 90 00 3B [13:27:04]RAPDU: 65 B0 4B A5 E6 45 DC 1E 90 00 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_SignData done [13:27:04]FM_MakeSignedData done [13:27:04]CreateOFDProtocolMessage [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 11 00 00 [13:27:04]Write to MH i2c: E2 08 00 91 05 80 11 00 00 00 00 00 00 10 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 91 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5D [13:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:27:04]wFMCommunicate OK [13:27:04]CreateOFDProtocolMessage done [13:27:04]OFDSenderStorePacket 75446 [13:27:04]StoreOFDPacket docnum=75446 [13:27:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A8 A5 07 01 24 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 B3 00 00 00 F4 03 04 00 A7 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B6 26 01 00 35 04 06 00 38 E5 91 EF 8C C8 65 B0 4B A5 E6 45 DC 1E [13:27:04]CheckFolder [13:27:04]dirname=/storage/ofd_packets [13:27:04]CheckFolder done [13:27:04]ProducePacketName [13:27:04]name=ofd_packets/00075446 [13:27:04]NVStorageSaveData ofd_packets/00075446 [13:27:04]File name is /storage/ofd_packets/00075446 [13:27:04]Write 301 bytes [13:27:04]NVStorageSaveData done [13:27:04]OFDSenderStorePacket done [13:27:04]KKMCreateOFDPacket done [13:27:04]NVStorageSaveData kkm_last_timestamp [13:27:04]File name is /storage/kkm_last_timestamp [13:27:04]Write 4 bytes [13:27:04]NVStorageSaveData done [13:27:04]ExternCall_PrintAddStr [13:27:04]wPrintStart [13:27:04]Write to MH i2c: 01 00 00 92 05 97 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 92 05 00 00 00 00 00 FF 0F AC [13:27:04]RasterBufferAndPrint [13:27:04]line Счет N : (1)1965540 [13:27:04]line ИНН: 02508201610067 [13:27:04]line Контрольно-Кассовый Чек [13:27:04]line ПРОДАЖА [13:27:04]line ТРК (МРК, ГНК) : 63 [13:27:04]line Товар: 2710124130 [13:27:04]line Аи-92-К-5 [13:27:04]line 7.480 * 66.90 [13:27:04]line = 500.41 [13:27:04]line НДС 12% НСП 1% [13:27:04]line > о реализуемом товаре [13:27:04]line ОКРУГЛЕНИЕ: -0.41 [13:27:04]line ИТОГО: 500.00 [13:27:04]line Внесено: 500.00 [13:27:04]line СДАЧА: 0.00 [13:27:04]line НСП 1% : 4.43 [13:27:04]line НДС 12% : 53.14 [13:27:04]line Наличными: 500.00 [13:27:04]line Безнал.: 0.00 [13:27:04]line Место: АЗС № 133 "Партнер Нефть" [13:27:04]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:27:04]line СНО: Общий режим [13:27:04]line Чек 179 23.10.2024 13:27 [13:27:04]line Смена: 173 ФФД: 1.0 [13:27:04]line ЗНМ: 0300000020 [13:27:04]line РНМ: 0000000000161154 [13:27:04]line Версия ККМ: v1.0 [13:27:04]line ФМ: 0000000000963323 [13:27:04]line ФД: 75446 [13:27:04]line ФПД: 62558647061704 [13:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132703&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75446&fm=62558647061704&tin=02508201610067®Number=0000000000161154&sum=50000 [13:27:05]OFD Sender: Processing packet 75446 [packets to send 16, broken 15] [13:27:05]ProducePacketName [13:27:05]name=ofd_packets/00075446 [13:27:05]OFD Sender: To server: pG, [13:27:05]CommunicateWithHost lk.salyk.kg:30040 [13:27:05]ConnectInit lk.salyk.kg [13:27:05]written 0, free lines is 4095 [13:27:05]Connected sock=10 [13:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A8 A5 07 01 24 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 B3 00 00 00 F4 03 04 00 A7 F9 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B6 26 01 00 35 04 06 00 38 E5 91 EF 8C C8 65 B0 4B A5 E6 45 DC 1E [13:27:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B7 89 47 00 3F 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 39 36 33 33 32 33 10 04 04 00 B6 26 01 00 F4 03 04 00 82 A2 18 67 B6 04 01 00 00 0C 73 BF 2B EE 51 3D 4B [13:27:05]CommunicateWithHost err = 0 [13:27:05]CheckOFDResponse [13:27:05]1017 (14) - 77093643461234 [13:27:05]1041 (16) - 0000000000963323 [13:27:05]1040 (4) - 75446 [13:27:05]1012 (4) - 23.10.2024 07:15 [13:27:05]1206 (1) - 0 [13:27:05]OFD Sender: Remove packet 75446 [13:27:05]ProducePacketName [13:27:05]name=ofd_packets/00075446 [13:27:05]NVStorageDeleteData [13:27:05]Write to MH i2c: 01 00 00 BC 05 C1 [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 07 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 07 00 BC 05 00 00 00 00 00 9D 0C 71 [13:27:05]RasterBufferAndPrint [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]written 0, free lines is 3234 [13:27:05]MH_Cut [13:27:05]Write to MH i2c: D1 01 00 C3 05 01 9A [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 01 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 01 00 C3 05 00 99 [13:27:05]Write to MH i2c: 01 00 00 C4 05 C9 [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:06]OFD Sender: No OFD packet to send [13:27:06]*** Cut start [13:27:06]*** Partial cut [13:27:06]*** CUTSNS_PIN = 1 [13:27:06]*** CUTSNS_PIN = 0 [13:27:06]*** Brake cut motor [13:27:07]Read from MH i2c: 01 [13:27:07]MH_I2C_Read... [13:27:07]*** Stop cut motor [13:27:07]*** Cut end [13:27:07]Read from MH i2c: 01 07 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: 01 07 00 C4 05 00 00 00 00 00 FF 0F DE [13:27:07]process_action close_receipt done [13:27:07]requested_data is exist [13:27:07]produce_requested_data [13:27:07]requested_item fm.sn is exist - process it [13:27:07]wFMCommunicate request_size=4 [13:27:07]MH_SAM_APDU [13:27:07]CAPDU: 80 11 00 00 [13:27:07]Write to MH i2c: E2 08 00 C5 05 80 11 00 00 00 00 00 00 44 [13:27:07]Write i2c OK [13:27:07]MH_I2C_Read... [13:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:07]Read from MH i2c: E2 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 17 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 17 00 C5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 91 [13:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:27:07]wFMCommunicate OK [13:27:07]requested_item fd.num is exist - process it [13:27:07]SAM_PROTO_GetFieldsCounters [13:27:07]wFMCommunicate request_size=4 [13:27:07]MH_SAM_APDU [13:27:07]CAPDU: 80 13 00 00 [13:27:07]Write to MH i2c: E2 08 00 C6 05 80 13 00 00 00 00 00 00 47 [13:27:07]Write i2c OK [13:27:07]MH_I2C_Read... [13:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:07]Read from MH i2c: E2 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 62 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 62 00 C6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B6 26 01 00 0E 04 04 00 AD 00 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 FE [13:27:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B6 26 01 00 0E 04 04 00 AD 00 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 [13:27:07]wFMCommunicate OK [13:27:07]SAM_PROTO_GetFieldsCounters done [13:27:07]requested_item shift.num is exist - process it [13:27:07]requested_item shift.opened is exist - process it [13:27:07]req_shift_opened [13:27:07]FM_GetShiftState [13:27:07]SAM_PROTO_GetShiftState [13:27:07]wFMCommunicate request_size=4 [13:27:07]MH_SAM_APDU [13:27:07]CAPDU: 80 13 01 00 [13:27:07]Write to MH i2c: E2 08 00 C7 05 80 13 01 00 00 00 00 00 49 [13:27:07]Write i2c OK [13:27:07]MH_I2C_Read... [13:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:07]Read from MH i2c: E2 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 0E 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 0E 00 C7 05 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AE [13:27:07]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:27:07]wFMCommunicate OK [13:27:07]SAM_PROTO_GetShiftState done [13:27:07]FM_GetShiftState done [13:27:07]req_shift_opened done [13:27:07]requested_item shift.open_date is exist - process it [13:27:07]req_shift_open_date [13:27:07]req_shift_open_date done [13:27:07]produce_requested_data done [13:27:07]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75446,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:27:07]process_action_free close_receipt [13:27:07]json_value_free [13:27:07]json_value_free done [13:27:07]process_json_proto returns [13:27:07]Send response to host [13:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75446,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:27:07]free response buf [13:27:07]execute_script done [13:27:07]execute_script returns [13:27:07]free content buf [13:27:07]Sock 9.Close socket [13:27:07]Sock 9.Thread stoped [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:33]accept exits with 8 [13:28:33]New connection [13:28:33]New thread 3066608996 created [13:28:33]Thread 3066465636 joined [13:28:33]Waiting for new connection... [13:28:33] Sock 8.Parse request [13:28:33]Sock 8.Check first char [13:28:33]Sock 8.First char is OK [13:28:33]request: POST /json_proto HTTP/1.0 [13:28:33]Method: POST [13:28:33]URL: /json_proto [13:28:33]Method is POST - this is cgi request [13:28:33]url: /json_proto [13:28:33]query_string will be loaded in cgi processing [13:28:33]execute_cgi json_proto POST (null) [13:28:33]execute_cgi path=json_proto method=POST [13:28:33]POST find Content-Length [13:28:33]Host: 172.17.44.196:8080 [13:28:33]Content-Length: 678 [13:28:33]Content-Type: application/json [13:28:33] [13:28:33]POST finish read [13:28:33]Found Content-Length = 678 [13:28:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:33]execute_script... [13:28: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)1965541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:33]POST & json_proto [13:28:33]process_json_proto [13:28:33]json parsed OK: [13:28:33]protocol is kg_v1.0 [13:28:33]action value=close_receipt [13:28:33]process_action close_receipt [13:28:33]cmd_close_receipt [13:28:33]MH_GetDate [13:28:33]Write to MH i2c: F0 00 00 C8 05 BC [13:28:33]Write i2c OK [13:28:33]MH_I2C_Read... [13:28:33]Read from MH i2c: F0 [13:28:33]MH_I2C_Read... [13:28:33]Read from MH i2c: F0 09 00 [13:28:33]MH_I2C_Read... [13:28:33]Read from MH i2c: F0 09 00 C8 05 00 02 FA 18 67 E7 19 F8 65 9D [13:28:33]GetLastDocTimeStamp 1729690023 [13:28:33]current date 1729690114 [13:28:33]FM_GetShiftState [13:28:33]SAM_PROTO_GetShiftState [13:28:33]wFMCommunicate request_size=4 [13:28:33]MH_SAM_APDU [13:28:33]CAPDU: 80 13 01 00 [13:28:33]Write to MH i2c: E2 08 00 C9 05 80 13 01 00 00 00 00 00 4B [13:28:33]Write i2c OK [13:28:33]MH_I2C_Read... [13:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:34]Read from MH i2c: E2 [13:28:34]MH_I2C_Read... [13:28:34]Read from MH i2c: E2 0E 00 [13:28:34]MH_I2C_Read... [13:28:34]Read from MH i2c: E2 0E 00 C9 05 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B0 [13:28:34]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:28:34]wFMCommunicate OK [13:28:34]SAM_PROTO_GetShiftState done [13:28:34]FM_GetShiftState done [13:28:34]opened in 1729642905 [13:28:34]opened+sec_in_day 1729729305 [13:28:34]quantity*price = 54055 [13:28:34]sum+1 = 54056 [13:28:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.40 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 180 23.10.2024 13:28 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75447 ФПД: 241216318512634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132834&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75447&fm=241216318512634&tin=02508201610067®Number=0000000000161154&sum=54000 [13:28:35]StoreToDocumentArchive [13:28:35]shift 173 fd 75447 [13:28:35]save to /storage/0173/doc_00075447 [13:28:35]save last doc name /storage/0173/doc_00075447 to /storage/kkm_last_doc_name [13:28:35]save OK [13:28:35]Clear old archive folders... [13:28:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:28:35]tlvbuf is 00781FF0 [13:28:35]SAM_PROTO_ClearQueue [13:28:35]wFMCommunicate request_size=4 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 09 00 00 [13:28:35]Write to MH i2c: E2 08 00 D6 05 80 09 00 00 00 00 00 00 4D [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 D6 05 00 90 00 4F [13:28:35]RAPDU: 90 00 [13:28:35]wFMCommunicate OK [13:28:35]SAM_PROTO_ClearQueue done [13:28:35]KKMCreateOFDPacket [13:28:35]OFDProtocolAddRootSTLVToBuf [13:28:35]FM_MakeSignedData [13:28:35]FM_MakeSignedData [13:28:35]SAM_PROTO_SignData [13:28:35]wFMCommunicate request_size=4 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 0D 01 02 [13:28:35]Write to MH i2c: E2 08 00 D7 05 80 0D 01 02 00 00 00 00 55 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 D7 05 00 90 00 50 [13:28:35]RAPDU: 90 00 [13:28:35]wFMCommunicate OK [13:28:35]wFMCommunicate request_size=255 [13:28:35]MH_SAM_APDU [13:28: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 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 02 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B7 26 01 00 35 04 06 00 DB [13:28:35]Write to MH i2c: E2 02 01 D8 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 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 02 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B7 26 01 00 35 04 06 00 DB 00 00 B1 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [13:28:35]RAPDU: 90 00 [13:28:35]wFMCommunicate OK [13:28:35]wFMCommunicate request_size=10 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 0D 02 02 05 62 8C FA 9D FA [13:28:35]Write to MH i2c: E2 0D 00 D9 05 80 0D 02 02 05 00 62 8C FA 9D FA 00 00 E1 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [13:28:35]RAPDU: 90 00 [13:28:35]wFMCommunicate OK [13:28:35]wFMCommunicate request_size=4 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 0D 03 02 [13:28:35]Write to MH i2c: E2 08 00 DA 05 80 0D 03 02 00 00 00 00 5A [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 0B 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 0B 00 DA 05 00 2D D1 50 66 42 75 EE E7 90 00 9B [13:28:35]RAPDU: 2D D1 50 66 42 75 EE E7 90 00 [13:28:35]wFMCommunicate OK [13:28:35]SAM_PROTO_SignData done [13:28:35]FM_MakeSignedData done [13:28:35]CreateOFDProtocolMessage [13:28:35]wFMCommunicate request_size=4 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 11 00 00 [13:28:35]Write to MH i2c: E2 08 00 DB 05 80 11 00 00 00 00 00 00 5A [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 17 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 17 00 DB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A7 [13:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:28:35]wFMCommunicate OK [13:28:35]CreateOFDProtocolMessage done [13:28:35]OFDSenderStorePacket 75447 [13:28:35]StoreOFDPacket docnum=75447 [13:28:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AB D7 07 01 50 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 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 02 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B7 26 01 00 35 04 06 00 DB 62 8C FA 9D FA 2D D1 50 66 42 75 EE E7 [13:28:35]CheckFolder [13:28:35]dirname=/storage/ofd_packets [13:28:35]CheckFolder done [13:28:35]ProducePacketName [13:28:35]name=ofd_packets/00075447 [13:28:35]NVStorageSaveData ofd_packets/00075447 [13:28:35]File name is /storage/ofd_packets/00075447 [13:28:35]Write 301 bytes [13:28:35]NVStorageSaveData done [13:28:35]OFDSenderStorePacket done [13:28:35]KKMCreateOFDPacket done [13:28:35]NVStorageSaveData kkm_last_timestamp [13:28:35]File name is /storage/kkm_last_timestamp [13:28:35]Write 4 bytes [13:28:35]NVStorageSaveData done [13:28:35]ExternCall_PrintAddStr [13:28:35]wPrintStart [13:28:35]Write to MH i2c: 01 00 00 DC 05 E1 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: 01 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: 01 07 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [13:28:35]RasterBufferAndPrint [13:28:35]line Счет N : (1)1965541 [13:28:35]line ИНН: 02508201610067 [13:28:35]line Контрольно-Кассовый Чек [13:28:35]line ПРОДАЖА [13:28:35]line ТРК (МРК, ГНК) : 33 [13:28:35]line Товар: 2710124130 [13:28:35]line Аи-92-К-5 [13:28:35]line 8.080 * 66.90 [13:28:35]line = 540.55 [13:28:35]line НДС 12% НСП 1% [13:28:35]line > о реализуемом товаре [13:28:35]line ОКРУГЛЕНИЕ: -0.55 [13:28:35]line ИТОГО: 540.00 [13:28:35]line Внесено: 540.00 [13:28:35]line СДАЧА: 0.00 [13:28:35]line НСП 1% : 4.78 [13:28:35]line НДС 12% : 57.40 [13:28:35]line Наличными: 540.00 [13:28:35]line Безнал.: 0.00 [13:28:35]line Место: АЗС № 133 "Партнер Нефть" [13:28:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:28:35]line СНО: Общий режим [13:28:35]line Чек 180 23.10.2024 13:28 [13:28:35]line Смена: 173 ФФД: 1.0 [13:28:35]line ЗНМ: 0300000020 [13:28:35]line РНМ: 0000000000161154 [13:28:35]line Версия ККМ: v1.0 [13:28:35]line ФМ: 0000000000963323 [13:28:35]line ФД: 75447 [13:28:35]line ФПД: 241216318512634 [13:28:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132834&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75447&fm=241216318512634&tin=02508201610067®Number=0000000000161154&sum=54000 [13:28:36]OFD Sender: Processing packet 75447 [packets to send 16, broken 15] [13:28:36]ProducePacketName [13:28:36]name=ofd_packets/00075447 [13:28:36]OFD Sender: To server: pG, [13:28:36]CommunicateWithHost lk.salyk.kg:30040 [13:28:36]ConnectInit lk.salyk.kg [13:28:36]written 0, free lines is 4095 [13:28:36]Connected sock=10 [13:28:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 AB D7 07 01 50 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 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 02 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B7 26 01 00 35 04 06 00 DB 62 8C FA 9D FA 2D D1 50 66 42 75 EE E7 [13:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AA D3 47 00 5E 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B7 26 01 00 F4 03 04 00 DD A2 18 67 B6 04 01 00 00 0B 2D 20 D1 DA C6 BD BB [13:28:36]CommunicateWithHost err = 0 [13:28:36]CheckOFDResponse [13:28:36]1017 (14) - 77093643461234 [13:28:36]1041 (16) - 0000000000963323 [13:28:36]1040 (4) - 75447 [13:28:36]1012 (4) - 23.10.2024 07:16 [13:28:36]1206 (1) - 0 [13:28:36]OFD Sender: Remove packet 75447 [13:28:36]ProducePacketName [13:28:36]name=ofd_packets/00075447 [13:28:36]NVStorageDeleteData [13:28:36]Write to MH i2c: 01 00 00 06 06 0C [13:28:36]Write i2c OK [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: 01 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: 01 07 00 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: 01 07 00 06 06 00 00 00 00 00 A9 0C C8 [13:28:36]RasterBufferAndPrint [13:28:36]line [13:28:36]line [13:28:36]line [13:28:36]line [13:28:36]line [13:28:36]written 0, free lines is 3245 [13:28:36]MH_Cut [13:28:36]Write to MH i2c: D1 01 00 0D 06 01 E5 [13:28:36]Write i2c OK [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: D1 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: D1 01 00 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: D1 01 00 0D 06 00 E4 [13:28:36]Write to MH i2c: 01 00 00 0E 06 14 [13:28:36]Write i2c OK [13:28:36]MH_I2C_Read... [13:28:36]OFD Sender: No OFD packet to send [13:28:37]*** Cut start [13:28:37]*** Partial cut [13:28:37]*** CUTSNS_PIN = 1 [13:28:37]*** CUTSNS_PIN = 0 [13:28:37]*** Brake cut motor [13:28:38]Read from MH i2c: 01 [13:28:38]MH_I2C_Read... [13:28:38]*** Stop cut motor [13:28:38]*** Cut end [13:28:38]Read from MH i2c: 01 07 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: 01 07 00 0E 06 00 00 00 00 00 FF 0F 29 [13:28:38]process_action close_receipt done [13:28:38]requested_data is exist [13:28:38]produce_requested_data [13:28:38]requested_item fm.sn is exist - process it [13:28:38]wFMCommunicate request_size=4 [13:28:38]MH_SAM_APDU [13:28:38]CAPDU: 80 11 00 00 [13:28:38]Write to MH i2c: E2 08 00 0F 06 80 11 00 00 00 00 00 00 8F [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:38]Read from MH i2c: E2 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 17 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 17 00 0F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DC [13:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:28:38]wFMCommunicate OK [13:28:38]requested_item fd.num is exist - process it [13:28:38]SAM_PROTO_GetFieldsCounters [13:28:38]wFMCommunicate request_size=4 [13:28:38]MH_SAM_APDU [13:28:38]CAPDU: 80 13 00 00 [13:28:38]Write to MH i2c: E2 08 00 10 06 80 13 00 00 00 00 00 00 92 [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:38]Read from MH i2c: E2 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 62 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 62 00 10 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B7 26 01 00 0E 04 04 00 AD 00 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 4D [13:28:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B7 26 01 00 0E 04 04 00 AD 00 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 [13:28:38]wFMCommunicate OK [13:28:38]SAM_PROTO_GetFieldsCounters done [13:28:38]requested_item shift.num is exist - process it [13:28:38]requested_item shift.opened is exist - process it [13:28:38]req_shift_opened [13:28:38]FM_GetShiftState [13:28:38]SAM_PROTO_GetShiftState [13:28:38]wFMCommunicate request_size=4 [13:28:38]MH_SAM_APDU [13:28:38]CAPDU: 80 13 01 00 [13:28:38]Write to MH i2c: E2 08 00 11 06 80 13 01 00 00 00 00 00 94 [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:38]Read from MH i2c: E2 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 0E 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: E2 0E 00 11 06 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F9 [13:28:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:28:38]wFMCommunicate OK [13:28:38]SAM_PROTO_GetShiftState done [13:28:38]FM_GetShiftState done [13:28:38]req_shift_opened done [13:28:38]requested_item shift.open_date is exist - process it [13:28:38]req_shift_open_date [13:28:38]req_shift_open_date done [13:28:38]produce_requested_data done [13:28:38]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75447,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:28:38]process_action_free close_receipt [13:28:38]json_value_free [13:28:38]json_value_free done [13:28:38]process_json_proto returns [13:28:38]Send response to host [13:28:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75447,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:28:38]free response buf [13:28:38]execute_script done [13:28:38]execute_script returns [13:28:38]free content buf [13:28:38]Sock 8.Close socket [13:28:38]Sock 8.Thread stoped [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:10]accept exits with 9 [13:29:10]New connection [13:29:10]New thread 3066465636 created [13:29:10]Thread 3066608996 joined [13:29:10]Waiting for new connection... [13:29:10] Sock 9.Parse request [13:29:10]Sock 9.Check first char [13:29:10]Sock 9.First char is OK [13:29:10]request: POST /json_proto HTTP/1.0 [13:29:10]Method: POST [13:29:10]URL: /json_proto [13:29:10]Method is POST - this is cgi request [13:29:10]url: /json_proto [13:29:10]query_string will be loaded in cgi processing [13:29:10]execute_cgi json_proto POST (null) [13:29:10]execute_cgi path=json_proto method=POST [13:29:10]POST find Content-Length [13:29:10]Host: 172.17.44.196:8080 [13:29:10]Content-Length: 801 [13:29:10]Content-Type: application/json [13:29:10] [13:29:10]POST finish read [13:29:10]Found Content-Length = 801 [13:29:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949861", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:10]execute_script... [13:29: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)1965542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949861", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:10]POST & json_proto [13:29:10]process_json_proto [13:29:10]json parsed OK: [13:29:10]protocol is kg_v1.0 [13:29:10]action value=close_receipt [13:29:10]process_action close_receipt [13:29:10]cmd_close_receipt [13:29:10]MH_GetDate [13:29:10]Write to MH i2c: F0 00 00 12 06 07 [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: F0 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: F0 09 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: F0 09 00 12 06 00 27 FA 18 67 E7 19 F8 65 0D [13:29:10]GetLastDocTimeStamp 1729690114 [13:29:10]current date 1729690151 [13:29:10]FM_GetShiftState [13:29:10]SAM_PROTO_GetShiftState [13:29:10]wFMCommunicate request_size=4 [13:29:10]MH_SAM_APDU [13:29:10]CAPDU: 80 13 01 00 [13:29:10]Write to MH i2c: E2 08 00 13 06 80 13 01 00 00 00 00 00 96 [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:10]Read from MH i2c: E2 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 0E 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 0E 00 13 06 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FB [13:29:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:29:10]wFMCommunicate OK [13:29:10]SAM_PROTO_GetShiftState done [13:29:10]FM_GetShiftState done [13:29:10]opened in 1729642905 [13:29:10]opened+sec_in_day 1729729305 [13:29:10]quantity*price = 0 [13:29:10]sum+1 = 1 [13:29:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 181 23.10.2024 13:29 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949861 ФМ: 0000000000963323 ФД: 75448 ФПД: 218401393964476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132911&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75448&fm=218401393964476&tin=02508201610067®Number=0000000000161154&sum=0 [13:29:11]StoreToDocumentArchive [13:29:11]shift 173 fd 75448 [13:29:11]save to /storage/0173/doc_00075448 [13:29:11]save last doc name /storage/0173/doc_00075448 to /storage/kkm_last_doc_name [13:29:11]save OK [13:29:11]Clear old archive folders... [13:29:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:11]tlvbuf is 0079E080 [13:29:11]SAM_PROTO_ClearQueue [13:29:11]wFMCommunicate request_size=4 [13:29:11]MH_SAM_APDU [13:29:11]CAPDU: 80 09 00 00 [13:29:11]Write to MH i2c: E2 08 00 20 06 80 09 00 00 00 00 00 00 98 [13:29:11]Write i2c OK [13:29:11]MH_I2C_Read... [13:29:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:11]Read from MH i2c: E2 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: E2 03 00 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: E2 03 00 20 06 00 90 00 9A [13:29:11]RAPDU: 90 00 [13:29:11]wFMCommunicate OK [13:29:11]SAM_PROTO_ClearQueue done [13:29:11]KKMCreateOFDPacket [13:29:11]OFDProtocolAddRootSTLVToBuf [13:29:11]FM_MakeSignedData [13:29:11]FM_MakeSignedData [13:29:11]SAM_PROTO_SignData [13:29:11]wFMCommunicate request_size=4 [13:29:11]MH_SAM_APDU [13:29:11]CAPDU: 80 0D 01 02 [13:29:11]Write to MH i2c: E2 08 00 21 06 80 0D 01 02 00 00 00 00 A0 [13:29:11]Write i2c OK [13:29:11]MH_I2C_Read... [13:29:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:12]Read from MH i2c: E2 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 03 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 03 00 21 06 00 90 00 9B [13:29:12]RAPDU: 90 00 [13:29:12]wFMCommunicate OK [13:29:12]wFMCommunicate request_size=255 [13:29:12]MH_SAM_APDU [13:29: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 27 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B8 26 01 00 35 04 06 00 C6 [13:29:12]Write to MH i2c: E2 02 01 22 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 27 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B8 26 01 00 35 04 06 00 C6 00 00 B2 [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:12]Read from MH i2c: E2 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 03 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 03 00 22 06 00 90 00 9C [13:29:12]RAPDU: 90 00 [13:29:12]wFMCommunicate OK [13:29:12]wFMCommunicate request_size=10 [13:29:12]MH_SAM_APDU [13:29:12]CAPDU: 80 0D 02 02 05 A2 89 81 75 BC [13:29:12]Write to MH i2c: E2 0D 00 23 06 80 0D 02 02 05 00 A2 89 81 75 BC 00 00 8A [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:12]Read from MH i2c: E2 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 03 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 03 00 23 06 00 90 00 9D [13:29:12]RAPDU: 90 00 [13:29:12]wFMCommunicate OK [13:29:12]wFMCommunicate request_size=4 [13:29:12]MH_SAM_APDU [13:29:12]CAPDU: 80 0D 03 02 [13:29:12]Write to MH i2c: E2 08 00 24 06 80 0D 03 02 00 00 00 00 A5 [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:12]Read from MH i2c: E2 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 0B 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 0B 00 24 06 00 43 D1 8E 51 AD D7 B6 8B 90 00 5E [13:29:12]RAPDU: 43 D1 8E 51 AD D7 B6 8B 90 00 [13:29:12]wFMCommunicate OK [13:29:12]SAM_PROTO_SignData done [13:29:12]FM_MakeSignedData done [13:29:12]CreateOFDProtocolMessage [13:29:12]wFMCommunicate request_size=4 [13:29:12]MH_SAM_APDU [13:29:12]CAPDU: 80 11 00 00 [13:29:12]Write to MH i2c: E2 08 00 25 06 80 11 00 00 00 00 00 00 A5 [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:12]Read from MH i2c: E2 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 17 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 17 00 25 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F2 [13:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:29:12]wFMCommunicate OK [13:29:12]CreateOFDProtocolMessage done [13:29:12]OFDSenderStorePacket 75448 [13:29:12]StoreOFDPacket docnum=75448 [13:29:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A3 01 07 01 40 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 27 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B8 26 01 00 35 04 06 00 C6 A2 89 81 75 BC 43 D1 8E 51 AD D7 B6 8B [13:29:12]CheckFolder [13:29:12]dirname=/storage/ofd_packets [13:29:12]CheckFolder done [13:29:12]ProducePacketName [13:29:12]name=ofd_packets/00075448 [13:29:12]NVStorageSaveData ofd_packets/00075448 [13:29:12]File name is /storage/ofd_packets/00075448 [13:29:12]Write 301 bytes [13:29:12]NVStorageSaveData done [13:29:12]OFDSenderStorePacket done [13:29:12]KKMCreateOFDPacket done [13:29:12]NVStorageSaveData kkm_last_timestamp [13:29:12]File name is /storage/kkm_last_timestamp [13:29:12]Write 4 bytes [13:29:12]NVStorageSaveData done [13:29:12]ExternCall_PrintAddStr [13:29:12]wPrintStart [13:29:12]Write to MH i2c: 01 00 00 26 06 2C [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: 01 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: 01 07 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: 01 07 00 26 06 00 00 00 00 00 FF 0F 41 [13:29:12]RasterBufferAndPrint [13:29:12]line Счет N : (1)1965542 [13:29:12]line ИНН: 02508201610067 [13:29:12]line Контрольно-Кассовый Чек [13:29:12]line ПРОДАЖА [13:29:12]line ТРК (МРК, ГНК) : 43 [13:29:12]line Товар: 2710124130 [13:29:12]line Аи-92-К-5 [13:29:12]line 20.000 * 0.00 [13:29:12]line = 0.00 [13:29:12]line НДС 12% НСП 1% [13:29:12]line > о реализуемом товаре [13:29:12]line ИТОГО: 0.00 [13:29:12]line НСП 1% : 0.00 [13:29:12]line НДС 12% : 0.00 [13:29:12]line Наличными: 0.00 [13:29:12]line Безнал.: 0.00 [13:29:12]line Место: АЗС № 133 "Партнер Нефть" [13:29:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:29:12]line СНО: Общий режим [13:29:12]line Чек 181 23.10.2024 13:29 [13:29:12]line Смена: 173 ФФД: 1.0 [13:29:12]line ЗНМ: 0300000020 [13:29:12]line РНМ: 0000000000161154 [13:29:12]line Версия ККМ: v1.0 [13:29:12]line Талоны: Топливные Талоны [13:29:12]line 3949861 [13:29:12]line ФМ: 0000000000963323 [13:29:12]line ФД: 75448 [13:29:12]line ФПД: 218401393964476 [13:29:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132911&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75448&fm=218401393964476&tin=02508201610067®Number=0000000000161154&sum=0 [13:29:12]written 0, free lines is 4095 [13:29:12]OFD Sender: Processing packet 75448 [packets to send 16, broken 15] [13:29:12]ProducePacketName [13:29:12]name=ofd_packets/00075448 [13:29:12]OFD Sender: To server: pG, [13:29:12]CommunicateWithHost lk.salyk.kg:30040 [13:29:12]ConnectInit lk.salyk.kg [13:29:12]Connected sock=10 [13:29:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A3 01 07 01 40 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 27 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B8 26 01 00 35 04 06 00 C6 A2 89 81 75 BC 43 D1 8E 51 AD D7 B6 8B [13:29:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CA 2C 47 00 F3 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B8 26 01 00 F4 03 04 00 02 A3 18 67 B6 04 01 00 00 1E AA 96 15 0A FC 99 C8 [13:29:13]CommunicateWithHost err = 0 [13:29:13]CheckOFDResponse [13:29:13]1017 (14) - 77093643461234 [13:29:13]1041 (16) - 0000000000963323 [13:29:13]1040 (4) - 75448 [13:29:13]1012 (4) - 23.10.2024 07:17 [13:29:13]1206 (1) - 0 [13:29:13]OFD Sender: Remove packet 75448 [13:29:13]ProducePacketName [13:29:13]name=ofd_packets/00075448 [13:29:13]NVStorageDeleteData [13:29:13]Write to MH i2c: 01 00 00 4F 06 55 [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: 01 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: 01 07 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: 01 07 00 4F 06 00 00 00 00 00 BF 0C 27 [13:29:13]RasterBufferAndPrint [13:29:13]line [13:29:13]line [13:29:13]line [13:29:13]line [13:29:13]line [13:29:13]written 0, free lines is 3267 [13:29:13]MH_Cut [13:29:13]Write to MH i2c: D1 01 00 56 06 01 2E [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: D1 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: D1 01 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: D1 01 00 56 06 00 2D [13:29:13]Write to MH i2c: 01 00 00 57 06 5D [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]OFD Sender: No OFD packet to send [13:29:14]*** Cut start [13:29:14]*** Partial cut [13:29:14]*** CUTSNS_PIN = 1 [13:29:14]*** CUTSNS_PIN = 0 [13:29:14]*** Brake cut motor [13:29:14]Read from MH i2c: 01 [13:29:14]MH_I2C_Read... [13:29:14]*** Stop cut motor [13:29:14]*** Cut end [13:29:14]Read from MH i2c: 01 07 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: 01 07 00 57 06 00 00 00 00 00 FF 0F 72 [13:29:14]process_action close_receipt done [13:29:14]requested_data is exist [13:29:14]produce_requested_data [13:29:14]requested_item fm.sn is exist - process it [13:29:14]wFMCommunicate request_size=4 [13:29:14]MH_SAM_APDU [13:29:14]CAPDU: 80 11 00 00 [13:29:14]Write to MH i2c: E2 08 00 58 06 80 11 00 00 00 00 00 00 D8 [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:14]Read from MH i2c: E2 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 17 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 17 00 58 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 25 [13:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:29:14]wFMCommunicate OK [13:29:14]requested_item fd.num is exist - process it [13:29:14]SAM_PROTO_GetFieldsCounters [13:29:14]wFMCommunicate request_size=4 [13:29:14]MH_SAM_APDU [13:29:14]CAPDU: 80 13 00 00 [13:29:14]Write to MH i2c: E2 08 00 59 06 80 13 00 00 00 00 00 00 DB [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:14]Read from MH i2c: E2 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 62 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: E2 62 00 59 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B8 26 01 00 0E 04 04 00 AD 00 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 9A [13:29:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B8 26 01 00 0E 04 04 00 AD 00 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 [13:29:14]wFMCommunicate OK [13:29:14]SAM_PROTO_GetFieldsCounters done [13:29:14]requested_item shift.num is exist - process it [13:29:14]requested_item shift.opened is exist - process it [13:29:14]req_shift_opened [13:29:14]FM_GetShiftState [13:29:14]SAM_PROTO_GetShiftState [13:29:14]wFMCommunicate request_size=4 [13:29:14]MH_SAM_APDU [13:29:14]CAPDU: 80 13 01 00 [13:29:14]Write to MH i2c: E2 08 00 5A 06 80 13 01 00 00 00 00 00 DD [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:15]Read from MH i2c: E2 0E 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 0E 00 5A 06 00 09 00 01 99 41 18 67 00 00 00 00 90 00 42 [13:29:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:29:15]wFMCommunicate OK [13:29:15]SAM_PROTO_GetShiftState done [13:29:15]FM_GetShiftState done [13:29:15]req_shift_opened done [13:29:15]requested_item shift.open_date is exist - process it [13:29:15]req_shift_open_date [13:29:15]req_shift_open_date done [13:29:15]produce_requested_data done [13:29:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75448,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:29:15]process_action_free close_receipt [13:29:15]json_value_free [13:29:15]json_value_free done [13:29:15]process_json_proto returns [13:29:15]Send response to host [13:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75448,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:29:15]free response buf [13:29:15]execute_script done [13:29:15]execute_script returns [13:29:15]free content buf [13:29:15]Sock 9.Close socket [13:29:15]Sock 9.Thread stoped [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:26]accept exits with 8 [13:29:26]New connection [13:29:26]New thread 3066608996 created [13:29:26]Thread 3066465636 joined [13:29:26]Waiting for new connection... [13:29:26] Sock 8.Parse request [13:29:26]Sock 8.Check first char [13:29:26]Sock 8.First char is OK [13:29:26]request: POST /json_proto HTTP/1.0 [13:29:26]Method: POST [13:29:26]URL: /json_proto [13:29:26]Method is POST - this is cgi request [13:29:26]url: /json_proto [13:29:26]query_string will be loaded in cgi processing [13:29:26]execute_cgi json_proto POST (null) [13:29:26]execute_cgi path=json_proto method=POST [13:29:26]POST find Content-Length [13:29:26]Host: 172.17.44.196:8080 [13:29:26]Content-Length: 647 [13:29:26]Content-Type: application/json [13:29:26] [13:29:26]POST finish read [13:29:26]Found Content-Length = 647 [13:29:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273249", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:26]execute_script... [13:29:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273249", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:26]POST & json_proto [13:29:26]process_json_proto [13:29:26]json parsed OK: [13:29:26]protocol is kg_v1.0 [13:29:26]action value=close_receipt [13:29:26]process_action close_receipt [13:29:26]cmd_close_receipt [13:29:26]MH_GetDate [13:29:26]Write to MH i2c: F0 00 00 5B 06 50 [13:29:26]Write i2c OK [13:29:26]MH_I2C_Read... [13:29:26]Read from MH i2c: F0 [13:29:26]MH_I2C_Read... [13:29:26]Read from MH i2c: F0 09 00 [13:29:26]MH_I2C_Read... [13:29:26]Read from MH i2c: F0 09 00 5B 06 00 36 FA 18 67 E7 19 F8 65 65 [13:29:26]GetLastDocTimeStamp 1729690151 [13:29:26]current date 1729690166 [13:29:26]FM_GetShiftState [13:29:26]SAM_PROTO_GetShiftState [13:29:26]wFMCommunicate request_size=4 [13:29:26]MH_SAM_APDU [13:29:26]CAPDU: 80 13 01 00 [13:29:26]Write to MH i2c: E2 08 00 5C 06 80 13 01 00 00 00 00 00 DF [13:29:26]Write i2c OK [13:29:26]MH_I2C_Read... [13:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:26]Read from MH i2c: E2 [13:29:26]MH_I2C_Read... [13:29:26]Read from MH i2c: E2 0E 00 [13:29:26]MH_I2C_Read... [13:29:26]Read from MH i2c: E2 0E 00 5C 06 00 09 00 01 99 41 18 67 00 00 00 00 90 00 44 [13:29:26]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:29:26]wFMCommunicate OK [13:29:26]SAM_PROTO_GetShiftState done [13:29:26]FM_GetShiftState done [13:29:26]opened in 1729642905 [13:29:26]opened+sec_in_day 1729729305 [13:29:26]quantity*price = 13000 [13:29:26]sum+1 = 13001 [13:29:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 182 23.10.2024 13:29 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75449 ФПД: 132030320877558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132926&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75449&fm=132030320877558&tin=02508201610067®Number=0000000000161154&sum=13000 0 [13:29:27]StoreToDocumentArchive [13:29:27]shift 173 fd 75449 [13:29:27]save to /storage/0173/doc_00075449 [13:29:27]save last doc name /storage/0173/doc_00075449 to /storage/kkm_last_doc_name [13:29:27]save OK [13:29:27]Clear old archive folders... [13:29:27]ProcessDocumentItem done err = 0, tmpTLVsize=272 [13:29:27]tlvbuf is 00782070 [13:29:27]SAM_PROTO_ClearQueue [13:29:27]wFMCommunicate request_size=4 [13:29:27]MH_SAM_APDU [13:29:27]CAPDU: 80 09 00 00 [13:29:27]Write to MH i2c: E2 08 00 69 06 80 09 00 00 00 00 00 00 E1 [13:29:27]Write i2c OK [13:29:27]MH_I2C_Read... [13:29:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:27]Read from MH i2c: E2 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 03 00 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [13:29:27]RAPDU: 90 00 [13:29:27]wFMCommunicate OK [13:29:27]SAM_PROTO_ClearQueue done [13:29:27]KKMCreateOFDPacket [13:29:27]OFDProtocolAddRootSTLVToBuf [13:29:27]FM_MakeSignedData [13:29:27]FM_MakeSignedData [13:29:27]SAM_PROTO_SignData [13:29:27]wFMCommunicate request_size=4 [13:29:27]MH_SAM_APDU [13:29:27]CAPDU: 80 0D 01 02 [13:29:27]Write to MH i2c: E2 08 00 6A 06 80 0D 01 02 00 00 00 00 E9 [13:29:27]Write i2c OK [13:29:27]MH_I2C_Read... [13:29:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:27]Read from MH i2c: E2 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 03 00 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 03 00 6A 06 00 90 00 E4 [13:29:27]RAPDU: 90 00 [13:29:27]wFMCommunicate OK [13:29:27]wFMCommunicate request_size=255 [13:29:27]MH_SAM_APDU [13:29:27]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 36 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 [13:29:27]Write to MH i2c: E2 02 01 6B 06 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 36 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 92 [13:29:27]Write i2c OK [13:29:27]MH_I2C_Read... [13:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:27]Read from MH i2c: E2 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 03 00 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 03 00 6B 06 00 90 00 E5 [13:29:27]RAPDU: 90 00 [13:29:27]wFMCommunicate OK [13:29:27]wFMCommunicate request_size=31 [13:29:27]MH_SAM_APDU [13:29:27]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 33 32 33 10 04 04 00 B9 26 01 00 35 04 06 00 78 14 B4 60 1F F6 [13:29:27]Write to MH i2c: E2 22 00 6C 06 80 0D 02 02 1A 00 30 30 39 36 33 33 32 33 10 04 04 00 B9 26 01 00 35 04 06 00 78 14 B4 60 1F F6 00 00 A6 [13:29:27]Write i2c OK [13:29:27]MH_I2C_Read... [13:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:27]Read from MH i2c: E2 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 03 00 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 03 00 6C 06 00 90 00 E6 [13:29:27]RAPDU: 90 00 [13:29:27]wFMCommunicate OK [13:29:27]wFMCommunicate request_size=4 [13:29:27]MH_SAM_APDU [13:29:27]CAPDU: 80 0D 03 02 [13:29:27]Write to MH i2c: E2 08 00 6D 06 80 0D 03 02 00 00 00 00 EE [13:29:27]Write i2c OK [13:29:27]MH_I2C_Read... [13:29:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:27]Read from MH i2c: E2 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 0B 00 [13:29:27]MH_I2C_Read... [13:29:27]Read from MH i2c: E2 0B 00 6D 06 00 D3 BF 2D B6 3B 02 0A F7 90 00 A2 [13:29:27]RAPDU: D3 BF 2D B6 3B 02 0A F7 90 00 [13:29:27]wFMCommunicate OK [13:29:27]SAM_PROTO_SignData done [13:29:27]FM_MakeSignedData done [13:29:27]CreateOFDProtocolMessage [13:29:27]wFMCommunicate request_size=4 [13:29:27]MH_SAM_APDU [13:29:27]CAPDU: 80 11 00 00 [13:29:27]Write to MH i2c: E2 08 00 6E 06 80 11 00 00 00 00 00 00 EE [13:29:27]Write i2c OK [13:29:27]MH_I2C_Read... [13:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:27]Read from MH i2c: E2 [13:29:27]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 17 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: E2 17 00 6E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3B [13:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:29:28]wFMCommunicate OK [13:29:28]CreateOFDProtocolMessage done [13:29:28]OFDSenderStorePacket 75449 [13:29:28]StoreOFDPacket docnum=75449 [13:29:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 D1 91 1C 01 2F 87 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 36 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B9 26 01 00 35 04 06 00 78 14 B4 60 1F F6 D3 BF 2D B6 3B 02 0A F7 [13:29:28]CheckFolder [13:29:28]dirname=/storage/ofd_packets [13:29:28]CheckFolder done [13:29:28]ProducePacketName [13:29:28]name=ofd_packets/00075449 [13:29:28]NVStorageSaveData ofd_packets/00075449 [13:29:28]File name is /storage/ofd_packets/00075449 [13:29:28]Write 322 bytes [13:29:28]NVStorageSaveData done [13:29:28]OFDSenderStorePacket done [13:29:28]KKMCreateOFDPacket done [13:29:28]NVStorageSaveData kkm_last_timestamp [13:29:28]File name is /storage/kkm_last_timestamp [13:29:28]Write 4 bytes [13:29:28]NVStorageSaveData done [13:29:28]ExternCall_PrintAddStr [13:29:28]wPrintStart [13:29:28]Write to MH i2c: 01 00 00 6F 06 75 [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: 01 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: 01 07 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: 01 07 00 6F 06 00 00 00 00 00 FF 0F 8A [13:29:28]RasterBufferAndPrint [13:29:28]line Счет N : (3)273249 [13:29:28]line ИНН: 02508201610067 [13:29:28]line Контрольно-Кассовый Чек [13:29:28]line ПРОДАЖА [13:29:28]line Товар: 47011656 [13:29:28]line Водка Пшеничная 0,1л [13:29:28]line 2.000 * 65.00 [13:29:28]line = 130.00 [13:29:28]line НДС 12% НСП 1% [13:29:28]line > о реализуемом товаре [13:29:28]line ИТОГО: 130.00 [13:29:28]line НСП 1% : 1.15 [13:29:28]line НДС 12% : 13.80 [13:29:28]line Наличными: 130.00 [13:29:28]line Безнал.: 0.00 [13:29:28]line Место: АЗС № 133 "Партнер Нефть" [13:29:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:29:28]line СНО: Общий режим [13:29:28]line Чек 182 23.10.2024 13:29 [13:29:28]line Смена: 173 ФФД: 1.0 [13:29:28]line ЗНМ: 0300000020 [13:29:28]line РНМ: 0000000000161154 [13:29:28]line Версия ККМ: v1.0 [13:29:28]line ФМ: 0000000000963323 [13:29:28]line ФД: 75449 [13:29:28]line ФПД: 132030320877558 [13:29:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132926&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75449&fm=132030320877558&tin=02508201610067®Number=0000000000161154&sum=13000 [13:29:28]OFD Sender: Processing packet 75449 [packets to send 16, broken 15] [13:29:28]ProducePacketName [13:29:28]name=ofd_packets/00075449 [13:29:28]OFD Sender: To server: pG, [13:29:28]CommunicateWithHost lk.salyk.kg:30040 [13:29:28]ConnectInit lk.salyk.kg [13:29:28]line 0 [13:29:28]written 0, free lines is 4095 [13:29:28]Connected sock=10 [13:29:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 D1 91 1C 01 2F 87 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 36 FA 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B9 26 01 00 35 04 06 00 78 14 B4 60 1F F6 D3 BF 2D B6 3B 02 0A F7 [13:29:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 ED 34 47 00 47 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 B9 26 01 00 F4 03 04 00 11 A3 18 67 B6 04 01 00 00 43 61 14 27 B8 88 48 56 [13:29:28]CommunicateWithHost err = 0 [13:29:28]CheckOFDResponse [13:29:28]1017 (14) - 77093643461234 [13:29:28]1041 (16) - 0000000000963323 [13:29:28]1040 (4) - 75449 [13:29:28]1012 (4) - 23.10.2024 07:17 [13:29:28]1206 (1) - 0 [13:29:28]OFD Sender: Remove packet 75449 [13:29:28]ProducePacketName [13:29:28]name=ofd_packets/00075449 [13:29:28]NVStorageDeleteData [13:29:28]Write to MH i2c: 01 00 00 96 06 9C [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: 01 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: 01 07 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: 01 07 00 96 06 00 00 00 00 00 D6 0C 85 [13:29:28]RasterBufferAndPrint [13:29:28]line [13:29:28]line [13:29:28]line [13:29:28]line [13:29:28]line [13:29:28]written 0, free lines is 3290 [13:29:28]MH_Cut [13:29:28]Write to MH i2c: D1 01 00 9D 06 01 75 [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: D1 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: D1 01 00 [13:29:28]MH_I2C_Read... [13:29:28]Read from MH i2c: D1 01 00 9D 06 00 74 [13:29:28]Write to MH i2c: 01 00 00 9E 06 A4 [13:29:28]Write i2c OK [13:29:28]MH_I2C_Read... [13:29:29]OFD Sender: No OFD packet to send [13:29:29]*** Cut start [13:29:29]*** Partial cut [13:29:29]*** CUTSNS_PIN = 1 [13:29:29]*** CUTSNS_PIN = 0 [13:29:29]*** Brake cut motor [13:29:30]Read from MH i2c: 01 [13:29:30]MH_I2C_Read... [13:29:30]*** Stop cut motor [13:29:30]*** Cut end [13:29:30]Read from MH i2c: 01 07 00 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 FF 0F B9 [13:29:30]process_action close_receipt done [13:29:30]requested_data is exist [13:29:30]produce_requested_data [13:29:30]requested_item fm.sn is exist - process it [13:29:30]wFMCommunicate request_size=4 [13:29:30]MH_SAM_APDU [13:29:30]CAPDU: 80 11 00 00 [13:29:30]Write to MH i2c: E2 08 00 9F 06 80 11 00 00 00 00 00 00 1F [13:29:30]Write i2c OK [13:29:30]MH_I2C_Read... [13:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:30]Read from MH i2c: E2 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 17 00 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 17 00 9F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6C [13:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:29:30]wFMCommunicate OK [13:29:30]requested_item fd.num is exist - process it [13:29:30]SAM_PROTO_GetFieldsCounters [13:29:30]wFMCommunicate request_size=4 [13:29:30]MH_SAM_APDU [13:29:30]CAPDU: 80 13 00 00 [13:29:30]Write to MH i2c: E2 08 00 A0 06 80 13 00 00 00 00 00 00 22 [13:29:30]Write i2c OK [13:29:30]MH_I2C_Read... [13:29:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:30]Read from MH i2c: E2 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 62 00 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 62 00 A0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B9 26 01 00 0E 04 04 00 AD 00 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 E5 [13:29:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 B9 26 01 00 0E 04 04 00 AD 00 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 [13:29:30]wFMCommunicate OK [13:29:30]SAM_PROTO_GetFieldsCounters done [13:29:30]requested_item shift.num is exist - process it [13:29:30]requested_item shift.opened is exist - process it [13:29:30]req_shift_opened [13:29:30]FM_GetShiftState [13:29:30]SAM_PROTO_GetShiftState [13:29:30]wFMCommunicate request_size=4 [13:29:30]MH_SAM_APDU [13:29:30]CAPDU: 80 13 01 00 [13:29:30]Write to MH i2c: E2 08 00 A1 06 80 13 01 00 00 00 00 00 24 [13:29:30]Write i2c OK [13:29:30]MH_I2C_Read... [13:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:30]Read from MH i2c: E2 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 0E 00 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 0E 00 A1 06 00 09 00 01 99 41 18 67 00 00 00 00 90 00 89 [13:29:30]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:29:30]wFMCommunicate OK [13:29:30]SAM_PROTO_GetShiftState done [13:29:30]FM_GetShiftState done [13:29:30]req_shift_opened done [13:29:30]requested_item shift.open_date is exist - process it [13:29:30]req_shift_open_date [13:29:30]req_shift_open_date done [13:29:30]produce_requested_data done [13:29:30]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75449,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:29:30]process_action_free close_receipt [13:29:30]json_value_free [13:29:30]json_value_free done [13:29:30]process_json_proto returns [13:29:30]Send response to host [13:29:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75449,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:29:30]free response buf [13:29:30]execute_script done [13:29:30]execute_script returns [13:29:30]free content buf [13:29:30]Sock 8.Close socket [13:29:30]Sock 8.Thread stoped [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:14]accept exits with 9 [13:33:14]New connection [13:33:14]New thread 3066465636 created [13:33:14]Thread 3066608996 joined [13:33:14]Waiting for new connection... [13:33:14] Sock 9.Parse request [13:33:14]Sock 9.Check first char [13:33:14]Sock 9.First char is OK [13:33:14]request: POST /json_proto HTTP/1.0 [13:33:14]Method: POST [13:33:14]URL: /json_proto [13:33:14]Method is POST - this is cgi request [13:33:14]url: /json_proto [13:33:14]query_string will be loaded in cgi processing [13:33:14]execute_cgi json_proto POST (null) [13:33:14]execute_cgi path=json_proto method=POST [13:33:14]POST find Content-Length [13:33:14]Host: 172.17.44.196:8080 [13:33:14]Content-Length: 752 [13:33:14]Content-Type: application/json [13:33:14] [13:33:14]POST finish read [13:33:14]Found Content-Length = 752 [13:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098125", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:14]execute_script... [13:33:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098125", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:14]POST & json_proto [13:33:14]process_json_proto [13:33:14]json parsed OK: [13:33:14]protocol is kg_v1.0 [13:33:14]action value=close_receipt [13:33:14]process_action close_receipt [13:33:14]cmd_close_receipt [13:33:14]MH_GetDate [13:33:14]Write to MH i2c: F0 00 00 A2 06 97 [13:33:14]Write i2c OK [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: F0 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: F0 09 00 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: F0 09 00 A2 06 00 1B FB 18 67 E7 19 F8 65 92 [13:33:14]GetLastDocTimeStamp 1729690166 [13:33:14]current date 1729690395 [13:33:14]FM_GetShiftState [13:33:14]SAM_PROTO_GetShiftState [13:33:14]wFMCommunicate request_size=4 [13:33:14]MH_SAM_APDU [13:33:14]CAPDU: 80 13 01 00 [13:33:14]Write to MH i2c: E2 08 00 A3 06 80 13 01 00 00 00 00 00 26 [13:33:14]Write i2c OK [13:33:14]MH_I2C_Read... [13:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:14]Read from MH i2c: E2 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: E2 0E 00 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: E2 0E 00 A3 06 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8B [13:33:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:33:14]wFMCommunicate OK [13:33:14]SAM_PROTO_GetShiftState done [13:33:14]FM_GetShiftState done [13:33:14]opened in 1729642905 [13:33:14]opened+sec_in_day 1729729305 [13:33:14]quantity*price = 0 [13:33:14]sum+1 = 1 [13:33:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 183 23.10.2024 13:33 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30098125 ФМ: 0000000000963323 ФД: 75450 ФПД: 92089053894239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133315&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75450&fm=92089053894239&tin=02508201610067®Number=0000000000161154&sum=0 [13:33:16]StoreToDocumentArchive [13:33:16]shift 173 fd 75450 [13:33:16]save to /storage/0173/doc_00075450 [13:33:16]save last doc name /storage/0173/doc_00075450 to /storage/kkm_last_doc_name [13:33:16]save OK [13:33:16]Clear old archive folders... [13:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:33:16]tlvbuf is 0079F260 [13:33:16]SAM_PROTO_ClearQueue [13:33:16]wFMCommunicate request_size=4 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 09 00 00 [13:33:16]Write to MH i2c: E2 08 00 B0 06 80 09 00 00 00 00 00 00 28 [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 B0 06 00 90 00 2A [13:33:16]RAPDU: 90 00 [13:33:16]wFMCommunicate OK [13:33:16]SAM_PROTO_ClearQueue done [13:33:16]KKMCreateOFDPacket [13:33:16]OFDProtocolAddRootSTLVToBuf [13:33:16]FM_MakeSignedData [13:33:16]FM_MakeSignedData [13:33:16]SAM_PROTO_SignData [13:33:16]wFMCommunicate request_size=4 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 0D 01 02 [13:33:16]Write to MH i2c: E2 08 00 B1 06 80 0D 01 02 00 00 00 00 30 [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 B1 06 00 90 00 2B [13:33:16]RAPDU: 90 00 [13:33:16]wFMCommunicate OK [13:33:16]wFMCommunicate request_size=255 [13:33:16]MH_SAM_APDU [13:33: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1B FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BA 26 01 00 35 04 06 00 53 C1 27 58 [13:33:16]Write to MH i2c: E2 02 01 B2 06 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1B FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BA 26 01 00 35 04 06 00 53 C1 27 58 00 00 5B [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 B2 06 00 90 00 2C [13:33:16]RAPDU: 90 00 [13:33:16]wFMCommunicate OK [13:33:16]wFMCommunicate request_size=7 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 0D 02 02 02 56 5F [13:33:16]Write to MH i2c: E2 0A 00 B3 06 80 0D 02 02 02 00 56 5F 00 00 EC [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 03 00 B3 06 00 90 00 2D [13:33:16]RAPDU: 90 00 [13:33:16]wFMCommunicate OK [13:33:16]wFMCommunicate request_size=4 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 0D 03 02 [13:33:16]Write to MH i2c: E2 08 00 B4 06 80 0D 03 02 00 00 00 00 35 [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 0B 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 0B 00 B4 06 00 E6 0C E7 65 C3 84 29 01 90 00 E5 [13:33:16]RAPDU: E6 0C E7 65 C3 84 29 01 90 00 [13:33:16]wFMCommunicate OK [13:33:16]SAM_PROTO_SignData done [13:33:16]FM_MakeSignedData done [13:33:16]CreateOFDProtocolMessage [13:33:16]wFMCommunicate request_size=4 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 11 00 00 [13:33:16]Write to MH i2c: E2 08 00 B5 06 80 11 00 00 00 00 00 00 35 [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 17 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 17 00 B5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 82 [13:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:33:16]wFMCommunicate OK [13:33:16]CreateOFDProtocolMessage done [13:33:16]OFDSenderStorePacket 75450 [13:33:16]StoreOFDPacket docnum=75450 [13:33:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 62 0A 04 01 7D 1C 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1B FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BA 26 01 00 35 04 06 00 53 C1 27 58 56 5F E6 0C E7 65 C3 84 29 01 [13:33:16]CheckFolder [13:33:16]dirname=/storage/ofd_packets [13:33:16]CheckFolder done [13:33:16]ProducePacketName [13:33:16]name=ofd_packets/00075450 [13:33:16]NVStorageSaveData ofd_packets/00075450 [13:33:16]File name is /storage/ofd_packets/00075450 [13:33:16]Write 298 bytes [13:33:16]NVStorageSaveData done [13:33:16]OFDSenderStorePacket done [13:33:16]KKMCreateOFDPacket done [13:33:16]NVStorageSaveData kkm_last_timestamp [13:33:16]File name is /storage/kkm_last_timestamp [13:33:16]Write 4 bytes [13:33:16]NVStorageSaveData done [13:33:16]ExternCall_PrintAddStr [13:33:16]wPrintStart [13:33:16]Write to MH i2c: 01 00 00 B6 06 BC [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: 01 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: 01 07 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: 01 07 00 B6 06 00 00 00 00 00 FF 0F D1 [13:33:16]RasterBufferAndPrint [13:33:16]line Счет N : (1)1965549 [13:33:16]line ИНН: 02508201610067 [13:33:16]line Контрольно-Кассовый Чек [13:33:16]line ПРОДАЖА [13:33:16]line ТРК (МРК, ГНК) : 11 [13:33:16]line Товар: 2710194210 [13:33:16]line ДТ-К-5 [13:33:16]line 20.000 * 0.00 [13:33:16]line = 0.00 [13:33:16]line НДС 12% НСП 1% [13:33:16]line > о реализуемом товаре [13:33:16]line ИТОГО: 0.00 [13:33:16]line НСП 1% : 0.00 [13:33:16]line НДС 12% : 0.00 [13:33:16]line Наличными: 0.00 [13:33:16]line Безнал.: 0.00 [13:33:16]line Место: АЗС № 133 "Партнер Нефть" [13:33:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:33:16]line СНО: Общий режим [13:33:16]line Чек 183 23.10.2024 13:33 [13:33:16]line Смена: 173 ФФД: 1.0 [13:33:16]line ЗНМ: 0300000020 [13:33:16]line РНМ: 0000000000161154 [13:33:16]line Версия ККМ: v1.0 [13:33:16]line Талоны: ТК ГПНА Online [13:33:16]line 30098125 [13:33:16]line ФМ: 0000000000963323 [13:33:16]line ФД: 75450 [13:33:16]line ФПД: 92089053894239 [13:33:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133315&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75450&fm=92089053894239&tin=02508201610067®Number=0000000000161154&sum=0 [13:33:16]OFD Sender: Processing packet 75450 [packets to send 16, broken 15] [13:33:16]ProducePacketName [13:33:16]name=ofd_packets/00075450 [13:33:16]OFD Sender: To server: pG, [13:33:16]CommunicateWithHost lk.salyk.kg:30040 [13:33:16]ConnectInit lk.salyk.kg [13:33:16]written 0, free lines is 4095 [13:33:17]Connected sock=10 [13:33:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 62 0A 04 01 7D 1C 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1B FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BA 26 01 00 35 04 06 00 53 C1 27 58 56 5F E6 0C E7 65 C3 84 29 01 [13:33:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 16 47 47 00 B5 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BA 26 01 00 F4 03 04 00 F6 A3 18 67 B6 04 01 00 00 86 34 30 FA 08 B5 EB 38 [13:33:17]CommunicateWithHost err = 0 [13:33:17]CheckOFDResponse [13:33:17]1017 (14) - 77093643461234 [13:33:17]1041 (16) - 0000000000963323 [13:33:17]1040 (4) - 75450 [13:33:17]1012 (4) - 23.10.2024 07:21 [13:33:17]1206 (1) - 0 [13:33:17]OFD Sender: Remove packet 75450 [13:33:17]ProducePacketName [13:33:17]name=ofd_packets/00075450 [13:33:17]NVStorageDeleteData [13:33:17]Write to MH i2c: 01 00 00 DF 06 E5 [13:33:17]Write i2c OK [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: 01 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: 01 07 00 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: 01 07 00 DF 06 00 00 00 00 00 BE 0C B6 [13:33:17]RasterBufferAndPrint [13:33:17]line [13:33:17]line [13:33:17]line [13:33:17]line [13:33:17]line [13:33:17]written 0, free lines is 3266 [13:33:17]MH_Cut [13:33:17]Write to MH i2c: D1 01 00 E6 06 01 BE [13:33:17]Write i2c OK [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: D1 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: D1 01 00 [13:33:17]MH_I2C_Read... [13:33:17]Read from MH i2c: D1 01 00 E6 06 00 BD [13:33:17]Write to MH i2c: 01 00 00 E7 06 ED [13:33:17]Write i2c OK [13:33:17]MH_I2C_Read... [13:33:17]OFD Sender: No OFD packet to send [13:33:18]*** Cut start [13:33:18]*** Partial cut [13:33:18]*** CUTSNS_PIN = 1 [13:33:18]*** CUTSNS_PIN = 0 [13:33:18]*** Brake cut motor [13:33:18]Read from MH i2c: 01 [13:33:18]MH_I2C_Read... [13:33:18]*** Stop cut motor [13:33:18]*** Cut end [13:33:18]Read from MH i2c: 01 07 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: 01 07 00 E7 06 00 00 00 00 00 FF 0F 02 [13:33:18]process_action close_receipt done [13:33:18]requested_data is exist [13:33:18]produce_requested_data [13:33:18]requested_item fm.sn is exist - process it [13:33:18]wFMCommunicate request_size=4 [13:33:18]MH_SAM_APDU [13:33:18]CAPDU: 80 11 00 00 [13:33:18]Write to MH i2c: E2 08 00 E8 06 80 11 00 00 00 00 00 00 68 [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 [13:33:18]MH_I2C_Read... [13:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:18]Read from MH i2c: E2 17 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 17 00 E8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B5 [13:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:33:18]wFMCommunicate OK [13:33:18]requested_item fd.num is exist - process it [13:33:18]SAM_PROTO_GetFieldsCounters [13:33:18]wFMCommunicate request_size=4 [13:33:18]MH_SAM_APDU [13:33:18]CAPDU: 80 13 00 00 [13:33:18]Write to MH i2c: E2 08 00 E9 06 80 13 00 00 00 00 00 00 6B [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:19]Read from MH i2c: E2 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 62 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 62 00 E9 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BA 26 01 00 0E 04 04 00 AD 00 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 32 [13:33:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BA 26 01 00 0E 04 04 00 AD 00 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 [13:33:19]wFMCommunicate OK [13:33:19]SAM_PROTO_GetFieldsCounters done [13:33:19]requested_item shift.num is exist - process it [13:33:19]requested_item shift.opened is exist - process it [13:33:19]req_shift_opened [13:33:19]FM_GetShiftState [13:33:19]SAM_PROTO_GetShiftState [13:33:19]wFMCommunicate request_size=4 [13:33:19]MH_SAM_APDU [13:33:19]CAPDU: 80 13 01 00 [13:33:19]Write to MH i2c: E2 08 00 EA 06 80 13 01 00 00 00 00 00 6D [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:19]Read from MH i2c: E2 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 0E 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 0E 00 EA 06 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D2 [13:33:19]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:33:19]wFMCommunicate OK [13:33:19]SAM_PROTO_GetShiftState done [13:33:19]FM_GetShiftState done [13:33:19]req_shift_opened done [13:33:19]requested_item shift.open_date is exist - process it [13:33:19]req_shift_open_date [13:33:19]req_shift_open_date done [13:33:19]produce_requested_data done [13:33:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75450,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:33:19]process_action_free close_receipt [13:33:19]json_value_free [13:33:19]json_value_free done [13:33:19]process_json_proto returns [13:33:19]Send response to host [13:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75450,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:33:19]free response buf [13:33:19]execute_script done [13:33:19]execute_script returns [13:33:19]free content buf [13:33:19]Sock 9.Close socket [13:33:19]Sock 9.Thread stoped [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:16]accept exits with 8 [13:34:16]New connection [13:34:16]New thread 3066608996 created [13:34:16]Thread 3066465636 joined [13:34:16]Waiting for new connection... [13:34:16] Sock 8.Parse request [13:34:16]Sock 8.Check first char [13:34:16]Sock 8.First char is OK [13:34:16]request: POST /json_proto HTTP/1.0 [13:34:16]Method: POST [13:34:16]URL: /json_proto [13:34:16]Method is POST - this is cgi request [13:34:16]url: /json_proto [13:34:16]query_string will be loaded in cgi processing [13:34:16]execute_cgi json_proto POST (null) [13:34:16]execute_cgi path=json_proto method=POST [13:34:16]POST find Content-Length [13:34:16]Host: 172.17.44.196:8080 [13:34:16]Content-Length: 680 [13:34:16]Content-Type: application/json [13:34:16] [13:34:16]POST finish read [13:34:16]Found Content-Length = 680 [13:34:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 70.770, "sum" : 5392.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5392.00, "total" : 5392.00, "payments": [ { "type": 0, "sum" : 5392.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:16]execute_script... [13:34: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)1965538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 70.770, "sum" : 5392.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5392.00, "total" : 5392.00, "payments": [ { "type": 0, "sum" : 5392.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:16]POST & json_proto [13:34:16]process_json_proto [13:34:16]json parsed OK: [13:34:16]protocol is kg_v1.0 [13:34:16]action value=close_receipt [13:34:16]process_action close_receipt [13:34:16]cmd_close_receipt [13:34:16]MH_GetDate [13:34:16]Write to MH i2c: F0 00 00 EB 06 E0 [13:34:16]Write i2c OK [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: F0 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: F0 09 00 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: F0 09 00 EB 06 00 58 FB 18 67 E7 19 F8 65 18 [13:34:16]GetLastDocTimeStamp 1729690395 [13:34:16]current date 1729690456 [13:34:16]FM_GetShiftState [13:34:16]SAM_PROTO_GetShiftState [13:34:16]wFMCommunicate request_size=4 [13:34:16]MH_SAM_APDU [13:34:16]CAPDU: 80 13 01 00 [13:34:16]Write to MH i2c: E2 08 00 EC 06 80 13 01 00 00 00 00 00 6F [13:34:16]Write i2c OK [13:34:16]MH_I2C_Read... [13:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:16]Read from MH i2c: E2 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: E2 0E 00 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: E2 0E 00 EC 06 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D4 [13:34:16]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:34:16]wFMCommunicate OK [13:34:16]SAM_PROTO_GetShiftState done [13:34:16]FM_GetShiftState done [13:34:16]opened in 1729642905 [13:34:16]opened+sec_in_day 1729729305 [13:34:16]quantity*price = 539267 [13:34:16]sum+1 = 539268 [13:34:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 5392.00 Внесено: 5392.00 СДАЧА: 0.00 НСП 1% : 47.72 НДС 12% : 572.67 Наличными: 5392.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 184 23.10.2024 13:34 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75451 ФПД: 255520196981682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133417&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75451&fm=255520196981682&tin=02508201610067®Number=0000000000161154&sum=539200 [13:34:17]StoreToDocumentArchive [13:34:17]shift 173 fd 75451 [13:34:17]save to /storage/0173/doc_00075451 [13:34:17]save last doc name /storage/0173/doc_00075451 to /storage/kkm_last_doc_name [13:34:17]save OK [13:34:17]Clear old archive folders... [13:34:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:34:17]tlvbuf is 00774880 [13:34:17]SAM_PROTO_ClearQueue [13:34:17]wFMCommunicate request_size=4 [13:34:17]MH_SAM_APDU [13:34:17]CAPDU: 80 09 00 00 [13:34:17]Write to MH i2c: E2 08 00 F9 06 80 09 00 00 00 00 00 00 71 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:17]Read from MH i2c: E2 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 03 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 03 00 F9 06 00 90 00 73 [13:34:17]RAPDU: 90 00 [13:34:17]wFMCommunicate OK [13:34:17]SAM_PROTO_ClearQueue done [13:34:17]KKMCreateOFDPacket [13:34:17]OFDProtocolAddRootSTLVToBuf [13:34:17]FM_MakeSignedData [13:34:17]FM_MakeSignedData [13:34:17]SAM_PROTO_SignData [13:34:17]wFMCommunicate request_size=4 [13:34:17]MH_SAM_APDU [13:34:17]CAPDU: 80 0D 01 02 [13:34:17]Write to MH i2c: E2 08 00 FA 06 80 0D 01 02 00 00 00 00 79 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:17]Read from MH i2c: E2 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 03 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 03 00 FA 06 00 90 00 74 [13:34:17]RAPDU: 90 00 [13:34:17]wFMCommunicate OK [13:34:17]wFMCommunicate request_size=255 [13:34:17]MH_SAM_APDU [13:34:17]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 72 14 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 83 3A 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3A 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 DF 00 00 00 00 07 04 06 00 40 3A 08 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 59 FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BB 26 01 00 35 04 06 00 E8 64 EE 92 [13:34:17]Write to MH i2c: E2 02 01 FB 06 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 72 14 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 83 3A 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3A 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 DF 00 00 00 00 07 04 06 00 40 3A 08 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 59 FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BB 26 01 00 35 04 06 00 E8 64 EE 92 00 00 28 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]OFD Sender: No OFD packet to send [13:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:17]Read from MH i2c: E2 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 03 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 03 00 FB 06 00 90 00 75 [13:34:17]RAPDU: 90 00 [13:34:17]wFMCommunicate OK [13:34:17]wFMCommunicate request_size=7 [13:34:17]MH_SAM_APDU [13:34:17]CAPDU: 80 0D 02 02 02 F3 B2 [13:34:17]Write to MH i2c: E2 0A 00 FC 06 80 0D 02 02 02 00 F3 B2 00 00 25 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:18]Read from MH i2c: E2 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: E2 03 00 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: E2 03 00 FC 06 00 90 00 76 [13:34:18]RAPDU: 90 00 [13:34:18]wFMCommunicate OK [13:34:18]wFMCommunicate request_size=4 [13:34:18]MH_SAM_APDU [13:34:18]CAPDU: 80 0D 03 02 [13:34:18]Write to MH i2c: E2 08 00 FD 06 80 0D 03 02 00 00 00 00 7E [13:34:18]Write i2c OK [13:34:18]MH_I2C_Read... [13:34:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:18]Read from MH i2c: E2 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: E2 0B 00 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: E2 0B 00 FD 06 00 AD 7C 4A 0B 16 2A B5 FC 90 00 EE [13:34:18]RAPDU: AD 7C 4A 0B 16 2A B5 FC 90 00 [13:34:18]wFMCommunicate OK [13:34:18]SAM_PROTO_SignData done [13:34:18]FM_MakeSignedData done [13:34:18]CreateOFDProtocolMessage [13:34:18]wFMCommunicate request_size=4 [13:34:18]MH_SAM_APDU [13:34:18]CAPDU: 80 11 00 00 [13:34:18]Write to MH i2c: E2 08 00 FE 06 80 11 00 00 00 00 00 00 7E [13:34:18]Write i2c OK [13:34:18]MH_I2C_Read... [13:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:18]Read from MH i2c: E2 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: E2 17 00 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: E2 17 00 FE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CB [13:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:34:18]wFMCommunicate OK [13:34:18]CreateOFDProtocolMessage done [13:34:18]OFDSenderStorePacket 75451 [13:34:18]StoreOFDPacket docnum=75451 [13:34:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 42 3B 04 01 4C C2 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 72 14 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 83 3A 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3A 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 DF 00 00 00 00 07 04 06 00 40 3A 08 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 59 FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BB 26 01 00 35 04 06 00 E8 64 EE 92 F3 B2 AD 7C 4A 0B 16 2A B5 FC [13:34:18]CheckFolder [13:34:18]dirname=/storage/ofd_packets [13:34:18]CheckFolder done [13:34:18]ProducePacketName [13:34:18]name=ofd_packets/00075451 [13:34:18]NVStorageSaveData ofd_packets/00075451 [13:34:18]File name is /storage/ofd_packets/00075451 [13:34:18]Write 298 bytes [13:34:18]NVStorageSaveData done [13:34:18]OFDSenderStorePacket done [13:34:18]KKMCreateOFDPacket done [13:34:18]NVStorageSaveData kkm_last_timestamp [13:34:18]File name is /storage/kkm_last_timestamp [13:34:18]Write 4 bytes [13:34:18]NVStorageSaveData done [13:34:18]ExternCall_PrintAddStr [13:34:18]wPrintStart [13:34:18]Write to MH i2c: 01 00 00 FF 06 05 [13:34:18]Write i2c OK [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: 01 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: 01 07 00 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: 01 07 00 FF 06 00 00 00 00 00 FF 0F 1A [13:34:18]RasterBufferAndPrint [13:34:18]line Счет N : (1)1965538 [13:34:18]line ИНН: 02508201610067 [13:34:18]line Контрольно-Кассовый Чек [13:34:18]line ПРОДАЖА [13:34:18]line ТРК (МРК, ГНК) : 21 [13:34:18]line Товар: 2710194210 [13:34:18]line ДТ-К-5 [13:34:18]line 70.770 * 76.20 [13:34:18]line = 5392.67 [13:34:18]line НДС 12% НСП 1% [13:34:18]line > о реализуемом товаре [13:34:18]line ОКРУГЛЕНИЕ: -0.67 [13:34:18]line ИТОГО: 5392.00 [13:34:18]line Внесено: 5392.00 [13:34:18]line СДАЧА: 0.00 [13:34:18]line НСП 1% : 47.72 [13:34:18]line НДС 12% : 572.67 [13:34:18]line Наличными: 5392.00 [13:34:18]line Безнал.: 0.00 [13:34:18]line Место: АЗС № 133 "Партнер Нефть" [13:34:18]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:34:18]line СНО: Общий режим [13:34:18]line Чек 184 23.10.2024 13:34 [13:34:18]line Смена: 173 ФФД: 1.0 [13:34:18]line ЗНМ: 0300000020 [13:34:18]line РНМ: 0000000000161154 [13:34:18]line Версия ККМ: v1.0 [13:34:18]line ФМ: 0000000000963323 [13:34:18]line ФД: 75451 [13:34:18]line ФПД: 255520196981682 [13:34:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133417&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75451&fm=255520196981682&tin=02508201610067®Number=0000000000161154&sum=539200 [13:34:18]OFD Sender: Processing packet 75451 [packets to send 16, broken 15] [13:34:18]ProducePacketName [13:34:18]name=ofd_packets/00075451 [13:34:18]OFD Sender: To server: pG, [13:34:18]CommunicateWithHost lk.salyk.kg:30040 [13:34:18]ConnectInit lk.salyk.kg [13:34:18]written 0, free lines is 4095 [13:34:18]Connected sock=10 [13:34:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 42 3B 04 01 4C C2 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 72 14 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 83 3A 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3A 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 DF 00 00 00 00 07 04 06 00 40 3A 08 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 59 FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BB 26 01 00 35 04 06 00 E8 64 EE 92 F3 B2 AD 7C 4A 0B 16 2A B5 FC [13:34:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 35 2F 47 00 17 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 39 36 33 33 32 33 10 04 04 00 BB 26 01 00 F4 03 04 00 33 A4 18 67 B6 04 01 00 00 26 A7 EC CA E1 81 BB CF [13:34:18]CommunicateWithHost err = 0 [13:34:18]CheckOFDResponse [13:34:18]1017 (14) - 77093643461234 [13:34:18]1041 (16) - 0000000000963323 [13:34:18]1040 (4) - 75451 [13:34:18]1012 (4) - 23.10.2024 07:22 [13:34:18]1206 (1) - 0 [13:34:18]OFD Sender: Remove packet 75451 [13:34:18]ProducePacketName [13:34:18]name=ofd_packets/00075451 [13:34:18]NVStorageDeleteData [13:34:18]Write to MH i2c: 01 00 00 29 07 30 [13:34:18]Write i2c OK [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: 01 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: 01 07 00 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: 01 07 00 29 07 00 00 00 00 00 AE 0C F1 [13:34:18]RasterBufferAndPrint [13:34:18]line [13:34:18]line [13:34:18]line [13:34:18]line [13:34:18]line [13:34:18]written 0, free lines is 3250 [13:34:18]MH_Cut [13:34:18]Write to MH i2c: D1 01 00 30 07 01 09 [13:34:18]Write i2c OK [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: D1 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: D1 01 00 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: D1 01 00 30 07 00 08 [13:34:18]Write to MH i2c: 01 00 00 31 07 38 [13:34:18]Write i2c OK [13:34:18]MH_I2C_Read... [13:34:19]OFD Sender: No OFD packet to send [13:34:19]*** Cut start [13:34:19]*** Partial cut [13:34:19]*** CUTSNS_PIN = 1 [13:34:19]*** CUTSNS_PIN = 0 [13:34:20]*** Brake cut motor [13:34:20]Read from MH i2c: 01 [13:34:20]MH_I2C_Read... [13:34:20]*** Stop cut motor [13:34:20]*** Cut end [13:34:20]Read from MH i2c: 01 07 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: 01 07 00 31 07 00 00 00 00 00 FF 0F 4D [13:34:20]process_action close_receipt done [13:34:20]requested_data is exist [13:34:20]produce_requested_data [13:34:20]requested_item fm.sn is exist - process it [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 11 00 00 [13:34:20]Write to MH i2c: E2 08 00 32 07 80 11 00 00 00 00 00 00 B3 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 17 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 17 00 32 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 00 [13:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:34:20]wFMCommunicate OK [13:34:20]requested_item fd.num is exist - process it [13:34:20]SAM_PROTO_GetFieldsCounters [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 13 00 00 [13:34:20]Write to MH i2c: E2 08 00 33 07 80 13 00 00 00 00 00 00 B6 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 62 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 62 00 33 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BB 26 01 00 0E 04 04 00 AD 00 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 81 [13:34:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BB 26 01 00 0E 04 04 00 AD 00 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 [13:34:20]wFMCommunicate OK [13:34:20]SAM_PROTO_GetFieldsCounters done [13:34:20]requested_item shift.num is exist - process it [13:34:20]requested_item shift.opened is exist - process it [13:34:20]req_shift_opened [13:34:20]FM_GetShiftState [13:34:20]SAM_PROTO_GetShiftState [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 13 01 00 [13:34:20]Write to MH i2c: E2 08 00 34 07 80 13 01 00 00 00 00 00 B8 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 0E 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 0E 00 34 07 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1D [13:34:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:34:20]wFMCommunicate OK [13:34:20]SAM_PROTO_GetShiftState done [13:34:20]FM_GetShiftState done [13:34:20]req_shift_opened done [13:34:20]requested_item shift.open_date is exist - process it [13:34:20]req_shift_open_date [13:34:20]req_shift_open_date done [13:34:20]produce_requested_data done [13:34:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75451,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:34:20]process_action_free close_receipt [13:34:20]json_value_free [13:34:20]json_value_free done [13:34:20]process_json_proto returns [13:34:20]Send response to host [13:34:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75451,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:34:20]free response buf [13:34:20]execute_script done [13:34:20]execute_script returns [13:34:20]free content buf [13:34:20]Sock 8.Close socket [13:34:20]Sock 8.Thread stoped [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:41]accept exits with 9 [13:35:41]New connection [13:35:41]New thread 3066465636 created [13:35:41]Thread 3066608996 joined [13:35:41]Waiting for new connection... [13:35:41] Sock 9.Parse request [13:35:41]Sock 9.Check first char [13:35:41]Sock 9.First char is OK [13:35:41]request: POST /json_proto HTTP/1.0 [13:35:41]Method: POST [13:35:41]URL: /json_proto [13:35:41]Method is POST - this is cgi request [13:35:41]url: /json_proto [13:35:41]query_string will be loaded in cgi processing [13:35:41]execute_cgi json_proto POST (null) [13:35:41]execute_cgi path=json_proto method=POST [13:35:41]POST find Content-Length [13:35:41]Host: 172.17.44.196:8080 [13:35:41]Content-Length: 764 [13:35:41]Content-Type: application/json [13:35:41] [13:35:41]POST finish read [13:35:41]Found Content-Length = 764 [13:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:41]execute_script... [13:35: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)1965546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:41]POST & json_proto [13:35:41]process_json_proto [13:35:41]json parsed OK: [13:35:41]protocol is kg_v1.0 [13:35:41]action value=close_receipt [13:35:41]process_action close_receipt [13:35:41]cmd_close_receipt [13:35:41]MH_GetDate [13:35:41]Write to MH i2c: F0 00 00 35 07 2B [13:35:41]Write i2c OK [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: F0 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: F0 09 00 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: F0 09 00 35 07 00 AD FB 18 67 E7 19 F8 65 B8 [13:35:41]GetLastDocTimeStamp 1729690457 [13:35:41]current date 1729690541 [13:35:41]FM_GetShiftState [13:35:41]SAM_PROTO_GetShiftState [13:35:41]wFMCommunicate request_size=4 [13:35:41]MH_SAM_APDU [13:35:41]CAPDU: 80 13 01 00 [13:35:41]Write to MH i2c: E2 08 00 36 07 80 13 01 00 00 00 00 00 BA [13:35:41]Write i2c OK [13:35:41]MH_I2C_Read... [13:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:41]Read from MH i2c: E2 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: E2 0E 00 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: E2 0E 00 36 07 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1F [13:35:41]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:35:41]wFMCommunicate OK [13:35:41]SAM_PROTO_GetShiftState done [13:35:41]FM_GetShiftState done [13:35:41]opened in 1729642905 [13:35:41]opened+sec_in_day 1729729305 [13:35:41]quantity*price = 200023 [13:35:41]sum+1 = 200025 [13:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.24 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.24 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 185 23.10.2024 13:35 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75452 ФПД: 280995573408788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133541&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75452&fm=280995573408788&tin=02508201610067®Number=0000000000161154&sum=200024 [13:35:42]StoreToDocumentArchive [13:35:42]shift 173 fd 75452 [13:35:42]save to /storage/0173/doc_00075452 [13:35:42]save last doc name /storage/0173/doc_00075452 to /storage/kkm_last_doc_name [13:35:42]save OK [13:35:42]Clear old archive folders... [13:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=245 [13:35:42]tlvbuf is 00778DC0 [13:35:42]SAM_PROTO_ClearQueue [13:35:42]wFMCommunicate request_size=4 [13:35:42]MH_SAM_APDU [13:35:42]CAPDU: 80 09 00 00 [13:35:42]Write to MH i2c: E2 08 00 43 07 80 09 00 00 00 00 00 00 BC [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:42]Read from MH i2c: E2 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 43 07 00 90 00 BE [13:35:42]RAPDU: 90 00 [13:35:42]wFMCommunicate OK [13:35:42]SAM_PROTO_ClearQueue done [13:35:42]KKMCreateOFDPacket [13:35:42]OFDProtocolAddRootSTLVToBuf [13:35:42]FM_MakeSignedData [13:35:42]FM_MakeSignedData [13:35:42]SAM_PROTO_SignData [13:35:42]wFMCommunicate request_size=4 [13:35:42]MH_SAM_APDU [13:35:42]CAPDU: 80 0D 01 02 [13:35:42]Write to MH i2c: E2 08 00 44 07 80 0D 01 02 00 00 00 00 C4 [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:42]Read from MH i2c: E2 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 44 07 00 90 00 BF [13:35:42]RAPDU: 90 00 [13:35:42]wFMCommunicate OK [13:35:42]wFMCommunicate request_size=254 [13:35:42]MH_SAM_APDU [13:35:42]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 AD FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BC 26 01 00 35 04 06 00 FF 90 61 56 24 14 [13:35:42]Write to MH i2c: E2 01 01 45 07 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 AD FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BC 26 01 00 35 04 06 00 FF 90 61 56 24 14 00 00 AD [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:42]Read from MH i2c: E2 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 45 07 00 90 00 C0 [13:35:42]RAPDU: 90 00 [13:35:42]wFMCommunicate OK [13:35:42]wFMCommunicate request_size=4 [13:35:42]MH_SAM_APDU [13:35:42]CAPDU: 80 0D 03 02 [13:35:42]Write to MH i2c: E2 08 00 46 07 80 0D 03 02 00 00 00 00 C8 [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:42]Read from MH i2c: E2 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 0B 00 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 0B 00 46 07 00 99 88 0B 69 FC FE D3 03 90 00 2E [13:35:42]RAPDU: 99 88 0B 69 FC FE D3 03 90 00 [13:35:42]wFMCommunicate OK [13:35:42]SAM_PROTO_SignData done [13:35:42]FM_MakeSignedData done [13:35:42]CreateOFDProtocolMessage [13:35:42]wFMCommunicate request_size=4 [13:35:42]MH_SAM_APDU [13:35:42]CAPDU: 80 11 00 00 [13:35:42]Write to MH i2c: E2 08 00 47 07 80 11 00 00 00 00 00 00 C8 [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:42]Read from MH i2c: E2 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 17 00 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 17 00 47 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 15 [13:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:35:42]wFMCommunicate OK [13:35:42]CreateOFDProtocolMessage done [13:35:42]OFDSenderStorePacket 75452 [13:35:42]StoreOFDPacket docnum=75452 [13:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 0A 10 01 01 51 A9 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 AD FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BC 26 01 00 35 04 06 00 FF 90 61 56 24 14 99 88 0B 69 FC FE D3 03 [13:35:42]CheckFolder [13:35:42]dirname=/storage/ofd_packets [13:35:42]CheckFolder done [13:35:42]ProducePacketName [13:35:42]name=ofd_packets/00075452 [13:35:42]NVStorageSaveData ofd_packets/00075452 [13:35:42]File name is /storage/ofd_packets/00075452 [13:35:42]Write 295 bytes [13:35:42]NVStorageSaveData done [13:35:42]OFDSenderStorePacket done [13:35:42]KKMCreateOFDPacket done [13:35:42]NVStorageSaveData kkm_last_timestamp [13:35:42]File name is /storage/kkm_last_timestamp [13:35:42]Write 4 bytes [13:35:42]NVStorageSaveData done [13:35:42]ExternCall_PrintAddStr [13:35:42]wPrintStart [13:35:42]Write to MH i2c: 01 00 00 48 07 4F [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: 01 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: 01 07 00 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: 01 07 00 48 07 00 00 00 00 00 FF 0F 64 [13:35:42]RasterBufferAndPrint [13:35:42]line Счет N : (1)1965546 [13:35:42]line ИНН: 02508201610067 [13:35:42]line Контрольно-Кассовый Чек [13:35:42]line ПРОДАЖА [13:35:42]line ТРК (МРК, ГНК) : 71 [13:35:42]line Товар: 2711129700 [13:35:42]line ГАЗ [13:35:42]line 51.420 * 38.90 [13:35:42]line = 2000.24 [13:35:42]line НДС 12% НСП 1% [13:35:42]line > о реализуемом товаре [13:35:42]line ИТОГО: 2000.24 [13:35:42]line НСП 1% : 17.70 [13:35:42]line НДС 12% : 212.41 [13:35:42]line Наличными: 0.00 [13:35:42]line Безнал.: 2000.24 [13:35:42]line Место: АЗС № 133 "Партнер Нефть" [13:35:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:35:42]line СНО: Общий режим [13:35:42]line Чек 185 23.10.2024 13:35 [13:35:42]line Смена: 173 ФФД: 1.0 [13:35:42]line ЗНМ: 0300000020 [13:35:42]line РНМ: 0000000000161154 [13:35:42]line Версия ККМ: v1.0 [13:35:42]line Платежная система: Mbank [13:35:42]line ФМ: 0000000000963323 [13:35:42]line ФД: 75452 [13:35:42]line ФПД: 280995573408788 [13:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T133541&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75452&fm=280995573408788&tin=02508201610067®Number=0000000000161154&sum=200024 [13:35:43]OFD Sender: Processing packet 75452 [packets to send 16, broken 15] [13:35:43]ProducePacketName [13:35:43]name=ofd_packets/00075452 [13:35:43]OFD Sender: To server: pG, [13:35:43]CommunicateWithHost lk.salyk.kg:30040 [13:35:43]ConnectInit lk.salyk.kg [13:35:43]written 0, free lines is 4095 [13:35:43]Connected sock=10 [13:35:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 0A 10 01 01 51 A9 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 AD FB 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BC 26 01 00 35 04 06 00 FF 90 61 56 24 14 99 88 0B 69 FC FE D3 03 [13:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 94 0F 47 00 9F 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 39 36 33 33 32 33 10 04 04 00 BC 26 01 00 F4 03 04 00 88 A4 18 67 B6 04 01 00 00 CF 3A 59 2F 01 99 B1 53 [13:35:43]CommunicateWithHost err = 0 [13:35:43]CheckOFDResponse [13:35:43]1017 (14) - 77093643461234 [13:35:43]1041 (16) - 0000000000963323 [13:35:43]1040 (4) - 75452 [13:35:43]1012 (4) - 23.10.2024 07:23 [13:35:43]1206 (1) - 0 [13:35:43]OFD Sender: Remove packet 75452 [13:35:43]ProducePacketName [13:35:43]name=ofd_packets/00075452 [13:35:43]NVStorageDeleteData [13:35:43]Write to MH i2c: 01 00 00 70 07 77 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: 01 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: 01 07 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: 01 07 00 70 07 00 00 00 00 00 D2 0C 5C [13:35:43]RasterBufferAndPrint [13:35:43]line [13:35:43]line [13:35:43]line [13:35:43]line [13:35:43]line [13:35:43]written 0, free lines is 3286 [13:35:43]MH_Cut [13:35:43]Write to MH i2c: D1 01 00 77 07 01 50 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: D1 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: D1 01 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: D1 01 00 77 07 00 4F [13:35:43]Write to MH i2c: 01 00 00 78 07 7F [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]OFD Sender: No OFD packet to send [13:35:44]*** Cut start [13:35:44]*** Partial cut [13:35:44]*** CUTSNS_PIN = 1 [13:35:44]*** CUTSNS_PIN = 0 [13:35:44]*** Brake cut motor [13:35:45]Read from MH i2c: 01 [13:35:45]MH_I2C_Read... [13:35:45]*** Stop cut motor [13:35:45]*** Cut end [13:35:45]Read from MH i2c: 01 07 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: 01 07 00 78 07 00 00 00 00 00 FF 0F 94 [13:35:45]process_action close_receipt done [13:35:45]requested_data is exist [13:35:45]produce_requested_data [13:35:45]requested_item fm.sn is exist - process it [13:35:45]wFMCommunicate request_size=4 [13:35:45]MH_SAM_APDU [13:35:45]CAPDU: 80 11 00 00 [13:35:45]Write to MH i2c: E2 08 00 79 07 80 11 00 00 00 00 00 00 FA [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:45]Read from MH i2c: E2 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 17 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 17 00 79 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 47 [13:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:35:45]wFMCommunicate OK [13:35:45]requested_item fd.num is exist - process it [13:35:45]SAM_PROTO_GetFieldsCounters [13:35:45]wFMCommunicate request_size=4 [13:35:45]MH_SAM_APDU [13:35:45]CAPDU: 80 13 00 00 [13:35:45]Write to MH i2c: E2 08 00 7A 07 80 13 00 00 00 00 00 00 FD [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:45]Read from MH i2c: E2 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 62 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 62 00 7A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BC 26 01 00 0E 04 04 00 AD 00 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 CC [13:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BC 26 01 00 0E 04 04 00 AD 00 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 [13:35:45]wFMCommunicate OK [13:35:45]SAM_PROTO_GetFieldsCounters done [13:35:45]requested_item shift.num is exist - process it [13:35:45]requested_item shift.opened is exist - process it [13:35:45]req_shift_opened [13:35:45]FM_GetShiftState [13:35:45]SAM_PROTO_GetShiftState [13:35:45]wFMCommunicate request_size=4 [13:35:45]MH_SAM_APDU [13:35:45]CAPDU: 80 13 01 00 [13:35:45]Write to MH i2c: E2 08 00 7B 07 80 13 01 00 00 00 00 00 FF [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:45]Read from MH i2c: E2 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 0E 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 0E 00 7B 07 00 09 00 01 99 41 18 67 00 00 00 00 90 00 64 [13:35:45]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:35:45]wFMCommunicate OK [13:35:45]SAM_PROTO_GetShiftState done [13:35:45]FM_GetShiftState done [13:35:45]req_shift_opened done [13:35:45]requested_item shift.open_date is exist - process it [13:35:45]req_shift_open_date [13:35:45]req_shift_open_date done [13:35:45]produce_requested_data done [13:35:45]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75452,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:35:45]process_action_free close_receipt [13:35:45]json_value_free [13:35:45]json_value_free done [13:35:45]process_json_proto returns [13:35:45]Send response to host [13:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75452,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:35:45]free response buf [13:35:45]execute_script done [13:35:45]execute_script returns [13:35:45]free content buf [13:35:45]Sock 9.Close socket [13:35:45]Sock 9.Thread stoped [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:01]int [13:40:01]Write to MH i2c: 01 00 00 7C 07 83 [13:40:01]*** FLAG_PRN_KEY set [13:40:01]Write i2c OK [13:40:01]MH_I2C_Read... [13:40:01]Read from MH i2c: 01 [13:40:01]MH_I2C_Read... [13:40:01]Read from MH i2c: 01 07 00 [13:40:01]MH_I2C_Read... [13:40:01]Read from MH i2c: 01 07 00 7C 07 00 08 00 00 00 FF 0F A0 [13:40:01]state=0 [13:40:01]Key pressed [13:40:01]Feed [13:40:01]Write to MH i2c: D8 00 00 7D 07 5B [13:40:01]Write i2c OK [13:40:01]MH_I2C_Read... [13:40:01]Read from MH i2c: D8 [13:40:01]MH_I2C_Read... [13:40:01]Read from MH i2c: D8 01 00 [13:40:01]MH_I2C_Read... [13:40:01]Read from MH i2c: D8 01 00 7D 07 00 5C [13:40:01]int [13:40:01]Write to MH i2c: 01 00 00 7E 07 85 [13:40:01]Write i2c OK [13:40:01]MH_I2C_Read... [13:40:01]Read from MH i2c: 01 [13:40:01]MH_I2C_Read... [13:40:01]Read from MH i2c: 01 07 00 [13:40:01]MH_I2C_Read... [13:40:01]Read from MH i2c: 01 07 00 7E 07 00 48 00 00 00 3C 00 10 [13:40:01]state=2 [13:40:01]Key pressed [13:40:02]int [13:40:02]Write to MH i2c: 01 00 00 7F 07 86 [13:40:02]*** FLAG_PRN_KEY reset [13:40:02]Write i2c OK [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: 01 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: 01 07 00 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 F6 0F 92 [13:40:02]state=2 [13:40:02]Stop feed [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:48]accept exits with 8 [13:40:48]New connection [13:40:48]New thread 3066608996 created [13:40:48]Thread 3066465636 joined [13:40:48]Waiting for new connection... [13:40:48] Sock 8.Parse request [13:40:48]Sock 8.Check first char [13:40:48]Sock 8.First char is OK [13:40:48]request: POST /json_proto HTTP/1.0 [13:40:48]Method: POST [13:40:48]URL: /json_proto [13:40:48]Method is POST - this is cgi request [13:40:48]url: /json_proto [13:40:48]query_string will be loaded in cgi processing [13:40:48]execute_cgi json_proto POST (null) [13:40:48]execute_cgi path=json_proto method=POST [13:40:48]POST find Content-Length [13:40:48]Host: 172.17.44.196:8080 [13:40:48]Content-Length: 979 [13:40:48]Content-Type: application/json [13:40:48] [13:40:48]POST finish read [13:40:48]Found Content-Length = 979 [13:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 26.600, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 26.60 \u0441\u043E\u043C", "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:40:48]execute_script... [13:40: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)1965557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 26.600, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 26.60 \u0441\u043E\u043C", "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:40:48]POST & json_proto [13:40:48]process_json_proto [13:40:48]json parsed OK: [13:40:48]protocol is kg_v1.0 [13:40:48]action value=close_receipt [13:40:48]process_action close_receipt [13:40:48]cmd_close_receipt [13:40:48]MH_GetDate [13:40:48]Write to MH i2c: F0 00 00 80 07 76 [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: F0 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: F0 09 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: F0 09 00 80 07 00 E1 FC 18 67 E7 19 F8 65 38 [13:40:48]GetLastDocTimeStamp 1729690541 [13:40:48]current date 1729690849 [13:40:48]FM_GetShiftState [13:40:48]SAM_PROTO_GetShiftState [13:40:48]wFMCommunicate request_size=4 [13:40:48]MH_SAM_APDU [13:40:48]CAPDU: 80 13 01 00 [13:40:48]Write to MH i2c: E2 08 00 81 07 80 13 01 00 00 00 00 00 05 [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:48]Read from MH i2c: E2 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 0E 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 0E 00 81 07 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6A [13:40:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:40:48]wFMCommunicate OK [13:40:48]SAM_PROTO_GetShiftState done [13:40:48]FM_GetShiftState done [13:40:48]opened in 1729642905 [13:40:48]opened+sec_in_day 1729729305 [13:40:48]quantity*price = 200032 [13:40:48]sum+1 = 200033 [13:40:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 186 23.10.2024 13:40 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 26.60 сом ФМ: 0000000000963323 ФД: 75453 ФПД: 114613111954691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134049&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75453&fm=114613111954691&tin=02508201610067®Number=0000000000161154&sum=200000 [13:40:50]StoreToDocumentArchive [13:40:50]shift 173 fd 75453 [13:40:50]save to /storage/0173/doc_00075453 [13:40:50]save last doc name /storage/0173/doc_00075453 to /storage/kkm_last_doc_name [13:40:50]save OK [13:40:50]Clear old archive folders... [13:40:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:40:50]tlvbuf is 007745A0 [13:40:50]SAM_PROTO_ClearQueue [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 09 00 00 [13:40:50]Write to MH i2c: E2 08 00 8E 07 80 09 00 00 00 00 00 00 07 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 03 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [13:40:50]RAPDU: 90 00 [13:40:50]wFMCommunicate OK [13:40:50]SAM_PROTO_ClearQueue done [13:40:50]KKMCreateOFDPacket [13:40:50]OFDProtocolAddRootSTLVToBuf [13:40:50]FM_MakeSignedData [13:40:50]FM_MakeSignedData [13:40:50]SAM_PROTO_SignData [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 0D 01 02 [13:40:50]Write to MH i2c: E2 08 00 8F 07 80 0D 01 02 00 00 00 00 0F [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 03 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 03 00 8F 07 00 90 00 0A [13:40:50]RAPDU: 90 00 [13:40:50]wFMCommunicate OK [13:40:50]wFMCommunicate request_size=255 [13:40:50]MH_SAM_APDU [13:40: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 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 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 FA 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 BA 00 00 00 F4 03 04 00 E1 FC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BD 26 01 00 35 04 06 00 68 3D 71 D3 [13:40:50]Write to MH i2c: E2 02 01 90 07 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 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 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 FA 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 BA 00 00 00 F4 03 04 00 E1 FC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BD 26 01 00 35 04 06 00 68 3D 71 D3 00 00 07 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 03 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 03 00 90 07 00 90 00 0B [13:40:50]RAPDU: 90 00 [13:40:50]wFMCommunicate OK [13:40:50]wFMCommunicate request_size=7 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 0D 02 02 02 1D 03 [13:40:50]Write to MH i2c: E2 0A 00 91 07 80 0D 02 02 02 00 1D 03 00 00 36 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 03 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 03 00 91 07 00 90 00 0C [13:40:50]RAPDU: 90 00 [13:40:50]wFMCommunicate OK [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 0D 03 02 [13:40:50]Write to MH i2c: E2 08 00 92 07 80 0D 03 02 00 00 00 00 14 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 0B 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 0B 00 92 07 00 DF 9B 81 32 0B FD B8 98 90 00 9A [13:40:50]RAPDU: DF 9B 81 32 0B FD B8 98 90 00 [13:40:50]wFMCommunicate OK [13:40:50]SAM_PROTO_SignData done [13:40:50]FM_MakeSignedData done [13:40:50]CreateOFDProtocolMessage [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 11 00 00 [13:40:50]Write to MH i2c: E2 08 00 93 07 80 11 00 00 00 00 00 00 14 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 17 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 17 00 93 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 61 [13:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:40:50]wFMCommunicate OK [13:40:50]CreateOFDProtocolMessage done [13:40:50]OFDSenderStorePacket 75453 [13:40:50]StoreOFDPacket docnum=75453 [13:40:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 D2 80 04 01 27 67 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 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 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 FA 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 BA 00 00 00 F4 03 04 00 E1 FC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BD 26 01 00 35 04 06 00 68 3D 71 D3 1D 03 DF 9B 81 32 0B FD B8 98 [13:40:50]CheckFolder [13:40:50]dirname=/storage/ofd_packets [13:40:50]CheckFolder done [13:40:50]ProducePacketName [13:40:50]name=ofd_packets/00075453 [13:40:50]NVStorageSaveData ofd_packets/00075453 [13:40:50]File name is /storage/ofd_packets/00075453 [13:40:50]Write 298 bytes [13:40:50]NVStorageSaveData done [13:40:50]OFDSenderStorePacket done [13:40:50]KKMCreateOFDPacket done [13:40:50]NVStorageSaveData kkm_last_timestamp [13:40:50]File name is /storage/kkm_last_timestamp [13:40:50]Write 4 bytes [13:40:50]NVStorageSaveData done [13:40:50]ExternCall_PrintAddStr [13:40:50]wPrintStart [13:40:50]Write to MH i2c: 01 00 00 94 07 9B [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: 01 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: 01 07 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 FF 0F B0 [13:40:50]RasterBufferAndPrint [13:40:50]line Счет N : (1)1965557 [13:40:50]line ИНН: 02508201610067 [13:40:50]line Контрольно-Кассовый Чек [13:40:50]line ПРОДАЖА [13:40:50]line ТРК (МРК, ГНК) : 41 [13:40:50]line Товар: 2710194210 [13:40:50]line ДТ-К-5 [13:40:50]line 26.600 * 75.20 [13:40:50]line = 2000.32 [13:40:50]line НДС 12% НСП 1% [13:40:50]line > о реализуемом товаре [13:40:50]line ОКРУГЛЕНИЕ: -0.32 [13:40:50]line ИТОГО: 2000.00 [13:40:50]line Внесено: 2000.00 [13:40:50]line СДАЧА: 0.00 [13:40:50]line НСП 1% : 17.70 [13:40:50]line НДС 12% : 212.42 [13:40:50]line Наличными: 2000.00 [13:40:50]line Безнал.: 0.00 [13:40:50]line Место: АЗС № 133 "Партнер Нефть" [13:40:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:40:50]line СНО: Общий режим [13:40:50]line Чек 186 23.10.2024 13:40 [13:40:50]line Смена: 173 ФФД: 1.0 [13:40:50]line ЗНМ: 0300000020 [13:40:50]line РНМ: 0000000000161154 [13:40:50]line Версия ККМ: v1.0 [13:40:50]line [13:40:50]line Дисконтная программа [13:40:50]line ДТ [13:40:50]line номер 133 [13:40:50]line сэкономлено 26.60 сом [13:40:50]line ФМ: 0000000000963323 [13:40:50]line ФД: 75453 [13:40:50]line ФПД: 114613111954691 [13:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134049&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75453&fm=114613111954691&tin=02508201610067®Number=0000000000161154&sum=200000 [13:40:50]OFD Sender: Processing packet 75453 [packets to send 16, broken 15] [13:40:50]ProducePacketName [13:40:50]name=ofd_packets/00075453 [13:40:50]OFD Sender: To server: pG, [13:40:50]CommunicateWithHost lk.salyk.kg:30040 [13:40:50]ConnectInit lk.salyk.kg [13:40:50]written 0, free lines is 4095 [13:40:51]Connected sock=9 [13:40:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 D2 80 04 01 27 67 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 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 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 FA 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 BA 00 00 00 F4 03 04 00 E1 FC 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BD 26 01 00 35 04 06 00 68 3D 71 D3 1D 03 DF 9B 81 32 0B FD B8 98 [13:40:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 62 DE 47 00 73 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 39 36 33 33 32 33 10 04 04 00 BD 26 01 00 F4 03 04 00 BC A5 18 67 B6 04 01 00 00 8E 89 A1 F5 B5 78 8A 6E [13:40:51]CommunicateWithHost err = 0 [13:40:51]CheckOFDResponse [13:40:51]1017 (14) - 77093643461234 [13:40:51]1041 (16) - 0000000000963323 [13:40:51]1040 (4) - 75453 [13:40:51]1012 (4) - 23.10.2024 07:29 [13:40:51]1206 (1) - 0 [13:40:51]OFD Sender: Remove packet 75453 [13:40:51]ProducePacketName [13:40:51]name=ofd_packets/00075453 [13:40:51]NVStorageDeleteData [13:40:51]Write to MH i2c: 01 00 00 C3 07 CA [13:40:51]Write i2c OK [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: 01 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: 01 07 00 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: 01 07 00 C3 07 00 00 00 00 00 3C 0C 19 [13:40:51]RasterBufferAndPrint [13:40:51]line [13:40:51]line [13:40:51]line [13:40:51]line [13:40:51]line [13:40:51]written 0, free lines is 3137 [13:40:51]MH_Cut [13:40:51]Write to MH i2c: D1 01 00 CA 07 01 A3 [13:40:51]Write i2c OK [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: D1 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: D1 01 00 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: D1 01 00 CA 07 00 A2 [13:40:51]Write to MH i2c: 01 00 00 CB 07 D2 [13:40:51]Write i2c OK [13:40:51]MH_I2C_Read... [13:40:51]OFD Sender: No OFD packet to send [13:40:52]*** Cut start [13:40:52]*** Partial cut [13:40:52]*** CUTSNS_PIN = 1 [13:40:52]*** CUTSNS_PIN = 0 [13:40:52]*** Brake cut motor [13:40:53]Read from MH i2c: 01 [13:40:53]MH_I2C_Read... [13:40:53]*** Stop cut motor [13:40:53]*** Cut end [13:40:53]Read from MH i2c: 01 07 00 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: 01 07 00 CB 07 00 00 00 00 00 FF 0F E7 [13:40:53]process_action close_receipt done [13:40:53]requested_data is exist [13:40:53]produce_requested_data [13:40:53]requested_item fm.sn is exist - process it [13:40:53]wFMCommunicate request_size=4 [13:40:53]MH_SAM_APDU [13:40:53]CAPDU: 80 11 00 00 [13:40:53]Write to MH i2c: E2 08 00 CC 07 80 11 00 00 00 00 00 00 4D [13:40:53]Write i2c OK [13:40:53]MH_I2C_Read... [13:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:53]Read from MH i2c: E2 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 17 00 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 17 00 CC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9A [13:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:40:53]wFMCommunicate OK [13:40:53]requested_item fd.num is exist - process it [13:40:53]SAM_PROTO_GetFieldsCounters [13:40:53]wFMCommunicate request_size=4 [13:40:53]MH_SAM_APDU [13:40:53]CAPDU: 80 13 00 00 [13:40:53]Write to MH i2c: E2 08 00 CD 07 80 13 00 00 00 00 00 00 50 [13:40:53]Write i2c OK [13:40:53]MH_I2C_Read... [13:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:53]Read from MH i2c: E2 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 62 00 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 62 00 CD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BD 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [13:40:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BD 26 01 00 0E 04 04 00 AD 00 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 [13:40:53]wFMCommunicate OK [13:40:53]SAM_PROTO_GetFieldsCounters done [13:40:53]requested_item shift.num is exist - process it [13:40:53]requested_item shift.opened is exist - process it [13:40:53]req_shift_opened [13:40:53]FM_GetShiftState [13:40:53]SAM_PROTO_GetShiftState [13:40:53]wFMCommunicate request_size=4 [13:40:53]MH_SAM_APDU [13:40:53]CAPDU: 80 13 01 00 [13:40:53]Write to MH i2c: E2 08 00 CE 07 80 13 01 00 00 00 00 00 52 [13:40:53]Write i2c OK [13:40:53]MH_I2C_Read... [13:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:53]Read from MH i2c: E2 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 0E 00 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 0E 00 CE 07 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B7 [13:40:53]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:40:53]wFMCommunicate OK [13:40:53]SAM_PROTO_GetShiftState done [13:40:53]FM_GetShiftState done [13:40:53]req_shift_opened done [13:40:53]requested_item shift.open_date is exist - process it [13:40:53]req_shift_open_date [13:40:53]req_shift_open_date done [13:40:53]produce_requested_data done [13:40:53]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75453,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:40:53]process_action_free close_receipt [13:40:53]json_value_free [13:40:53]json_value_free done [13:40:53]process_json_proto returns [13:40:53]Send response to host [13:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75453,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:40:53]free response buf [13:40:53]execute_script done [13:40:53]execute_script returns [13:40:53]free content buf [13:40:53]Sock 8.Close socket [13:40:53]Sock 8.Thread stoped [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:48]accept exits with 10 [13:41:48]New connection [13:41:48]New thread 3066465636 created [13:41:48]Thread 3066608996 joined [13:41:48]Waiting for new connection... [13:41:48] Sock 10.Parse request [13:41:48]Sock 10.Check first char [13:41:48]Sock 10.First char is OK [13:41:48]request: POST /json_proto HTTP/1.0 [13:41:48]Method: POST [13:41:48]URL: /json_proto [13:41:48]Method is POST - this is cgi request [13:41:48]url: /json_proto [13:41:48]query_string will be loaded in cgi processing [13:41:48]execute_cgi json_proto POST (null) [13:41:48]execute_cgi path=json_proto method=POST [13:41:48]POST find Content-Length [13:41:48]Host: 172.17.44.196:8080 [13:41:48]Content-Length: 623 [13:41:48]Content-Type: application/json [13:41:48] [13:41:48]POST finish read [13:41:48]Found Content-Length = 623 [13:41:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273250", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:48]execute_script... [13:41:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273250", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:48]POST & json_proto [13:41:48]process_json_proto [13:41:48]json parsed OK: [13:41:48]protocol is kg_v1.0 [13:41:48]action value=close_receipt [13:41:48]process_action close_receipt [13:41:48]cmd_close_receipt [13:41:48]MH_GetDate [13:41:48]Write to MH i2c: F0 00 00 CF 07 C5 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: F0 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: F0 09 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: F0 09 00 CF 07 00 1C FD 18 67 E7 19 F8 65 C3 [13:41:48]GetLastDocTimeStamp 1729690849 [13:41:48]current date 1729690908 [13:41:48]FM_GetShiftState [13:41:48]SAM_PROTO_GetShiftState [13:41:48]wFMCommunicate request_size=4 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 13 01 00 [13:41:48]Write to MH i2c: E2 08 00 D0 07 80 13 01 00 00 00 00 00 54 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 0E 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 0E 00 D0 07 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B9 [13:41:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:41:48]wFMCommunicate OK [13:41:48]SAM_PROTO_GetShiftState done [13:41:48]FM_GetShiftState done [13:41:48]opened in 1729642905 [13:41:48]opened+sec_in_day 1729729305 [13:41:48]quantity*price = 14000 [13:41:48]sum+1 = 14001 [13:41:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 187 23.10.2024 13:41 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75454 ФПД: 122713210088794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134148&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75454&fm=122713210088794&tin=02508201610067®Number=0000000000161154&sum=14000 0 [13:41:49]StoreToDocumentArchive [13:41:49]shift 173 fd 75454 [13:41:49]save to /storage/0173/doc_00075454 [13:41:49]save last doc name /storage/0173/doc_00075454 to /storage/kkm_last_doc_name [13:41:49]save OK [13:41:49]Clear old archive folders... [13:41:49]ProcessDocumentItem done err = 0, tmpTLVsize=275 [13:41:49]tlvbuf is 00779330 [13:41:49]SAM_PROTO_ClearQueue [13:41:49]wFMCommunicate request_size=4 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 09 00 00 [13:41:49]Write to MH i2c: E2 08 00 DD 07 80 09 00 00 00 00 00 00 56 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 03 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 03 00 DD 07 00 90 00 58 [13:41:49]RAPDU: 90 00 [13:41:49]wFMCommunicate OK [13:41:49]SAM_PROTO_ClearQueue done [13:41:49]KKMCreateOFDPacket [13:41:49]OFDProtocolAddRootSTLVToBuf [13:41:49]FM_MakeSignedData [13:41:49]FM_MakeSignedData [13:41:49]SAM_PROTO_SignData [13:41:49]wFMCommunicate request_size=4 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 0D 01 02 [13:41:49]Write to MH i2c: E2 08 00 DE 07 80 0D 01 02 00 00 00 00 5E [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 03 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 03 00 DE 07 00 90 00 59 [13:41:49]RAPDU: 90 00 [13:41:49]wFMCommunicate OK [13:41:49]wFMCommunicate request_size=255 [13:41:49]MH_SAM_APDU [13:41:49]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 1C FD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [13:41:49]Write to MH i2c: E2 02 01 DF 07 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 1C FD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 E7 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 03 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 03 00 DF 07 00 90 00 5A [13:41:49]RAPDU: 90 00 [13:41:49]wFMCommunicate OK [13:41:49]wFMCommunicate request_size=34 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BE 26 01 00 35 04 06 00 6F 9B 65 4B ED 5A [13:41:49]Write to MH i2c: E2 25 00 E0 07 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BE 26 01 00 35 04 06 00 6F 9B 65 4B ED 5A 00 00 02 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 03 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 03 00 E0 07 00 90 00 5B [13:41:49]RAPDU: 90 00 [13:41:49]wFMCommunicate OK [13:41:49]wFMCommunicate request_size=4 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 0D 03 02 [13:41:49]Write to MH i2c: E2 08 00 E1 07 80 0D 03 02 00 00 00 00 63 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 0B 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 0B 00 E1 07 00 9D F6 1E A4 AA D4 8A 2A 90 00 EB [13:41:49]RAPDU: 9D F6 1E A4 AA D4 8A 2A 90 00 [13:41:49]wFMCommunicate OK [13:41:49]SAM_PROTO_SignData done [13:41:49]FM_MakeSignedData done [13:41:49]CreateOFDProtocolMessage [13:41:49]wFMCommunicate request_size=4 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 11 00 00 [13:41:49]Write to MH i2c: E2 08 00 E2 07 80 11 00 00 00 00 00 00 63 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 17 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 17 00 E2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B0 [13:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:41:49]wFMCommunicate OK [13:41:49]CreateOFDProtocolMessage done [13:41:49]OFDSenderStorePacket 75454 [13:41:49]StoreOFDPacket docnum=75454 [13:41:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 9C 5E 1F 01 E4 E3 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 1C FD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BE 26 01 00 35 04 06 00 6F 9B 65 4B ED 5A 9D F6 1E A4 AA D4 8A 2A [13:41:49]CheckFolder [13:41:49]dirname=/storage/ofd_packets [13:41:49]CheckFolder done [13:41:49]ProducePacketName [13:41:49]name=ofd_packets/00075454 [13:41:49]NVStorageSaveData ofd_packets/00075454 [13:41:49]File name is /storage/ofd_packets/00075454 [13:41:49]Write 325 bytes [13:41:49]NVStorageSaveData done [13:41:49]OFDSenderStorePacket done [13:41:49]KKMCreateOFDPacket done [13:41:49]NVStorageSaveData kkm_last_timestamp [13:41:49]File name is /storage/kkm_last_timestamp [13:41:49]Write 4 bytes [13:41:49]NVStorageSaveData done [13:41:49]ExternCall_PrintAddStr [13:41:49]wPrintStart [13:41:49]Write to MH i2c: 01 00 00 E3 07 EA [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 FF 0F FF [13:41:49]RasterBufferAndPrint [13:41:49]line Счет N : (3)273250 [13:41:49]line ИНН: 02508201610067 [13:41:49]line Контрольно-Кассовый Чек [13:41:49]line ПРОДАЖА [13:41:49]line Товар: 48743587 [13:41:49]line Сигареты Winston XStyle Silver [13:41:49]line 1.000 * 140.00 [13:41:49]line = 140.00 [13:41:49]line НДС 12% НСП 1% [13:41:49]line > о реализуемом товаре [13:41:49]line ИТОГО: 140.00 [13:41:49]line НСП 1% : 1.24 [13:41:49]line НДС 12% : 14.87 [13:41:49]line Наличными: 140.00 [13:41:49]line Безнал.: 0.00 [13:41:49]line Место: АЗС № 133 "Партнер Нефть" [13:41:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:41:49]line СНО: Общий режим [13:41:49]line Чек 187 23.10.2024 13:41 [13:41:49]line Смена: 173 ФФД: 1.0 [13:41:49]line ЗНМ: 0300000020 [13:41:49]line РНМ: 0000000000161154 [13:41:49]line Версия ККМ: v1.0 [13:41:49]line ФМ: 0000000000963323 [13:41:49]line ФД: 75454 [13:41:49]line ФПД: 122713210088794 [13:41:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134148&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75454&fm=122713210088794&tin=02508201610067®Number=0000000000161154&sum=14000 [13:41:50]line 0 [13:41:50]OFD Sender: Processing packet 75454 [packets to send 16, broken 15] [13:41:50]ProducePacketName [13:41:50]name=ofd_packets/00075454 [13:41:50]OFD Sender: To server: pG, [13:41:50]CommunicateWithHost lk.salyk.kg:30040 [13:41:50]ConnectInit lk.salyk.kg [13:41:50]written 0, free lines is 4095 [13:41:50]Connected sock=9 [13:41:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 9C 5E 1F 01 E4 E3 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 1C FD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BE 26 01 00 35 04 06 00 6F 9B 65 4B ED 5A 9D F6 1E A4 AA D4 8A 2A [13:41:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CC F4 47 00 1E 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BE 26 01 00 F4 03 04 00 F7 A5 18 67 B6 04 01 00 00 36 3F 58 0A 3A E7 18 F4 [13:41:50]CommunicateWithHost err = 0 [13:41:50]CheckOFDResponse [13:41:50]1017 (14) - 77093643461234 [13:41:50]1041 (16) - 0000000000963323 [13:41:50]1040 (4) - 75454 [13:41:50]1012 (4) - 23.10.2024 07:29 [13:41:50]1206 (1) - 0 [13:41:50]OFD Sender: Remove packet 75454 [13:41:50]ProducePacketName [13:41:50]name=ofd_packets/00075454 [13:41:50]NVStorageDeleteData [13:41:50]Write to MH i2c: 01 00 00 0B 08 13 [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: 01 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: 01 07 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: 01 07 00 0B 08 00 00 00 00 00 D4 0C FA [13:41:50]RasterBufferAndPrint [13:41:50]line [13:41:50]line [13:41:50]line [13:41:50]line [13:41:50]line [13:41:50]written 0, free lines is 3288 [13:41:50]MH_Cut [13:41:50]Write to MH i2c: D1 01 00 12 08 01 EC [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: D1 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: D1 01 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: D1 01 00 12 08 00 EB [13:41:50]Write to MH i2c: 01 00 00 13 08 1B [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:51]OFD Sender: No OFD packet to send [13:41:51]*** Cut start [13:41:51]*** Partial cut [13:41:51]*** CUTSNS_PIN = 1 [13:41:51]*** CUTSNS_PIN = 0 [13:41:51]*** Brake cut motor [13:41:52]Read from MH i2c: 01 [13:41:52]MH_I2C_Read... [13:41:52]*** Stop cut motor [13:41:52]*** Cut end [13:41:52]Read from MH i2c: 01 07 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: 01 07 00 13 08 00 00 00 00 00 FF 0F 30 [13:41:52]process_action close_receipt done [13:41:52]requested_data is exist [13:41:52]produce_requested_data [13:41:52]requested_item fm.sn is exist - process it [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 11 00 00 [13:41:52]Write to MH i2c: E2 08 00 14 08 80 11 00 00 00 00 00 00 96 [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 17 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 17 00 14 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E3 [13:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:41:52]wFMCommunicate OK [13:41:52]requested_item fd.num is exist - process it [13:41:52]SAM_PROTO_GetFieldsCounters [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 13 00 00 [13:41:52]Write to MH i2c: E2 08 00 15 08 80 13 00 00 00 00 00 00 99 [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 62 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 62 00 15 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BE 26 01 00 0E 04 04 00 AD 00 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 70 [13:41:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BE 26 01 00 0E 04 04 00 AD 00 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 [13:41:52]wFMCommunicate OK [13:41:52]SAM_PROTO_GetFieldsCounters done [13:41:52]requested_item shift.num is exist - process it [13:41:52]requested_item shift.opened is exist - process it [13:41:52]req_shift_opened [13:41:52]FM_GetShiftState [13:41:52]SAM_PROTO_GetShiftState [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 13 01 00 [13:41:52]Write to MH i2c: E2 08 00 16 08 80 13 01 00 00 00 00 00 9B [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 0E 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 0E 00 16 08 00 09 00 01 99 41 18 67 00 00 00 00 90 00 00 [13:41:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:41:52]wFMCommunicate OK [13:41:52]SAM_PROTO_GetShiftState done [13:41:52]FM_GetShiftState done [13:41:52]req_shift_opened done [13:41:52]requested_item shift.open_date is exist - process it [13:41:52]req_shift_open_date [13:41:52]req_shift_open_date done [13:41:52]produce_requested_data done [13:41:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75454,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:41:52]process_action_free close_receipt [13:41:52]json_value_free [13:41:52]json_value_free done [13:41:52]process_json_proto returns [13:41:52]Send response to host [13:41:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75454,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:41:52]free response buf [13:41:52]execute_script done [13:41:52]execute_script returns [13:41:52]free content buf [13:41:52]Sock 10.Close socket [13:41:52]Sock 10.Thread stoped [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:14]accept exits with 8 [13:44:14]New connection [13:44:14]New thread 3066608996 created [13:44:14]Thread 3066465636 joined [13:44:14]Waiting for new connection... [13:44:14] Sock 8.Parse request [13:44:14]Sock 8.Check first char [13:44:14]Sock 8.First char is OK [13:44:14]request: POST /json_proto HTTP/1.0 [13:44:14]Method: POST [13:44:14]URL: /json_proto [13:44:14]Method is POST - this is cgi request [13:44:14]url: /json_proto [13:44:14]query_string will be loaded in cgi processing [13:44:14]execute_cgi json_proto POST (null) [13:44:14]execute_cgi path=json_proto method=POST [13:44:14]POST find Content-Length [13:44:14]Host: 172.17.44.196:8080 [13:44:14]Content-Length: 702 [13:44:14]Content-Type: application/json [13:44:14] [13:44:14]POST finish read [13:44:14]Found Content-Length = 702 [13:44:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273251", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:14]execute_script... [13:44:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273251", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:14]POST & json_proto [13:44:14]process_json_proto [13:44:14]json parsed OK: [13:44:14]protocol is kg_v1.0 [13:44:14]action value=close_receipt [13:44:14]process_action close_receipt [13:44:14]cmd_close_receipt [13:44:14]MH_GetDate [13:44:14]Write to MH i2c: F0 00 00 17 08 0E [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: F0 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: F0 09 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: F0 09 00 17 08 00 AE FD 18 67 E7 19 F8 65 9E [13:44:14]GetLastDocTimeStamp 1729690908 [13:44:14]current date 1729691054 [13:44:14]FM_GetShiftState [13:44:14]SAM_PROTO_GetShiftState [13:44:14]wFMCommunicate request_size=4 [13:44:14]MH_SAM_APDU [13:44:14]CAPDU: 80 13 01 00 [13:44:14]Write to MH i2c: E2 08 00 18 08 80 13 01 00 00 00 00 00 9D [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:14]Read from MH i2c: E2 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 0E 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 0E 00 18 08 00 09 00 01 99 41 18 67 00 00 00 00 90 00 02 [13:44:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:44:14]wFMCommunicate OK [13:44:14]SAM_PROTO_GetShiftState done [13:44:14]FM_GetShiftState done [13:44:14]opened in 1729642905 [13:44:14]opened+sec_in_day 1729729305 [13:44:14]quantity*price = 11000 [13:44:14]sum+1 = 11001 [13:44:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 188 23.10.2024 13:44 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75455 ФПД: 270476637629156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134414&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75455&fm=270476637629156&tin=02508201610067®Number=0000000000161154&sum=11000 0 [13:44:15]StoreToDocumentArchive [13:44:15]shift 173 fd 75455 [13:44:15]save to /storage/0173/doc_00075455 [13:44:15]save last doc name /storage/0173/doc_00075455 to /storage/kkm_last_doc_name [13:44:15]save OK [13:44:15]Clear old archive folders... [13:44:15]ProcessDocumentItem done err = 0, tmpTLVsize=298 [13:44:15]tlvbuf is 00777C70 [13:44:15]SAM_PROTO_ClearQueue [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 09 00 00 [13:44:15]Write to MH i2c: E2 08 00 25 08 80 09 00 00 00 00 00 00 9F [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 25 08 00 90 00 A1 [13:44:15]RAPDU: 90 00 [13:44:15]wFMCommunicate OK [13:44:15]SAM_PROTO_ClearQueue done [13:44:15]KKMCreateOFDPacket [13:44:15]OFDProtocolAddRootSTLVToBuf [13:44:15]FM_MakeSignedData [13:44:15]FM_MakeSignedData [13:44:15]SAM_PROTO_SignData [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 0D 01 02 [13:44:15]Write to MH i2c: E2 08 00 26 08 80 0D 01 02 00 00 00 00 A7 [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 26 08 00 90 00 A2 [13:44:15]RAPDU: 90 00 [13:44:15]wFMCommunicate OK [13:44:15]wFMCommunicate request_size=255 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 AE FD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [13:44:15]Write to MH i2c: E2 02 01 27 08 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 AE FD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 68 [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 27 08 00 90 00 A3 [13:44:15]RAPDU: 90 00 [13:44:15]wFMCommunicate OK [13:44:15]wFMCommunicate request_size=57 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BF 26 01 00 35 04 06 00 F5 FF 3F E7 EA E4 [13:44:15]Write to MH i2c: E2 3C 00 28 08 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BF 26 01 00 35 04 06 00 F5 FF 3F E7 EA E4 00 00 28 [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 28 08 00 90 00 A4 [13:44:15]RAPDU: 90 00 [13:44:15]wFMCommunicate OK [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 0D 03 02 [13:44:15]Write to MH i2c: E2 08 00 29 08 80 0D 03 02 00 00 00 00 AC [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 0B 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 0B 00 29 08 00 74 5A D3 D1 38 B4 3A 94 90 00 D9 [13:44:15]RAPDU: 74 5A D3 D1 38 B4 3A 94 90 00 [13:44:15]wFMCommunicate OK [13:44:15]SAM_PROTO_SignData done [13:44:15]FM_MakeSignedData done [13:44:15]CreateOFDProtocolMessage [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 11 00 00 [13:44:15]Write to MH i2c: E2 08 00 2A 08 80 11 00 00 00 00 00 00 AC [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 17 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 17 00 2A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F9 [13:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:44:15]wFMCommunicate OK [13:44:15]CreateOFDProtocolMessage done [13:44:15]OFDSenderStorePacket 75455 [13:44:15]StoreOFDPacket docnum=75455 [13:44:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3E 01 00 00 84 E4 36 01 A5 62 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 AE FD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BF 26 01 00 35 04 06 00 F5 FF 3F E7 EA E4 74 5A D3 D1 38 B4 3A 94 [13:44:15]CheckFolder [13:44:15]dirname=/storage/ofd_packets [13:44:15]CheckFolder done [13:44:15]ProducePacketName [13:44:15]name=ofd_packets/00075455 [13:44:15]NVStorageSaveData ofd_packets/00075455 [13:44:15]File name is /storage/ofd_packets/00075455 [13:44:15]Write 348 bytes [13:44:15]NVStorageSaveData done [13:44:15]OFDSenderStorePacket done [13:44:15]KKMCreateOFDPacket done [13:44:15]NVStorageSaveData kkm_last_timestamp [13:44:15]File name is /storage/kkm_last_timestamp [13:44:15]Write 4 bytes [13:44:15]NVStorageSaveData done [13:44:15]ExternCall_PrintAddStr [13:44:15]wPrintStart [13:44:15]Write to MH i2c: 01 00 00 2B 08 33 [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: 01 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: 01 07 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 FF 0F 48 [13:44:15]RasterBufferAndPrint [13:44:15]line Счет N : (3)273251 [13:44:15]line ИНН: 02508201610067 [13:44:15]line Контрольно-Кассовый Чек [13:44:15]line ПРОДАЖА [13:44:15]line Товар: 4870202522701 [13:44:15]line Напиток Maxi Чай черный Малина 1,2 [13:44:15]line 1.000 * 110.00 [13:44:15]line = 110.00 [13:44:15]line НДС 12% НСП 1% [13:44:15]line > о реализуемом товаре [13:44:15]line ИТОГО: 110.00 [13:44:15]line НСП 1% : 0.97 [13:44:15]line НДС 12% : 11.68 [13:44:15]line Наличными: 110.00 [13:44:15]line Безнал.: 0.00 [13:44:15]line Место: АЗС № 133 "Партнер Нефть" [13:44:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:44:15]line СНО: Общий режим [13:44:15]line Чек 188 23.10.2024 13:44 [13:44:15]line Смена: 173 ФФД: 1.0 [13:44:15]line ЗНМ: 0300000020 [13:44:15]line РНМ: 0000000000161154 [13:44:15]line Версия ККМ: v1.0 [13:44:15]line ФМ: 0000000000963323 [13:44:15]line ФД: 75455 [13:44:15]line ФПД: 270476637629156 [13:44:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134414&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75455&fm=270476637629156&tin=02508201610067®Number=0000000000161154&sum=11000 [13:44:16]line 0 [13:44:16]OFD Sender: Processing packet 75455 [packets to send 16, broken 15] [13:44:16]ProducePacketName [13:44:16]name=ofd_packets/00075455 [13:44:16]OFD Sender: To server: pG, [13:44:16]CommunicateWithHost lk.salyk.kg:30040 [13:44:16]ConnectInit lk.salyk.kg [13:44:16]written 0, free lines is 4095 [13:44:16]Connected sock=10 [13:44:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3E 01 00 00 84 E4 36 01 A5 62 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 AE FD 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 BF 26 01 00 35 04 06 00 F5 FF 3F E7 EA E4 74 5A D3 D1 38 B4 3A 94 [13:44:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B6 4E 47 00 74 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 39 36 33 33 32 33 10 04 04 00 BF 26 01 00 F4 03 04 00 89 A6 18 67 B6 04 01 00 00 34 0E 20 E8 D8 17 26 46 [13:44:16]CommunicateWithHost err = 0 [13:44:16]CheckOFDResponse [13:44:16]1017 (14) - 77093643461234 [13:44:16]1041 (16) - 0000000000963323 [13:44:16]1040 (4) - 75455 [13:44:16]1012 (4) - 23.10.2024 07:32 [13:44:16]1206 (1) - 0 [13:44:16]OFD Sender: Remove packet 75455 [13:44:16]ProducePacketName [13:44:16]name=ofd_packets/00075455 [13:44:16]NVStorageDeleteData [13:44:16]Write to MH i2c: 01 00 00 53 08 5B [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: 01 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: 01 07 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 B7 0C 25 [13:44:16]RasterBufferAndPrint [13:44:16]line [13:44:16]line [13:44:16]line [13:44:16]line [13:44:16]line [13:44:16]written 0, free lines is 3259 [13:44:16]MH_Cut [13:44:16]Write to MH i2c: D1 01 00 5A 08 01 34 [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: D1 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: D1 01 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: D1 01 00 5A 08 00 33 [13:44:16]Write to MH i2c: 01 00 00 5B 08 63 [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]OFD Sender: No OFD packet to send [13:44:17]*** Cut start [13:44:17]*** Partial cut [13:44:17]*** CUTSNS_PIN = 1 [13:44:17]*** CUTSNS_PIN = 0 [13:44:17]*** Brake cut motor [13:44:18]Read from MH i2c: 01 [13:44:18]MH_I2C_Read... [13:44:18]*** Stop cut motor [13:44:18]*** Cut end [13:44:18]Read from MH i2c: 01 07 00 [13:44:18]MH_I2C_Read... [13:44:18]Read from MH i2c: 01 07 00 5B 08 00 00 00 00 00 FF 0F 78 [13:44:18]process_action close_receipt done [13:44:18]requested_data is exist [13:44:18]produce_requested_data [13:44:18]requested_item fm.sn is exist - process it [13:44:18]wFMCommunicate request_size=4 [13:44:18]MH_SAM_APDU [13:44:18]CAPDU: 80 11 00 00 [13:44:18]Write to MH i2c: E2 08 00 5C 08 80 11 00 00 00 00 00 00 DE [13:44:18]Write i2c OK [13:44:18]MH_I2C_Read... [13:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:18]Read from MH i2c: E2 [13:44:18]MH_I2C_Read... [13:44:18]Read from MH i2c: E2 17 00 [13:44:18]MH_I2C_Read... [13:44:18]Read from MH i2c: E2 17 00 5C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2B [13:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:44:18]wFMCommunicate OK [13:44:18]requested_item fd.num is exist - process it [13:44:18]SAM_PROTO_GetFieldsCounters [13:44:18]wFMCommunicate request_size=4 [13:44:18]MH_SAM_APDU [13:44:18]CAPDU: 80 13 00 00 [13:44:18]Write to MH i2c: E2 08 00 5D 08 80 13 00 00 00 00 00 00 E1 [13:44:18]Write i2c OK [13:44:18]MH_I2C_Read... [13:44:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:18]Read from MH i2c: E2 [13:44:18]MH_I2C_Read... [13:44:18]Read from MH i2c: E2 62 00 [13:44:18]MH_I2C_Read... [13:44:18]Read from MH i2c: E2 62 00 5D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BF 26 01 00 0E 04 04 00 AD 00 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 BC [13:44:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 BF 26 01 00 0E 04 04 00 AD 00 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 [13:44:18]wFMCommunicate OK [13:44:18]SAM_PROTO_GetFieldsCounters done [13:44:18]requested_item shift.num is exist - process it [13:44:18]requested_item shift.opened is exist - process it [13:44:18]req_shift_opened [13:44:18]FM_GetShiftState [13:44:18]SAM_PROTO_GetShiftState [13:44:18]wFMCommunicate request_size=4 [13:44:18]MH_SAM_APDU [13:44:18]CAPDU: 80 13 01 00 [13:44:18]Write to MH i2c: E2 08 00 5E 08 80 13 01 00 00 00 00 00 E3 [13:44:18]Write i2c OK [13:44:18]MH_I2C_Read... [13:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:18]Read from MH i2c: E2 [13:44:18]MH_I2C_Read... [13:44:18]Read from MH i2c: E2 0E 00 [13:44:18]MH_I2C_Read... [13:44:18]Read from MH i2c: E2 0E 00 5E 08 00 09 00 01 99 41 18 67 00 00 00 00 90 00 48 [13:44:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:44:18]wFMCommunicate OK [13:44:18]SAM_PROTO_GetShiftState done [13:44:18]FM_GetShiftState done [13:44:18]req_shift_opened done [13:44:18]requested_item shift.open_date is exist - process it [13:44:18]req_shift_open_date [13:44:18]req_shift_open_date done [13:44:18]produce_requested_data done [13:44:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75455,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:44:18]process_action_free close_receipt [13:44:18]json_value_free [13:44:18]json_value_free done [13:44:18]process_json_proto returns [13:44:18]Send response to host [13:44:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75455,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:44:18]free response buf [13:44:18]execute_script done [13:44:18]execute_script returns [13:44:18]free content buf [13:44:18]Sock 8.Close socket [13:44:18]Sock 8.Thread stoped [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:08]accept exits with 9 [13:47:08]New connection [13:47:08]New thread 3066465636 created [13:47:08]Thread 3066608996 joined [13:47:08]Waiting for new connection... [13:47:08] Sock 9.Parse request [13:47:08]Sock 9.Check first char [13:47:08]Sock 9.First char is OK [13:47:08]request: POST /json_proto HTTP/1.0 [13:47:08]Method: POST [13:47:08]URL: /json_proto [13:47:08]Method is POST - this is cgi request [13:47:08]url: /json_proto [13:47:08]query_string will be loaded in cgi processing [13:47:08]execute_cgi json_proto POST (null) [13:47:08]execute_cgi path=json_proto method=POST [13:47:08]POST find Content-Length [13:47:08]Host: 172.17.44.196:8080 [13:47:08]Content-Length: 867 [13:47:08]Content-Type: application/json [13:47:08] [13:47:08]POST finish read [13:47:08]Found Content-Length = 867 [13:47:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273252", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:08]execute_script... [13:47: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)273252", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:08]POST & json_proto [13:47:08]process_json_proto [13:47:08]json parsed OK: [13:47:08]protocol is kg_v1.0 [13:47:08]action value=close_receipt [13:47:08]process_action close_receipt [13:47:08]cmd_close_receipt [13:47:08]MH_GetDate [13:47:08]Write to MH i2c: F0 00 00 5F 08 56 [13:47:08]Write i2c OK [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: F0 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: F0 09 00 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: F0 09 00 5F 08 00 5C FE 18 67 E7 19 F8 65 95 [13:47:08]GetLastDocTimeStamp 1729691054 [13:47:08]current date 1729691228 [13:47:08]FM_GetShiftState [13:47:08]SAM_PROTO_GetShiftState [13:47:08]wFMCommunicate request_size=4 [13:47:08]MH_SAM_APDU [13:47:08]CAPDU: 80 13 01 00 [13:47:08]Write to MH i2c: E2 08 00 60 08 80 13 01 00 00 00 00 00 E5 [13:47:08]Write i2c OK [13:47:08]MH_I2C_Read... [13:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:08]Read from MH i2c: E2 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: E2 0E 00 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: E2 0E 00 60 08 00 09 00 01 99 41 18 67 00 00 00 00 90 00 4A [13:47:08]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:47:08]wFMCommunicate OK [13:47:08]SAM_PROTO_GetShiftState done [13:47:08]FM_GetShiftState done [13:47:08]opened in 1729642905 [13:47:08]opened+sec_in_day 1729729305 [13:47:08]quantity*price = 15000 [13:47:08]sum+1 = 15001 [13:47:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230607 Сигареты Richmond Bronze Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 189 23.10.2024 13:47 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75456 ФПД: 27519468046554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134708&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75456&fm=27519468046554&tin=02508201610067®Number=0000000000161154&sum=30000 0 [13:47:09]StoreToDocumentArchive [13:47:09]shift 173 fd 75456 [13:47:09]save to /storage/0173/doc_00075456 [13:47:09]save last doc name /storage/0173/doc_00075456 to /storage/kkm_last_doc_name [13:47:09]save OK [13:47:09]Clear old archive folders... [13:47:09]ProcessDocumentItem done err = 0, tmpTLVsize=385 [13:47:09]tlvbuf is 00777A70 [13:47:09]SAM_PROTO_ClearQueue [13:47:09]wFMCommunicate request_size=4 [13:47:09]MH_SAM_APDU [13:47:09]CAPDU: 80 09 00 00 [13:47:09]Write to MH i2c: E2 08 00 6D 08 80 09 00 00 00 00 00 00 E7 [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:09]Read from MH i2c: E2 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [13:47:09]RAPDU: 90 00 [13:47:09]wFMCommunicate OK [13:47:09]SAM_PROTO_ClearQueue done [13:47:09]KKMCreateOFDPacket [13:47:09]OFDProtocolAddRootSTLVToBuf [13:47:09]FM_MakeSignedData [13:47:09]FM_MakeSignedData [13:47:09]SAM_PROTO_SignData [13:47:09]wFMCommunicate request_size=4 [13:47:09]MH_SAM_APDU [13:47:09]CAPDU: 80 0D 01 02 [13:47:09]Write to MH i2c: E2 08 00 6E 08 80 0D 01 02 00 00 00 00 EF [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:09]Read from MH i2c: E2 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [13:47:09]RAPDU: 90 00 [13:47:09]wFMCommunicate OK [13:47:09]wFMCommunicate request_size=255 [13:47:09]MH_SAM_APDU [13:47:09]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 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 [13:47:09]Write to MH i2c: E2 02 01 6F 08 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 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 00 97 [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:09]Read from MH i2c: E2 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [13:47:09]RAPDU: 90 00 [13:47:09]wFMCommunicate OK [13:47:09]wFMCommunicate request_size=144 [13:47:09]MH_SAM_APDU [13:47:09]CAPDU: 80 0D 02 02 8B 00 0A 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 BD 00 00 00 F4 03 04 00 5C FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C0 26 01 00 35 04 06 00 19 07 60 1E 08 DA [13:47:09]Write to MH i2c: E2 93 00 70 08 80 0D 02 02 8B 00 00 0A 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 BD 00 00 00 F4 03 04 00 5C FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C0 26 01 00 35 04 06 00 19 07 60 1E 08 DA 00 00 00 [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:10]Read from MH i2c: E2 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 03 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 03 00 70 08 00 90 00 EC [13:47:10]RAPDU: 90 00 [13:47:10]wFMCommunicate OK [13:47:10]wFMCommunicate request_size=4 [13:47:10]MH_SAM_APDU [13:47:10]CAPDU: 80 0D 03 02 [13:47:10]Write to MH i2c: E2 08 00 71 08 80 0D 03 02 00 00 00 00 F4 [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:10]Read from MH i2c: E2 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 0B 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 0B 00 71 08 00 78 40 01 9B BD 09 DD 6E 90 00 5A [13:47:10]RAPDU: 78 40 01 9B BD 09 DD 6E 90 00 [13:47:10]wFMCommunicate OK [13:47:10]SAM_PROTO_SignData done [13:47:10]FM_MakeSignedData done [13:47:10]CreateOFDProtocolMessage [13:47:10]wFMCommunicate request_size=4 [13:47:10]MH_SAM_APDU [13:47:10]CAPDU: 80 11 00 00 [13:47:10]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:10]Read from MH i2c: E2 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 17 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 41 [13:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:47:10]wFMCommunicate OK [13:47:10]CreateOFDProtocolMessage done [13:47:10]OFDSenderStorePacket 75456 [13:47:10]StoreOFDPacket docnum=75456 [13:47:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 95 01 00 00 EE 6E 8D 01 22 8B 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 BD 00 00 00 F4 03 04 00 5C FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C0 26 01 00 35 04 06 00 19 07 60 1E 08 DA 78 40 01 9B BD 09 DD 6E [13:47:10]CheckFolder [13:47:10]dirname=/storage/ofd_packets [13:47:10]CheckFolder done [13:47:10]ProducePacketName [13:47:10]name=ofd_packets/00075456 [13:47:10]NVStorageSaveData ofd_packets/00075456 [13:47:10]File name is /storage/ofd_packets/00075456 [13:47:10]Write 435 bytes [13:47:10]NVStorageSaveData done [13:47:10]OFDSenderStorePacket done [13:47:10]KKMCreateOFDPacket done [13:47:10]NVStorageSaveData kkm_last_timestamp [13:47:10]File name is /storage/kkm_last_timestamp [13:47:10]Write 4 bytes [13:47:10]NVStorageSaveData done [13:47:10]ExternCall_PrintAddStr [13:47:10]wPrintStart [13:47:10]Write to MH i2c: 01 00 00 73 08 7B [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: 01 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: 01 07 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 FF 0F 90 [13:47:10]RasterBufferAndPrint [13:47:10]line Счет N : (3)273252 [13:47:10]line ИНН: 02508201610067 [13:47:10]line Контрольно-Кассовый Чек [13:47:10]line ПРОДАЖА [13:47:10]line Товар: 4640030092499 [13:47:10]line Сигареты ESSE SENSE Himalaya [13:47:10]line 1.000 * 150.00 [13:47:10]line = 150.00 [13:47:10]line НДС 12% НСП 1% [13:47:10]line > о реализуемом товаре [13:47:10]line Товар: 46230607 [13:47:10]line Сигареты Richmond Bronze Edition [13:47:10]line 1.000 * 150.00 [13:47:10]line = 150.00 [13:47:10]line НДС 12% НСП 1% [13:47:10]line > о реализуемом товаре [13:47:10]line ИТОГО: 300.00 [13:47:10]line НСП 1% : 2.66 [13:47:10]line НДС 12% : 31.86 [13:47:10]line Наличными: 300.00 [13:47:10]line Безнал.: 0.00 [13:47:10]line Место: АЗС № 133 "Партнер Нефть" [13:47:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:47:10]line СНО: Общий режим [13:47:10]line Чек 189 23.10.2024 13:47 [13:47:10]line Смена: 173 ФФД: 1.0 [13:47:10]line ЗНМ: 0300000020 [13:47:10]line РНМ: 0000000000161154 [13:47:10]line Версия ККМ: v1.0 [13:47:10]line ФМ: 0000000000963323 [13:47:10]line ФД: 75456 [13:47:10]line ФПД: 27519468046554 [13:47:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134708&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75456&fm=27519468046554&tin=02508201610067®Number=0000000000161154&sum=30000 [13:47:10]line 0 [13:47:10]OFD Sender: Processing packet 75456 [packets to send 16, broken 15] [13:47:10]ProducePacketName [13:47:10]name=ofd_packets/00075456 [13:47:10]OFD Sender: To server: pG, [13:47:10]CommunicateWithHost lk.salyk.kg:30040 [13:47:10]ConnectInit lk.salyk.kg [13:47:10]written 0, free lines is 4095 [13:47:10]Connected sock=11 [13:47:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 95 01 00 00 EE 6E 8D 01 22 8B 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 BD 00 00 00 F4 03 04 00 5C FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C0 26 01 00 35 04 06 00 19 07 60 1E 08 DA 78 40 01 9B BD 09 DD 6E [13:47:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2E 5B 47 00 8C 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 39 36 33 33 32 33 10 04 04 00 C0 26 01 00 F4 03 04 00 37 A7 18 67 B6 04 01 00 00 4B D3 2F C9 AE EE F2 D7 [13:47:10]CommunicateWithHost err = 0 [13:47:10]CheckOFDResponse [13:47:10]1017 (14) - 77093643461234 [13:47:10]1041 (16) - 0000000000963323 [13:47:10]1040 (4) - 75456 [13:47:10]1012 (4) - 23.10.2024 07:35 [13:47:10]1206 (1) - 0 [13:47:10]OFD Sender: Remove packet 75456 [13:47:10]ProducePacketName [13:47:10]name=ofd_packets/00075456 [13:47:10]NVStorageDeleteData [13:47:11]Write to MH i2c: 01 00 00 A2 08 AA [13:47:11]Write i2c OK [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: 01 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: 01 07 00 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: 01 07 00 A2 08 00 00 00 00 00 31 0C EE [13:47:11]RasterBufferAndPrint [13:47:11]line [13:47:11]line [13:47:11]line [13:47:11]line [13:47:11]line [13:47:11]written 0, free lines is 3124 [13:47:11]MH_Cut [13:47:11]Write to MH i2c: D1 01 00 A9 08 01 83 [13:47:11]Write i2c OK [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: D1 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: D1 01 00 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: D1 01 00 A9 08 00 82 [13:47:11]Write to MH i2c: 01 00 00 AA 08 B2 [13:47:11]Write i2c OK [13:47:11]MH_I2C_Read... [13:47:11]OFD Sender: No OFD packet to send [13:47:12]*** Cut start [13:47:12]*** Partial cut [13:47:12]*** CUTSNS_PIN = 1 [13:47:12]*** CUTSNS_PIN = 0 [13:47:12]*** Brake cut motor [13:47:12]Read from MH i2c: 01 [13:47:12]MH_I2C_Read... [13:47:12]*** Stop cut motor [13:47:12]*** Cut end [13:47:12]Read from MH i2c: 01 07 00 [13:47:12]MH_I2C_Read... [13:47:12]Read from MH i2c: 01 07 00 AA 08 00 00 00 00 00 FF 0F C7 [13:47:12]process_action close_receipt done [13:47:12]requested_data is exist [13:47:12]produce_requested_data [13:47:12]requested_item fm.sn is exist - process it [13:47:12]wFMCommunicate request_size=4 [13:47:12]MH_SAM_APDU [13:47:12]CAPDU: 80 11 00 00 [13:47:12]Write to MH i2c: E2 08 00 AB 08 80 11 00 00 00 00 00 00 2D [13:47:12]Write i2c OK [13:47:12]MH_I2C_Read... [13:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:12]Read from MH i2c: E2 [13:47:12]MH_I2C_Read... [13:47:12]Read from MH i2c: E2 17 00 [13:47:12]MH_I2C_Read... [13:47:12]Read from MH i2c: E2 17 00 AB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7A [13:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:47:12]wFMCommunicate OK [13:47:12]requested_item fd.num is exist - process it [13:47:12]SAM_PROTO_GetFieldsCounters [13:47:12]wFMCommunicate request_size=4 [13:47:12]MH_SAM_APDU [13:47:12]CAPDU: 80 13 00 00 [13:47:12]Write to MH i2c: E2 08 00 AC 08 80 13 00 00 00 00 00 00 30 [13:47:12]Write i2c OK [13:47:12]MH_I2C_Read... [13:47:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:12]Read from MH i2c: E2 [13:47:12]MH_I2C_Read... [13:47:12]Read from MH i2c: E2 62 00 [13:47:12]MH_I2C_Read... [13:47:12]Read from MH i2c: E2 62 00 AC 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C0 26 01 00 0E 04 04 00 AD 00 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 0F [13:47:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C0 26 01 00 0E 04 04 00 AD 00 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 [13:47:12]wFMCommunicate OK [13:47:12]SAM_PROTO_GetFieldsCounters done [13:47:12]requested_item shift.num is exist - process it [13:47:12]requested_item shift.opened is exist - process it [13:47:12]req_shift_opened [13:47:12]FM_GetShiftState [13:47:12]SAM_PROTO_GetShiftState [13:47:12]wFMCommunicate request_size=4 [13:47:12]MH_SAM_APDU [13:47:12]CAPDU: 80 13 01 00 [13:47:12]Write to MH i2c: E2 08 00 AD 08 80 13 01 00 00 00 00 00 32 [13:47:12]Write i2c OK [13:47:12]MH_I2C_Read... [13:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:12]Read from MH i2c: E2 [13:47:12]MH_I2C_Read... [13:47:12]Read from MH i2c: E2 0E 00 [13:47:12]MH_I2C_Read... [13:47:12]Read from MH i2c: E2 0E 00 AD 08 00 09 00 01 99 41 18 67 00 00 00 00 90 00 97 [13:47:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:47:12]wFMCommunicate OK [13:47:12]SAM_PROTO_GetShiftState done [13:47:12]FM_GetShiftState done [13:47:12]req_shift_opened done [13:47:12]requested_item shift.open_date is exist - process it [13:47:12]req_shift_open_date [13:47:12]req_shift_open_date done [13:47:12]produce_requested_data done [13:47:12]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75456,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:47:12]process_action_free close_receipt [13:47:12]json_value_free [13:47:12]json_value_free done [13:47:12]process_json_proto returns [13:47:12]Send response to host [13:47:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75456,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:47:12]free response buf [13:47:12]execute_script done [13:47:12]execute_script returns [13:47:12]free content buf [13:47:12]Sock 9.Close socket [13:47:12]Sock 9.Thread stoped [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:07]accept exits with 8 [13:49:07]New connection [13:49:07]New thread 3066608996 created [13:49:07]Thread 3066465636 joined [13:49:07]Waiting for new connection... [13:49:07] Sock 8.Parse request [13:49:07]Sock 8.Check first char [13:49:07]Sock 8.First char is OK [13:49:07]request: POST /json_proto HTTP/1.0 [13:49:07]Method: POST [13:49:07]URL: /json_proto [13:49:07]Method is POST - this is cgi request [13:49:07]url: /json_proto [13:49:07]query_string will be loaded in cgi processing [13:49:07]execute_cgi json_proto POST (null) [13:49:07]execute_cgi path=json_proto method=POST [13:49:07]POST find Content-Length [13:49:07]Host: 172.17.44.196:8080 [13:49:07]Content-Length: 680 [13:49:07]Content-Type: application/json [13:49:07] [13:49:07]POST finish read [13:49:07]Found Content-Length = 680 [13:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965569", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:49:07]execute_script... [13:49: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)1965569", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:49:07]POST & json_proto [13:49:07]process_json_proto [13:49:07]json parsed OK: [13:49:07]protocol is kg_v1.0 [13:49:07]action value=close_receipt [13:49:07]process_action close_receipt [13:49:07]cmd_close_receipt [13:49:07]MH_GetDate [13:49:07]Write to MH i2c: F0 00 00 AE 08 A5 [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: F0 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: F0 09 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: F0 09 00 AE 08 00 D4 FE 18 67 E7 19 F8 65 5C [13:49:07]GetLastDocTimeStamp 1729691228 [13:49:07]current date 1729691348 [13:49:07]FM_GetShiftState [13:49:07]SAM_PROTO_GetShiftState [13:49:07]wFMCommunicate request_size=4 [13:49:07]MH_SAM_APDU [13:49:07]CAPDU: 80 13 01 00 [13:49:07]Write to MH i2c: E2 08 00 AF 08 80 13 01 00 00 00 00 00 34 [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:07]Read from MH i2c: E2 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 0E 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 0E 00 AF 08 00 09 00 01 99 41 18 67 00 00 00 00 90 00 99 [13:49:07]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:49:07]wFMCommunicate OK [13:49:07]SAM_PROTO_GetShiftState done [13:49:07]FM_GetShiftState done [13:49:07]opened in 1729642905 [13:49:07]opened+sec_in_day 1729729305 [13:49:07]quantity*price = 100050 [13:49:07]sum+1 = 100052 [13:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 190 23.10.2024 13:49 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75457 ФПД: 49735540240809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134908&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75457&fm=49735540240809&tin=02508201610067®Number=0000000000161154&sum=100000 [13:49:08]StoreToDocumentArchive [13:49:08]shift 173 fd 75457 [13:49:08]save to /storage/0173/doc_00075457 [13:49:08]save last doc name /storage/0173/doc_00075457 to /storage/kkm_last_doc_name [13:49:08]save OK [13:49:08]Clear old archive folders... [13:49:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:49:08]tlvbuf is 0077A140 [13:49:08]SAM_PROTO_ClearQueue [13:49:08]wFMCommunicate request_size=4 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 09 00 00 [13:49:08]Write to MH i2c: E2 08 00 BC 08 80 09 00 00 00 00 00 00 36 [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 BC 08 00 90 00 38 [13:49:08]RAPDU: 90 00 [13:49:08]wFMCommunicate OK [13:49:08]SAM_PROTO_ClearQueue done [13:49:08]KKMCreateOFDPacket [13:49:08]OFDProtocolAddRootSTLVToBuf [13:49:08]FM_MakeSignedData [13:49:08]FM_MakeSignedData [13:49:08]SAM_PROTO_SignData [13:49:08]wFMCommunicate request_size=4 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 0D 01 02 [13:49:08]Write to MH i2c: E2 08 00 BD 08 80 0D 01 02 00 00 00 00 3E [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 BD 08 00 90 00 39 [13:49:08]RAPDU: 90 00 [13:49:08]wFMCommunicate OK [13:49:08]wFMCommunicate request_size=255 [13:49:08]MH_SAM_APDU [13:49:08]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 D4 FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C1 26 01 00 35 04 06 00 2D 3B F5 35 [13:49:08]Write to MH i2c: E2 02 01 BE 08 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 D4 FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C1 26 01 00 35 04 06 00 2D 3B F5 35 00 00 EC [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:09]Read from MH i2c: E2 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: E2 03 00 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: E2 03 00 BE 08 00 90 00 3A [13:49:09]RAPDU: 90 00 [13:49:09]wFMCommunicate OK [13:49:09]wFMCommunicate request_size=7 [13:49:09]MH_SAM_APDU [13:49:09]CAPDU: 80 0D 02 02 02 71 A9 [13:49:09]Write to MH i2c: E2 0A 00 BF 08 80 0D 02 02 02 00 71 A9 00 00 5F [13:49:09]Write i2c OK [13:49:09]MH_I2C_Read... [13:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:09]Read from MH i2c: E2 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: E2 03 00 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: E2 03 00 BF 08 00 90 00 3B [13:49:09]RAPDU: 90 00 [13:49:09]wFMCommunicate OK [13:49:09]wFMCommunicate request_size=4 [13:49:09]MH_SAM_APDU [13:49:09]CAPDU: 80 0D 03 02 [13:49:09]Write to MH i2c: E2 08 00 C0 08 80 0D 03 02 00 00 00 00 43 [13:49:09]Write i2c OK [13:49:09]MH_I2C_Read... [13:49:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:09]Read from MH i2c: E2 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: E2 0B 00 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: E2 0B 00 C0 08 00 4F 27 FB AE 47 E8 D9 49 90 00 B4 [13:49:09]RAPDU: 4F 27 FB AE 47 E8 D9 49 90 00 [13:49:09]wFMCommunicate OK [13:49:09]SAM_PROTO_SignData done [13:49:09]FM_MakeSignedData done [13:49:09]CreateOFDProtocolMessage [13:49:09]wFMCommunicate request_size=4 [13:49:09]MH_SAM_APDU [13:49:09]CAPDU: 80 11 00 00 [13:49:09]Write to MH i2c: E2 08 00 C1 08 80 11 00 00 00 00 00 00 43 [13:49:09]Write i2c OK [13:49:09]MH_I2C_Read... [13:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:09]Read from MH i2c: E2 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: E2 17 00 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: E2 17 00 C1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 90 [13:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:49:09]wFMCommunicate OK [13:49:09]CreateOFDProtocolMessage done [13:49:09]OFDSenderStorePacket 75457 [13:49:09]StoreOFDPacket docnum=75457 [13:49:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 F1 78 04 01 8B 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 D4 FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C1 26 01 00 35 04 06 00 2D 3B F5 35 71 A9 4F 27 FB AE 47 E8 D9 49 [13:49:09]CheckFolder [13:49:09]dirname=/storage/ofd_packets [13:49:09]CheckFolder done [13:49:09]ProducePacketName [13:49:09]name=ofd_packets/00075457 [13:49:09]NVStorageSaveData ofd_packets/00075457 [13:49:09]File name is /storage/ofd_packets/00075457 [13:49:09]Write 298 bytes [13:49:09]NVStorageSaveData done [13:49:09]OFDSenderStorePacket done [13:49:09]KKMCreateOFDPacket done [13:49:09]NVStorageSaveData kkm_last_timestamp [13:49:09]File name is /storage/kkm_last_timestamp [13:49:09]Write 4 bytes [13:49:09]NVStorageSaveData done [13:49:09]ExternCall_PrintAddStr [13:49:09]wPrintStart [13:49:09]Write to MH i2c: 01 00 00 C2 08 CA [13:49:09]Write i2c OK [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: 01 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: 01 07 00 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: 01 07 00 C2 08 00 00 00 00 00 FF 0F DF [13:49:09]RasterBufferAndPrint [13:49:09]line Счет N : (1)1965569 [13:49:09]line ИНН: 02508201610067 [13:49:09]line Контрольно-Кассовый Чек [13:49:09]line ПРОДАЖА [13:49:09]line ТРК (МРК, ГНК) : 51 [13:49:09]line Товар: 2710194210 [13:49:09]line ДТ-К-5 [13:49:09]line 13.130 * 76.20 [13:49:09]line = 1000.51 [13:49:09]line НДС 12% НСП 1% [13:49:09]line > о реализуемом товаре [13:49:09]line ОКРУГЛЕНИЕ: -0.51 [13:49:09]line ИТОГО: 1000.00 [13:49:09]line Внесено: 1000.00 [13:49:09]line СДАЧА: 0.00 [13:49:09]line НСП 1% : 8.85 [13:49:09]line НДС 12% : 106.25 [13:49:09]line Наличными: 1000.00 [13:49:09]line Безнал.: 0.00 [13:49:09]line Место: АЗС № 133 "Партнер Нефть" [13:49:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:49:09]line СНО: Общий режим [13:49:09]line Чек 190 23.10.2024 13:49 [13:49:09]line Смена: 173 ФФД: 1.0 [13:49:09]line ЗНМ: 0300000020 [13:49:09]line РНМ: 0000000000161154 [13:49:09]line Версия ККМ: v1.0 [13:49:09]line ФМ: 0000000000963323 [13:49:09]line ФД: 75457 [13:49:09]line ФПД: 49735540240809 [13:49:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134908&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75457&fm=49735540240809&tin=02508201610067®Number=0000000000161154&sum=100000 [13:49:09]OFD Sender: Processing packet 75457 [packets to send 16, broken 15] [13:49:09]ProducePacketName [13:49:09]name=ofd_packets/00075457 [13:49:09]OFD Sender: To server: pG, [13:49:09]CommunicateWithHost lk.salyk.kg:30040 [13:49:09]ConnectInit lk.salyk.kg [13:49:09]written 0, free lines is 4095 [13:49:09]Connected sock=10 [13:49:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 F1 78 04 01 8B 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 D4 FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C1 26 01 00 35 04 06 00 2D 3B F5 35 71 A9 4F 27 FB AE 47 E8 D9 49 [13:49:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 64 C0 47 00 E5 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 39 36 33 33 32 33 10 04 04 00 C1 26 01 00 F4 03 04 00 AE A7 18 67 B6 04 01 00 00 DF 10 5D B1 E6 B1 38 5E [13:49:09]CommunicateWithHost err = 0 [13:49:09]CheckOFDResponse [13:49:09]1017 (14) - 77093643461234 [13:49:09]1041 (16) - 0000000000963323 [13:49:09]1040 (4) - 75457 [13:49:09]1012 (4) - 23.10.2024 07:37 [13:49:09]1206 (1) - 0 [13:49:09]OFD Sender: Remove packet 75457 [13:49:09]ProducePacketName [13:49:09]name=ofd_packets/00075457 [13:49:09]NVStorageDeleteData [13:49:10]Write to MH i2c: 01 00 00 EC 08 F4 [13:49:10]Write i2c OK [13:49:10]MH_I2C_Read... [13:49:10]Read from MH i2c: 01 [13:49:10]MH_I2C_Read... [13:49:10]Read from MH i2c: 01 07 00 [13:49:10]MH_I2C_Read... [13:49:10]Read from MH i2c: 01 07 00 EC 08 00 00 00 00 00 A8 0C AF [13:49:10]RasterBufferAndPrint [13:49:10]line [13:49:10]line [13:49:10]line [13:49:10]line [13:49:10]line [13:49:10]written 0, free lines is 3245 [13:49:10]MH_Cut [13:49:10]Write to MH i2c: D1 01 00 F3 08 01 CD [13:49:10]Write i2c OK [13:49:10]MH_I2C_Read... [13:49:10]Read from MH i2c: D1 [13:49:10]MH_I2C_Read... [13:49:10]Read from MH i2c: D1 01 00 [13:49:10]MH_I2C_Read... [13:49:10]Read from MH i2c: D1 01 00 F3 08 00 CC [13:49:10]Write to MH i2c: 01 00 00 F4 08 FC [13:49:10]Write i2c OK [13:49:10]MH_I2C_Read... [13:49:10]OFD Sender: No OFD packet to send [13:49:11]*** Cut start [13:49:11]*** Partial cut [13:49:11]*** CUTSNS_PIN = 1 [13:49:11]*** CUTSNS_PIN = 0 [13:49:11]*** Brake cut motor [13:49:11]Read from MH i2c: 01 [13:49:11]MH_I2C_Read... [13:49:11]*** Stop cut motor [13:49:11]*** Cut end [13:49:11]Read from MH i2c: 01 07 00 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: 01 07 00 F4 08 00 00 00 00 00 FF 0F 11 [13:49:11]process_action close_receipt done [13:49:11]requested_data is exist [13:49:11]produce_requested_data [13:49:11]requested_item fm.sn is exist - process it [13:49:11]wFMCommunicate request_size=4 [13:49:11]MH_SAM_APDU [13:49:11]CAPDU: 80 11 00 00 [13:49:11]Write to MH i2c: E2 08 00 F5 08 80 11 00 00 00 00 00 00 77 [13:49:11]Write i2c OK [13:49:11]MH_I2C_Read... [13:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:11]Read from MH i2c: E2 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 17 00 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 17 00 F5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C4 [13:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:49:11]wFMCommunicate OK [13:49:11]requested_item fd.num is exist - process it [13:49:11]SAM_PROTO_GetFieldsCounters [13:49:11]wFMCommunicate request_size=4 [13:49:11]MH_SAM_APDU [13:49:11]CAPDU: 80 13 00 00 [13:49:11]Write to MH i2c: E2 08 00 F6 08 80 13 00 00 00 00 00 00 7A [13:49:11]Write i2c OK [13:49:11]MH_I2C_Read... [13:49:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:11]Read from MH i2c: E2 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 62 00 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 62 00 F6 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C1 26 01 00 0E 04 04 00 AD 00 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 5D [13:49:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C1 26 01 00 0E 04 04 00 AD 00 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 [13:49:11]wFMCommunicate OK [13:49:11]SAM_PROTO_GetFieldsCounters done [13:49:11]requested_item shift.num is exist - process it [13:49:11]requested_item shift.opened is exist - process it [13:49:11]req_shift_opened [13:49:11]FM_GetShiftState [13:49:11]SAM_PROTO_GetShiftState [13:49:11]wFMCommunicate request_size=4 [13:49:11]MH_SAM_APDU [13:49:11]CAPDU: 80 13 01 00 [13:49:11]Write to MH i2c: E2 08 00 F7 08 80 13 01 00 00 00 00 00 7C [13:49:11]Write i2c OK [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 [13:49:11]MH_I2C_Read... [13:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:11]Read from MH i2c: E2 0E 00 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 0E 00 F7 08 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E1 [13:49:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:49:11]wFMCommunicate OK [13:49:11]SAM_PROTO_GetShiftState done [13:49:11]FM_GetShiftState done [13:49:11]req_shift_opened done [13:49:11]requested_item shift.open_date is exist - process it [13:49:11]req_shift_open_date [13:49:11]req_shift_open_date done [13:49:11]produce_requested_data done [13:49:11]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75457,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:49:11]process_action_free close_receipt [13:49:11]json_value_free [13:49:11]json_value_free done [13:49:11]process_json_proto returns [13:49:11]Send response to host [13:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75457,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:49:11]free response buf [13:49:11]execute_script done [13:49:11]execute_script returns [13:49:11]free content buf [13:49:11]Sock 8.Close socket [13:49:11]Sock 8.Thread stoped [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:38]accept exits with 9 [13:49:38]New connection [13:49:38]New thread 3066465636 created [13:49:38]Thread 3066608996 joined [13:49:38]Waiting for new connection... [13:49:38] Sock 9.Parse request [13:49:38]Sock 9.Check first char [13:49:38]Sock 9.First char is OK [13:49:38]request: POST /json_proto HTTP/1.0 [13:49:38]Method: POST [13:49:38]URL: /json_proto [13:49:38]Method is POST - this is cgi request [13:49:38]url: /json_proto [13:49:38]query_string will be loaded in cgi processing [13:49:38]execute_cgi json_proto POST (null) [13:49:38]execute_cgi path=json_proto method=POST [13:49:38]POST find Content-Length [13:49:38]Host: 172.17.44.196:8080 [13:49:38]Content-Length: 622 [13:49:38]Content-Type: application/json [13:49:38] [13:49:38]POST finish read [13:49:38]Found Content-Length = 622 [13:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273253", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact 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" ] } } [13:49:38]execute_script... [13:49: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 : (3)273253", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact 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" ] } } [13:49:38]POST & json_proto [13:49:38]process_json_proto [13:49:38]json parsed OK: [13:49:38]protocol is kg_v1.0 [13:49:38]action value=close_receipt [13:49:38]process_action close_receipt [13:49:38]cmd_close_receipt [13:49:38]MH_GetDate [13:49:38]Write to MH i2c: F0 00 00 F8 08 EF [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: F0 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: F0 09 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: F0 09 00 F8 08 00 F2 FE 18 67 E7 19 F8 65 C4 [13:49:38]GetLastDocTimeStamp 1729691348 [13:49:38]current date 1729691378 [13:49:38]FM_GetShiftState [13:49:38]SAM_PROTO_GetShiftState [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 13 01 00 [13:49:38]Write to MH i2c: E2 08 00 F9 08 80 13 01 00 00 00 00 00 7E [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 0E 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 0E 00 F9 08 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E3 [13:49:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:49:38]wFMCommunicate OK [13:49:38]SAM_PROTO_GetShiftState done [13:49:38]FM_GetShiftState done [13:49:38]opened in 1729642905 [13:49:38]opened+sec_in_day 1729729305 [13:49:38]quantity*price = 13500 [13:49:38]sum+1 = 13501 [13:49:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 191 23.10.2024 13:49 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75458 ФПД: 13457484267535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134938&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75458&fm=13457484267535&tin=02508201610067®Number=0000000000161154&sum=13500 0 [13:49:39]StoreToDocumentArchive [13:49:39]shift 173 fd 75458 [13:49:39]save to /storage/0173/doc_00075458 [13:49:39]save last doc name /storage/0173/doc_00075458 to /storage/kkm_last_doc_name [13:49:39]save OK [13:49:39]Clear old archive folders... [13:49:39]ProcessDocumentItem done err = 0, tmpTLVsize=274 [13:49:39]tlvbuf is 00758E00 [13:49:39]SAM_PROTO_ClearQueue [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 09 00 00 [13:49:39]Write to MH i2c: E2 08 00 06 09 80 09 00 00 00 00 00 00 81 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 03 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 03 00 06 09 00 90 00 83 [13:49:39]RAPDU: 90 00 [13:49:39]wFMCommunicate OK [13:49:39]SAM_PROTO_ClearQueue done [13:49:39]KKMCreateOFDPacket [13:49:39]OFDProtocolAddRootSTLVToBuf [13:49:39]FM_MakeSignedData [13:49:39]FM_MakeSignedData [13:49:39]SAM_PROTO_SignData [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 0D 01 02 [13:49:39]Write to MH i2c: E2 08 00 07 09 80 0D 01 02 00 00 00 00 89 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 03 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 03 00 07 09 00 90 00 84 [13:49:39]RAPDU: 90 00 [13:49:39]wFMCommunicate OK [13:49:39]wFMCommunicate request_size=255 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 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 BF 00 00 00 F4 03 04 00 F2 FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 [13:49:39]Write to MH i2c: E2 02 01 08 09 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 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 BF 00 00 00 F4 03 04 00 F2 FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 00 00 7F [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 03 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 03 00 08 09 00 90 00 85 [13:49:39]RAPDU: 90 00 [13:49:39]wFMCommunicate OK [13:49:39]wFMCommunicate request_size=33 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C2 26 01 00 35 04 06 00 0C 3D 50 91 C0 0F [13:49:39]Write to MH i2c: E2 24 00 09 09 80 0D 02 02 1C 00 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C2 26 01 00 35 04 06 00 0C 3D 50 91 C0 0F 00 00 F7 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 03 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 03 00 09 09 00 90 00 86 [13:49:39]RAPDU: 90 00 [13:49:39]wFMCommunicate OK [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 0D 03 02 [13:49:39]Write to MH i2c: E2 08 00 0A 09 80 0D 03 02 00 00 00 00 8E [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 0B 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 0B 00 0A 09 00 7C 9B 48 A6 E9 C2 CC 35 90 00 40 [13:49:39]RAPDU: 7C 9B 48 A6 E9 C2 CC 35 90 00 [13:49:39]wFMCommunicate OK [13:49:39]SAM_PROTO_SignData done [13:49:39]FM_MakeSignedData done [13:49:39]CreateOFDProtocolMessage [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 11 00 00 [13:49:39]Write to MH i2c: E2 08 00 0B 09 80 11 00 00 00 00 00 00 8E [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 17 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 17 00 0B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DB [13:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:49:39]wFMCommunicate OK [13:49:39]CreateOFDProtocolMessage done [13:49:39]OFDSenderStorePacket 75458 [13:49:39]StoreOFDPacket docnum=75458 [13:49:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 6E 0D 1E 01 1C 49 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 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 BF 00 00 00 F4 03 04 00 F2 FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C2 26 01 00 35 04 06 00 0C 3D 50 91 C0 0F 7C 9B 48 A6 E9 C2 CC 35 [13:49:39]CheckFolder [13:49:39]dirname=/storage/ofd_packets [13:49:39]CheckFolder done [13:49:39]ProducePacketName [13:49:39]name=ofd_packets/00075458 [13:49:39]NVStorageSaveData ofd_packets/00075458 [13:49:39]File name is /storage/ofd_packets/00075458 [13:49:39]Write 324 bytes [13:49:39]NVStorageSaveData done [13:49:39]OFDSenderStorePacket done [13:49:39]KKMCreateOFDPacket done [13:49:39]NVStorageSaveData kkm_last_timestamp [13:49:39]File name is /storage/kkm_last_timestamp [13:49:39]Write 4 bytes [13:49:39]NVStorageSaveData done [13:49:39]ExternCall_PrintAddStr [13:49:39]wPrintStart [13:49:39]Write to MH i2c: 01 00 00 0C 09 15 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: 01 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: 01 07 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 FF 0F 2A [13:49:39]RasterBufferAndPrint [13:49:39]line Счет N : (3)273253 [13:49:39]line ИНН: 02508201610067 [13:49:39]line Контрольно-Кассовый Чек [13:49:39]line ПРОДАЖА [13:49:39]line Товар: 48744997 [13:49:39]line Сигареты Winston Compact Blue [13:49:39]line 1.000 * 135.00 [13:49:39]line = 135.00 [13:49:39]line НДС 12% НСП 1% [13:49:39]line > о реализуемом товаре [13:49:39]line ИТОГО: 135.00 [13:49:39]line НСП 1% : 1.19 [13:49:39]line НДС 12% : 14.34 [13:49:39]line Наличными: 135.00 [13:49:39]line Безнал.: 0.00 [13:49:39]line Место: АЗС № 133 "Партнер Нефть" [13:49:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:49:39]line СНО: Общий режим [13:49:39]line Чек 191 23.10.2024 13:49 [13:49:39]line Смена: 173 ФФД: 1.0 [13:49:39]line ЗНМ: 0300000020 [13:49:39]line РНМ: 0000000000161154 [13:49:39]line Версия ККМ: v1.0 [13:49:39]line ФМ: 0000000000963323 [13:49:39]line ФД: 75458 [13:49:39]line ФПД: 13457484267535 [13:49:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T134938&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75458&fm=13457484267535&tin=02508201610067®Number=0000000000161154&sum=13500 [13:49:40]line 0 [13:49:40]OFD Sender: Processing packet 75458 [packets to send 16, broken 15] [13:49:40]ProducePacketName [13:49:40]name=ofd_packets/00075458 [13:49:40]OFD Sender: To server: pG, [13:49:40]CommunicateWithHost lk.salyk.kg:30040 [13:49:40]ConnectInit lk.salyk.kg [13:49:40]written 0, free lines is 4095 [13:49:40]Connected sock=10 [13:49:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 26 01 00 00 6E 0D 1E 01 1C 49 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 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 BF 00 00 00 F4 03 04 00 F2 FE 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C2 26 01 00 35 04 06 00 0C 3D 50 91 C0 0F 7C 9B 48 A6 E9 C2 CC 35 [13:49:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 68 E2 47 00 B8 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C2 26 01 00 F4 03 04 00 CD A7 18 67 B6 04 01 00 00 B0 59 EB C5 66 84 01 C1 [13:49:40]CommunicateWithHost err = 0 [13:49:40]CheckOFDResponse [13:49:40]1017 (14) - 77093643461234 [13:49:40]1041 (16) - 0000000000963323 [13:49:40]1040 (4) - 75458 [13:49:40]1012 (4) - 23.10.2024 07:37 [13:49:40]1206 (1) - 0 [13:49:40]OFD Sender: Remove packet 75458 [13:49:40]ProducePacketName [13:49:40]name=ofd_packets/00075458 [13:49:40]NVStorageDeleteData [13:49:40]Write to MH i2c: 01 00 00 34 09 3D [13:49:40]Write i2c OK [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: 01 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: 01 07 00 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: 01 07 00 34 09 00 00 00 00 00 B6 0C 06 [13:49:40]RasterBufferAndPrint [13:49:40]line [13:49:40]line [13:49:40]line [13:49:40]line [13:49:40]line [13:49:40]written 0, free lines is 3258 [13:49:40]MH_Cut [13:49:40]Write to MH i2c: D1 01 00 3B 09 01 16 [13:49:40]Write i2c OK [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: D1 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: D1 01 00 [13:49:40]MH_I2C_Read... [13:49:40]Read from MH i2c: D1 01 00 3B 09 00 15 [13:49:40]Write to MH i2c: 01 00 00 3C 09 45 [13:49:40]Write i2c OK [13:49:40]MH_I2C_Read... [13:49:40]OFD Sender: No OFD packet to send [13:49:41]*** Cut start [13:49:41]*** Partial cut [13:49:41]*** CUTSNS_PIN = 1 [13:49:41]*** CUTSNS_PIN = 0 [13:49:41]*** Brake cut motor [13:49:42]Read from MH i2c: 01 [13:49:42]MH_I2C_Read... [13:49:42]*** Stop cut motor [13:49:42]*** Cut end [13:49:42]Read from MH i2c: 01 07 00 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: 01 07 00 3C 09 00 00 00 00 00 FF 0F 5A [13:49:42]process_action close_receipt done [13:49:42]requested_data is exist [13:49:42]produce_requested_data [13:49:42]requested_item fm.sn is exist - process it [13:49:42]wFMCommunicate request_size=4 [13:49:42]MH_SAM_APDU [13:49:42]CAPDU: 80 11 00 00 [13:49:42]Write to MH i2c: E2 08 00 3D 09 80 11 00 00 00 00 00 00 C0 [13:49:42]Write i2c OK [13:49:42]MH_I2C_Read... [13:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:42]Read from MH i2c: E2 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: E2 17 00 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: E2 17 00 3D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0D [13:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:49:42]wFMCommunicate OK [13:49:42]requested_item fd.num is exist - process it [13:49:42]SAM_PROTO_GetFieldsCounters [13:49:42]wFMCommunicate request_size=4 [13:49:42]MH_SAM_APDU [13:49:42]CAPDU: 80 13 00 00 [13:49:42]Write to MH i2c: E2 08 00 3E 09 80 13 00 00 00 00 00 00 C3 [13:49:42]Write i2c OK [13:49:42]MH_I2C_Read... [13:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:42]Read from MH i2c: E2 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: E2 62 00 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: E2 62 00 3E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C2 26 01 00 0E 04 04 00 AD 00 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 AA [13:49:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C2 26 01 00 0E 04 04 00 AD 00 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 [13:49:42]wFMCommunicate OK [13:49:42]SAM_PROTO_GetFieldsCounters done [13:49:42]requested_item shift.num is exist - process it [13:49:42]requested_item shift.opened is exist - process it [13:49:42]req_shift_opened [13:49:42]FM_GetShiftState [13:49:42]SAM_PROTO_GetShiftState [13:49:42]wFMCommunicate request_size=4 [13:49:42]MH_SAM_APDU [13:49:42]CAPDU: 80 13 01 00 [13:49:42]Write to MH i2c: E2 08 00 3F 09 80 13 01 00 00 00 00 00 C5 [13:49:42]Write i2c OK [13:49:42]MH_I2C_Read... [13:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:42]Read from MH i2c: E2 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: E2 0E 00 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: E2 0E 00 3F 09 00 09 00 01 99 41 18 67 00 00 00 00 90 00 2A [13:49:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:49:42]wFMCommunicate OK [13:49:42]SAM_PROTO_GetShiftState done [13:49:42]FM_GetShiftState done [13:49:42]req_shift_opened done [13:49:42]requested_item shift.open_date is exist - process it [13:49:42]req_shift_open_date [13:49:42]req_shift_open_date done [13:49:42]produce_requested_data done [13:49:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75458,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:49:42]process_action_free close_receipt [13:49:42]json_value_free [13:49:42]json_value_free done [13:49:42]process_json_proto returns [13:49:42]Send response to host [13:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75458,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:49:42]free response buf [13:49:42]execute_script done [13:49:42]execute_script returns [13:49:42]free content buf [13:49:42]Sock 9.Close socket [13:49:42]Sock 9.Thread stoped [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50: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:55]accept exits with 8 [13:50:55]New connection [13:50:55]New thread 3066608996 created [13:50:55]Thread 3066465636 joined [13:50:55]Waiting for new connection... [13:50:55] Sock 8.Parse request [13:50:55]Sock 8.Check first char [13:50:55]Sock 8.First char is OK [13:50:55]request: POST /json_proto HTTP/1.0 [13:50:55]Method: POST [13:50:55]URL: /json_proto [13:50:55]Method is POST - this is cgi request [13:50:55]url: /json_proto [13:50:55]query_string will be loaded in cgi processing [13:50:55]execute_cgi json_proto POST (null) [13:50:55]execute_cgi path=json_proto method=POST [13:50:55]POST find Content-Length [13:50:55]Host: 172.17.44.196:8080 [13:50:55]Content-Length: 645 [13:50:55]Content-Type: application/json [13:50:55] [13:50:55]POST finish read [13:50:55]Found Content-Length = 645 [13:50:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273254", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:55]execute_script... [13:50:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273254", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:55]POST & json_proto [13:50:55]process_json_proto [13:50:55]json parsed OK: [13:50:55]protocol is kg_v1.0 [13:50:55]action value=close_receipt [13:50:55]process_action close_receipt [13:50:55]cmd_close_receipt [13:50:55]MH_GetDate [13:50:55]Write to MH i2c: F0 00 00 40 09 38 [13:50:55]Write i2c OK [13:50:55]MH_I2C_Read... [13:50:55]Read from MH i2c: F0 [13:50:55]MH_I2C_Read... [13:50:55]Read from MH i2c: F0 09 00 [13:50:55]MH_I2C_Read... [13:50:55]Read from MH i2c: F0 09 00 40 09 00 3F FF 18 67 E7 19 F8 65 5B [13:50:55]GetLastDocTimeStamp 1729691378 [13:50:55]current date 1729691455 [13:50:55]FM_GetShiftState [13:50:55]SAM_PROTO_GetShiftState [13:50:55]wFMCommunicate request_size=4 [13:50:55]MH_SAM_APDU [13:50:55]CAPDU: 80 13 01 00 [13:50:55]Write to MH i2c: E2 08 00 41 09 80 13 01 00 00 00 00 00 C7 [13:50:55]Write i2c OK [13:50:55]MH_I2C_Read... [13:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:55]Read from MH i2c: E2 [13:50:55]MH_I2C_Read... [13:50:55]Read from MH i2c: E2 0E 00 [13:50:55]MH_I2C_Read... [13:50:55]Read from MH i2c: E2 0E 00 41 09 00 09 00 01 99 41 18 67 00 00 00 00 90 00 2C [13:50:55]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:50:55]wFMCommunicate OK [13:50:55]SAM_PROTO_GetShiftState done [13:50:55]FM_GetShiftState done [13:50:55]opened in 1729642905 [13:50:55]opened+sec_in_day 1729729305 [13:50:55]quantity*price = 1000 [13:50:55]sum+1 = 1001 [13:50:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 192 23.10.2024 13:50 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75459 ФПД: 181451263680991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135055&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75459&fm=181451263680991&tin=02508201610067®Number=0000000000161154&sum=1000 0 [13:50:56]StoreToDocumentArchive [13:50:56]shift 173 fd 75459 [13:50:56]save to /storage/0173/doc_00075459 [13:50:56]save last doc name /storage/0173/doc_00075459 to /storage/kkm_last_doc_name [13:50:56]save OK [13:50:56]Clear old archive folders... [13:50:56]ProcessDocumentItem done err = 0, tmpTLVsize=280 [13:50:56]tlvbuf is 00758B20 [13:50:56]SAM_PROTO_ClearQueue [13:50:56]wFMCommunicate request_size=4 [13:50:56]MH_SAM_APDU [13:50:56]CAPDU: 80 09 00 00 [13:50:56]Write to MH i2c: E2 08 00 4E 09 80 09 00 00 00 00 00 00 C9 [13:50:56]Write i2c OK [13:50:56]MH_I2C_Read... [13:50:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:56]Read from MH i2c: E2 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 03 00 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 03 00 4E 09 00 90 00 CB [13:50:56]RAPDU: 90 00 [13:50:56]wFMCommunicate OK [13:50:56]SAM_PROTO_ClearQueue done [13:50:56]KKMCreateOFDPacket [13:50:56]OFDProtocolAddRootSTLVToBuf [13:50:56]FM_MakeSignedData [13:50:56]FM_MakeSignedData [13:50:56]SAM_PROTO_SignData [13:50:56]wFMCommunicate request_size=4 [13:50:56]MH_SAM_APDU [13:50:56]CAPDU: 80 0D 01 02 [13:50:56]Write to MH i2c: E2 08 00 4F 09 80 0D 01 02 00 00 00 00 D1 [13:50:56]Write i2c OK [13:50:56]MH_I2C_Read... [13:50:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:56]Read from MH i2c: E2 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 03 00 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 03 00 4F 09 00 90 00 CC [13:50:56]RAPDU: 90 00 [13:50:56]wFMCommunicate OK [13:50:56]wFMCommunicate request_size=255 [13:50:56]MH_SAM_APDU [13:50:56]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 3F FF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 [13:50:56]Write to MH i2c: E2 02 01 50 09 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 3F FF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 00 38 [13:50:56]Write i2c OK [13:50:56]MH_I2C_Read... [13:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:56]Read from MH i2c: E2 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 03 00 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 03 00 50 09 00 90 00 CD [13:50:56]RAPDU: 90 00 [13:50:56]wFMCommunicate OK [13:50:56]wFMCommunicate request_size=39 [13:50:56]MH_SAM_APDU [13:50:56]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C3 26 01 00 35 04 06 00 A5 07 6A 1D A1 DF [13:50:56]Write to MH i2c: E2 2A 00 51 09 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C3 26 01 00 35 04 06 00 A5 07 6A 1D A1 DF 00 00 26 [13:50:56]Write i2c OK [13:50:56]MH_I2C_Read... [13:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:56]Read from MH i2c: E2 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 03 00 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 03 00 51 09 00 90 00 CE [13:50:56]RAPDU: 90 00 [13:50:56]wFMCommunicate OK [13:50:56]wFMCommunicate request_size=4 [13:50:56]MH_SAM_APDU [13:50:56]CAPDU: 80 0D 03 02 [13:50:56]Write to MH i2c: E2 08 00 52 09 80 0D 03 02 00 00 00 00 D6 [13:50:56]Write i2c OK [13:50:56]MH_I2C_Read... [13:50:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:56]Read from MH i2c: E2 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 0B 00 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 0B 00 52 09 00 52 14 44 4D 83 9B 1B 68 90 00 6F [13:50:56]RAPDU: 52 14 44 4D 83 9B 1B 68 90 00 [13:50:56]wFMCommunicate OK [13:50:56]SAM_PROTO_SignData done [13:50:56]FM_MakeSignedData done [13:50:56]CreateOFDProtocolMessage [13:50:56]wFMCommunicate request_size=4 [13:50:56]MH_SAM_APDU [13:50:56]CAPDU: 80 11 00 00 [13:50:56]Write to MH i2c: E2 08 00 53 09 80 11 00 00 00 00 00 00 D6 [13:50:56]Write i2c OK [13:50:56]MH_I2C_Read... [13:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:56]Read from MH i2c: E2 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 17 00 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: E2 17 00 53 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 23 [13:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:50:56]wFMCommunicate OK [13:50:56]CreateOFDProtocolMessage done [13:50:56]OFDSenderStorePacket 75459 [13:50:56]StoreOFDPacket docnum=75459 [13:50:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 AA 56 24 01 79 36 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 3F FF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C3 26 01 00 35 04 06 00 A5 07 6A 1D A1 DF 52 14 44 4D 83 9B 1B 68 [13:50:56]CheckFolder [13:50:56]dirname=/storage/ofd_packets [13:50:56]CheckFolder done [13:50:56]ProducePacketName [13:50:56]name=ofd_packets/00075459 [13:50:56]NVStorageSaveData ofd_packets/00075459 [13:50:56]File name is /storage/ofd_packets/00075459 [13:50:56]Write 330 bytes [13:50:56]NVStorageSaveData done [13:50:56]OFDSenderStorePacket done [13:50:56]KKMCreateOFDPacket done [13:50:56]NVStorageSaveData kkm_last_timestamp [13:50:56]File name is /storage/kkm_last_timestamp [13:50:56]Write 4 bytes [13:50:56]NVStorageSaveData done [13:50:56]ExternCall_PrintAddStr [13:50:56]wPrintStart [13:50:56]Write to MH i2c: 01 00 00 54 09 5D [13:50:56]Write i2c OK [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: 01 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: 01 07 00 [13:50:56]MH_I2C_Read... [13:50:56]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 FF 0F 72 [13:50:56]RasterBufferAndPrint [13:50:56]line Счет N : (3)273254 [13:50:56]line ИНН: 02508201610067 [13:50:56]line Контрольно-Кассовый Чек [13:50:56]line ПРОДАЖА [13:50:56]line Товар: 46226617 [13:50:56]line Mentos ПВ Нежная Мята 6*100*2г [13:50:56]line 1.000 * 10.00 [13:50:56]line = 10.00 [13:50:56]line НДС 12% НСП 1% [13:50:56]line > о реализуемом товаре [13:50:56]line ИТОГО: 10.00 [13:50:56]line НСП 1% : 0.09 [13:50:56]line НДС 12% : 1.06 [13:50:56]line Наличными: 10.00 [13:50:56]line Безнал.: 0.00 [13:50:56]line Место: АЗС № 133 "Партнер Нефть" [13:50:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:50:56]line СНО: Общий режим [13:50:56]line Чек 192 23.10.2024 13:50 [13:50:56]line Смена: 173 ФФД: 1.0 [13:50:56]line ЗНМ: 0300000020 [13:50:56]line РНМ: 0000000000161154 [13:50:56]line Версия ККМ: v1.0 [13:50:56]line ФМ: 0000000000963323 [13:50:56]line ФД: 75459 [13:50:56]line ФПД: 181451263680991 [13:50:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135055&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75459&fm=181451263680991&tin=02508201610067®Number=0000000000161154&sum=1000 [13:50:57]line 0 [13:50:57]OFD Sender: Processing packet 75459 [packets to send 16, broken 15] [13:50:57]ProducePacketName [13:50:57]name=ofd_packets/00075459 [13:50:57]OFD Sender: To server: pG, [13:50:57]CommunicateWithHost lk.salyk.kg:30040 [13:50:57]ConnectInit lk.salyk.kg [13:50:57]written 0, free lines is 4095 [13:50:57]Connected sock=10 [13:50:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 AA 56 24 01 79 36 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 3F FF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C3 26 01 00 35 04 06 00 A5 07 6A 1D A1 DF 52 14 44 4D 83 9B 1B 68 [13:50:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 80 AF 47 00 C9 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 39 36 33 33 32 33 10 04 04 00 C3 26 01 00 F4 03 04 00 1A A8 18 67 B6 04 01 00 00 4D 5E 5F 26 CE A9 D6 58 [13:50:57]CommunicateWithHost err = 0 [13:50:57]CheckOFDResponse [13:50:57]1017 (14) - 77093643461234 [13:50:57]1041 (16) - 0000000000963323 [13:50:57]1040 (4) - 75459 [13:50:57]1012 (4) - 23.10.2024 07:39 [13:50:57]1206 (1) - 0 [13:50:57]OFD Sender: Remove packet 75459 [13:50:57]ProducePacketName [13:50:57]name=ofd_packets/00075459 [13:50:57]NVStorageDeleteData [13:50:57]Write to MH i2c: 01 00 00 7C 09 85 [13:50:57]Write i2c OK [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: 01 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: 01 07 00 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: 01 07 00 7C 09 00 00 00 00 00 CB 0C 63 [13:50:57]RasterBufferAndPrint [13:50:57]line [13:50:57]line [13:50:57]line [13:50:57]line [13:50:57]line [13:50:57]written 0, free lines is 3278 [13:50:57]MH_Cut [13:50:57]Write to MH i2c: D1 01 00 83 09 01 5E [13:50:57]Write i2c OK [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: D1 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: D1 01 00 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: D1 01 00 83 09 00 5D [13:50:57]Write to MH i2c: 01 00 00 84 09 8D [13:50:57]Write i2c OK [13:50:57]MH_I2C_Read... [13:50:58]OFD Sender: No OFD packet to send [13:50:58]*** Cut start [13:50:58]*** Partial cut [13:50:58]*** CUTSNS_PIN = 1 [13:50:58]*** CUTSNS_PIN = 0 [13:50:58]*** Brake cut motor [13:50:59]Read from MH i2c: 01 [13:50:59]MH_I2C_Read... [13:50:59]*** Stop cut motor [13:50:59]*** Cut end [13:50:59]Read from MH i2c: 01 07 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: 01 07 00 84 09 00 00 00 00 00 FF 0F A2 [13:50:59]process_action close_receipt done [13:50:59]requested_data is exist [13:50:59]produce_requested_data [13:50:59]requested_item fm.sn is exist - process it [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 11 00 00 [13:50:59]Write to MH i2c: E2 08 00 85 09 80 11 00 00 00 00 00 00 08 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 17 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 17 00 85 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 55 [13:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:50:59]wFMCommunicate OK [13:50:59]requested_item fd.num is exist - process it [13:50:59]SAM_PROTO_GetFieldsCounters [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 13 00 00 [13:50:59]Write to MH i2c: E2 08 00 86 09 80 13 00 00 00 00 00 00 0B [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 62 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 62 00 86 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C3 26 01 00 0E 04 04 00 AD 00 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 F6 [13:50:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C3 26 01 00 0E 04 04 00 AD 00 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 [13:50:59]wFMCommunicate OK [13:50:59]SAM_PROTO_GetFieldsCounters done [13:50:59]requested_item shift.num is exist - process it [13:50:59]requested_item shift.opened is exist - process it [13:50:59]req_shift_opened [13:50:59]FM_GetShiftState [13:50:59]SAM_PROTO_GetShiftState [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 13 01 00 [13:50:59]Write to MH i2c: E2 08 00 87 09 80 13 01 00 00 00 00 00 0D [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 0E 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 0E 00 87 09 00 09 00 01 99 41 18 67 00 00 00 00 90 00 72 [13:50:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:50:59]wFMCommunicate OK [13:50:59]SAM_PROTO_GetShiftState done [13:50:59]FM_GetShiftState done [13:50:59]req_shift_opened done [13:50:59]requested_item shift.open_date is exist - process it [13:50:59]req_shift_open_date [13:50:59]req_shift_open_date done [13:50:59]produce_requested_data done [13:50:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75459,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:50:59]process_action_free close_receipt [13:50:59]json_value_free [13:50:59]json_value_free done [13:50:59]process_json_proto returns [13:50:59]Send response to host [13:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75459,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:50:59]free response buf [13:50:59]execute_script done [13:50:59]execute_script returns [13:50:59]free content buf [13:50:59]Sock 8.Close socket [13:50:59]Sock 8.Thread stoped [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]accept exits with 9 [13:53:58]New connection [13:53:58]New thread 3066465636 created [13:53:58]Thread 3066608996 joined [13:53:58]Waiting for new connection... [13:53:58] Sock 9.Parse request [13:53:58]Sock 9.Check first char [13:53:58]Sock 9.First char is OK [13:53:58]request: POST /json_proto HTTP/1.0 [13:53:58]Method: POST [13:53:58]URL: /json_proto [13:53:58]Method is POST - this is cgi request [13:53:58]url: /json_proto [13:53:58]query_string will be loaded in cgi processing [13:53:58]execute_cgi json_proto POST (null) [13:53:58]execute_cgi path=json_proto method=POST [13:53:58]POST find Content-Length [13:53:58]Host: 172.17.44.196:8080 [13:53:58]Content-Length: 791 [13:53:58]Content-Type: application/json [13:53:58] [13:53:58]POST finish read [13:53:58]Found Content-Length = 791 [13:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 131.100, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:58]execute_script... [13:53: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)1965571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 131.100, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:58]POST & json_proto [13:53:58]process_json_proto [13:53:58]json parsed OK: [13:53:58]protocol is kg_v1.0 [13:53:58]action value=close_receipt [13:53:58]process_action close_receipt [13:53:58]cmd_close_receipt [13:53:58]MH_GetDate [13:53:58]Write to MH i2c: F0 00 00 88 09 80 [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: F0 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: F0 09 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: F0 09 00 88 09 00 F6 FF 18 67 E7 19 F8 65 5A [13:53:58]GetLastDocTimeStamp 1729691455 [13:53:58]current date 1729691638 [13:53:58]FM_GetShiftState [13:53:58]SAM_PROTO_GetShiftState [13:53:58]wFMCommunicate request_size=4 [13:53:58]MH_SAM_APDU [13:53:58]CAPDU: 80 13 01 00 [13:53:58]Write to MH i2c: E2 08 00 89 09 80 13 01 00 00 00 00 00 0F [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:58]Read from MH i2c: E2 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 0E 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 0E 00 89 09 00 09 00 01 99 41 18 67 00 00 00 00 90 00 74 [13:53:58]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:53:58]wFMCommunicate OK [13:53:58]SAM_PROTO_GetShiftState done [13:53:58]FM_GetShiftState done [13:53:58]opened in 1729642905 [13:53:58]opened+sec_in_day 1729729305 [13:53:58]quantity*price = 0 [13:53:58]sum+1 = 1 [13:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 193 23.10.2024 13:53 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: Топливная Карта 53608 ФМ: 0000000000963323 ФД: 75460 ФПД: 227554776774632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135358&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75460&fm=227554776774632&tin=02508201610067®Number=0000000000161154&sum=0 [13:53:59]StoreToDocumentArchive [13:53:59]shift 173 fd 75460 [13:53:59]save to /storage/0173/doc_00075460 [13:53:59]save last doc name /storage/0173/doc_00075460 to /storage/kkm_last_doc_name [13:53:59]save OK [13:53:59]Clear old archive folders... [13:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:59]tlvbuf is 00771C50 [13:53:59]SAM_PROTO_ClearQueue [13:53:59]wFMCommunicate request_size=4 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 09 00 00 [13:53:59]Write to MH i2c: E2 08 00 96 09 80 09 00 00 00 00 00 00 11 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 96 09 00 90 00 13 [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]SAM_PROTO_ClearQueue done [13:53:59]KKMCreateOFDPacket [13:53:59]OFDProtocolAddRootSTLVToBuf [13:53:59]FM_MakeSignedData [13:53:59]FM_MakeSignedData [13:53:59]SAM_PROTO_SignData [13:53:59]wFMCommunicate request_size=4 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 0D 01 02 [13:53:59]Write to MH i2c: E2 08 00 97 09 80 0D 01 02 00 00 00 00 19 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 97 09 00 90 00 14 [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]wFMCommunicate request_size=255 [13:53:59]MH_SAM_APDU [13:53: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 1C 00 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 F6 FF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C4 26 01 00 35 04 06 00 CE F5 B9 A2 [13:53:59]Write to MH i2c: E2 02 01 98 09 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 1C 00 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 F6 FF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C4 26 01 00 35 04 06 00 CE F5 B9 A2 00 00 72 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 98 09 00 90 00 15 [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]wFMCommunicate request_size=7 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 0D 02 02 02 F7 E8 [13:53:59]Write to MH i2c: E2 0A 00 99 09 80 0D 02 02 02 00 F7 E8 00 00 FF [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 99 09 00 90 00 16 [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]wFMCommunicate request_size=4 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 0D 03 02 [13:53:59]Write to MH i2c: E2 08 00 9A 09 80 0D 03 02 00 00 00 00 1E [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 0B 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 0B 00 9A 09 00 BC 90 E4 EE 91 48 CF CB 90 00 B0 [13:53:59]RAPDU: BC 90 E4 EE 91 48 CF CB 90 00 [13:53:59]wFMCommunicate OK [13:53:59]SAM_PROTO_SignData done [13:53:59]FM_MakeSignedData done [13:53:59]CreateOFDProtocolMessage [13:53:59]wFMCommunicate request_size=4 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 11 00 00 [13:53:59]Write to MH i2c: E2 08 00 9B 09 80 11 00 00 00 00 00 00 1E [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 17 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 17 00 9B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6B [13:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:53:59]wFMCommunicate OK [13:53:59]CreateOFDProtocolMessage done [13:53:59]OFDSenderStorePacket 75460 [13:53:59]StoreOFDPacket docnum=75460 [13:53:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 AA 92 04 01 A1 E3 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 1C 00 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 F6 FF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C4 26 01 00 35 04 06 00 CE F5 B9 A2 F7 E8 BC 90 E4 EE 91 48 CF CB [13:53:59]CheckFolder [13:53:59]dirname=/storage/ofd_packets [13:53:59]CheckFolder done [13:53:59]ProducePacketName [13:53:59]name=ofd_packets/00075460 [13:53:59]NVStorageSaveData ofd_packets/00075460 [13:53:59]File name is /storage/ofd_packets/00075460 [13:53:59]Write 298 bytes [13:53:59]NVStorageSaveData done [13:53:59]OFDSenderStorePacket done [13:53:59]KKMCreateOFDPacket done [13:53:59]NVStorageSaveData kkm_last_timestamp [13:53:59]File name is /storage/kkm_last_timestamp [13:53:59]Write 4 bytes [13:53:59]NVStorageSaveData done [13:53:59]ExternCall_PrintAddStr [13:53:59]wPrintStart [13:53:59]Write to MH i2c: 01 00 00 9C 09 A5 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: 01 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: 01 07 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: 01 07 00 9C 09 00 00 00 00 00 FF 0F BA [13:53:59]RasterBufferAndPrint [13:53:59]line Счет N : (1)1965571 [13:53:59]line ИНН: 02508201610067 [13:53:59]line Контрольно-Кассовый Чек [13:53:59]line ПРОДАЖА [13:53:59]line ТРК (МРК, ГНК) : 31 [13:53:59]line Товар: 2710194210 [13:53:59]line ДТ-К-5 [13:53:59]line 131.100 * 0.00 [13:53:59]line = 0.00 [13:53:59]line НДС 12% НСП 1% [13:53:59]line > о реализуемом товаре [13:53:59]line ИТОГО: 0.00 [13:53:59]line НСП 1% : 0.00 [13:53:59]line НДС 12% : 0.00 [13:53:59]line Наличными: 0.00 [13:53:59]line Безнал.: 0.00 [13:53:59]line Место: АЗС № 133 "Партнер Нефть" [13:53:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:53:59]line СНО: Общий режим [13:53:59]line Чек 193 23.10.2024 13:53 [13:53:59]line Смена: 173 ФФД: 1.0 [13:53:59]line ЗНМ: 0300000020 [13:53:59]line РНМ: 0000000000161154 [13:53:59]line Версия ККМ: v1.0 [13:53:59]line Талоны: Топливная Карта [13:53:59]line 53608 [13:53:59]line ФМ: 0000000000963323 [13:53:59]line ФД: 75460 [13:53:59]line ФПД: 227554776774632 [13:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135358&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75460&fm=227554776774632&tin=02508201610067®Number=0000000000161154&sum=0 [13:54:00]OFD Sender: Processing packet 75460 [packets to send 16, broken 15] [13:54:00]ProducePacketName [13:54:00]name=ofd_packets/00075460 [13:54:00]OFD Sender: To server: pG, [13:54:00]CommunicateWithHost lk.salyk.kg:30040 [13:54:00]ConnectInit lk.salyk.kg [13:54:00]written 0, free lines is 4095 [13:54:00]Connected sock=10 [13:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 AA 92 04 01 A1 E3 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 1C 00 02 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 F6 FF 18 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C4 26 01 00 35 04 06 00 CE F5 B9 A2 F7 E8 BC 90 E4 EE 91 48 CF CB [13:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 74 2C 47 00 B7 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 39 36 33 33 32 33 10 04 04 00 C4 26 01 00 F4 03 04 00 D1 A8 18 67 B6 04 01 00 00 30 17 93 5B F8 B7 9D 34 [13:54:00]CommunicateWithHost err = 0 [13:54:00]CheckOFDResponse [13:54:00]1017 (14) - 77093643461234 [13:54:00]1041 (16) - 0000000000963323 [13:54:00]1040 (4) - 75460 [13:54:00]1012 (4) - 23.10.2024 07:42 [13:54:00]1206 (1) - 0 [13:54:00]OFD Sender: Remove packet 75460 [13:54:00]ProducePacketName [13:54:00]name=ofd_packets/00075460 [13:54:00]NVStorageDeleteData [13:54:00]Write to MH i2c: 01 00 00 C5 09 CE [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 07 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 BB 0C 9C [13:54:00]RasterBufferAndPrint [13:54:00]line [13:54:00]line [13:54:00]line [13:54:00]line [13:54:00]line [13:54:00]written 0, free lines is 3263 [13:54:00]MH_Cut [13:54:00]Write to MH i2c: D1 01 00 CC 09 01 A7 [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: D1 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: D1 01 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: D1 01 00 CC 09 00 A6 [13:54:00]Write to MH i2c: 01 00 00 CD 09 D6 [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]OFD Sender: No OFD packet to send [13:54:01]*** Cut start [13:54:01]*** Partial cut [13:54:01]*** CUTSNS_PIN = 1 [13:54:01]*** CUTSNS_PIN = 0 [13:54:01]*** Brake cut motor [13:54:02]Read from MH i2c: 01 [13:54:02]MH_I2C_Read... [13:54:02]*** Stop cut motor [13:54:02]*** Cut end [13:54:02]Read from MH i2c: 01 07 00 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: 01 07 00 CD 09 00 00 00 00 00 FF 0F EB [13:54:02]process_action close_receipt done [13:54:02]requested_data is exist [13:54:02]produce_requested_data [13:54:02]requested_item fm.sn is exist - process it [13:54:02]wFMCommunicate request_size=4 [13:54:02]MH_SAM_APDU [13:54:02]CAPDU: 80 11 00 00 [13:54:02]Write to MH i2c: E2 08 00 CE 09 80 11 00 00 00 00 00 00 51 [13:54:02]Write i2c OK [13:54:02]MH_I2C_Read... [13:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:02]Read from MH i2c: E2 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 17 00 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 17 00 CE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9E [13:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:54:02]wFMCommunicate OK [13:54:02]requested_item fd.num is exist - process it [13:54:02]SAM_PROTO_GetFieldsCounters [13:54:02]wFMCommunicate request_size=4 [13:54:02]MH_SAM_APDU [13:54:02]CAPDU: 80 13 00 00 [13:54:02]Write to MH i2c: E2 08 00 CF 09 80 13 00 00 00 00 00 00 54 [13:54:02]Write i2c OK [13:54:02]MH_I2C_Read... [13:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:02]Read from MH i2c: E2 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 62 00 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 62 00 CF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C4 26 01 00 0E 04 04 00 AD 00 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 43 [13:54:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C4 26 01 00 0E 04 04 00 AD 00 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 [13:54:02]wFMCommunicate OK [13:54:02]SAM_PROTO_GetFieldsCounters done [13:54:02]requested_item shift.num is exist - process it [13:54:02]requested_item shift.opened is exist - process it [13:54:02]req_shift_opened [13:54:02]FM_GetShiftState [13:54:02]SAM_PROTO_GetShiftState [13:54:02]wFMCommunicate request_size=4 [13:54:02]MH_SAM_APDU [13:54:02]CAPDU: 80 13 01 00 [13:54:02]Write to MH i2c: E2 08 00 D0 09 80 13 01 00 00 00 00 00 56 [13:54:02]Write i2c OK [13:54:02]MH_I2C_Read... [13:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:02]Read from MH i2c: E2 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 0E 00 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 0E 00 D0 09 00 09 00 01 99 41 18 67 00 00 00 00 90 00 BB [13:54:02]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:54:02]wFMCommunicate OK [13:54:02]SAM_PROTO_GetShiftState done [13:54:02]FM_GetShiftState done [13:54:02]req_shift_opened done [13:54:02]requested_item shift.open_date is exist - process it [13:54:02]req_shift_open_date [13:54:02]req_shift_open_date done [13:54:02]produce_requested_data done [13:54:02]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75460,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:54:02]process_action_free close_receipt [13:54:02]json_value_free [13:54:02]json_value_free done [13:54:02]process_json_proto returns [13:54:02]Send response to host [13:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75460,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:54:02]free response buf [13:54:02]execute_script done [13:54:02]execute_script returns [13:54:02]free content buf [13:54:02]Sock 9.Close socket [13:54:02]Sock 9.Thread stoped [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:27]accept exits with 8 [13:56:27]New connection [13:56:27]New thread 3066608996 created [13:56:27]Thread 3066465636 joined [13:56:27]Waiting for new connection... [13:56:27] Sock 8.Parse request [13:56:27]Sock 8.Check first char [13:56:27]Sock 8.First char is OK [13:56:27]request: POST /json_proto HTTP/1.0 [13:56:27]Method: POST [13:56:27]URL: /json_proto [13:56:27]Method is POST - this is cgi request [13:56:27]url: /json_proto [13:56:27]query_string will be loaded in cgi processing [13:56:27]execute_cgi json_proto POST (null) [13:56:27]execute_cgi path=json_proto method=POST [13:56:27]POST find Content-Length [13:56:27]Host: 172.17.44.196:8080 [13:56:27]Content-Length: 790 [13:56:27]Content-Type: application/json [13:56:27] [13:56:27]POST finish read [13:56:27]Found Content-Length = 790 [13:56:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 64.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:27]execute_script... [13:56: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)1965577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 64.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:27]POST & json_proto [13:56:27]process_json_proto [13:56:27]json parsed OK: [13:56:27]protocol is kg_v1.0 [13:56:27]action value=close_receipt [13:56:27]process_action close_receipt [13:56:27]cmd_close_receipt [13:56:27]MH_GetDate [13:56:27]Write to MH i2c: F0 00 00 D1 09 C9 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: F0 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: F0 09 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: F0 09 00 D1 09 00 8C 00 19 67 E7 19 F8 65 3B [13:56:27]GetLastDocTimeStamp 1729691638 [13:56:27]current date 1729691788 [13:56:27]FM_GetShiftState [13:56:27]SAM_PROTO_GetShiftState [13:56:27]wFMCommunicate request_size=4 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 13 01 00 [13:56:27]Write to MH i2c: E2 08 00 D2 09 80 13 01 00 00 00 00 00 58 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 0E 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 0E 00 D2 09 00 09 00 01 99 41 18 67 00 00 00 00 90 00 BD [13:56:27]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:56:27]wFMCommunicate OK [13:56:27]SAM_PROTO_GetShiftState done [13:56:27]FM_GetShiftState done [13:56:27]opened in 1729642905 [13:56:27]opened+sec_in_day 1729729305 [13:56:27]quantity*price = 0 [13:56:27]sum+1 = 1 [13:56:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 194 23.10.2024 13:56 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: Топливная Карта 53608 ФМ: 0000000000963323 ФД: 75461 ФПД: 191776179273021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135628&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75461&fm=191776179273021&tin=02508201610067®Number=0000000000161154&sum=0 [13:56:28]StoreToDocumentArchive [13:56:28]shift 173 fd 75461 [13:56:28]save to /storage/0173/doc_00075461 [13:56:28]save last doc name /storage/0173/doc_00075461 to /storage/kkm_last_doc_name [13:56:28]save OK [13:56:28]Clear old archive folders... [13:56:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:56:28]tlvbuf is 00759A00 [13:56:28]SAM_PROTO_ClearQueue [13:56:28]wFMCommunicate request_size=4 [13:56:28]MH_SAM_APDU [13:56:28]CAPDU: 80 09 00 00 [13:56:28]Write to MH i2c: E2 08 00 DF 09 80 09 00 00 00 00 00 00 5A [13:56:28]Write i2c OK [13:56:28]MH_I2C_Read... [13:56:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:28]Read from MH i2c: E2 [13:56:28]MH_I2C_Read... [13:56:28]Read from MH i2c: E2 03 00 [13:56:28]MH_I2C_Read... [13:56:28]Read from MH i2c: E2 03 00 DF 09 00 90 00 5C [13:56:28]RAPDU: 90 00 [13:56:28]wFMCommunicate OK [13:56:28]SAM_PROTO_ClearQueue done [13:56:28]KKMCreateOFDPacket [13:56:28]OFDProtocolAddRootSTLVToBuf [13:56:28]FM_MakeSignedData [13:56:28]FM_MakeSignedData [13:56:28]SAM_PROTO_SignData [13:56:28]wFMCommunicate request_size=4 [13:56:28]MH_SAM_APDU [13:56:28]CAPDU: 80 0D 01 02 [13:56:28]Write to MH i2c: E2 08 00 E0 09 80 0D 01 02 00 00 00 00 62 [13:56:28]Write i2c OK [13:56:28]MH_I2C_Read... [13:56:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:28]Read from MH i2c: E2 [13:56:28]MH_I2C_Read... [13:56:28]Read from MH i2c: E2 03 00 [13:56:28]MH_I2C_Read... [13:56:28]Read from MH i2c: E2 03 00 E0 09 00 90 00 5D [13:56:28]RAPDU: 90 00 [13:56:28]wFMCommunicate OK [13:56:28]wFMCommunicate request_size=255 [13:56:28]MH_SAM_APDU [13:56:28]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 00 FA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8C 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C5 26 01 00 35 04 06 00 AE 6B 5F 0A [13:56:28]Write to MH i2c: E2 02 01 E1 09 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 00 FA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8C 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C5 26 01 00 35 04 06 00 AE 6B 5F 0A 00 00 95 [13:56:28]Write i2c OK [13:56:28]MH_I2C_Read... [13:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:29]Read from MH i2c: E2 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 03 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 03 00 E1 09 00 90 00 5E [13:56:29]RAPDU: 90 00 [13:56:29]wFMCommunicate OK [13:56:29]wFMCommunicate request_size=7 [13:56:29]MH_SAM_APDU [13:56:29]CAPDU: 80 0D 02 02 02 BD 3D [13:56:29]Write to MH i2c: E2 0A 00 E2 09 80 0D 02 02 02 00 BD 3D 00 00 63 [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:29]Read from MH i2c: E2 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 03 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 03 00 E2 09 00 90 00 5F [13:56:29]RAPDU: 90 00 [13:56:29]wFMCommunicate OK [13:56:29]wFMCommunicate request_size=4 [13:56:29]MH_SAM_APDU [13:56:29]CAPDU: 80 0D 03 02 [13:56:29]Write to MH i2c: E2 08 00 E3 09 80 0D 03 02 00 00 00 00 67 [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:29]Read from MH i2c: E2 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 0B 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 0B 00 E3 09 00 91 42 F0 E3 BF EA EA D3 90 00 74 [13:56:29]RAPDU: 91 42 F0 E3 BF EA EA D3 90 00 [13:56:29]wFMCommunicate OK [13:56:29]SAM_PROTO_SignData done [13:56:29]FM_MakeSignedData done [13:56:29]CreateOFDProtocolMessage [13:56:29]wFMCommunicate request_size=4 [13:56:29]MH_SAM_APDU [13:56:29]CAPDU: 80 11 00 00 [13:56:29]Write to MH i2c: E2 08 00 E4 09 80 11 00 00 00 00 00 00 67 [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:29]Read from MH i2c: E2 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 17 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 17 00 E4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B4 [13:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:56:29]wFMCommunicate OK [13:56:29]CreateOFDProtocolMessage done [13:56:29]OFDSenderStorePacket 75461 [13:56:29]StoreOFDPacket docnum=75461 [13:56:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 53 3E 04 01 96 A4 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 00 FA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8C 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C5 26 01 00 35 04 06 00 AE 6B 5F 0A BD 3D 91 42 F0 E3 BF EA EA D3 [13:56:29]CheckFolder [13:56:29]dirname=/storage/ofd_packets [13:56:29]CheckFolder done [13:56:29]ProducePacketName [13:56:29]name=ofd_packets/00075461 [13:56:29]NVStorageSaveData ofd_packets/00075461 [13:56:29]File name is /storage/ofd_packets/00075461 [13:56:29]Write 298 bytes [13:56:29]NVStorageSaveData done [13:56:29]OFDSenderStorePacket done [13:56:29]KKMCreateOFDPacket done [13:56:29]NVStorageSaveData kkm_last_timestamp [13:56:29]File name is /storage/kkm_last_timestamp [13:56:29]Write 4 bytes [13:56:29]NVStorageSaveData done [13:56:29]ExternCall_PrintAddStr [13:56:29]wPrintStart [13:56:29]Write to MH i2c: 01 00 00 E5 09 EE [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: 01 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: 01 07 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: 01 07 00 E5 09 00 00 00 00 00 FF 0F 03 [13:56:29]RasterBufferAndPrint [13:56:29]line Счет N : (1)1965577 [13:56:29]line ИНН: 02508201610067 [13:56:29]line Контрольно-Кассовый Чек [13:56:29]line ПРОДАЖА [13:56:29]line ТРК (МРК, ГНК) : 31 [13:56:29]line Товар: 2710194210 [13:56:29]line ДТ-К-5 [13:56:29]line 64.000 * 0.00 [13:56:29]line = 0.00 [13:56:29]line НДС 12% НСП 1% [13:56:29]line > о реализуемом товаре [13:56:29]line ИТОГО: 0.00 [13:56:29]line НСП 1% : 0.00 [13:56:29]line НДС 12% : 0.00 [13:56:29]line Наличными: 0.00 [13:56:29]line Безнал.: 0.00 [13:56:29]line Место: АЗС № 133 "Партнер Нефть" [13:56:29]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:56:29]line СНО: Общий режим [13:56:29]line Чек 194 23.10.2024 13:56 [13:56:29]line Смена: 173 ФФД: 1.0 [13:56:29]line ЗНМ: 0300000020 [13:56:29]line РНМ: 0000000000161154 [13:56:29]line Версия ККМ: v1.0 [13:56:29]line Талоны: Топливная Карта [13:56:29]line 53608 [13:56:29]line ФМ: 0000000000963323 [13:56:29]line ФД: 75461 [13:56:29]line ФПД: 191776179273021 [13:56:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135628&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75461&fm=191776179273021&tin=02508201610067®Number=0000000000161154&sum=0 [13:56:29]OFD Sender: Processing packet 75461 [packets to send 16, broken 15] [13:56:29]ProducePacketName [13:56:29]name=ofd_packets/00075461 [13:56:29]OFD Sender: To server: pG, [13:56:29]CommunicateWithHost lk.salyk.kg:30040 [13:56:29]ConnectInit lk.salyk.kg [13:56:29]written 0, free lines is 4095 [13:56:29]Connected sock=10 [13:56:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 53 3E 04 01 96 A4 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 00 FA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8C 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C5 26 01 00 35 04 06 00 AE 6B 5F 0A BD 3D 91 42 F0 E3 BF EA EA D3 [13:56:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 20 74 47 00 18 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 39 36 33 33 32 33 10 04 04 00 C5 26 01 00 F4 03 04 00 66 A9 18 67 B6 04 01 00 00 FF C1 9E B1 3B 64 99 84 [13:56:29]CommunicateWithHost err = 0 [13:56:29]CheckOFDResponse [13:56:29]1017 (14) - 77093643461234 [13:56:29]1041 (16) - 0000000000963323 [13:56:29]1040 (4) - 75461 [13:56:29]1012 (4) - 23.10.2024 07:44 [13:56:29]1206 (1) - 0 [13:56:29]OFD Sender: Remove packet 75461 [13:56:29]ProducePacketName [13:56:29]name=ofd_packets/00075461 [13:56:29]NVStorageDeleteData [13:56:30]Write to MH i2c: 01 00 00 0E 0A 18 [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: 01 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: 01 07 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: 01 07 00 0E 0A 00 00 00 00 00 C4 0C EF [13:56:30]RasterBufferAndPrint [13:56:30]line [13:56:30]line [13:56:30]line [13:56:30]line [13:56:30]line [13:56:30]written 0, free lines is 3272 [13:56:30]MH_Cut [13:56:30]Write to MH i2c: D1 01 00 15 0A 01 F1 [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: D1 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: D1 01 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: D1 01 00 15 0A 00 F0 [13:56:30]Write to MH i2c: 01 00 00 16 0A 20 [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]OFD Sender: No OFD packet to send [13:56:30]*** Cut start [13:56:30]*** Partial cut [13:56:30]*** CUTSNS_PIN = 1 [13:56:30]*** CUTSNS_PIN = 0 [13:56:31]*** Brake cut motor [13:56:31]Read from MH i2c: 01 [13:56:31]MH_I2C_Read... [13:56:31]*** Stop cut motor [13:56:31]*** Cut end [13:56:31]Read from MH i2c: 01 07 00 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: 01 07 00 16 0A 00 00 00 00 00 FF 0F 35 [13:56:31]process_action close_receipt done [13:56:31]requested_data is exist [13:56:31]produce_requested_data [13:56:31]requested_item fm.sn is exist - process it [13:56:31]wFMCommunicate request_size=4 [13:56:31]MH_SAM_APDU [13:56:31]CAPDU: 80 11 00 00 [13:56:31]Write to MH i2c: E2 08 00 17 0A 80 11 00 00 00 00 00 00 9B [13:56:31]Write i2c OK [13:56:31]MH_I2C_Read... [13:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:31]Read from MH i2c: E2 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: E2 17 00 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: E2 17 00 17 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E8 [13:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:56:31]wFMCommunicate OK [13:56:31]requested_item fd.num is exist - process it [13:56:31]SAM_PROTO_GetFieldsCounters [13:56:31]wFMCommunicate request_size=4 [13:56:31]MH_SAM_APDU [13:56:31]CAPDU: 80 13 00 00 [13:56:31]Write to MH i2c: E2 08 00 18 0A 80 13 00 00 00 00 00 00 9E [13:56:31]Write i2c OK [13:56:31]MH_I2C_Read... [13:56:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:31]Read from MH i2c: E2 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: E2 62 00 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: E2 62 00 18 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C5 26 01 00 0E 04 04 00 AD 00 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 91 [13:56:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C5 26 01 00 0E 04 04 00 AD 00 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 [13:56:31]wFMCommunicate OK [13:56:31]SAM_PROTO_GetFieldsCounters done [13:56:31]requested_item shift.num is exist - process it [13:56:31]requested_item shift.opened is exist - process it [13:56:31]req_shift_opened [13:56:31]FM_GetShiftState [13:56:31]SAM_PROTO_GetShiftState [13:56:31]wFMCommunicate request_size=4 [13:56:31]MH_SAM_APDU [13:56:31]CAPDU: 80 13 01 00 [13:56:31]Write to MH i2c: E2 08 00 19 0A 80 13 01 00 00 00 00 00 A0 [13:56:31]Write i2c OK [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: E2 [13:56:31]MH_I2C_Read... [13:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:31]Read from MH i2c: E2 0E 00 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: E2 0E 00 19 0A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 05 [13:56:31]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:56:31]wFMCommunicate OK [13:56:31]SAM_PROTO_GetShiftState done [13:56:31]FM_GetShiftState done [13:56:31]req_shift_opened done [13:56:31]requested_item shift.open_date is exist - process it [13:56:31]req_shift_open_date [13:56:31]req_shift_open_date done [13:56:31]produce_requested_data done [13:56:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75461,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:56:31]process_action_free close_receipt [13:56:31]json_value_free [13:56:31]json_value_free done [13:56:31]process_json_proto returns [13:56:31]Send response to host [13:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75461,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:56:31]free response buf [13:56:31]execute_script done [13:56:31]execute_script returns [13:56:31]free content buf [13:56:31]Sock 8.Close socket [13:56:31]Sock 8.Thread stoped [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:44]accept exits with 9 [13:56:44]New connection [13:56:44]New thread 3066465636 created [13:56:44]Thread 3066608996 joined [13:56:44]Waiting for new connection... [13:56:44] Sock 9.Parse request [13:56:44]Sock 9.Check first char [13:56:44]Sock 9.First char is OK [13:56:44]request: POST /json_proto HTTP/1.0 [13:56:44]Method: POST [13:56:44]URL: /json_proto [13:56:44]Method is POST - this is cgi request [13:56:44]url: /json_proto [13:56:44]query_string will be loaded in cgi processing [13:56:44]execute_cgi json_proto POST (null) [13:56:44]execute_cgi path=json_proto method=POST [13:56:44]POST find Content-Length [13:56:44]Host: 172.17.44.196:8080 [13:56:44]Content-Length: 678 [13:56:44]Content-Type: application/json [13:56:44] [13:56:44]POST finish read [13:56:44]Found Content-Length = 678 [13:56:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273255", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:44]execute_script... [13:56: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 : (3)273255", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:44]POST & json_proto [13:56:44]process_json_proto [13:56:44]json parsed OK: [13:56:44]protocol is kg_v1.0 [13:56:44]action value=close_receipt [13:56:44]process_action close_receipt [13:56:44]cmd_close_receipt [13:56:44]MH_GetDate [13:56:44]Write to MH i2c: F0 00 00 1A 0A 13 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: F0 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: F0 09 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: F0 09 00 1A 0A 00 9C 00 19 67 E7 19 F8 65 95 [13:56:44]GetLastDocTimeStamp 1729691788 [13:56:44]current date 1729691804 [13:56:44]FM_GetShiftState [13:56:44]SAM_PROTO_GetShiftState [13:56:44]wFMCommunicate request_size=4 [13:56:44]MH_SAM_APDU [13:56:44]CAPDU: 80 13 01 00 [13:56:44]Write to MH i2c: E2 08 00 1B 0A 80 13 01 00 00 00 00 00 A2 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:44]Read from MH i2c: E2 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 0E 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 0E 00 1B 0A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 07 [13:56:44]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:56:44]wFMCommunicate OK [13:56:44]SAM_PROTO_GetShiftState done [13:56:44]FM_GetShiftState done [13:56:44]opened in 1729642905 [13:56:44]opened+sec_in_day 1729729305 [13:56:44]quantity*price = 11000 [13:56:44]sum+1 = 11001 [13:56:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 195 23.10.2024 13:56 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75462 ФПД: 13728356510286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135644&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75462&fm=13728356510286&tin=02508201610067®Number=0000000000161154&sum=11000 0 [13:56:45]StoreToDocumentArchive [13:56:45]shift 173 fd 75462 [13:56:45]save to /storage/0173/doc_00075462 [13:56:45]save last doc name /storage/0173/doc_00075462 to /storage/kkm_last_doc_name [13:56:45]save OK [13:56:45]Clear old archive folders... [13:56:45]ProcessDocumentItem done err = 0, tmpTLVsize=294 [13:56:45]tlvbuf is 00771960 [13:56:45]SAM_PROTO_ClearQueue [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 09 00 00 [13:56:45]Write to MH i2c: E2 08 00 28 0A 80 09 00 00 00 00 00 00 A4 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 28 0A 00 90 00 A6 [13:56:45]RAPDU: 90 00 [13:56:45]wFMCommunicate OK [13:56:45]SAM_PROTO_ClearQueue done [13:56:45]KKMCreateOFDPacket [13:56:45]OFDProtocolAddRootSTLVToBuf [13:56:45]FM_MakeSignedData [13:56:45]FM_MakeSignedData [13:56:45]SAM_PROTO_SignData [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 0D 01 02 [13:56:45]Write to MH i2c: E2 08 00 29 0A 80 0D 01 02 00 00 00 00 AC [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 29 0A 00 90 00 A7 [13:56:45]RAPDU: 90 00 [13:56:45]wFMCommunicate OK [13:56:45]wFMCommunicate request_size=255 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 9C 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [13:56:45]Write to MH i2c: E2 02 01 2A 0A 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 9C 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 FE [13:56:45]OFD Sender: No OFD packet to send [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 2A 0A 00 90 00 A8 [13:56:45]RAPDU: 90 00 [13:56:45]wFMCommunicate OK [13:56:45]wFMCommunicate request_size=53 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 0D 02 02 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C6 26 01 00 35 04 06 00 0C 7C 61 D0 2A 4E [13:56:45]Write to MH i2c: E2 38 00 2B 0A 80 0D 02 02 30 00 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C6 26 01 00 35 04 06 00 0C 7C 61 D0 2A 4E 00 00 B5 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 03 00 2B 0A 00 90 00 A9 [13:56:45]RAPDU: 90 00 [13:56:45]wFMCommunicate OK [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 0D 03 02 [13:56:45]Write to MH i2c: E2 08 00 2C 0A 80 0D 03 02 00 00 00 00 B1 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 0B 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 0B 00 2C 0A 00 67 59 3D 51 9B 54 64 98 90 00 EB [13:56:45]RAPDU: 67 59 3D 51 9B 54 64 98 90 00 [13:56:45]wFMCommunicate OK [13:56:45]SAM_PROTO_SignData done [13:56:45]FM_MakeSignedData done [13:56:45]CreateOFDProtocolMessage [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 11 00 00 [13:56:45]Write to MH i2c: E2 08 00 2D 0A 80 11 00 00 00 00 00 00 B1 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 17 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 17 00 2D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FE [13:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:56:45]wFMCommunicate OK [13:56:45]CreateOFDProtocolMessage done [13:56:45]OFDSenderStorePacket 75462 [13:56:45]StoreOFDPacket docnum=75462 [13:56:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3A 01 00 00 9A 01 32 01 B0 C1 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 9C 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C6 26 01 00 35 04 06 00 0C 7C 61 D0 2A 4E 67 59 3D 51 9B 54 64 98 [13:56:45]CheckFolder [13:56:45]dirname=/storage/ofd_packets [13:56:45]CheckFolder done [13:56:45]ProducePacketName [13:56:45]name=ofd_packets/00075462 [13:56:45]NVStorageSaveData ofd_packets/00075462 [13:56:45]File name is /storage/ofd_packets/00075462 [13:56:45]Write 344 bytes [13:56:45]NVStorageSaveData done [13:56:45]OFDSenderStorePacket done [13:56:45]KKMCreateOFDPacket done [13:56:45]NVStorageSaveData kkm_last_timestamp [13:56:45]File name is /storage/kkm_last_timestamp [13:56:45]Write 4 bytes [13:56:45]NVStorageSaveData done [13:56:45]ExternCall_PrintAddStr [13:56:45]wPrintStart [13:56:45]Write to MH i2c: 01 00 00 2E 0A 38 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: 01 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: 01 07 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: 01 07 00 2E 0A 00 00 00 00 00 FF 0F 4D [13:56:45]RasterBufferAndPrint [13:56:45]line Счет N : (3)273255 [13:56:45]line ИНН: 02508201610067 [13:56:45]line Контрольно-Кассовый Чек [13:56:45]line ПРОДАЖА [13:56:45]line Товар: 4870022003312 [13:56:45]line Gorilla эн нап манго-кокос 0,45 ж/б [13:56:45]line 1.000 * 110.00 [13:56:45]line = 110.00 [13:56:45]line НДС 12% НСП 1% [13:56:45]line > о реализуемом товаре [13:56:45]line ИТОГО: 110.00 [13:56:45]line НСП 1% : 0.97 [13:56:45]line НДС 12% : 11.68 [13:56:45]line Наличными: 110.00 [13:56:45]line Безнал.: 0.00 [13:56:45]line Место: АЗС № 133 "Партнер Нефть" [13:56:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:56:45]line СНО: Общий режим [13:56:45]line Чек 195 23.10.2024 13:56 [13:56:45]line Смена: 173 ФФД: 1.0 [13:56:45]line ЗНМ: 0300000020 [13:56:45]line РНМ: 0000000000161154 [13:56:45]line Версия ККМ: v1.0 [13:56:45]line ФМ: 0000000000963323 [13:56:45]line ФД: 75462 [13:56:45]line ФПД: 13728356510286 [13:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135644&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75462&fm=13728356510286&tin=02508201610067®Number=0000000000161154&sum=11000 [13:56:46]OFD Sender: Processing packet 75462 [packets to send 16, broken 15] [13:56:46]ProducePacketName [13:56:46]name=ofd_packets/00075462 [13:56:46]OFD Sender: To server: pG, [13:56:46]CommunicateWithHost lk.salyk.kg:30040 [13:56:46]ConnectInit lk.salyk.kg [13:56:46]line 0 [13:56:46]written 0, free lines is 4095 [13:56:46]Connected sock=10 [13:56:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3A 01 00 00 9A 01 32 01 B0 C1 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 9C 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C6 26 01 00 35 04 06 00 0C 7C 61 D0 2A 4E 67 59 3D 51 9B 54 64 98 [13:56:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 48 8A 47 00 DB AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C6 26 01 00 F4 03 04 00 77 A9 18 67 B6 04 01 00 00 3C E5 D0 B8 B5 B2 A6 17 [13:56:46]CommunicateWithHost err = 0 [13:56:46]CheckOFDResponse [13:56:46]1017 (14) - 77093643461234 [13:56:46]1041 (16) - 0000000000963323 [13:56:46]1040 (4) - 75462 [13:56:46]1012 (4) - 23.10.2024 07:44 [13:56:46]1206 (1) - 0 [13:56:46]OFD Sender: Remove packet 75462 [13:56:46]ProducePacketName [13:56:46]name=ofd_packets/00075462 [13:56:46]NVStorageDeleteData [13:56:46]Write to MH i2c: 01 00 00 56 0A 60 [13:56:46]Write i2c OK [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: 01 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: 01 07 00 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: 01 07 00 56 0A 00 00 00 00 00 D0 0C 43 [13:56:46]RasterBufferAndPrint [13:56:46]line [13:56:46]line [13:56:46]line [13:56:46]line [13:56:46]line [13:56:46]written 0, free lines is 3284 [13:56:46]MH_Cut [13:56:46]Write to MH i2c: D1 01 00 5D 0A 01 39 [13:56:46]Write i2c OK [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: D1 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: D1 01 00 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: D1 01 00 5D 0A 00 38 [13:56:46]Write to MH i2c: 01 00 00 5E 0A 68 [13:56:46]Write i2c OK [13:56:46]MH_I2C_Read... [13:56:47]OFD Sender: No OFD packet to send [13:56:47]*** Cut start [13:56:47]*** Partial cut [13:56:47]*** CUTSNS_PIN = 1 [13:56:47]*** CUTSNS_PIN = 0 [13:56:47]*** Brake cut motor [13:56:48]Read from MH i2c: 01 [13:56:48]MH_I2C_Read... [13:56:48]*** Stop cut motor [13:56:48]*** Cut end [13:56:48]Read from MH i2c: 01 07 00 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: 01 07 00 5E 0A 00 00 00 00 00 FF 0F 7D [13:56:48]process_action close_receipt done [13:56:48]requested_data is exist [13:56:48]produce_requested_data [13:56:48]requested_item fm.sn is exist - process it [13:56:48]wFMCommunicate request_size=4 [13:56:48]MH_SAM_APDU [13:56:48]CAPDU: 80 11 00 00 [13:56:48]Write to MH i2c: E2 08 00 5F 0A 80 11 00 00 00 00 00 00 E3 [13:56:48]Write i2c OK [13:56:48]MH_I2C_Read... [13:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:48]Read from MH i2c: E2 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: E2 17 00 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: E2 17 00 5F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 30 [13:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:56:48]wFMCommunicate OK [13:56:48]requested_item fd.num is exist - process it [13:56:48]SAM_PROTO_GetFieldsCounters [13:56:48]wFMCommunicate request_size=4 [13:56:48]MH_SAM_APDU [13:56:48]CAPDU: 80 13 00 00 [13:56:48]Write to MH i2c: E2 08 00 60 0A 80 13 00 00 00 00 00 00 E6 [13:56:48]Write i2c OK [13:56:48]MH_I2C_Read... [13:56:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:48]Read from MH i2c: E2 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: E2 62 00 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: E2 62 00 60 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C6 26 01 00 0E 04 04 00 AD 00 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 DD [13:56:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C6 26 01 00 0E 04 04 00 AD 00 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 [13:56:48]wFMCommunicate OK [13:56:48]SAM_PROTO_GetFieldsCounters done [13:56:48]requested_item shift.num is exist - process it [13:56:48]requested_item shift.opened is exist - process it [13:56:48]req_shift_opened [13:56:48]FM_GetShiftState [13:56:48]SAM_PROTO_GetShiftState [13:56:48]wFMCommunicate request_size=4 [13:56:48]MH_SAM_APDU [13:56:48]CAPDU: 80 13 01 00 [13:56:48]Write to MH i2c: E2 08 00 61 0A 80 13 01 00 00 00 00 00 E8 [13:56:48]Write i2c OK [13:56:48]MH_I2C_Read... [13:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:48]Read from MH i2c: E2 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: E2 0E 00 [13:56:48]MH_I2C_Read... [13:56:48]Read from MH i2c: E2 0E 00 61 0A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 4D [13:56:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:56:48]wFMCommunicate OK [13:56:48]SAM_PROTO_GetShiftState done [13:56:48]FM_GetShiftState done [13:56:48]req_shift_opened done [13:56:48]requested_item shift.open_date is exist - process it [13:56:48]req_shift_open_date [13:56:48]req_shift_open_date done [13:56:48]produce_requested_data done [13:56:48]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75462,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:56:48]process_action_free close_receipt [13:56:48]json_value_free [13:56:48]json_value_free done [13:56:48]process_json_proto returns [13:56:48]Send response to host [13:56:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75462,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:56:48]free response buf [13:56:48]execute_script done [13:56:48]execute_script returns [13:56:48]free content buf [13:56:48]Sock 9.Close socket [13:56:48]Sock 9.Thread stoped [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:17]accept exits with 8 [13:57:17]New connection [13:57:17]New thread 3066608996 created [13:57:17]Thread 3066465636 joined [13:57:17]Waiting for new connection... [13:57:17] Sock 8.Parse request [13:57:17]Sock 8.Check first char [13:57:17]Sock 8.First char is OK [13:57:17]request: POST /json_proto HTTP/1.0 [13:57:17]Method: POST [13:57:17]URL: /json_proto [13:57:17]Method is POST - this is cgi request [13:57:17]url: /json_proto [13:57:17]query_string will be loaded in cgi processing [13:57:17]execute_cgi json_proto POST (null) [13:57:17]execute_cgi path=json_proto method=POST [13:57:17]POST find Content-Length [13:57:17]Host: 172.17.44.196:8080 [13:57:17]Content-Length: 1058 [13:57:17]Content-Type: application/json [13:57:17] [13:57:17]POST finish read [13:57:17]Found Content-Length = 1058 [13:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273256", "tax_sys" : 0, "items" : [ { "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:17]execute_script... [13:57:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273256", "tax_sys" : 0, "items" : [ { "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:17]POST & json_proto [13:57:17]process_json_proto [13:57:17]json parsed OK: [13:57:17]protocol is kg_v1.0 [13:57:17]action value=close_receipt [13:57:17]process_action close_receipt [13:57:17]cmd_close_receipt [13:57:17]MH_GetDate [13:57:17]Write to MH i2c: F0 00 00 62 0A 5B [13:57:17]Write i2c OK [13:57:17]MH_I2C_Read... [13:57:17]Read from MH i2c: F0 [13:57:17]MH_I2C_Read... [13:57:17]Read from MH i2c: F0 09 00 [13:57:17]MH_I2C_Read... [13:57:17]Read from MH i2c: F0 09 00 62 0A 00 BD 00 19 67 E7 19 F8 65 FE [13:57:17]GetLastDocTimeStamp 1729691804 [13:57:17]current date 1729691837 [13:57:17]FM_GetShiftState [13:57:17]SAM_PROTO_GetShiftState [13:57:17]wFMCommunicate request_size=4 [13:57:17]MH_SAM_APDU [13:57:17]CAPDU: 80 13 01 00 [13:57:17]Write to MH i2c: E2 08 00 63 0A 80 13 01 00 00 00 00 00 EA [13:57:17]Write i2c OK [13:57:17]MH_I2C_Read... [13:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:17]Read from MH i2c: E2 [13:57:17]MH_I2C_Read... [13:57:17]Read from MH i2c: E2 0E 00 [13:57:17]MH_I2C_Read... [13:57:17]Read from MH i2c: E2 0E 00 63 0A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 4F [13:57:17]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:57:17]wFMCommunicate OK [13:57:17]SAM_PROTO_GetShiftState done [13:57:17]FM_GetShiftState done [13:57:17]opened in 1729642905 [13:57:17]opened+sec_in_day 1729729305 [13:57:17]quantity*price = 9500 [13:57:17]sum+1 = 9501 [13:57:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571528 Вода ASU пит н.газ персик ПЭТ 1,0 л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.72 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 196 23.10.2024 13:57 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75463 ФПД: 15412464150313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135717&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75463&fm=15412464150313&tin=02508201610067®Number=0000000000161154&sum=19500 0 [13:57:18]StoreToDocumentArchive [13:57:18]shift 173 fd 75463 [13:57:18]save to /storage/0173/doc_00075463 [13:57:18]save last doc name /storage/0173/doc_00075463 to /storage/kkm_last_doc_name [13:57:18]save OK [13:57:18]Clear old archive folders... [13:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=438 [13:57:18]tlvbuf is 00779390 [13:57:18]SAM_PROTO_ClearQueue [13:57:18]wFMCommunicate request_size=4 [13:57:18]MH_SAM_APDU [13:57:18]CAPDU: 80 09 00 00 [13:57:18]Write to MH i2c: E2 08 00 70 0A 80 09 00 00 00 00 00 00 EC [13:57:18]Write i2c OK [13:57:18]MH_I2C_Read... [13:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:18]Read from MH i2c: E2 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 03 00 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 03 00 70 0A 00 90 00 EE [13:57:18]RAPDU: 90 00 [13:57:18]wFMCommunicate OK [13:57:18]SAM_PROTO_ClearQueue done [13:57:18]KKMCreateOFDPacket [13:57:18]OFDProtocolAddRootSTLVToBuf [13:57:18]FM_MakeSignedData [13:57:18]FM_MakeSignedData [13:57:18]SAM_PROTO_SignData [13:57:18]wFMCommunicate request_size=4 [13:57:18]MH_SAM_APDU [13:57:18]CAPDU: 80 0D 01 02 [13:57:18]Write to MH i2c: E2 08 00 71 0A 80 0D 01 02 00 00 00 00 F4 [13:57:18]Write i2c OK [13:57:18]MH_I2C_Read... [13:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:18]Read from MH i2c: E2 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 03 00 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 03 00 71 0A 00 90 00 EF [13:57:18]RAPDU: 90 00 [13:57:18]wFMCommunicate OK [13:57:18]wFMCommunicate request_size=255 [13:57:18]MH_SAM_APDU [13:57:18]CAPDU: 80 0D 02 02 FA 03 00 B6 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 [13:57:18]Write to MH i2c: E2 02 01 72 0A 80 0D 02 02 FA 00 03 00 B6 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 C6 [13:57:18]Write i2c OK [13:57:18]MH_I2C_Read... [13:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:18]Read from MH i2c: E2 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 03 00 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 03 00 72 0A 00 90 00 F0 [13:57:18]RAPDU: 90 00 [13:57:18]wFMCommunicate OK [13:57:18]wFMCommunicate request_size=197 [13:57:18]MH_SAM_APDU [13:57:18]CAPDU: 80 0D 02 02 C0 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C7 26 01 00 35 04 06 00 0E 04 7E 73 67 29 [13:57:18]Write to MH i2c: E2 C8 00 73 0A 80 0D 02 02 C0 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C7 26 01 00 35 04 06 00 0E 04 7E 73 67 29 00 00 9E [13:57:18]Write i2c OK [13:57:18]MH_I2C_Read... [13:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:19]Read from MH i2c: E2 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 03 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 03 00 73 0A 00 90 00 F1 [13:57:19]RAPDU: 90 00 [13:57:19]wFMCommunicate OK [13:57:19]wFMCommunicate request_size=4 [13:57:19]MH_SAM_APDU [13:57:19]CAPDU: 80 0D 03 02 [13:57:19]Write to MH i2c: E2 08 00 74 0A 80 0D 03 02 00 00 00 00 F9 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:19]Read from MH i2c: E2 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 0B 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 0B 00 74 0A 00 5E 98 63 FD 09 26 0E 22 90 00 AF [13:57:19]RAPDU: 5E 98 63 FD 09 26 0E 22 90 00 [13:57:19]wFMCommunicate OK [13:57:19]SAM_PROTO_SignData done [13:57:19]FM_MakeSignedData done [13:57:19]CreateOFDProtocolMessage [13:57:19]wFMCommunicate request_size=4 [13:57:19]MH_SAM_APDU [13:57:19]CAPDU: 80 11 00 00 [13:57:19]Write to MH i2c: E2 08 00 75 0A 80 11 00 00 00 00 00 00 F9 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:19]Read from MH i2c: E2 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 17 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 17 00 75 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 46 [13:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:57:19]wFMCommunicate OK [13:57:19]CreateOFDProtocolMessage done [13:57:19]OFDSenderStorePacket 75463 [13:57:19]StoreOFDPacket docnum=75463 [13:57:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 CA 01 00 00 FD FA C2 01 E3 82 5A 03 01 00 03 00 B6 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C7 26 01 00 35 04 06 00 0E 04 7E 73 67 29 5E 98 63 FD 09 26 0E 22 [13:57:19]CheckFolder [13:57:19]dirname=/storage/ofd_packets [13:57:19]CheckFolder done [13:57:19]ProducePacketName [13:57:19]name=ofd_packets/00075463 [13:57:19]NVStorageSaveData ofd_packets/00075463 [13:57:19]File name is /storage/ofd_packets/00075463 [13:57:19]Write 488 bytes [13:57:19]NVStorageSaveData done [13:57:19]OFDSenderStorePacket done [13:57:19]KKMCreateOFDPacket done [13:57:19]NVStorageSaveData kkm_last_timestamp [13:57:19]File name is /storage/kkm_last_timestamp [13:57:19]Write 4 bytes [13:57:19]NVStorageSaveData done [13:57:19]ExternCall_PrintAddStr [13:57:19]wPrintStart [13:57:19]Write to MH i2c: 01 00 00 76 0A 80 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: 01 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: 01 07 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: 01 07 00 76 0A 00 00 00 00 00 FF 0F 95 [13:57:19]RasterBufferAndPrint [13:57:19]line Счет N : (3)273256 [13:57:19]line ИНН: 02508201610067 [13:57:19]line Контрольно-Кассовый Чек [13:57:19]line ПРОДАЖА [13:57:19]line Товар: 4607015232868 [13:57:19]line Вафли Яшкино в шоколадной глазури 200г [13:57:19]line 1.000 * 95.00 [13:57:19]line = 95.00 [13:57:19]line НДС 12% НСП 1% [13:57:19]line > о реализуемом товаре [13:57:19]line Товар: 4870001571528 [13:57:19]line Вода ASU пит н.газ персик ПЭТ 1,0 л [13:57:19]line 1.000 * 100.00 [13:57:19]line = 100.00 [13:57:19]line НДС 12% НСП 1% [13:57:19]line > о реализуемом товаре [13:57:19]line ИТОГО: 195.00 [13:57:19]line НСП 1% : 1.72 [13:57:19]line НДС 12% : 20.71 [13:57:19]line Наличными: 195.00 [13:57:19]line Безнал.: 0.00 [13:57:19]line Место: АЗС № 133 "Партнер Нефть" [13:57:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:57:19]line СНО: Общий режим [13:57:19]line Чек 196 23.10.2024 13:57 [13:57:19]line Смена: 173 ФФД: 1.0 [13:57:19]line ЗНМ: 0300000020 [13:57:19]line РНМ: 0000000000161154 [13:57:19]line Версия ККМ: v1.0 [13:57:19]line ФМ: 0000000000963323 [13:57:19]line ФД: 75463 [13:57:19]line ФПД: 15412464150313 [13:57:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135717&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75463&fm=15412464150313&tin=02508201610067®Number=0000000000161154&sum=19500 [13:57:19]line 0 [13:57:19]written 0, free lines is 4095 [13:57:19]OFD Sender: Processing packet 75463 [packets to send 16, broken 15] [13:57:19]ProducePacketName [13:57:19]name=ofd_packets/00075463 [13:57:19]OFD Sender: To server: pG, [13:57:19]CommunicateWithHost lk.salyk.kg:30040 [13:57:19]ConnectInit lk.salyk.kg [13:57:19]Connected sock=10 [13:57:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 CA 01 00 00 FD FA C2 01 E3 82 5A 03 01 00 03 00 B6 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C7 26 01 00 35 04 06 00 0E 04 7E 73 67 29 5E 98 63 FD 09 26 0E 22 [13:57:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 29 CA 47 00 F0 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 39 36 33 33 32 33 10 04 04 00 C7 26 01 00 F4 03 04 00 98 A9 18 67 B6 04 01 00 00 10 97 52 71 C1 03 F9 82 [13:57:19]CommunicateWithHost err = 0 [13:57:19]CheckOFDResponse [13:57:19]1017 (14) - 77093643461234 [13:57:19]1041 (16) - 0000000000963323 [13:57:19]1040 (4) - 75463 [13:57:19]1012 (4) - 23.10.2024 07:45 [13:57:19]1206 (1) - 0 [13:57:19]OFD Sender: Remove packet 75463 [13:57:19]ProducePacketName [13:57:19]name=ofd_packets/00075463 [13:57:19]NVStorageDeleteData [13:57:19]Write to MH i2c: 01 00 00 A5 0A AF [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: 01 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: 01 07 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 3B 0C FD [13:57:19]RasterBufferAndPrint [13:57:19]line [13:57:19]line [13:57:19]line [13:57:19]line [13:57:19]line [13:57:19]written 0, free lines is 3135 [13:57:19]MH_Cut [13:57:19]Write to MH i2c: D1 01 00 AC 0A 01 88 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: D1 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: D1 01 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: D1 01 00 AC 0A 00 87 [13:57:19]Write to MH i2c: 01 00 00 AD 0A B7 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:20]OFD Sender: No OFD packet to send [13:57:20]*** Cut start [13:57:20]*** Partial cut [13:57:20]*** CUTSNS_PIN = 1 [13:57:20]*** CUTSNS_PIN = 0 [13:57:21]*** Brake cut motor [13:57:21]Read from MH i2c: 01 [13:57:21]MH_I2C_Read... [13:57:21]*** Stop cut motor [13:57:21]*** Cut end [13:57:21]Read from MH i2c: 01 07 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 07 00 AD 0A 00 00 00 00 00 FF 0F CC [13:57:21]process_action close_receipt done [13:57:21]requested_data is exist [13:57:21]produce_requested_data [13:57:21]requested_item fm.sn is exist - process it [13:57:21]wFMCommunicate request_size=4 [13:57:21]MH_SAM_APDU [13:57:21]CAPDU: 80 11 00 00 [13:57:21]Write to MH i2c: E2 08 00 AE 0A 80 11 00 00 00 00 00 00 32 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:21]Read from MH i2c: E2 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 17 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 17 00 AE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7F [13:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:57:21]wFMCommunicate OK [13:57:21]requested_item fd.num is exist - process it [13:57:21]SAM_PROTO_GetFieldsCounters [13:57:21]wFMCommunicate request_size=4 [13:57:21]MH_SAM_APDU [13:57:21]CAPDU: 80 13 00 00 [13:57:21]Write to MH i2c: E2 08 00 AF 0A 80 13 00 00 00 00 00 00 35 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:21]Read from MH i2c: E2 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 62 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 62 00 AF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C7 26 01 00 0E 04 04 00 AD 00 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 30 [13:57:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C7 26 01 00 0E 04 04 00 AD 00 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 [13:57:21]wFMCommunicate OK [13:57:21]SAM_PROTO_GetFieldsCounters done [13:57:21]requested_item shift.num is exist - process it [13:57:21]requested_item shift.opened is exist - process it [13:57:21]req_shift_opened [13:57:21]FM_GetShiftState [13:57:21]SAM_PROTO_GetShiftState [13:57:21]wFMCommunicate request_size=4 [13:57:21]MH_SAM_APDU [13:57:21]CAPDU: 80 13 01 00 [13:57:21]Write to MH i2c: E2 08 00 B0 0A 80 13 01 00 00 00 00 00 37 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:21]Read from MH i2c: E2 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 0E 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 0E 00 B0 0A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 9C [13:57:21]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:57:21]wFMCommunicate OK [13:57:21]SAM_PROTO_GetShiftState done [13:57:21]FM_GetShiftState done [13:57:21]req_shift_opened done [13:57:21]requested_item shift.open_date is exist - process it [13:57:21]req_shift_open_date [13:57:21]req_shift_open_date done [13:57:21]produce_requested_data done [13:57:21]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75463,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:57:21]process_action_free close_receipt [13:57:21]json_value_free [13:57:21]json_value_free done [13:57:21]process_json_proto returns [13:57:21]Send response to host [13:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75463,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:57:21]free response buf [13:57:21]execute_script done [13:57:21]execute_script returns [13:57:21]free content buf [13:57:21]Sock 8.Close socket [13:57:21]Sock 8.Thread stoped [13:57:21]accept exits with 9 [13:57:21]New connection [13:57:21]New thread 3066465636 created [13:57:21]Thread 3066608996 joined [13:57:21]Waiting for new connection... [13:57:21] Sock 9.Parse request [13:57:21]Sock 9.Check first char [13:57:21]Sock 9.First char is OK [13:57:21]request: POST /json_proto HTTP/1.0 [13:57:21]Method: POST [13:57:21]URL: /json_proto [13:57:21]Method is POST - this is cgi request [13:57:21]url: /json_proto [13:57:21]query_string will be loaded in cgi processing [13:57:21]execute_cgi json_proto POST (null) [13:57:21]execute_cgi path=json_proto method=POST [13:57:21]POST find Content-Length [13:57:21]Host: 172.17.44.196:8080 [13:57:21]Content-Length: 678 [13:57:21]Content-Type: application/json [13:57:21] [13:57:21]POST finish read [13:57:21]Found Content-Length = 678 [13:57:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.260, "sum" : 390.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:21]execute_script... [13:57: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)1965581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.260, "sum" : 390.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:21]POST & json_proto [13:57:21]process_json_proto [13:57:21]json parsed OK: [13:57:21]protocol is kg_v1.0 [13:57:21]action value=close_receipt [13:57:21]process_action close_receipt [13:57:21]cmd_close_receipt [13:57:21]MH_GetDate [13:57:21]Write to MH i2c: F0 00 00 B1 0A AA [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: F0 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: F0 09 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: F0 09 00 B1 0A 00 C2 00 19 67 E7 19 F8 65 52 [13:57:21]GetLastDocTimeStamp 1729691837 [13:57:21]current date 1729691842 [13:57:21]FM_GetShiftState [13:57:21]SAM_PROTO_GetShiftState [13:57:21]wFMCommunicate request_size=4 [13:57:21]MH_SAM_APDU [13:57:21]CAPDU: 80 13 01 00 [13:57:21]Write to MH i2c: E2 08 00 B2 0A 80 13 01 00 00 00 00 00 39 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:22]Read from MH i2c: E2 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 0E 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 0E 00 B2 0A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 9E [13:57:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:57:22]wFMCommunicate OK [13:57:22]SAM_PROTO_GetShiftState done [13:57:22]FM_GetShiftState done [13:57:22]opened in 1729642905 [13:57:22]opened+sec_in_day 1729729305 [13:57:22]quantity*price = 39029 [13:57:22]sum+1 = 39030 [13:57:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 390.00 Внесено: 390.00 СДАЧА: 0.00 НСП 1% : 3.45 НДС 12% : 41.45 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 197 23.10.2024 13:57 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75464 ФПД: 184402501440305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135722&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75464&fm=184402501440305&tin=02508201610067®Number=0000000000161154&sum=39000 [13:57:23]StoreToDocumentArchive [13:57:23]shift 173 fd 75464 [13:57:23]save to /storage/0173/doc_00075464 [13:57:23]save last doc name /storage/0173/doc_00075464 to /storage/kkm_last_doc_name [13:57:23]save OK [13:57:23]Clear old archive folders... [13:57:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:23]tlvbuf is 007E0960 [13:57:23]SAM_PROTO_ClearQueue [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 09 00 00 [13:57:23]Write to MH i2c: E2 08 00 BF 0A 80 09 00 00 00 00 00 00 3B [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]SAM_PROTO_ClearQueue done [13:57:23]KKMCreateOFDPacket [13:57:23]OFDProtocolAddRootSTLVToBuf [13:57:23]FM_MakeSignedData [13:57:23]FM_MakeSignedData [13:57:23]SAM_PROTO_SignData [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 0D 01 02 [13:57:23]Write to MH i2c: E2 08 00 C0 0A 80 0D 01 02 00 00 00 00 43 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 C0 0A 00 90 00 3E [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]wFMCommunicate request_size=255 [13:57:23]MH_SAM_APDU [13:57: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C2 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C8 26 01 00 35 04 06 00 A7 [13:57:23]Write to MH i2c: E2 02 01 C1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C2 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C8 26 01 00 35 04 06 00 A7 00 00 CE [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 C1 0A 00 90 00 3F [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]wFMCommunicate request_size=10 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 0D 02 02 05 B6 8D 98 13 31 [13:57:23]Write to MH i2c: E2 0D 00 C2 0A 80 0D 02 02 05 00 B6 8D 98 13 31 00 00 6F [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 0D 03 02 [13:57:23]Write to MH i2c: E2 08 00 C3 0A 80 0D 03 02 00 00 00 00 48 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0B 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0B 00 C3 0A 00 45 40 9B 4A 84 F6 86 05 90 00 B8 [13:57:23]RAPDU: 45 40 9B 4A 84 F6 86 05 90 00 [13:57:23]wFMCommunicate OK [13:57:23]SAM_PROTO_SignData done [13:57:23]FM_MakeSignedData done [13:57:23]CreateOFDProtocolMessage [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 11 00 00 [13:57:23]Write to MH i2c: E2 08 00 C4 0A 80 11 00 00 00 00 00 00 48 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:24]Read from MH i2c: E2 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 17 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 17 00 C4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 95 [13:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:57:24]wFMCommunicate OK [13:57:24]CreateOFDProtocolMessage done [13:57:24]OFDSenderStorePacket 75464 [13:57:24]StoreOFDPacket docnum=75464 [13:57:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8B 5B 07 01 21 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 8C 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C2 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C8 26 01 00 35 04 06 00 A7 B6 8D 98 13 31 45 40 9B 4A 84 F6 86 05 [13:57:24]CheckFolder [13:57:24]dirname=/storage/ofd_packets [13:57:24]CheckFolder done [13:57:24]ProducePacketName [13:57:24]name=ofd_packets/00075464 [13:57:24]NVStorageSaveData ofd_packets/00075464 [13:57:24]File name is /storage/ofd_packets/00075464 [13:57:24]Write 301 bytes [13:57:24]NVStorageSaveData done [13:57:24]OFDSenderStorePacket done [13:57:24]KKMCreateOFDPacket done [13:57:24]NVStorageSaveData kkm_last_timestamp [13:57:24]File name is /storage/kkm_last_timestamp [13:57:24]Write 4 bytes [13:57:24]NVStorageSaveData done [13:57:24]ExternCall_PrintAddStr [13:57:24]wPrintStart [13:57:24]Write to MH i2c: 01 00 00 C5 0A CF [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 C5 0A 00 00 00 00 00 FF 0F E4 [13:57:24]RasterBufferAndPrint [13:57:24]line Счет N : (1)1965581 [13:57:24]line ИНН: 02508201610067 [13:57:24]line Контрольно-Кассовый Чек [13:57:24]line ПРОДАЖА [13:57:24]line ТРК (МРК, ГНК) : 64 [13:57:24]line Товар: 2710124500 [13:57:24]line Аи-95-К-5 [13:57:24]line 5.260 * 74.20 [13:57:24]line = 390.29 [13:57:24]line НДС 12% НСП 1% [13:57:24]line > о реализуемом товаре [13:57:24]line ОКРУГЛЕНИЕ: -0.29 [13:57:24]line ИТОГО: 390.00 [13:57:24]line Внесено: 390.00 [13:57:24]line СДАЧА: 0.00 [13:57:24]line НСП 1% : 3.45 [13:57:24]line НДС 12% : 41.45 [13:57:24]line Наличными: 390.00 [13:57:24]line Безнал.: 0.00 [13:57:24]line Место: АЗС № 133 "Партнер Нефть" [13:57:24]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:57:24]line СНО: Общий режим [13:57:24]line Чек 197 23.10.2024 13:57 [13:57:24]line Смена: 173 ФФД: 1.0 [13:57:24]line ЗНМ: 0300000020 [13:57:24]line РНМ: 0000000000161154 [13:57:24]line Версия ККМ: v1.0 [13:57:24]line ФМ: 0000000000963323 [13:57:24]line ФД: 75464 [13:57:24]line ФПД: 184402501440305 [13:57:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135722&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75464&fm=184402501440305&tin=02508201610067®Number=0000000000161154&sum=39000 [13:57:24]OFD Sender: Processing packet 75464 [packets to send 16, broken 15] [13:57:24]ProducePacketName [13:57:24]name=ofd_packets/00075464 [13:57:24]written 0, free lines is 4095 [13:57:24]OFD Sender: To server: pG, [13:57:24]CommunicateWithHost lk.salyk.kg:30040 [13:57:24]ConnectInit lk.salyk.kg [13:57:24]Connected sock=10 [13:57:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 8B 5B 07 01 21 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 8C 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 C2 00 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C8 26 01 00 35 04 06 00 A7 B6 8D 98 13 31 45 40 9B 4A 84 F6 86 05 [13:57:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BC 11 47 00 93 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 39 36 33 33 32 33 10 04 04 00 C8 26 01 00 F4 03 04 00 9D A9 18 67 B6 04 01 00 00 73 79 91 65 CD 7E 18 0E [13:57:24]CommunicateWithHost err = 0 [13:57:24]CheckOFDResponse [13:57:24]1017 (14) - 77093643461234 [13:57:24]1041 (16) - 0000000000963323 [13:57:24]1040 (4) - 75464 [13:57:24]1012 (4) - 23.10.2024 07:45 [13:57:24]1206 (1) - 0 [13:57:24]OFD Sender: Remove packet 75464 [13:57:24]ProducePacketName [13:57:24]name=ofd_packets/00075464 [13:57:24]NVStorageDeleteData [13:57:24]Write to MH i2c: 01 00 00 EF 0A F9 [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 EF 0A 00 00 00 00 00 B5 0C C1 [13:57:24]RasterBufferAndPrint [13:57:24]line [13:57:24]line [13:57:24]line [13:57:24]line [13:57:24]line [13:57:24]written 0, free lines is 3265 [13:57:24]MH_Cut [13:57:24]Write to MH i2c: D1 01 00 F6 0A 01 D2 [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: D1 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: D1 01 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: D1 01 00 F6 0A 00 D1 [13:57:24]Write to MH i2c: 01 00 00 F7 0A 01 [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:25]OFD Sender: No OFD packet to send [13:57:25]*** Cut start [13:57:25]*** Partial cut [13:57:25]*** CUTSNS_PIN = 1 [13:57:25]*** CUTSNS_PIN = 0 [13:57:26]*** Brake cut motor [13:57:26]Read from MH i2c: 01 [13:57:26]MH_I2C_Read... [13:57:26]*** Stop cut motor [13:57:26]*** Cut end [13:57:26]Read from MH i2c: 01 07 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: 01 07 00 F7 0A 00 00 00 00 00 FF 0F 16 [13:57:26]process_action close_receipt done [13:57:26]requested_data is exist [13:57:26]produce_requested_data [13:57:26]requested_item fm.sn is exist - process it [13:57:26]wFMCommunicate request_size=4 [13:57:26]MH_SAM_APDU [13:57:26]CAPDU: 80 11 00 00 [13:57:26]Write to MH i2c: E2 08 00 F8 0A 80 11 00 00 00 00 00 00 7C [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:26]Read from MH i2c: E2 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 17 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 17 00 F8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C9 [13:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:57:26]wFMCommunicate OK [13:57:26]requested_item fd.num is exist - process it [13:57:26]SAM_PROTO_GetFieldsCounters [13:57:26]wFMCommunicate request_size=4 [13:57:26]MH_SAM_APDU [13:57:26]CAPDU: 80 13 00 00 [13:57:26]Write to MH i2c: E2 08 00 F9 0A 80 13 00 00 00 00 00 00 7F [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:26]Read from MH i2c: E2 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 62 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 62 00 F9 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C8 26 01 00 0E 04 04 00 AD 00 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 7E [13:57:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C8 26 01 00 0E 04 04 00 AD 00 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 [13:57:26]wFMCommunicate OK [13:57:26]SAM_PROTO_GetFieldsCounters done [13:57:26]requested_item shift.num is exist - process it [13:57:26]requested_item shift.opened is exist - process it [13:57:26]req_shift_opened [13:57:26]FM_GetShiftState [13:57:26]SAM_PROTO_GetShiftState [13:57:26]wFMCommunicate request_size=4 [13:57:26]MH_SAM_APDU [13:57:26]CAPDU: 80 13 01 00 [13:57:26]Write to MH i2c: E2 08 00 FA 0A 80 13 01 00 00 00 00 00 81 [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:26]Read from MH i2c: E2 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 0E 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 0E 00 FA 0A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E6 [13:57:26]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:57:26]wFMCommunicate OK [13:57:26]SAM_PROTO_GetShiftState done [13:57:26]FM_GetShiftState done [13:57:26]req_shift_opened done [13:57:26]requested_item shift.open_date is exist - process it [13:57:26]req_shift_open_date [13:57:26]req_shift_open_date done [13:57:26]produce_requested_data done [13:57:26]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75464,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:57:26]process_action_free close_receipt [13:57:26]json_value_free [13:57:26]json_value_free done [13:57:26]process_json_proto returns [13:57:26]Send response to host [13:57:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75464,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:57:26]free response buf [13:57:26]execute_script done [13:57:26]execute_script returns [13:57:26]free content buf [13:57:26]Sock 9.Close socket [13:57:26]Sock 9.Thread stoped [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]accept exits with 8 [13:58:35]New connection [13:58:35]New thread 3066608996 created [13:58:35]Thread 3066465636 joined [13:58:35]Waiting for new connection... [13:58:35] Sock 8.Parse request [13:58:35]Sock 8.Check first char [13:58:35]Sock 8.First char is OK [13:58:35]request: POST /json_proto HTTP/1.0 [13:58:35]Method: POST [13:58:35]URL: /json_proto [13:58:35]Method is POST - this is cgi request [13:58:35]url: /json_proto [13:58:35]query_string will be loaded in cgi processing [13:58:35]execute_cgi json_proto POST (null) [13:58:35]execute_cgi path=json_proto method=POST [13:58:35]POST find Content-Length [13:58:35]Host: 172.17.44.196:8080 [13:58:35]Content-Length: 675 [13:58:35]Content-Type: application/json [13:58:35] [13:58:35]POST finish read [13:58:35]Found Content-Length = 675 [13:58:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:58:35]execute_script... [13:58: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)1965583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:58:35]POST & json_proto [13:58:35]process_json_proto [13:58:35]json parsed OK: [13:58:35]protocol is kg_v1.0 [13:58:35]action value=close_receipt [13:58:35]process_action close_receipt [13:58:35]cmd_close_receipt [13:58:35]MH_GetDate [13:58:35]Write to MH i2c: F0 00 00 FB 0A F4 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: F0 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: F0 09 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: F0 09 00 FB 0A 00 0B 01 19 67 E7 19 F8 65 E6 [13:58:35]GetLastDocTimeStamp 1729691842 [13:58:35]current date 1729691915 [13:58:35]FM_GetShiftState [13:58:35]SAM_PROTO_GetShiftState [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 13 01 00 [13:58:35]Write to MH i2c: E2 08 00 FC 0A 80 13 01 00 00 00 00 00 83 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 0E 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 0E 00 FC 0A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E8 [13:58:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:58:35]wFMCommunicate OK [13:58:35]SAM_PROTO_GetShiftState done [13:58:35]FM_GetShiftState done [13:58:35]opened in 1729642905 [13:58:35]opened+sec_in_day 1729729305 [13:58:35]quantity*price = 50063 [13:58:35]sum+1 = 50064 [13:58:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 198 23.10.2024 13:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75465 ФПД: 130537775472705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135835&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75465&fm=130537775472705&tin=02508201610067®Number=0000000000161154&sum=50000 [13:58:36]StoreToDocumentArchive [13:58:36]shift 173 fd 75465 [13:58:36]save to /storage/0173/doc_00075465 [13:58:36]save last doc name /storage/0173/doc_00075465 to /storage/kkm_last_doc_name [13:58:36]save OK [13:58:36]Clear old archive folders... [13:58:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:36]tlvbuf is 007771A0 [13:58:36]SAM_PROTO_ClearQueue [13:58:36]wFMCommunicate request_size=4 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 09 00 00 [13:58:36]Write to MH i2c: E2 08 00 09 0B 80 09 00 00 00 00 00 00 86 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 03 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 03 00 09 0B 00 90 00 88 [13:58:36]RAPDU: 90 00 [13:58:36]wFMCommunicate OK [13:58:36]SAM_PROTO_ClearQueue done [13:58:36]KKMCreateOFDPacket [13:58:36]OFDProtocolAddRootSTLVToBuf [13:58:36]FM_MakeSignedData [13:58:36]FM_MakeSignedData [13:58:36]SAM_PROTO_SignData [13:58:36]wFMCommunicate request_size=4 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 0D 01 02 [13:58:36]Write to MH i2c: E2 08 00 0A 0B 80 0D 01 02 00 00 00 00 8E [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 03 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 03 00 0A 0B 00 90 00 89 [13:58:36]RAPDU: 90 00 [13:58:36]wFMCommunicate OK [13:58:36]wFMCommunicate request_size=255 [13:58:36]MH_SAM_APDU [13:58: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C6 00 00 00 F4 03 04 00 0B 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C9 26 01 00 35 04 06 00 76 B9 31 BC [13:58:36]Write to MH i2c: E2 02 01 0B 0B 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C6 00 00 00 F4 03 04 00 0B 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C9 26 01 00 35 04 06 00 76 B9 31 BC 00 00 99 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 03 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 03 00 0B 0B 00 90 00 8A [13:58:36]RAPDU: 90 00 [13:58:36]wFMCommunicate OK [13:58:36]wFMCommunicate request_size=7 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 0D 02 02 02 A0 41 [13:58:36]Write to MH i2c: E2 0A 00 0C 0B 80 0D 02 02 02 00 A0 41 00 00 76 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 03 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [13:58:36]RAPDU: 90 00 [13:58:36]wFMCommunicate OK [13:58:36]wFMCommunicate request_size=4 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 0D 03 02 [13:58:36]Write to MH i2c: E2 08 00 0D 0B 80 0D 03 02 00 00 00 00 93 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 0B 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 0B 00 0D 0B 00 AB 0F 34 4A 41 40 EC 7C 90 00 B5 [13:58:36]RAPDU: AB 0F 34 4A 41 40 EC 7C 90 00 [13:58:36]wFMCommunicate OK [13:58:36]SAM_PROTO_SignData done [13:58:36]FM_MakeSignedData done [13:58:36]CreateOFDProtocolMessage [13:58:36]wFMCommunicate request_size=4 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 11 00 00 [13:58:36]Write to MH i2c: E2 08 00 0E 0B 80 11 00 00 00 00 00 00 93 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 17 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 17 00 0E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E0 [13:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:58:36]wFMCommunicate OK [13:58:36]CreateOFDProtocolMessage done [13:58:36]OFDSenderStorePacket 75465 [13:58:36]StoreOFDPacket docnum=75465 [13:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 A0 38 04 01 3A 67 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C6 00 00 00 F4 03 04 00 0B 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C9 26 01 00 35 04 06 00 76 B9 31 BC A0 41 AB 0F 34 4A 41 40 EC 7C [13:58:36]CheckFolder [13:58:36]dirname=/storage/ofd_packets [13:58:36]CheckFolder done [13:58:36]ProducePacketName [13:58:36]name=ofd_packets/00075465 [13:58:36]NVStorageSaveData ofd_packets/00075465 [13:58:36]File name is /storage/ofd_packets/00075465 [13:58:36]Write 298 bytes [13:58:36]NVStorageSaveData done [13:58:36]OFDSenderStorePacket done [13:58:36]KKMCreateOFDPacket done [13:58:36]NVStorageSaveData kkm_last_timestamp [13:58:36]File name is /storage/kkm_last_timestamp [13:58:36]Write 4 bytes [13:58:36]NVStorageSaveData done [13:58:36]ExternCall_PrintAddStr [13:58:36]wPrintStart [13:58:36]Write to MH i2c: 01 00 00 0F 0B 1A [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: 01 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: 01 07 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: 01 07 00 0F 0B 00 00 00 00 00 FF 0F 2F [13:58:36]RasterBufferAndPrint [13:58:36]line Счет N : (1)1965583 [13:58:36]line ИНН: 02508201610067 [13:58:36]line Контрольно-Кассовый Чек [13:58:36]line ПРОДАЖА [13:58:36]line ТРК (МРК, ГНК) : 41 [13:58:36]line Товар: 2710194210 [13:58:36]line ДТ-К-5 [13:58:36]line 6.570 * 76.20 [13:58:36]line = 500.63 [13:58:36]line НДС 12% НСП 1% [13:58:36]line > о реализуемом товаре [13:58:36]line ОКРУГЛЕНИЕ: -0.63 [13:58:36]line ИТОГО: 500.00 [13:58:36]line Внесено: 500.00 [13:58:36]line СДАЧА: 0.00 [13:58:36]line НСП 1% : 4.43 [13:58:36]line НДС 12% : 53.16 [13:58:36]line Наличными: 500.00 [13:58:36]line Безнал.: 0.00 [13:58:36]line Место: АЗС № 133 "Партнер Нефть" [13:58:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:58:36]line СНО: Общий режим [13:58:36]line Чек 198 23.10.2024 13:58 [13:58:36]line Смена: 173 ФФД: 1.0 [13:58:36]line ЗНМ: 0300000020 [13:58:36]line РНМ: 0000000000161154 [13:58:36]line Версия ККМ: v1.0 [13:58:36]line ФМ: 0000000000963323 [13:58:36]line ФД: 75465 [13:58:36]line ФПД: 130537775472705 [13:58:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135835&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75465&fm=130537775472705&tin=02508201610067®Number=0000000000161154&sum=50000 [13:58:37]OFD Sender: Processing packet 75465 [packets to send 16, broken 15] [13:58:37]ProducePacketName [13:58:37]name=ofd_packets/00075465 [13:58:37]OFD Sender: To server: pG, [13:58:37]CommunicateWithHost lk.salyk.kg:30040 [13:58:37]ConnectInit lk.salyk.kg [13:58:37]written 0, free lines is 4095 [13:58:37]Connected sock=10 [13:58:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 A0 38 04 01 3A 67 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C6 00 00 00 F4 03 04 00 0B 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C9 26 01 00 35 04 06 00 76 B9 31 BC A0 41 AB 0F 34 4A 41 40 EC 7C [13:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0F C4 47 00 C8 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 C9 26 01 00 F4 03 04 00 E6 A9 18 67 B6 04 01 00 00 43 2B A7 BA 4C A5 E8 24 [13:58:37]CommunicateWithHost err = 0 [13:58:37]CheckOFDResponse [13:58:37]1017 (14) - 77093643461234 [13:58:37]1041 (16) - 0000000000963323 [13:58:37]1040 (4) - 75465 [13:58:37]1012 (4) - 23.10.2024 07:46 [13:58:37]1206 (1) - 0 [13:58:37]OFD Sender: Remove packet 75465 [13:58:37]ProducePacketName [13:58:37]name=ofd_packets/00075465 [13:58:37]NVStorageDeleteData [13:58:37]Write to MH i2c: 01 00 00 39 0B 44 [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: 01 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: 01 07 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: 01 07 00 39 0B 00 00 00 00 00 A6 0C FD [13:58:37]RasterBufferAndPrint [13:58:37]line [13:58:37]line [13:58:37]line [13:58:37]line [13:58:37]line [13:58:37]written 0, free lines is 3242 [13:58:37]MH_Cut [13:58:37]Write to MH i2c: D1 01 00 40 0B 01 1D [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: D1 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: D1 01 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: D1 01 00 40 0B 00 1C [13:58:37]Write to MH i2c: 01 00 00 41 0B 4C [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]OFD Sender: No OFD packet to send [13:58:38]*** Cut start [13:58:38]*** Partial cut [13:58:38]*** CUTSNS_PIN = 1 [13:58:38]*** CUTSNS_PIN = 0 [13:58:38]*** Brake cut motor [13:58:39]Read from MH i2c: 01 [13:58:39]MH_I2C_Read... [13:58:39]*** Stop cut motor [13:58:39]*** Cut end [13:58:39]Read from MH i2c: 01 07 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: 01 07 00 41 0B 00 00 00 00 00 FF 0F 61 [13:58:39]process_action close_receipt done [13:58:39]requested_data is exist [13:58:39]produce_requested_data [13:58:39]requested_item fm.sn is exist - process it [13:58:39]wFMCommunicate request_size=4 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 11 00 00 [13:58:39]Write to MH i2c: E2 08 00 42 0B 80 11 00 00 00 00 00 00 C7 [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:39]Read from MH i2c: E2 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 17 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 17 00 42 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 14 [13:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:58:39]wFMCommunicate OK [13:58:39]requested_item fd.num is exist - process it [13:58:39]SAM_PROTO_GetFieldsCounters [13:58:39]wFMCommunicate request_size=4 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 13 00 00 [13:58:39]Write to MH i2c: E2 08 00 43 0B 80 13 00 00 00 00 00 00 CA [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:39]Read from MH i2c: E2 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 62 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 62 00 43 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C9 26 01 00 0E 04 04 00 AD 00 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 CD [13:58:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 C9 26 01 00 0E 04 04 00 AD 00 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 [13:58:39]wFMCommunicate OK [13:58:39]SAM_PROTO_GetFieldsCounters done [13:58:39]requested_item shift.num is exist - process it [13:58:39]requested_item shift.opened is exist - process it [13:58:39]req_shift_opened [13:58:39]FM_GetShiftState [13:58:39]SAM_PROTO_GetShiftState [13:58:39]wFMCommunicate request_size=4 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 13 01 00 [13:58:39]Write to MH i2c: E2 08 00 44 0B 80 13 01 00 00 00 00 00 CC [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:39]Read from MH i2c: E2 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 0E 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 0E 00 44 0B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 31 [13:58:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:58:39]wFMCommunicate OK [13:58:39]SAM_PROTO_GetShiftState done [13:58:39]FM_GetShiftState done [13:58:39]req_shift_opened done [13:58:39]requested_item shift.open_date is exist - process it [13:58:39]req_shift_open_date [13:58:39]req_shift_open_date done [13:58:39]produce_requested_data done [13:58:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75465,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:58:39]process_action_free close_receipt [13:58:39]json_value_free [13:58:39]json_value_free done [13:58:39]process_json_proto returns [13:58:39]Send response to host [13:58:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75465,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:58:39]free response buf [13:58:39]execute_script done [13:58:39]execute_script returns [13:58:39]free content buf [13:58:39]Sock 8.Close socket [13:58:39]Sock 8.Thread stoped [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:49]accept exits with 9 [13:58:49]New connection [13:58:49]New thread 3066465636 created [13:58:49]Thread 3066608996 joined [13:58:49]Waiting for new connection... [13:58:49] Sock 9.Parse request [13:58:49]Sock 9.Check first char [13:58:49]Sock 9.First char is OK [13:58:49]request: POST /json_proto HTTP/1.0 [13:58:49]Method: POST [13:58:49]URL: /json_proto [13:58:49]Method is POST - this is cgi request [13:58:49]url: /json_proto [13:58:49]query_string will be loaded in cgi processing [13:58:49]execute_cgi json_proto POST (null) [13:58:49]execute_cgi path=json_proto method=POST [13:58:49]POST find Content-Length [13:58:49]Host: 172.17.44.196:8080 [13:58:49]Content-Length: 979 [13:58:49]Content-Type: application/json [13:58:49] [13:58:49]POST finish read [13:58:49]Found Content-Length = 979 [13:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965582", "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" : 75.20, "quantity" : 19.950, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 19.95 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:49]execute_script... [13:58: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)1965582", "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" : 75.20, "quantity" : 19.950, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 19.95 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:49]POST & json_proto [13:58:49]process_json_proto [13:58:49]json parsed OK: [13:58:49]protocol is kg_v1.0 [13:58:49]action value=close_receipt [13:58:49]process_action close_receipt [13:58:49]cmd_close_receipt [13:58:49]MH_GetDate [13:58:49]Write to MH i2c: F0 00 00 45 0B 3F [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: F0 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: F0 09 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: F0 09 00 45 0B 00 1A 01 19 67 E7 19 F8 65 40 [13:58:49]GetLastDocTimeStamp 1729691915 [13:58:49]current date 1729691930 [13:58:49]FM_GetShiftState [13:58:49]SAM_PROTO_GetShiftState [13:58:49]wFMCommunicate request_size=4 [13:58:49]MH_SAM_APDU [13:58:49]CAPDU: 80 13 01 00 [13:58:49]Write to MH i2c: E2 08 00 46 0B 80 13 01 00 00 00 00 00 CE [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:49]Read from MH i2c: E2 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 0E 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 0E 00 46 0B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 33 [13:58:49]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:58:49]wFMCommunicate OK [13:58:49]SAM_PROTO_GetShiftState done [13:58:49]FM_GetShiftState done [13:58:49]opened in 1729642905 [13:58:49]opened+sec_in_day 1729729305 [13:58:49]quantity*price = 150024 [13:58:49]sum+1 = 150025 [13:58:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 199 23.10.2024 13:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 19.95 сом ФМ: 0000000000963323 ФД: 75466 ФПД: 196963552554432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135850&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75466&fm=196963552554432&tin=02508201610067®Number=0000000000161154&sum=150000 [13:58:50]StoreToDocumentArchive [13:58:50]shift 173 fd 75466 [13:58:50]save to /storage/0173/doc_00075466 [13:58:50]save last doc name /storage/0173/doc_00075466 to /storage/kkm_last_doc_name [13:58:50]save OK [13:58:50]Clear old archive folders... [13:58:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:50]tlvbuf is 007718C0 [13:58:50]SAM_PROTO_ClearQueue [13:58:50]wFMCommunicate request_size=4 [13:58:50]MH_SAM_APDU [13:58:50]CAPDU: 80 09 00 00 [13:58:50]Write to MH i2c: E2 08 00 53 0B 80 09 00 00 00 00 00 00 D0 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:50]Read from MH i2c: E2 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 03 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [13:58:50]RAPDU: 90 00 [13:58:50]wFMCommunicate OK [13:58:50]SAM_PROTO_ClearQueue done [13:58:50]KKMCreateOFDPacket [13:58:50]OFDProtocolAddRootSTLVToBuf [13:58:50]FM_MakeSignedData [13:58:50]FM_MakeSignedData [13:58:50]SAM_PROTO_SignData [13:58:50]wFMCommunicate request_size=4 [13:58:50]MH_SAM_APDU [13:58:50]CAPDU: 80 0D 01 02 [13:58:50]Write to MH i2c: E2 08 00 54 0B 80 0D 01 02 00 00 00 00 D8 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:50]Read from MH i2c: E2 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 03 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [13:58:50]RAPDU: 90 00 [13:58:50]wFMCommunicate OK [13:58:50]wFMCommunicate request_size=255 [13:58:50]MH_SAM_APDU [13:58: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 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 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 C7 00 00 00 F4 03 04 00 1A 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CA 26 01 00 35 04 06 00 B3 23 26 95 [13:58:51]Write to MH i2c: E2 02 01 55 0B 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 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 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 C7 00 00 00 F4 03 04 00 1A 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CA 26 01 00 35 04 06 00 B3 23 26 95 00 00 EA [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=7 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 02 02 02 6D C0 [13:58:51]Write to MH i2c: E2 0A 00 56 0B 80 0D 02 02 02 00 6D C0 00 00 0C [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 56 0B 00 90 00 D5 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 03 02 [13:58:51]Write to MH i2c: E2 08 00 57 0B 80 0D 03 02 00 00 00 00 DD [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 0B 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 0B 00 57 0B 00 B1 CC 5F 7C 33 7B 41 37 90 00 5C [13:58:51]RAPDU: B1 CC 5F 7C 33 7B 41 37 90 00 [13:58:51]wFMCommunicate OK [13:58:51]SAM_PROTO_SignData done [13:58:51]FM_MakeSignedData done [13:58:51]CreateOFDProtocolMessage [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 11 00 00 [13:58:51]Write to MH i2c: E2 08 00 58 0B 80 11 00 00 00 00 00 00 DD [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 17 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 17 00 58 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2A [13:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:58:51]wFMCommunicate OK [13:58:51]CreateOFDProtocolMessage done [13:58:51]OFDSenderStorePacket 75466 [13:58:51]StoreOFDPacket docnum=75466 [13:58:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 C6 CE 04 01 04 C9 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 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 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 C7 00 00 00 F4 03 04 00 1A 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CA 26 01 00 35 04 06 00 B3 23 26 95 6D C0 B1 CC 5F 7C 33 7B 41 37 [13:58:51]CheckFolder [13:58:51]dirname=/storage/ofd_packets [13:58:51]CheckFolder done [13:58:51]ProducePacketName [13:58:51]name=ofd_packets/00075466 [13:58:51]NVStorageSaveData ofd_packets/00075466 [13:58:51]File name is /storage/ofd_packets/00075466 [13:58:51]Write 298 bytes [13:58:51]NVStorageSaveData done [13:58:51]OFDSenderStorePacket done [13:58:51]KKMCreateOFDPacket done [13:58:51]NVStorageSaveData kkm_last_timestamp [13:58:51]File name is /storage/kkm_last_timestamp [13:58:51]Write 4 bytes [13:58:51]NVStorageSaveData done [13:58:51]ExternCall_PrintAddStr [13:58:51]wPrintStart [13:58:51]Write to MH i2c: 01 00 00 59 0B 64 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 59 0B 00 00 00 00 00 FF 0F 79 [13:58:51]RasterBufferAndPrint [13:58:51]line Счет N : (1)1965582 [13:58:51]line ИНН: 02508201610067 [13:58:51]line Контрольно-Кассовый Чек [13:58:51]line ПРОДАЖА [13:58:51]line ТРК (МРК, ГНК) : 61 [13:58:51]line Товар: 2710194210 [13:58:51]line ДТ-К-5 [13:58:51]line 19.950 * 75.20 [13:58:51]line = 1500.24 [13:58:51]line НДС 12% НСП 1% [13:58:51]line > о реализуемом товаре [13:58:51]line ОКРУГЛЕНИЕ: -0.24 [13:58:51]line ИТОГО: 1500.00 [13:58:51]line Внесено: 1500.00 [13:58:51]line СДАЧА: 0.00 [13:58:51]line НСП 1% : 13.28 [13:58:51]line НДС 12% : 159.32 [13:58:51]line Наличными: 1500.00 [13:58:51]line Безнал.: 0.00 [13:58:51]line Место: АЗС № 133 "Партнер Нефть" [13:58:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:58:51]line СНО: Общий режим [13:58:51]line Чек 199 23.10.2024 13:58 [13:58:51]line Смена: 173 ФФД: 1.0 [13:58:51]line ЗНМ: 0300000020 [13:58:51]line РНМ: 0000000000161154 [13:58:51]line Версия ККМ: v1.0 [13:58:51]line [13:58:51]line Дисконтная программа [13:58:51]line ДТ [13:58:51]line номер 133 [13:58:51]line сэкономлено 19.95 сом [13:58:51]line ФМ: 0000000000963323 [13:58:51]line ФД: 75466 [13:58:51]line ФПД: 196963552554432 [13:58:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135850&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75466&fm=196963552554432&tin=02508201610067®Number=0000000000161154&sum=150000 [13:58:51]OFD Sender: Processing packet 75466 [packets to send 16, broken 15] [13:58:51]written 0, free lines is 4095 [13:58:51]ProducePacketName [13:58:51]name=ofd_packets/00075466 [13:58:51]OFD Sender: To server: pG, [13:58:51]CommunicateWithHost lk.salyk.kg:30040 [13:58:51]ConnectInit lk.salyk.kg [13:58:51]Connected sock=8 [13:58:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 C6 CE 04 01 04 C9 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 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 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 C7 00 00 00 F4 03 04 00 1A 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CA 26 01 00 35 04 06 00 B3 23 26 95 6D C0 B1 CC 5F 7C 33 7B 41 37 [13:58:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 50 04 47 00 8D FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CA 26 01 00 F4 03 04 00 F5 A9 18 67 B6 04 01 00 00 1A C3 2C A4 39 60 0C 0A [13:58:52]CommunicateWithHost err = 0 [13:58:52]CheckOFDResponse [13:58:52]1017 (14) - 77093643461234 [13:58:52]1041 (16) - 0000000000963323 [13:58:52]1040 (4) - 75466 [13:58:52]1012 (4) - 23.10.2024 07:47 [13:58:52]1206 (1) - 0 [13:58:52]OFD Sender: Remove packet 75466 [13:58:52]ProducePacketName [13:58:52]name=ofd_packets/00075466 [13:58:52]NVStorageDeleteData [13:58:52]Write to MH i2c: 01 00 00 88 0B 93 [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: 01 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: 01 07 00 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: 01 07 00 88 0B 00 00 00 00 00 48 0C EE [13:58:52]RasterBufferAndPrint [13:58:52]line [13:58:52]line [13:58:52]line [13:58:52]line [13:58:52]line [13:58:52]written 0, free lines is 3149 [13:58:52]MH_Cut [13:58:52]Write to MH i2c: D1 01 00 8F 0B 01 6C [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: D1 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: D1 01 00 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: D1 01 00 8F 0B 00 6B [13:58:52]Write to MH i2c: 01 00 00 90 0B 9B [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]OFD Sender: No OFD packet to send [13:58:53]*** Cut start [13:58:53]*** Partial cut [13:58:53]*** CUTSNS_PIN = 1 [13:58:53]*** CUTSNS_PIN = 0 [13:58:53]*** Brake cut motor [13:58:53]Read from MH i2c: 01 [13:58:53]MH_I2C_Read... [13:58:53]*** Stop cut motor [13:58:53]*** Cut end [13:58:53]Read from MH i2c: 01 07 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: 01 07 00 90 0B 00 00 00 00 00 FF 0F B0 [13:58:53]process_action close_receipt done [13:58:53]requested_data is exist [13:58:53]produce_requested_data [13:58:53]requested_item fm.sn is exist - process it [13:58:53]wFMCommunicate request_size=4 [13:58:53]MH_SAM_APDU [13:58:53]CAPDU: 80 11 00 00 [13:58:53]Write to MH i2c: E2 08 00 91 0B 80 11 00 00 00 00 00 00 16 [13:58:53]Write i2c OK [13:58:53]MH_I2C_Read... [13:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:53]Read from MH i2c: E2 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 17 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 17 00 91 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 63 [13:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:58:53]wFMCommunicate OK [13:58:53]requested_item fd.num is exist - process it [13:58:53]SAM_PROTO_GetFieldsCounters [13:58:53]wFMCommunicate request_size=4 [13:58:53]MH_SAM_APDU [13:58:53]CAPDU: 80 13 00 00 [13:58:53]Write to MH i2c: E2 08 00 92 0B 80 13 00 00 00 00 00 00 19 [13:58:53]Write i2c OK [13:58:53]MH_I2C_Read... [13:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:54]Read from MH i2c: E2 [13:58:54]MH_I2C_Read... [13:58:54]Read from MH i2c: E2 62 00 [13:58:54]MH_I2C_Read... [13:58:54]Read from MH i2c: E2 62 00 92 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CA 26 01 00 0E 04 04 00 AD 00 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 20 [13:58:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CA 26 01 00 0E 04 04 00 AD 00 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 [13:58:54]wFMCommunicate OK [13:58:54]SAM_PROTO_GetFieldsCounters done [13:58:54]requested_item shift.num is exist - process it [13:58:54]requested_item shift.opened is exist - process it [13:58:54]req_shift_opened [13:58:54]FM_GetShiftState [13:58:54]SAM_PROTO_GetShiftState [13:58:54]wFMCommunicate request_size=4 [13:58:54]MH_SAM_APDU [13:58:54]CAPDU: 80 13 01 00 [13:58:54]Write to MH i2c: E2 08 00 93 0B 80 13 01 00 00 00 00 00 1B [13:58:54]Write i2c OK [13:58:54]MH_I2C_Read... [13:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:54]Read from MH i2c: E2 [13:58:54]MH_I2C_Read... [13:58:54]Read from MH i2c: E2 0E 00 [13:58:54]MH_I2C_Read... [13:58:54]Read from MH i2c: E2 0E 00 93 0B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 80 [13:58:54]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:58:54]wFMCommunicate OK [13:58:54]SAM_PROTO_GetShiftState done [13:58:54]FM_GetShiftState done [13:58:54]req_shift_opened done [13:58:54]requested_item shift.open_date is exist - process it [13:58:54]req_shift_open_date [13:58:54]req_shift_open_date done [13:58:54]produce_requested_data done [13:58:54]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75466,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:58:54]process_action_free close_receipt [13:58:54]json_value_free [13:58:54]json_value_free done [13:58:54]process_json_proto returns [13:58:54]Send response to host [13:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75466,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:58:54]free response buf [13:58:54]execute_script done [13:58:54]execute_script returns [13:58:54]free content buf [13:58:54]Sock 9.Close socket [13:58:54]Sock 9.Thread stoped [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:46]accept exits with 10 [13:59:46]New connection [13:59:46]New thread 3066608996 created [13:59:46]Thread 3066465636 joined [13:59:46]Waiting for new connection... [13:59:46] Sock 10.Parse request [13:59:46]Sock 10.Check first char [13:59:46]Sock 10.First char is OK [13:59:46]request: POST /json_proto HTTP/1.0 [13:59:46]Method: POST [13:59:46]URL: /json_proto [13:59:46]Method is POST - this is cgi request [13:59:46]url: /json_proto [13:59:46]query_string will be loaded in cgi processing [13:59:46]execute_cgi json_proto POST (null) [13:59:46]execute_cgi path=json_proto method=POST [13:59:46]POST find Content-Length [13:59:46]Host: 172.17.44.196:8080 [13:59:46]Content-Length: 678 [13:59:46]Content-Type: application/json [13:59:46] [13:59:46]POST finish read [13:59:46]Found Content-Length = 678 [13:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:59:46]execute_script... [13:59: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)1965585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:59:46]POST & json_proto [13:59:46]process_json_proto [13:59:46]json parsed OK: [13:59:46]protocol is kg_v1.0 [13:59:46]action value=close_receipt [13:59:46]process_action close_receipt [13:59:46]cmd_close_receipt [13:59:46]MH_GetDate [13:59:46]Write to MH i2c: F0 00 00 94 0B 8E [13:59:46]Write i2c OK [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: F0 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: F0 09 00 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: F0 09 00 94 0B 00 53 01 19 67 E7 19 F8 65 C8 [13:59:46]GetLastDocTimeStamp 1729691930 [13:59:46]current date 1729691987 [13:59:46]FM_GetShiftState [13:59:46]SAM_PROTO_GetShiftState [13:59:46]wFMCommunicate request_size=4 [13:59:46]MH_SAM_APDU [13:59:46]CAPDU: 80 13 01 00 [13:59:46]Write to MH i2c: E2 08 00 95 0B 80 13 01 00 00 00 00 00 1D [13:59:46]Write i2c OK [13:59:46]MH_I2C_Read... [13:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:46]Read from MH i2c: E2 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: E2 0E 00 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: E2 0E 00 95 0B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 82 [13:59:46]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:59:46]wFMCommunicate OK [13:59:46]SAM_PROTO_GetShiftState done [13:59:46]FM_GetShiftState done [13:59:46]opened in 1729642905 [13:59:46]opened+sec_in_day 1729729305 [13:59:46]quantity*price = 50041 [13:59:46]sum+1 = 50042 [13:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 200 23.10.2024 13:59 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75467 ФПД: 92784278928048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135947&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75467&fm=92784278928048&tin=02508201610067®Number=0000000000161154&sum=50000 [13:59:48]StoreToDocumentArchive [13:59:48]shift 173 fd 75467 [13:59:48]save to /storage/0173/doc_00075467 [13:59:48]save last doc name /storage/0173/doc_00075467 to /storage/kkm_last_doc_name [13:59:48]save OK [13:59:48]Clear old archive folders... [13:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:48]tlvbuf is B6E863E0 [13:59:48]SAM_PROTO_ClearQueue [13:59:48]wFMCommunicate request_size=4 [13:59:48]MH_SAM_APDU [13:59:48]CAPDU: 80 09 00 00 [13:59:48]Write to MH i2c: E2 08 00 A2 0B 80 09 00 00 00 00 00 00 1F [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:48]Read from MH i2c: E2 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 03 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 03 00 A2 0B 00 90 00 21 [13:59:48]RAPDU: 90 00 [13:59:48]wFMCommunicate OK [13:59:48]SAM_PROTO_ClearQueue done [13:59:48]KKMCreateOFDPacket [13:59:48]OFDProtocolAddRootSTLVToBuf [13:59:48]FM_MakeSignedData [13:59:48]FM_MakeSignedData [13:59:48]SAM_PROTO_SignData [13:59:48]wFMCommunicate request_size=4 [13:59:48]MH_SAM_APDU [13:59:48]CAPDU: 80 0D 01 02 [13:59:48]Write to MH i2c: E2 08 00 A3 0B 80 0D 01 02 00 00 00 00 27 [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:48]Read from MH i2c: E2 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 03 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 03 00 A3 0B 00 90 00 22 [13:59:48]RAPDU: 90 00 [13:59:48]wFMCommunicate OK [13:59:48]wFMCommunicate request_size=255 [13:59:48]MH_SAM_APDU [13:59: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C8 00 00 00 F4 03 04 00 53 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CB 26 01 00 35 04 06 00 54 [13:59:48]Write to MH i2c: E2 02 01 A4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C8 00 00 00 F4 03 04 00 53 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CB 26 01 00 35 04 06 00 54 00 00 38 [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:48]Read from MH i2c: E2 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 03 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 03 00 A4 0B 00 90 00 23 [13:59:48]RAPDU: 90 00 [13:59:48]wFMCommunicate OK [13:59:48]wFMCommunicate request_size=10 [13:59:48]MH_SAM_APDU [13:59:48]CAPDU: 80 0D 02 02 05 63 05 FC 7A B0 [13:59:48]Write to MH i2c: E2 0D 00 A5 0B 80 0D 02 02 05 00 63 05 FC 7A B0 00 00 C2 [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:48]Read from MH i2c: E2 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 03 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 03 00 A5 0B 00 90 00 24 [13:59:48]RAPDU: 90 00 [13:59:48]wFMCommunicate OK [13:59:48]wFMCommunicate request_size=4 [13:59:48]MH_SAM_APDU [13:59:48]CAPDU: 80 0D 03 02 [13:59:48]Write to MH i2c: E2 08 00 A6 0B 80 0D 03 02 00 00 00 00 2C [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:48]Read from MH i2c: E2 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 0B 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 0B 00 A6 0B 00 8D D0 A9 2E ED EF 95 6D 90 00 3F [13:59:48]RAPDU: 8D D0 A9 2E ED EF 95 6D 90 00 [13:59:48]wFMCommunicate OK [13:59:48]SAM_PROTO_SignData done [13:59:48]FM_MakeSignedData done [13:59:48]CreateOFDProtocolMessage [13:59:48]wFMCommunicate request_size=4 [13:59:48]MH_SAM_APDU [13:59:48]CAPDU: 80 11 00 00 [13:59:48]Write to MH i2c: E2 08 00 A7 0B 80 11 00 00 00 00 00 00 2C [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:48]Read from MH i2c: E2 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 17 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 17 00 A7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 79 [13:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:59:48]wFMCommunicate OK [13:59:48]CreateOFDProtocolMessage done [13:59:48]OFDSenderStorePacket 75467 [13:59:48]StoreOFDPacket docnum=75467 [13:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 6E 0C 07 01 82 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C8 00 00 00 F4 03 04 00 53 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CB 26 01 00 35 04 06 00 54 63 05 FC 7A B0 8D D0 A9 2E ED EF 95 6D [13:59:48]CheckFolder [13:59:48]dirname=/storage/ofd_packets [13:59:48]CheckFolder done [13:59:48]ProducePacketName [13:59:48]name=ofd_packets/00075467 [13:59:48]NVStorageSaveData ofd_packets/00075467 [13:59:48]File name is /storage/ofd_packets/00075467 [13:59:48]Write 301 bytes [13:59:48]NVStorageSaveData done [13:59:48]OFDSenderStorePacket done [13:59:48]KKMCreateOFDPacket done [13:59:48]NVStorageSaveData kkm_last_timestamp [13:59:48]File name is /storage/kkm_last_timestamp [13:59:48]Write 4 bytes [13:59:48]NVStorageSaveData done [13:59:48]ExternCall_PrintAddStr [13:59:48]wPrintStart [13:59:48]Write to MH i2c: 01 00 00 A8 0B B3 [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: 01 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: 01 07 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: 01 07 00 A8 0B 00 00 00 00 00 FF 0F C8 [13:59:48]RasterBufferAndPrint [13:59:48]line Счет N : (1)1965585 [13:59:48]line ИНН: 02508201610067 [13:59:48]line Контрольно-Кассовый Чек [13:59:48]line ПРОДАЖА [13:59:48]line ТРК (МРК, ГНК) : 53 [13:59:48]line Товар: 2710124130 [13:59:48]line Аи-92-К-5 [13:59:48]line 7.480 * 66.90 [13:59:48]line = 500.41 [13:59:48]line НДС 12% НСП 1% [13:59:48]line > о реализуемом товаре [13:59:48]line ОКРУГЛЕНИЕ: -0.41 [13:59:48]line ИТОГО: 500.00 [13:59:48]line Внесено: 500.00 [13:59:48]line СДАЧА: 0.00 [13:59:48]line НСП 1% : 4.43 [13:59:48]line НДС 12% : 53.14 [13:59:48]line Наличными: 500.00 [13:59:48]line Безнал.: 0.00 [13:59:48]line Место: АЗС № 133 "Партнер Нефть" [13:59:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [13:59:48]line СНО: Общий режим [13:59:48]line Чек 200 23.10.2024 13:59 [13:59:48]line Смена: 173 ФФД: 1.0 [13:59:48]line ЗНМ: 0300000020 [13:59:48]line РНМ: 0000000000161154 [13:59:48]line Версия ККМ: v1.0 [13:59:48]line ФМ: 0000000000963323 [13:59:48]line ФД: 75467 [13:59:48]line ФПД: 92784278928048 [13:59:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T135947&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75467&fm=92784278928048&tin=02508201610067®Number=0000000000161154&sum=50000 [13:59:48]OFD Sender: Processing packet 75467 [packets to send 16, broken 15] [13:59:48]ProducePacketName [13:59:48]name=ofd_packets/00075467 [13:59:48]OFD Sender: To server: pG, [13:59:48]CommunicateWithHost lk.salyk.kg:30040 [13:59:48]ConnectInit lk.salyk.kg [13:59:48]written 0, free lines is 4095 [13:59:48]Connected sock=9 [13:59:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 6E 0C 07 01 82 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 C8 00 00 00 F4 03 04 00 53 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CB 26 01 00 35 04 06 00 54 63 05 FC 7A B0 8D D0 A9 2E ED EF 95 6D [13:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D1 07 47 00 33 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CB 26 01 00 F4 03 04 00 2E AA 18 67 B6 04 01 00 00 56 C0 3C 89 BC 30 25 D9 [13:59:49]CommunicateWithHost err = 0 [13:59:49]CheckOFDResponse [13:59:49]1017 (14) - 77093643461234 [13:59:49]1041 (16) - 0000000000963323 [13:59:49]1040 (4) - 75467 [13:59:49]1012 (4) - 23.10.2024 07:47 [13:59:49]1206 (1) - 0 [13:59:49]OFD Sender: Remove packet 75467 [13:59:49]ProducePacketName [13:59:49]name=ofd_packets/00075467 [13:59:49]NVStorageDeleteData [13:59:49]Write to MH i2c: 01 00 00 D2 0B DD [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: 01 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: 01 07 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: 01 07 00 D2 0B 00 00 00 00 00 AD 0C 9D [13:59:49]RasterBufferAndPrint [13:59:49]line [13:59:49]line [13:59:49]line [13:59:49]line [13:59:49]line [13:59:49]written 0, free lines is 3248 [13:59:49]MH_Cut [13:59:49]Write to MH i2c: D1 01 00 D9 0B 01 B6 [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: D1 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: D1 01 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: D1 01 00 D9 0B 00 B5 [13:59:49]Write to MH i2c: 01 00 00 DA 0B E5 [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]OFD Sender: No OFD packet to send [13:59:50]*** Cut start [13:59:50]*** Partial cut [13:59:50]*** CUTSNS_PIN = 1 [13:59:50]*** CUTSNS_PIN = 0 [13:59:50]*** Brake cut motor [13:59:50]Read from MH i2c: 01 [13:59:50]MH_I2C_Read... [13:59:50]*** Stop cut motor [13:59:50]*** Cut end [13:59:50]Read from MH i2c: 01 07 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: 01 07 00 DA 0B 00 00 00 00 00 FF 0F FA [13:59:50]process_action close_receipt done [13:59:50]requested_data is exist [13:59:50]produce_requested_data [13:59:50]requested_item fm.sn is exist - process it [13:59:50]wFMCommunicate request_size=4 [13:59:50]MH_SAM_APDU [13:59:50]CAPDU: 80 11 00 00 [13:59:50]Write to MH i2c: E2 08 00 DB 0B 80 11 00 00 00 00 00 00 60 [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:50]Read from MH i2c: E2 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: E2 17 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: E2 17 00 DB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AD [13:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [13:59:50]wFMCommunicate OK [13:59:50]requested_item fd.num is exist - process it [13:59:50]SAM_PROTO_GetFieldsCounters [13:59:50]wFMCommunicate request_size=4 [13:59:50]MH_SAM_APDU [13:59:50]CAPDU: 80 13 00 00 [13:59:50]Write to MH i2c: E2 08 00 DC 0B 80 13 00 00 00 00 00 00 63 [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:51]Read from MH i2c: E2 [13:59:51]MH_I2C_Read... [13:59:51]Read from MH i2c: E2 62 00 [13:59:51]MH_I2C_Read... [13:59:51]Read from MH i2c: E2 62 00 DC 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CB 26 01 00 0E 04 04 00 AD 00 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 6E [13:59:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CB 26 01 00 0E 04 04 00 AD 00 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 [13:59:51]wFMCommunicate OK [13:59:51]SAM_PROTO_GetFieldsCounters done [13:59:51]requested_item shift.num is exist - process it [13:59:51]requested_item shift.opened is exist - process it [13:59:51]req_shift_opened [13:59:51]FM_GetShiftState [13:59:51]SAM_PROTO_GetShiftState [13:59:51]wFMCommunicate request_size=4 [13:59:51]MH_SAM_APDU [13:59:51]CAPDU: 80 13 01 00 [13:59:51]Write to MH i2c: E2 08 00 DD 0B 80 13 01 00 00 00 00 00 65 [13:59:51]Write i2c OK [13:59:51]MH_I2C_Read... [13:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:51]Read from MH i2c: E2 [13:59:51]MH_I2C_Read... [13:59:51]Read from MH i2c: E2 0E 00 [13:59:51]MH_I2C_Read... [13:59:51]Read from MH i2c: E2 0E 00 DD 0B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CA [13:59:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [13:59:51]wFMCommunicate OK [13:59:51]SAM_PROTO_GetShiftState done [13:59:51]FM_GetShiftState done [13:59:51]req_shift_opened done [13:59:51]requested_item shift.open_date is exist - process it [13:59:51]req_shift_open_date [13:59:51]req_shift_open_date done [13:59:51]produce_requested_data done [13:59:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75467,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [13:59:51]process_action_free close_receipt [13:59:51]json_value_free [13:59:51]json_value_free done [13:59:51]process_json_proto returns [13:59:51]Send response to host [13:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75467,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [13:59:51]free response buf [13:59:51]execute_script done [13:59:51]execute_script returns [13:59:51]free content buf [13:59:51]Sock 10.Close socket [13:59:51]Sock 10.Thread stoped [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]accept exits with 8 [14:01:04]New connection [14:01:04]New thread 3066465636 created [14:01:04]Thread 3066608996 joined [14:01:04]Waiting for new connection... [14:01:04] Sock 8.Parse request [14:01:04]Sock 8.Check first char [14:01:04]Sock 8.First char is OK [14:01:04]request: POST /json_proto HTTP/1.0 [14:01:04]Method: POST [14:01:04]URL: /json_proto [14:01:04]Method is POST - this is cgi request [14:01:04]url: /json_proto [14:01:04]query_string will be loaded in cgi processing [14:01:04]execute_cgi json_proto POST (null) [14:01:04]execute_cgi path=json_proto method=POST [14:01:04]POST find Content-Length [14:01:04]Host: 172.17.44.196:8080 [14:01:04]Content-Length: 617 [14:01:04]Content-Type: application/json [14:01:04] [14:01:04]POST finish read [14:01:04]Found Content-Length = 617 [14:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273257", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:04]execute_script... [14:01:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273257", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:04]POST & json_proto [14:01:04]process_json_proto [14:01:04]json parsed OK: [14:01:04]protocol is kg_v1.0 [14:01:04]action value=close_receipt [14:01:04]process_action close_receipt [14:01:04]cmd_close_receipt [14:01:04]MH_GetDate [14:01:04]Write to MH i2c: F0 00 00 DE 0B D8 [14:01:04]Write i2c OK [14:01:04]MH_I2C_Read... [14:01:04]Read from MH i2c: F0 [14:01:04]MH_I2C_Read... [14:01:04]Read from MH i2c: F0 09 00 [14:01:04]MH_I2C_Read... [14:01:04]Read from MH i2c: F0 09 00 DE 0B 00 A0 01 19 67 E7 19 F8 65 5F [14:01:04]GetLastDocTimeStamp 1729691987 [14:01:04]current date 1729692064 [14:01:04]FM_GetShiftState [14:01:04]SAM_PROTO_GetShiftState [14:01:04]wFMCommunicate request_size=4 [14:01:04]MH_SAM_APDU [14:01:04]CAPDU: 80 13 01 00 [14:01:04]Write to MH i2c: E2 08 00 DF 0B 80 13 01 00 00 00 00 00 67 [14:01:04]Write i2c OK [14:01:04]MH_I2C_Read... [14:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:04]Read from MH i2c: E2 [14:01:04]MH_I2C_Read... [14:01:04]Read from MH i2c: E2 0E 00 [14:01:04]MH_I2C_Read... [14:01:04]Read from MH i2c: E2 0E 00 DF 0B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CC [14:01:04]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:01:04]wFMCommunicate OK [14:01:04]SAM_PROTO_GetShiftState done [14:01:04]FM_GetShiftState done [14:01:04]opened in 1729642905 [14:01:04]opened+sec_in_day 1729729305 [14:01:04]quantity*price = 29000 [14:01:04]sum+1 = 29001 [14:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.57 НДС 12% : 30.80 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 201 23.10.2024 14:01 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75468 ФПД: 11687935673067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140104&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75468&fm=11687935673067&tin=02508201610067®Number=0000000000161154&sum=29000 0 [14:01:05]StoreToDocumentArchive [14:01:05]shift 173 fd 75468 [14:01:05]save to /storage/0173/doc_00075468 [14:01:05]save last doc name /storage/0173/doc_00075468 to /storage/kkm_last_doc_name [14:01:05]save OK [14:01:05]Clear old archive folders... [14:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=265 [14:01:05]tlvbuf is 00775330 [14:01:05]SAM_PROTO_ClearQueue [14:01:05]wFMCommunicate request_size=4 [14:01:05]MH_SAM_APDU [14:01:05]CAPDU: 80 09 00 00 [14:01:05]Write to MH i2c: E2 08 00 EC 0B 80 09 00 00 00 00 00 00 69 [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:05]Read from MH i2c: E2 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 03 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 03 00 EC 0B 00 90 00 6B [14:01:05]RAPDU: 90 00 [14:01:05]wFMCommunicate OK [14:01:05]SAM_PROTO_ClearQueue done [14:01:05]KKMCreateOFDPacket [14:01:05]OFDProtocolAddRootSTLVToBuf [14:01:05]FM_MakeSignedData [14:01:05]FM_MakeSignedData [14:01:05]SAM_PROTO_SignData [14:01:05]wFMCommunicate request_size=4 [14:01:05]MH_SAM_APDU [14:01:05]CAPDU: 80 0D 01 02 [14:01:05]Write to MH i2c: E2 08 00 ED 0B 80 0D 01 02 00 00 00 00 71 [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:05]Read from MH i2c: E2 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 03 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 03 00 ED 0B 00 90 00 6C [14:01:05]RAPDU: 90 00 [14:01:05]wFMCommunicate OK [14:01:05]wFMCommunicate request_size=255 [14:01:05]MH_SAM_APDU [14:01:05]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 A0 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 [14:01:05]Write to MH i2c: E2 02 01 EE 0B 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 A0 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 00 00 D5 [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:05]Read from MH i2c: E2 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 03 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 03 00 EE 0B 00 90 00 6D [14:01:05]RAPDU: 90 00 [14:01:05]wFMCommunicate OK [14:01:05]wFMCommunicate request_size=24 [14:01:05]MH_SAM_APDU [14:01:05]CAPDU: 80 0D 02 02 13 33 10 04 04 00 CC 26 01 00 35 04 06 00 0A A1 4F 41 02 EB [14:01:05]Write to MH i2c: E2 1B 00 EF 0B 80 0D 02 02 13 00 33 10 04 04 00 CC 26 01 00 35 04 06 00 0A A1 4F 41 02 EB 00 00 3F [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:05]Read from MH i2c: E2 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 03 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 03 00 EF 0B 00 90 00 6E [14:01:05]RAPDU: 90 00 [14:01:05]wFMCommunicate OK [14:01:05]wFMCommunicate request_size=4 [14:01:05]MH_SAM_APDU [14:01:05]CAPDU: 80 0D 03 02 [14:01:05]Write to MH i2c: E2 08 00 F0 0B 80 0D 03 02 00 00 00 00 76 [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:05]Read from MH i2c: E2 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 0B 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 0B 00 F0 0B 00 23 6A 44 AE 7E CA 4B 25 90 00 AE [14:01:05]RAPDU: 23 6A 44 AE 7E CA 4B 25 90 00 [14:01:05]wFMCommunicate OK [14:01:05]SAM_PROTO_SignData done [14:01:05]FM_MakeSignedData done [14:01:05]CreateOFDProtocolMessage [14:01:05]wFMCommunicate request_size=4 [14:01:05]MH_SAM_APDU [14:01:05]CAPDU: 80 11 00 00 [14:01:05]Write to MH i2c: E2 08 00 F1 0B 80 11 00 00 00 00 00 00 76 [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:05]Read from MH i2c: E2 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 17 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 17 00 F1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C3 [14:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:01:05]wFMCommunicate OK [14:01:05]CreateOFDProtocolMessage done [14:01:05]OFDSenderStorePacket 75468 [14:01:05]StoreOFDPacket docnum=75468 [14:01:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1D 01 00 00 7D 68 15 01 29 59 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 A0 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CC 26 01 00 35 04 06 00 0A A1 4F 41 02 EB 23 6A 44 AE 7E CA 4B 25 [14:01:05]CheckFolder [14:01:05]dirname=/storage/ofd_packets [14:01:05]CheckFolder done [14:01:05]ProducePacketName [14:01:05]name=ofd_packets/00075468 [14:01:05]NVStorageSaveData ofd_packets/00075468 [14:01:05]File name is /storage/ofd_packets/00075468 [14:01:05]Write 315 bytes [14:01:05]NVStorageSaveData done [14:01:05]OFDSenderStorePacket done [14:01:05]KKMCreateOFDPacket done [14:01:05]NVStorageSaveData kkm_last_timestamp [14:01:05]File name is /storage/kkm_last_timestamp [14:01:05]Write 4 bytes [14:01:05]NVStorageSaveData done [14:01:05]ExternCall_PrintAddStr [14:01:05]wPrintStart [14:01:05]Write to MH i2c: 01 00 00 F2 0B FD [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: 01 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: 01 07 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: 01 07 00 F2 0B 00 00 00 00 00 FF 0F 12 [14:01:05]RasterBufferAndPrint [14:01:05]line Счет N : (3)273257 [14:01:05]line ИНН: 02508201610067 [14:01:05]line Контрольно-Кассовый Чек [14:01:05]line ПРОДАЖА [14:01:05]line Товар: 4700001610012 [14:01:05]line Пиво Арпа 0,5л [14:01:05]line 2.000 * 145.00 [14:01:05]line = 290.00 [14:01:05]line НДС 12% НСП 1% [14:01:05]line > о реализуемом товаре [14:01:05]line ИТОГО: 290.00 [14:01:05]line НСП 1% : 2.57 [14:01:05]line НДС 12% : 30.80 [14:01:05]line Наличными: 290.00 [14:01:05]line Безнал.: 0.00 [14:01:05]line Место: АЗС № 133 "Партнер Нефть" [14:01:05]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:01:05]line СНО: Общий режим [14:01:05]line Чек 201 23.10.2024 14:01 [14:01:05]line Смена: 173 ФФД: 1.0 [14:01:05]line ЗНМ: 0300000020 [14:01:05]line РНМ: 0000000000161154 [14:01:05]line Версия ККМ: v1.0 [14:01:05]line ФМ: 0000000000963323 [14:01:05]line ФД: 75468 [14:01:05]line ФПД: 11687935673067 [14:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140104&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75468&fm=11687935673067&tin=02508201610067®Number=0000000000161154&sum=29000 [14:01:06]line 0 [14:01:06]OFD Sender: Processing packet 75468 [packets to send 16, broken 15] [14:01:06]ProducePacketName [14:01:06]name=ofd_packets/00075468 [14:01:06]OFD Sender: To server: pG, [14:01:06]CommunicateWithHost lk.salyk.kg:30040 [14:01:06]ConnectInit lk.salyk.kg [14:01:06]written 0, free lines is 4095 [14:01:06]Connected sock=10 [14:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1D 01 00 00 7D 68 15 01 29 59 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 A0 01 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CC 26 01 00 35 04 06 00 0A A1 4F 41 02 EB 23 6A 44 AE 7E CA 4B 25 [14:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 31 24 47 00 5D C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CC 26 01 00 F4 03 04 00 7B AA 18 67 B6 04 01 00 00 A6 9F B0 C6 7A 3A 56 C3 [14:01:06]CommunicateWithHost err = 0 [14:01:06]CheckOFDResponse [14:01:06]1017 (14) - 77093643461234 [14:01:06]1041 (16) - 0000000000963323 [14:01:06]1040 (4) - 75468 [14:01:06]1012 (4) - 23.10.2024 07:49 [14:01:06]1206 (1) - 0 [14:01:06]OFD Sender: Remove packet 75468 [14:01:06]ProducePacketName [14:01:06]name=ofd_packets/00075468 [14:01:06]NVStorageDeleteData [14:01:06]Write to MH i2c: 01 00 00 19 0C 25 [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: 01 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: 01 07 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: 01 07 00 19 0C 00 00 00 00 00 E1 0C 19 [14:01:06]RasterBufferAndPrint [14:01:06]line [14:01:06]line [14:01:06]line [14:01:06]line [14:01:06]line [14:01:06]written 0, free lines is 3302 [14:01:06]MH_Cut [14:01:06]Write to MH i2c: D1 01 00 20 0C 01 FE [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: D1 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: D1 01 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: D1 01 00 20 0C 00 FD [14:01:06]Write to MH i2c: 01 00 00 21 0C 2D [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:07]OFD Sender: No OFD packet to send [14:01:07]*** Cut start [14:01:07]*** Partial cut [14:01:07]*** CUTSNS_PIN = 1 [14:01:07]*** CUTSNS_PIN = 0 [14:01:07]*** Brake cut motor [14:01:08]Read from MH i2c: 01 [14:01:08]MH_I2C_Read... [14:01:08]*** Stop cut motor [14:01:08]*** Cut end [14:01:08]Read from MH i2c: 01 07 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: 01 07 00 21 0C 00 00 00 00 00 FF 0F 42 [14:01:08]process_action close_receipt done [14:01:08]requested_data is exist [14:01:08]produce_requested_data [14:01:08]requested_item fm.sn is exist - process it [14:01:08]wFMCommunicate request_size=4 [14:01:08]MH_SAM_APDU [14:01:08]CAPDU: 80 11 00 00 [14:01:08]Write to MH i2c: E2 08 00 22 0C 80 11 00 00 00 00 00 00 A8 [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:08]Read from MH i2c: E2 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 17 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 17 00 22 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F5 [14:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:01:08]wFMCommunicate OK [14:01:08]requested_item fd.num is exist - process it [14:01:08]SAM_PROTO_GetFieldsCounters [14:01:08]wFMCommunicate request_size=4 [14:01:08]MH_SAM_APDU [14:01:08]CAPDU: 80 13 00 00 [14:01:08]Write to MH i2c: E2 08 00 23 0C 80 13 00 00 00 00 00 00 AB [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:08]Read from MH i2c: E2 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 62 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 62 00 23 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CC 26 01 00 0E 04 04 00 AD 00 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 BA [14:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CC 26 01 00 0E 04 04 00 AD 00 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 [14:01:08]wFMCommunicate OK [14:01:08]SAM_PROTO_GetFieldsCounters done [14:01:08]requested_item shift.num is exist - process it [14:01:08]requested_item shift.opened is exist - process it [14:01:08]req_shift_opened [14:01:08]FM_GetShiftState [14:01:08]SAM_PROTO_GetShiftState [14:01:08]wFMCommunicate request_size=4 [14:01:08]MH_SAM_APDU [14:01:08]CAPDU: 80 13 01 00 [14:01:08]Write to MH i2c: E2 08 00 24 0C 80 13 01 00 00 00 00 00 AD [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:08]Read from MH i2c: E2 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 0E 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 0E 00 24 0C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 12 [14:01:08]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:01:08]wFMCommunicate OK [14:01:08]SAM_PROTO_GetShiftState done [14:01:08]FM_GetShiftState done [14:01:08]req_shift_opened done [14:01:08]requested_item shift.open_date is exist - process it [14:01:08]req_shift_open_date [14:01:08]req_shift_open_date done [14:01:08]produce_requested_data done [14:01:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75468,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:01:08]process_action_free close_receipt [14:01:08]json_value_free [14:01:08]json_value_free done [14:01:08]process_json_proto returns [14:01:08]Send response to host [14:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75468,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:01:08]free response buf [14:01:08]execute_script done [14:01:08]execute_script returns [14:01:08]free content buf [14:01:08]Sock 8.Close socket [14:01:08]Sock 8.Thread stoped [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:16]accept exits with 9 [14:09:16]New connection [14:09:16]New thread 3066608996 created [14:09:16]Thread 3066465636 joined [14:09:16]Waiting for new connection... [14:09:16] Sock 9.Parse request [14:09:16]Sock 9.Check first char [14:09:16]Sock 9.First char is OK [14:09:16]request: POST /json_proto HTTP/1.0 [14:09:16]Method: POST [14:09:16]URL: /json_proto [14:09:16]Method is POST - this is cgi request [14:09:16]url: /json_proto [14:09:16]query_string will be loaded in cgi processing [14:09:16]execute_cgi json_proto POST (null) [14:09:16]execute_cgi path=json_proto method=POST [14:09:16]POST find Content-Length [14:09:16]Host: 172.17.44.196:8080 [14:09:16]Content-Length: 614 [14:09:16]Content-Type: application/json [14:09:16] [14:09:16]POST finish read [14:09:16]Found Content-Length = 614 [14:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273258", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [14:09:16]execute_script... [14: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 : (3)273258", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [14:09:16]POST & json_proto [14:09:16]process_json_proto [14:09:16]json parsed OK: [14:09:16]protocol is kg_v1.0 [14:09:16]action value=close_receipt [14:09:16]process_action close_receipt [14:09:16]cmd_close_receipt [14:09:16]MH_GetDate [14:09:16]Write to MH i2c: F0 00 00 25 0C 20 [14:09:16]Write i2c OK [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: F0 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: F0 09 00 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: F0 09 00 25 0C 00 8C 03 19 67 E7 19 F8 65 95 [14:09:16]GetLastDocTimeStamp 1729692064 [14:09:16]current date 1729692556 [14:09:16]FM_GetShiftState [14:09:16]SAM_PROTO_GetShiftState [14:09:16]wFMCommunicate request_size=4 [14:09:16]MH_SAM_APDU [14:09:16]CAPDU: 80 13 01 00 [14:09:16]Write to MH i2c: E2 08 00 26 0C 80 13 01 00 00 00 00 00 AF [14:09:16]Write i2c OK [14:09:16]MH_I2C_Read... [14:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:16]Read from MH i2c: E2 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: E2 0E 00 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: E2 0E 00 26 0C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 14 [14:09:16]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:09:16]wFMCommunicate OK [14:09:16]SAM_PROTO_GetShiftState done [14:09:16]FM_GetShiftState done [14:09:16]opened in 1729642905 [14:09:16]opened+sec_in_day 1729729305 [14:09:16]quantity*price = 11100 [14:09:16]sum+1 = 11101 [14:09:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 202 23.10.2024 14:09 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75469 ФПД: 127064510711254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140916&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75469&fm=127064510711254&tin=02508201610067®Number=0000000000161154&sum=11100 0 [14:09:17]StoreToDocumentArchive [14:09:17]shift 173 fd 75469 [14:09:17]save to /storage/0173/doc_00075469 [14:09:17]save last doc name /storage/0173/doc_00075469 to /storage/kkm_last_doc_name [14:09:17]save OK [14:09:17]Clear old archive folders... [14:09:17]ProcessDocumentItem done err = 0, tmpTLVsize=266 [14:09:17]tlvbuf is 00759940 [14:09:17]SAM_PROTO_ClearQueue [14:09:17]wFMCommunicate request_size=4 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 09 00 00 [14:09:17]Write to MH i2c: E2 08 00 33 0C 80 09 00 00 00 00 00 00 B1 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 33 0C 00 90 00 B3 [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]SAM_PROTO_ClearQueue done [14:09:17]KKMCreateOFDPacket [14:09:17]OFDProtocolAddRootSTLVToBuf [14:09:17]FM_MakeSignedData [14:09:17]FM_MakeSignedData [14:09:17]SAM_PROTO_SignData [14:09:17]wFMCommunicate request_size=4 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 0D 01 02 [14:09:17]Write to MH i2c: E2 08 00 34 0C 80 0D 01 02 00 00 00 00 B9 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 34 0C 00 90 00 B4 [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]wFMCommunicate request_size=255 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 CA 00 00 00 F4 03 04 00 8C 03 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 [14:09:17]Write to MH i2c: E2 02 01 35 0C 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 CA 00 00 00 F4 03 04 00 8C 03 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 00 00 4C [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]OFD Sender: No OFD packet to send [14:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 35 0C 00 90 00 B5 [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]wFMCommunicate request_size=25 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 0D 02 02 14 32 33 10 04 04 00 CD 26 01 00 35 04 06 00 73 90 83 06 45 D6 [14:09:17]Write to MH i2c: E2 1C 00 36 0C 80 0D 02 02 14 00 32 33 10 04 04 00 CD 26 01 00 35 04 06 00 73 90 83 06 45 D6 00 00 3B [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 36 0C 00 90 00 B6 [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]wFMCommunicate request_size=4 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 0D 03 02 [14:09:17]Write to MH i2c: E2 08 00 37 0C 80 0D 03 02 00 00 00 00 BE [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 0B 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 0B 00 37 0C 00 46 89 96 FD 73 13 2C 38 90 00 0B [14:09:17]RAPDU: 46 89 96 FD 73 13 2C 38 90 00 [14:09:17]wFMCommunicate OK [14:09:17]SAM_PROTO_SignData done [14:09:17]FM_MakeSignedData done [14:09:17]CreateOFDProtocolMessage [14:09:17]wFMCommunicate request_size=4 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 11 00 00 [14:09:17]Write to MH i2c: E2 08 00 38 0C 80 11 00 00 00 00 00 00 BE [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 17 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 17 00 38 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0B [14:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:09:17]wFMCommunicate OK [14:09:17]CreateOFDProtocolMessage done [14:09:17]OFDSenderStorePacket 75469 [14:09:17]StoreOFDPacket docnum=75469 [14:09:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1E 01 00 00 C3 F2 16 01 4E C2 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 CA 00 00 00 F4 03 04 00 8C 03 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CD 26 01 00 35 04 06 00 73 90 83 06 45 D6 46 89 96 FD 73 13 2C 38 [14:09:17]CheckFolder [14:09:17]dirname=/storage/ofd_packets [14:09:17]CheckFolder done [14:09:17]ProducePacketName [14:09:17]name=ofd_packets/00075469 [14:09:17]NVStorageSaveData ofd_packets/00075469 [14:09:17]File name is /storage/ofd_packets/00075469 [14:09:17]Write 316 bytes [14:09:17]NVStorageSaveData done [14:09:17]OFDSenderStorePacket done [14:09:17]KKMCreateOFDPacket done [14:09:17]NVStorageSaveData kkm_last_timestamp [14:09:17]File name is /storage/kkm_last_timestamp [14:09:17]Write 4 bytes [14:09:17]NVStorageSaveData done [14:09:17]ExternCall_PrintAddStr [14:09:17]wPrintStart [14:09:17]Write to MH i2c: 01 00 00 39 0C 45 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: 01 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: 01 07 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: 01 07 00 39 0C 00 00 00 00 00 FF 0F 5A [14:09:17]RasterBufferAndPrint [14:09:17]line Счет N : (3)273258 [14:09:17]line ИНН: 02508201610067 [14:09:17]line Контрольно-Кассовый Чек [14:09:17]line ПРОДАЖА [14:09:17]line Товар: 4870001570071 [14:09:17]line Напиток Pepsi 1л [14:09:17]line 1.000 * 111.00 [14:09:17]line = 111.00 [14:09:17]line НДС 12% НСП 1% [14:09:17]line > о реализуемом товаре [14:09:17]line ИТОГО: 111.00 [14:09:17]line НСП 1% : 0.98 [14:09:17]line НДС 12% : 11.79 [14:09:17]line Наличными: 111.00 [14:09:17]line Безнал.: 0.00 [14:09:17]line Место: АЗС № 133 "Партнер Нефть" [14:09:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:09:17]line СНО: Общий режим [14:09:17]line Чек 202 23.10.2024 14:09 [14:09:17]line Смена: 173 ФФД: 1.0 [14:09:17]line ЗНМ: 0300000020 [14:09:17]line РНМ: 0000000000161154 [14:09:17]line Версия ККМ: v1.0 [14:09:17]line ФМ: 0000000000963323 [14:09:17]line ФД: 75469 [14:09:17]line ФПД: 127064510711254 [14:09:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140916&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75469&fm=127064510711254&tin=02508201610067®Number=0000000000161154&sum=11100 [14:09:18]line 0 [14:09:18]OFD Sender: Processing packet 75469 [packets to send 16, broken 15] [14:09:18]ProducePacketName [14:09:18]name=ofd_packets/00075469 [14:09:18]OFD Sender: To server: pG, [14:09:18]CommunicateWithHost lk.salyk.kg:30040 [14:09:18]ConnectInit lk.salyk.kg [14:09:18]written 0, free lines is 4095 [14:09:18]Connected sock=10 [14:09:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1E 01 00 00 C3 F2 16 01 4E C2 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 CA 00 00 00 F4 03 04 00 8C 03 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CD 26 01 00 35 04 06 00 73 90 83 06 45 D6 46 89 96 FD 73 13 2C 38 [14:09:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EF 2D 47 00 E5 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 39 36 33 33 32 33 10 04 04 00 CD 26 01 00 F4 03 04 00 67 AC 18 67 B6 04 01 00 00 66 2C 66 C9 13 AE 56 9F [14:09:18]CommunicateWithHost err = 0 [14:09:18]CheckOFDResponse [14:09:18]1017 (14) - 77093643461234 [14:09:18]1041 (16) - 0000000000963323 [14:09:18]1040 (4) - 75469 [14:09:18]1012 (4) - 23.10.2024 07:57 [14:09:18]1206 (1) - 0 [14:09:18]OFD Sender: Remove packet 75469 [14:09:18]ProducePacketName [14:09:18]name=ofd_packets/00075469 [14:09:18]NVStorageDeleteData [14:09:18]Write to MH i2c: 01 00 00 60 0C 6C [14:09:18]Write i2c OK [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: 01 [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: 01 07 00 [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: 01 07 00 60 0C 00 00 00 00 00 CE 0C 4D [14:09:18]RasterBufferAndPrint [14:09:18]line [14:09:18]line [14:09:18]line [14:09:18]line [14:09:18]line [14:09:18]written 0, free lines is 3282 [14:09:18]MH_Cut [14:09:18]Write to MH i2c: D1 01 00 67 0C 01 45 [14:09:18]Write i2c OK [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: D1 [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: D1 01 00 [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: D1 01 00 67 0C 00 44 [14:09:18]Write to MH i2c: 01 00 00 68 0C 74 [14:09:18]Write i2c OK [14:09:18]MH_I2C_Read... [14:09:18]OFD Sender: No OFD packet to send [14:09:19]*** Cut start [14:09:19]*** Partial cut [14:09:19]*** CUTSNS_PIN = 1 [14:09:19]*** CUTSNS_PIN = 0 [14:09:19]*** Brake cut motor [14:09:20]Read from MH i2c: 01 [14:09:20]MH_I2C_Read... [14:09:20]*** Stop cut motor [14:09:20]*** Cut end [14:09:20]Read from MH i2c: 01 07 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [14:09:20]process_action close_receipt done [14:09:20]requested_data is exist [14:09:20]produce_requested_data [14:09:20]requested_item fm.sn is exist - process it [14:09:20]wFMCommunicate request_size=4 [14:09:20]MH_SAM_APDU [14:09:20]CAPDU: 80 11 00 00 [14:09:20]Write to MH i2c: E2 08 00 69 0C 80 11 00 00 00 00 00 00 EF [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:20]Read from MH i2c: E2 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 17 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 17 00 69 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3C [14:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:09:20]wFMCommunicate OK [14:09:20]requested_item fd.num is exist - process it [14:09:20]SAM_PROTO_GetFieldsCounters [14:09:20]wFMCommunicate request_size=4 [14:09:20]MH_SAM_APDU [14:09:20]CAPDU: 80 13 00 00 [14:09:20]Write to MH i2c: E2 08 00 6A 0C 80 13 00 00 00 00 00 00 F2 [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:20]Read from MH i2c: E2 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 62 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 62 00 6A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CD 26 01 00 0E 04 04 00 AD 00 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 05 [14:09:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CD 26 01 00 0E 04 04 00 AD 00 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 [14:09:20]wFMCommunicate OK [14:09:20]SAM_PROTO_GetFieldsCounters done [14:09:20]requested_item shift.num is exist - process it [14:09:20]requested_item shift.opened is exist - process it [14:09:20]req_shift_opened [14:09:20]FM_GetShiftState [14:09:20]SAM_PROTO_GetShiftState [14:09:20]wFMCommunicate request_size=4 [14:09:20]MH_SAM_APDU [14:09:20]CAPDU: 80 13 01 00 [14:09:20]Write to MH i2c: E2 08 00 6B 0C 80 13 01 00 00 00 00 00 F4 [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:20]Read from MH i2c: E2 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 0E 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 0E 00 6B 0C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 59 [14:09:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:09:20]wFMCommunicate OK [14:09:20]SAM_PROTO_GetShiftState done [14:09:20]FM_GetShiftState done [14:09:20]req_shift_opened done [14:09:20]requested_item shift.open_date is exist - process it [14:09:20]req_shift_open_date [14:09:20]req_shift_open_date done [14:09:20]produce_requested_data done [14:09:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75469,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:09:20]process_action_free close_receipt [14:09:20]json_value_free [14:09:20]json_value_free done [14:09:20]process_json_proto returns [14:09:20]Send response to host [14:09:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75469,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:09:20]free response buf [14:09:20]execute_script done [14:09:20]execute_script returns [14:09:20]free content buf [14:09:20]Sock 9.Close socket [14:09:20]Sock 9.Thread stoped [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:00]accept exits with 8 [14:26:00]New connection [14:26:00]New thread 3066465636 created [14:26:00]Thread 3066608996 joined [14:26:00]Waiting for new connection... [14:26:00] Sock 8.Parse request [14:26:00]Sock 8.Check first char [14:26:00]Sock 8.First char is OK [14:26:00]request: POST /json_proto HTTP/1.0 [14:26:00]Method: POST [14:26:00]URL: /json_proto [14:26:00]Method is POST - this is cgi request [14:26:00]url: /json_proto [14:26:00]query_string will be loaded in cgi processing [14:26:00]execute_cgi json_proto POST (null) [14:26:00]execute_cgi path=json_proto method=POST [14:26:00]POST find Content-Length [14:26:00]Host: 172.17.44.196:8080 [14:26:00]Content-Length: 683 [14:26:00]Content-Type: application/json [14:26:00] [14:26:00]POST finish read [14:26:00]Found Content-Length = 683 [14:26:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:00]execute_script... [14:26: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)1965617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:00]POST & json_proto [14:26:00]process_json_proto [14:26:00]json parsed OK: [14:26:00]protocol is kg_v1.0 [14:26:00]action value=close_receipt [14:26:00]process_action close_receipt [14:26:00]cmd_close_receipt [14:26:00]MH_GetDate [14:26:00]Write to MH i2c: F0 00 00 6C 0C 67 [14:26:00]Write i2c OK [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: F0 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: F0 09 00 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: F0 09 00 6C 0C 00 79 07 19 67 E7 19 F8 65 CD [14:26:00]GetLastDocTimeStamp 1729692556 [14:26:00]current date 1729693561 [14:26:00]FM_GetShiftState [14:26:00]SAM_PROTO_GetShiftState [14:26:00]wFMCommunicate request_size=4 [14:26:00]MH_SAM_APDU [14:26:00]CAPDU: 80 13 01 00 [14:26:00]Write to MH i2c: E2 08 00 6D 0C 80 13 01 00 00 00 00 00 F6 [14:26:00]Write i2c OK [14:26:00]MH_I2C_Read... [14:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:00]Read from MH i2c: E2 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 0E 00 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 0E 00 6D 0C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5B [14:26:00]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:26:00]wFMCommunicate OK [14:26:00]SAM_PROTO_GetShiftState done [14:26:00]FM_GetShiftState done [14:26:00]opened in 1729642905 [14:26:00]opened+sec_in_day 1729729305 [14:26:00]quantity*price = 100015 [14:26:00]sum+1 = 100017 [14:26:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 203 23.10.2024 14:26 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75470 ФПД: 32370391251244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142601&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75470&fm=32370391251244&tin=02508201610067®Number=0000000000161154&sum=100000 [14:26:02]StoreToDocumentArchive [14:26:02]shift 173 fd 75470 [14:26:02]save to /storage/0173/doc_00075470 [14:26:02]save last doc name /storage/0173/doc_00075470 to /storage/kkm_last_doc_name [14:26:02]save OK [14:26:02]Clear old archive folders... [14:26:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:02]tlvbuf is 00775230 [14:26:02]SAM_PROTO_ClearQueue [14:26:02]wFMCommunicate request_size=4 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 09 00 00 [14:26:02]Write to MH i2c: E2 08 00 7A 0C 80 09 00 00 00 00 00 00 F8 [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [14:26:02]RAPDU: 90 00 [14:26:02]wFMCommunicate OK [14:26:02]SAM_PROTO_ClearQueue done [14:26:02]KKMCreateOFDPacket [14:26:02]OFDProtocolAddRootSTLVToBuf [14:26:02]FM_MakeSignedData [14:26:02]FM_MakeSignedData [14:26:02]SAM_PROTO_SignData [14:26:02]wFMCommunicate request_size=4 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 0D 01 02 [14:26:02]Write to MH i2c: E2 08 00 7B 0C 80 0D 01 02 00 00 00 00 00 [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [14:26:02]RAPDU: 90 00 [14:26:02]wFMCommunicate OK [14:26:02]wFMCommunicate request_size=255 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 79 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CE 26 01 00 35 04 06 00 1D [14:26:02]Write to MH i2c: E2 02 01 7C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 79 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CE 26 01 00 35 04 06 00 1D 00 00 06 [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [14:26:02]RAPDU: 90 00 [14:26:02]wFMCommunicate OK [14:26:02]wFMCommunicate request_size=10 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 0D 02 02 05 70 D1 AB F9 2C [14:26:02]Write to MH i2c: E2 0D 00 7D 0C 80 0D 02 02 05 00 70 D1 AB F9 2C 00 00 1E [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [14:26:02]RAPDU: 90 00 [14:26:02]wFMCommunicate OK [14:26:02]wFMCommunicate request_size=4 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 0D 03 02 [14:26:02]Write to MH i2c: E2 08 00 7E 0C 80 0D 03 02 00 00 00 00 05 [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 0B 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 0B 00 7E 0C 00 F1 36 89 2F EA 4C A3 96 90 00 54 [14:26:02]RAPDU: F1 36 89 2F EA 4C A3 96 90 00 [14:26:02]wFMCommunicate OK [14:26:02]SAM_PROTO_SignData done [14:26:02]FM_MakeSignedData done [14:26:02]CreateOFDProtocolMessage [14:26:02]wFMCommunicate request_size=4 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 11 00 00 [14:26:02]Write to MH i2c: E2 08 00 7F 0C 80 11 00 00 00 00 00 00 05 [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 17 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 17 00 7F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 52 [14:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:26:02]wFMCommunicate OK [14:26:02]CreateOFDProtocolMessage done [14:26:02]OFDSenderStorePacket 75470 [14:26:02]StoreOFDPacket docnum=75470 [14:26:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D7 D5 07 01 AC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 79 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CE 26 01 00 35 04 06 00 1D 70 D1 AB F9 2C F1 36 89 2F EA 4C A3 96 [14:26:02]CheckFolder [14:26:02]dirname=/storage/ofd_packets [14:26:02]CheckFolder done [14:26:02]ProducePacketName [14:26:02]name=ofd_packets/00075470 [14:26:02]NVStorageSaveData ofd_packets/00075470 [14:26:02]File name is /storage/ofd_packets/00075470 [14:26:02]Write 301 bytes [14:26:02]NVStorageSaveData done [14:26:02]OFDSenderStorePacket done [14:26:02]KKMCreateOFDPacket done [14:26:02]NVStorageSaveData kkm_last_timestamp [14:26:02]File name is /storage/kkm_last_timestamp [14:26:02]Write 4 bytes [14:26:02]NVStorageSaveData done [14:26:02]ExternCall_PrintAddStr [14:26:02]wPrintStart [14:26:02]Write to MH i2c: 01 00 00 80 0C 8C [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: 01 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: 01 07 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: 01 07 00 80 0C 00 00 00 00 00 FF 0F A1 [14:26:02]RasterBufferAndPrint [14:26:02]line Счет N : (1)1965617 [14:26:02]line ИНН: 02508201610067 [14:26:02]line Контрольно-Кассовый Чек [14:26:02]line ПРОДАЖА [14:26:02]line ТРК (МРК, ГНК) : 43 [14:26:02]line Товар: 2710124130 [14:26:02]line Аи-92-К-5 [14:26:02]line 14.950 * 66.90 [14:26:02]line = 1000.16 [14:26:02]line НДС 12% НСП 1% [14:26:02]line > о реализуемом товаре [14:26:02]line ОКРУГЛЕНИЕ: -0.16 [14:26:02]line ИТОГО: 1000.00 [14:26:02]line Внесено: 1000.00 [14:26:02]line СДАЧА: 0.00 [14:26:02]line НСП 1% : 8.85 [14:26:02]line НДС 12% : 106.21 [14:26:02]line Наличными: 1000.00 [14:26:02]line Безнал.: 0.00 [14:26:02]line Место: АЗС № 133 "Партнер Нефть" [14:26:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:26:02]line СНО: Общий режим [14:26:02]line Чек 203 23.10.2024 14:26 [14:26:02]line Смена: 173 ФФД: 1.0 [14:26:02]line ЗНМ: 0300000020 [14:26:02]line РНМ: 0000000000161154 [14:26:02]line Версия ККМ: v1.0 [14:26:02]line ФМ: 0000000000963323 [14:26:02]line ФД: 75470 [14:26:02]line ФПД: 32370391251244 [14:26:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142601&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75470&fm=32370391251244&tin=02508201610067®Number=0000000000161154&sum=100000 [14:26:02]OFD Sender: Processing packet 75470 [packets to send 16, broken 15] [14:26:02]ProducePacketName [14:26:02]name=ofd_packets/00075470 [14:26:02]OFD Sender: To server: pG, [14:26:02]CommunicateWithHost lk.salyk.kg:30040 [14:26:02]ConnectInit lk.salyk.kg [14:26:02]written 0, free lines is 4095 [14:26:03]Connected sock=10 [14:26:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 D7 D5 07 01 AC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 79 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CE 26 01 00 35 04 06 00 1D 70 D1 AB F9 2C F1 36 89 2F EA 4C A3 96 [14:26:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8F 3C 47 00 4A 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 39 36 33 33 32 33 10 04 04 00 CE 26 01 00 F4 03 04 00 54 B0 18 67 B6 04 01 00 00 74 E5 1B 07 C7 73 2F 4B [14:26:03]CommunicateWithHost err = 0 [14:26:03]CheckOFDResponse [14:26:03]1017 (14) - 77093643461234 [14:26:03]1041 (16) - 0000000000963323 [14:26:03]1040 (4) - 75470 [14:26:03]1012 (4) - 23.10.2024 08:14 [14:26:03]1206 (1) - 0 [14:26:03]OFD Sender: Remove packet 75470 [14:26:03]ProducePacketName [14:26:03]name=ofd_packets/00075470 [14:26:03]NVStorageDeleteData [14:26:03]Write to MH i2c: 01 00 00 AA 0C B6 [14:26:03]Write i2c OK [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: 01 [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: 01 07 00 [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 A4 0C 6D [14:26:03]RasterBufferAndPrint [14:26:03]line [14:26:03]line [14:26:03]line [14:26:03]line [14:26:03]line [14:26:03]written 0, free lines is 3240 [14:26:03]MH_Cut [14:26:03]Write to MH i2c: D1 01 00 B1 0C 01 8F [14:26:03]Write i2c OK [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: D1 [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: D1 01 00 [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: D1 01 00 B1 0C 00 8E [14:26:03]Write to MH i2c: 01 00 00 B2 0C BE [14:26:03]Write i2c OK [14:26:03]MH_I2C_Read... [14:26:03]OFD Sender: No OFD packet to send [14:26:04]*** Cut start [14:26:04]*** Partial cut [14:26:04]*** CUTSNS_PIN = 1 [14:26:04]*** CUTSNS_PIN = 0 [14:26:04]*** Brake cut motor [14:26:04]Read from MH i2c: 01 [14:26:04]MH_I2C_Read... [14:26:04]*** Stop cut motor [14:26:04]*** Cut end [14:26:04]Read from MH i2c: 01 07 00 [14:26:04]MH_I2C_Read... [14:26:04]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [14:26:04]process_action close_receipt done [14:26:04]requested_data is exist [14:26:04]produce_requested_data [14:26:04]requested_item fm.sn is exist - process it [14:26:04]wFMCommunicate request_size=4 [14:26:04]MH_SAM_APDU [14:26:04]CAPDU: 80 11 00 00 [14:26:04]Write to MH i2c: E2 08 00 B3 0C 80 11 00 00 00 00 00 00 39 [14:26:04]Write i2c OK [14:26:04]MH_I2C_Read... [14:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:05]Read from MH i2c: E2 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 17 00 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 17 00 B3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [14:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:26:05]wFMCommunicate OK [14:26:05]requested_item fd.num is exist - process it [14:26:05]SAM_PROTO_GetFieldsCounters [14:26:05]wFMCommunicate request_size=4 [14:26:05]MH_SAM_APDU [14:26:05]CAPDU: 80 13 00 00 [14:26:05]Write to MH i2c: E2 08 00 B4 0C 80 13 00 00 00 00 00 00 3C [14:26:05]Write i2c OK [14:26:05]MH_I2C_Read... [14:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:05]Read from MH i2c: E2 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 62 00 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 62 00 B4 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CE 26 01 00 0E 04 04 00 AD 00 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 53 [14:26:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CE 26 01 00 0E 04 04 00 AD 00 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 [14:26:05]wFMCommunicate OK [14:26:05]SAM_PROTO_GetFieldsCounters done [14:26:05]requested_item shift.num is exist - process it [14:26:05]requested_item shift.opened is exist - process it [14:26:05]req_shift_opened [14:26:05]FM_GetShiftState [14:26:05]SAM_PROTO_GetShiftState [14:26:05]wFMCommunicate request_size=4 [14:26:05]MH_SAM_APDU [14:26:05]CAPDU: 80 13 01 00 [14:26:05]Write to MH i2c: E2 08 00 B5 0C 80 13 01 00 00 00 00 00 3E [14:26:05]Write i2c OK [14:26:05]MH_I2C_Read... [14:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:05]Read from MH i2c: E2 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 0E 00 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 0E 00 B5 0C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A3 [14:26:05]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:26:05]wFMCommunicate OK [14:26:05]SAM_PROTO_GetShiftState done [14:26:05]FM_GetShiftState done [14:26:05]req_shift_opened done [14:26:05]requested_item shift.open_date is exist - process it [14:26:05]req_shift_open_date [14:26:05]req_shift_open_date done [14:26:05]produce_requested_data done [14:26:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75470,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:26:05]process_action_free close_receipt [14:26:05]json_value_free [14:26:05]json_value_free done [14:26:05]process_json_proto returns [14:26:05]Send response to host [14:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75470,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:26:05]free response buf [14:26:05]execute_script done [14:26:05]execute_script returns [14:26:05]free content buf [14:26:05]Sock 8.Close socket [14:26:05]Sock 8.Thread stoped [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:32]accept exits with 9 [14:26:32]New connection [14:26:32]New thread 3066608996 created [14:26:32]Thread 3066465636 joined [14:26:32]Waiting for new connection... [14:26:32] Sock 9.Parse request [14:26:32]Sock 9.Check first char [14:26:32]Sock 9.First char is OK [14:26:32]request: POST /json_proto HTTP/1.0 [14:26:32]Method: POST [14:26:32]URL: /json_proto [14:26:32]Method is POST - this is cgi request [14:26:32]url: /json_proto [14:26:32]query_string will be loaded in cgi processing [14:26:32]execute_cgi json_proto POST (null) [14:26:32]execute_cgi path=json_proto method=POST [14:26:32]POST find Content-Length [14:26:32]Host: 172.17.44.196:8080 [14:26:32]Content-Length: 1078 [14:26:32]Content-Type: application/json [14:26:32] [14:26:32]POST finish read [14:26:32]Found Content-Length = 1078 [14:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273259", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:32]execute_script... [14:26:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273259", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:32]POST & json_proto [14:26:32]process_json_proto [14:26:32]json parsed OK: [14:26:32]protocol is kg_v1.0 [14:26:32]action value=close_receipt [14:26:32]process_action close_receipt [14:26:32]cmd_close_receipt [14:26:32]MH_GetDate [14:26:32]Write to MH i2c: F0 00 00 B6 0C B1 [14:26:32]Write i2c OK [14:26:32]MH_I2C_Read... [14:26:32]Read from MH i2c: F0 [14:26:32]MH_I2C_Read... [14:26:32]Read from MH i2c: F0 09 00 [14:26:32]MH_I2C_Read... [14:26:32]Read from MH i2c: F0 09 00 B6 0C 00 98 07 19 67 E7 19 F8 65 36 [14:26:32]GetLastDocTimeStamp 1729693561 [14:26:32]current date 1729693592 [14:26:32]FM_GetShiftState [14:26:32]SAM_PROTO_GetShiftState [14:26:32]wFMCommunicate request_size=4 [14:26:32]MH_SAM_APDU [14:26:32]CAPDU: 80 13 01 00 [14:26:32]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [14:26:32]Write i2c OK [14:26:32]MH_I2C_Read... [14:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:32]Read from MH i2c: E2 [14:26:32]MH_I2C_Read... [14:26:32]Read from MH i2c: E2 0E 00 [14:26:32]MH_I2C_Read... [14:26:32]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A5 [14:26:32]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:26:32]wFMCommunicate OK [14:26:32]SAM_PROTO_GetShiftState done [14:26:32]FM_GetShiftState done [14:26:32]opened in 1729642905 [14:26:32]opened+sec_in_day 1729729305 [14:26:32]quantity*price = 7000 [14:26:32]sum+1 = 7001 [14:26:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.39 Наличными: 0.00 Безнал.: 145.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 204 23.10.2024 14:26 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75471 ФПД: 209170152956627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142632&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75471&fm=209170152956627&tin=02508201610067®Number=0000000000161154&sum=14500 0 [14:26:33]StoreToDocumentArchive [14:26:33]shift 173 fd 75471 [14:26:33]save to /storage/0173/doc_00075471 [14:26:33]save last doc name /storage/0173/doc_00075471 to /storage/kkm_last_doc_name [14:26:33]save OK [14:26:33]Clear old archive folders... [14:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=397 [14:26:33]tlvbuf is 0078AE90 [14:26:33]SAM_PROTO_ClearQueue [14:26:33]wFMCommunicate request_size=4 [14:26:33]MH_SAM_APDU [14:26:33]CAPDU: 80 09 00 00 [14:26:33]Write to MH i2c: E2 08 00 C4 0C 80 09 00 00 00 00 00 00 42 [14:26:33]Write i2c OK [14:26:33]MH_I2C_Read... [14:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:33]Read from MH i2c: E2 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [14:26:33]RAPDU: 90 00 [14:26:33]wFMCommunicate OK [14:26:33]SAM_PROTO_ClearQueue done [14:26:33]KKMCreateOFDPacket [14:26:33]OFDProtocolAddRootSTLVToBuf [14:26:33]FM_MakeSignedData [14:26:33]FM_MakeSignedData [14:26:33]SAM_PROTO_SignData [14:26:33]wFMCommunicate request_size=4 [14:26:33]MH_SAM_APDU [14:26:33]CAPDU: 80 0D 01 02 [14:26:33]Write to MH i2c: E2 08 00 C5 0C 80 0D 01 02 00 00 00 00 4A [14:26:33]Write i2c OK [14:26:33]MH_I2C_Read... [14:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:33]Read from MH i2c: E2 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [14:26:33]RAPDU: 90 00 [14:26:33]wFMCommunicate OK [14:26:33]wFMCommunicate request_size=255 [14:26:33]MH_SAM_APDU [14:26:33]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 [14:26:33]Write to MH i2c: E2 02 01 C6 0C 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 00 00 51 [14:26:33]Write i2c OK [14:26:33]MH_I2C_Read... [14:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:33]Read from MH i2c: E2 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [14:26:33]RAPDU: 90 00 [14:26:33]wFMCommunicate OK [14:26:33]wFMCommunicate request_size=156 [14:26:33]MH_SAM_APDU [14:26:33]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 98 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CF 26 01 00 35 04 06 00 BE 3D 38 AA 22 D3 [14:26:33]Write to MH i2c: E2 9F 00 C7 0C 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 98 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CF 26 01 00 35 04 06 00 BE 3D 38 AA 22 D3 00 00 5C [14:26:33]Write i2c OK [14:26:33]MH_I2C_Read... [14:26:33]OFD Sender: No OFD packet to send [14:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:33]Read from MH i2c: E2 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [14:26:33]RAPDU: 90 00 [14:26:33]wFMCommunicate OK [14:26:33]wFMCommunicate request_size=4 [14:26:33]MH_SAM_APDU [14:26:33]CAPDU: 80 0D 03 02 [14:26:33]Write to MH i2c: E2 08 00 C8 0C 80 0D 03 02 00 00 00 00 4F [14:26:33]Write i2c OK [14:26:33]MH_I2C_Read... [14:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:34]Read from MH i2c: E2 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: E2 0B 00 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: E2 0B 00 C8 0C 00 25 B1 47 68 6B D2 45 30 90 00 87 [14:26:34]RAPDU: 25 B1 47 68 6B D2 45 30 90 00 [14:26:34]wFMCommunicate OK [14:26:34]SAM_PROTO_SignData done [14:26:34]FM_MakeSignedData done [14:26:34]CreateOFDProtocolMessage [14:26:34]wFMCommunicate request_size=4 [14:26:34]MH_SAM_APDU [14:26:34]CAPDU: 80 11 00 00 [14:26:34]Write to MH i2c: E2 08 00 C9 0C 80 11 00 00 00 00 00 00 4F [14:26:34]Write i2c OK [14:26:34]MH_I2C_Read... [14:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:34]Read from MH i2c: E2 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: E2 17 00 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: E2 17 00 C9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9C [14:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:26:34]wFMCommunicate OK [14:26:34]CreateOFDProtocolMessage done [14:26:34]OFDSenderStorePacket 75471 [14:26:34]StoreOFDPacket docnum=75471 [14:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A1 01 00 00 96 7E 99 01 40 41 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 98 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CF 26 01 00 35 04 06 00 BE 3D 38 AA 22 D3 25 B1 47 68 6B D2 45 30 [14:26:34]CheckFolder [14:26:34]dirname=/storage/ofd_packets [14:26:34]CheckFolder done [14:26:34]ProducePacketName [14:26:34]name=ofd_packets/00075471 [14:26:34]NVStorageSaveData ofd_packets/00075471 [14:26:34]File name is /storage/ofd_packets/00075471 [14:26:34]Write 447 bytes [14:26:34]NVStorageSaveData done [14:26:34]OFDSenderStorePacket done [14:26:34]KKMCreateOFDPacket done [14:26:34]NVStorageSaveData kkm_last_timestamp [14:26:34]File name is /storage/kkm_last_timestamp [14:26:34]Write 4 bytes [14:26:34]NVStorageSaveData done [14:26:34]ExternCall_PrintAddStr [14:26:34]wPrintStart [14:26:34]Write to MH i2c: 01 00 00 CA 0C D6 [14:26:34]OFD Sender: Processing packet 75471 [packets to send 16, broken 15] [14:26:34]ProducePacketName [14:26:34]name=ofd_packets/00075471 [14:26:34]OFD Sender: To server: pG, [14:26:34]CommunicateWithHost lk.salyk.kg:30040 [14:26:34]Write i2c OK [14:26:34]ConnectInit lk.salyk.kg [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: 01 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: 01 07 00 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: 01 07 00 CA 0C 00 00 00 00 00 FF 0F EB [14:26:34]RasterBufferAndPrint [14:26:34]line Счет N : (3)273259 [14:26:34]line ИНН: 02508201610067 [14:26:34]line Контрольно-Кассовый Чек [14:26:34]line ПРОДАЖА [14:26:34]line Товар: 4870202522008 [14:26:34]line Напиток Maxi Чай Грушевый 0,45л [14:26:34]line 1.000 * 70.00 [14:26:34]line = 70.00 [14:26:34]line НДС 12% НСП 1% [14:26:34]line > о реализуемом товаре [14:26:34]line Товар: 54491472 [14:26:34]line Напиток Кока-Кола 0,5л [14:26:34]line 1.000 * 75.00 [14:26:34]line = 75.00 [14:26:34]line НДС 12% НСП 1% [14:26:34]line > о реализуемом товаре [14:26:34]line ИТОГО: 145.00 [14:26:34]line НСП 1% : 1.28 [14:26:34]line НДС 12% : 15.39 [14:26:34]line Наличными: 0.00 [14:26:34]line Безнал.: 145.00 [14:26:34]line Место: АЗС № 133 "Партнер Нефть" [14:26:34]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:26:34]line СНО: Общий режим [14:26:34]line Чек 204 23.10.2024 14:26 [14:26:34]line Смена: 173 ФФД: 1.0 [14:26:34]line ЗНМ: 0300000020 [14:26:34]line РНМ: 0000000000161154 [14:26:34]line Версия ККМ: v1.0 [14:26:34]line Платежная система: Mbank [14:26:34]line ФМ: 0000000000963323 [14:26:34]line ФД: 75471 [14:26:34]line ФПД: 209170152956627 [14:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142632&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75471&fm=209170152956627&tin=02508201610067®Number=0000000000161154&sum=14500 [14:26:34]line 0 [14:26:34]written 0, free lines is 4095 [14:26:34]Connected sock=10 [14:26:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A1 01 00 00 96 7E 99 01 40 41 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 98 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CF 26 01 00 35 04 06 00 BE 3D 38 AA 22 D3 25 B1 47 68 6B D2 45 30 [14:26:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A3 3E 47 00 B0 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 CF 26 01 00 F4 03 04 00 73 B0 18 67 B6 04 01 00 00 48 97 03 AE 9B 81 5C 29 [14:26:34]CommunicateWithHost err = 0 [14:26:34]CheckOFDResponse [14:26:34]1017 (14) - 77093643461234 [14:26:34]1041 (16) - 0000000000963323 [14:26:34]1040 (4) - 75471 [14:26:34]1012 (4) - 23.10.2024 08:14 [14:26:34]1206 (1) - 0 [14:26:34]OFD Sender: Remove packet 75471 [14:26:34]ProducePacketName [14:26:34]name=ofd_packets/00075471 [14:26:34]NVStorageDeleteData [14:26:34]Write to MH i2c: 01 00 00 F9 0C 05 [14:26:34]Write i2c OK [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: 01 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: 01 07 00 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: 01 07 00 F9 0C 00 00 00 00 00 50 0C 68 [14:26:34]RasterBufferAndPrint [14:26:34]line [14:26:34]line [14:26:34]line [14:26:34]line [14:26:34]line [14:26:34]written 0, free lines is 3156 [14:26:34]MH_Cut [14:26:34]Write to MH i2c: D1 01 00 00 0D 01 DF [14:26:34]Write i2c OK [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: D1 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: D1 01 00 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: D1 01 00 00 0D 00 DE [14:26:34]Write to MH i2c: 01 00 00 01 0D 0E [14:26:34]Write i2c OK [14:26:34]MH_I2C_Read... [14:26:35]OFD Sender: No OFD packet to send [14:26:35]*** Cut start [14:26:35]*** Partial cut [14:26:35]*** CUTSNS_PIN = 1 [14:26:35]*** CUTSNS_PIN = 0 [14:26:36]*** Brake cut motor [14:26:36]Read from MH i2c: 01 [14:26:36]MH_I2C_Read... [14:26:36]*** Stop cut motor [14:26:36]*** Cut end [14:26:36]Read from MH i2c: 01 07 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: 01 07 00 01 0D 00 00 00 00 00 FF 0F 23 [14:26:36]process_action close_receipt done [14:26:36]requested_data is exist [14:26:36]produce_requested_data [14:26:36]requested_item fm.sn is exist - process it [14:26:36]wFMCommunicate request_size=4 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 11 00 00 [14:26:36]Write to MH i2c: E2 08 00 02 0D 80 11 00 00 00 00 00 00 89 [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:36]Read from MH i2c: E2 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 17 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 17 00 02 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D6 [14:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:26:36]wFMCommunicate OK [14:26:36]requested_item fd.num is exist - process it [14:26:36]SAM_PROTO_GetFieldsCounters [14:26:36]wFMCommunicate request_size=4 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 13 00 00 [14:26:36]Write to MH i2c: E2 08 00 03 0D 80 13 00 00 00 00 00 00 8C [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:36]Read from MH i2c: E2 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 62 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 62 00 03 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CF 26 01 00 0E 04 04 00 AD 00 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 A7 [14:26:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 CF 26 01 00 0E 04 04 00 AD 00 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 [14:26:36]wFMCommunicate OK [14:26:36]SAM_PROTO_GetFieldsCounters done [14:26:36]requested_item shift.num is exist - process it [14:26:36]requested_item shift.opened is exist - process it [14:26:36]req_shift_opened [14:26:36]FM_GetShiftState [14:26:36]SAM_PROTO_GetShiftState [14:26:36]wFMCommunicate request_size=4 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 13 01 00 [14:26:36]Write to MH i2c: E2 08 00 04 0D 80 13 01 00 00 00 00 00 8E [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 [14:26:36]MH_I2C_Read... [14:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:36]Read from MH i2c: E2 0E 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 0E 00 04 0D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F3 [14:26:36]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:26:36]wFMCommunicate OK [14:26:36]SAM_PROTO_GetShiftState done [14:26:36]FM_GetShiftState done [14:26:36]req_shift_opened done [14:26:36]requested_item shift.open_date is exist - process it [14:26:36]req_shift_open_date [14:26:36]req_shift_open_date done [14:26:36]produce_requested_data done [14:26:36]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75471,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:26:36]process_action_free close_receipt [14:26:36]json_value_free [14:26:36]json_value_free done [14:26:36]process_json_proto returns [14:26:36]Send response to host [14:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75471,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:26:36]free response buf [14:26:36]execute_script done [14:26:36]execute_script returns [14:26:36]free content buf [14:26:36]Sock 9.Close socket [14:26:36]Sock 9.Thread stoped [14:26:40]OFD Sender: No OFD packet to send [14:26:43]accept exits with 8 [14:26:43]New connection [14:26:43]New thread 3066465636 created [14:26:43]Thread 3066608996 joined [14:26:43]Waiting for new connection... [14:26:43] Sock 8.Parse request [14:26:43]Sock 8.Check first char [14:26:43]Sock 8.First char is OK [14:26:43]request: POST /json_proto HTTP/1.0 [14:26:43]Method: POST [14:26:43]URL: /json_proto [14:26:43]Method is POST - this is cgi request [14:26:43]url: /json_proto [14:26:43]query_string will be loaded in cgi processing [14:26:43]execute_cgi json_proto POST (null) [14:26:43]execute_cgi path=json_proto method=POST [14:26:43]POST find Content-Length [14:26:43]Host: 172.17.44.196:8080 [14:26:43]Content-Length: 677 [14:26:43]Content-Type: application/json [14:26:43] [14:26:43]POST finish read [14:26:43]Found Content-Length = 677 [14:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:26:43]execute_script... [14:26: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)1965615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:26:43]POST & json_proto [14:26:43]process_json_proto [14:26:43]json parsed OK: [14:26:43]protocol is kg_v1.0 [14:26:43]action value=close_receipt [14:26:43]process_action close_receipt [14:26:43]cmd_close_receipt [14:26:43]MH_GetDate [14:26:43]Write to MH i2c: F0 00 00 05 0D 01 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 09 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 09 00 05 0D 00 A4 07 19 67 E7 19 F8 65 92 [14:26:43]GetLastDocTimeStamp 1729693592 [14:26:43]current date 1729693604 [14:26:43]FM_GetShiftState [14:26:43]SAM_PROTO_GetShiftState [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 13 01 00 [14:26:43]Write to MH i2c: E2 08 00 06 0D 80 13 01 00 00 00 00 00 90 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0E 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0E 00 06 0D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F5 [14:26:43]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:26:43]wFMCommunicate OK [14:26:43]SAM_PROTO_GetShiftState done [14:26:43]FM_GetShiftState done [14:26:43]opened in 1729642905 [14:26:43]opened+sec_in_day 1729729305 [14:26:43]quantity*price = 100011 [14:26:43]sum+1 = 100013 [14:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 205 23.10.2024 14:26 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75472 ФПД: 37596917358735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142644&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75472&fm=37596917358735&tin=02508201610067®Number=0000000000161154&sum=100000 [14:26:44]StoreToDocumentArchive [14:26:44]shift 173 fd 75472 [14:26:44]save to /storage/0173/doc_00075472 [14:26:44]save last doc name /storage/0173/doc_00075472 to /storage/kkm_last_doc_name [14:26:44]save OK [14:26:44]Clear old archive folders... [14:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=245 [14:26:44]tlvbuf is B6F01660 [14:26:44]SAM_PROTO_ClearQueue [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 09 00 00 [14:26:44]Write to MH i2c: E2 08 00 13 0D 80 09 00 00 00 00 00 00 92 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 13 0D 00 90 00 94 [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_ClearQueue done [14:26:44]KKMCreateOFDPacket [14:26:44]OFDProtocolAddRootSTLVToBuf [14:26:44]FM_MakeSignedData [14:26:44]FM_MakeSignedData [14:26:44]SAM_PROTO_SignData [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 01 02 [14:26:44]Write to MH i2c: E2 08 00 14 0D 80 0D 01 02 00 00 00 00 9A [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 14 0D 00 90 00 95 [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]wFMCommunicate request_size=254 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CD 00 00 00 F4 03 04 00 A4 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D0 26 01 00 35 04 06 00 22 31 B6 E7 60 8F [14:26:44]Write to MH i2c: E2 01 01 15 0D 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CD 00 00 00 F4 03 04 00 A4 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D0 26 01 00 35 04 06 00 22 31 B6 E7 60 8F 00 00 6A [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 15 0D 00 90 00 96 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 03 02 [14:26:45]Write to MH i2c: E2 08 00 16 0D 80 0D 03 02 00 00 00 00 9E [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 16 0D 00 ED 29 1E 54 D7 99 A3 ED 90 00 27 [14:26:45]RAPDU: ED 29 1E 54 D7 99 A3 ED 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_SignData done [14:26:45]FM_MakeSignedData done [14:26:45]CreateOFDProtocolMessage [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 11 00 00 [14:26:45]Write to MH i2c: E2 08 00 17 0D 80 11 00 00 00 00 00 00 9E [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 17 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EB [14:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:26:45]wFMCommunicate OK [14:26:45]CreateOFDProtocolMessage done [14:26:45]OFDSenderStorePacket 75472 [14:26:45]StoreOFDPacket docnum=75472 [14:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 3C AB 01 01 64 7B 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CD 00 00 00 F4 03 04 00 A4 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D0 26 01 00 35 04 06 00 22 31 B6 E7 60 8F ED 29 1E 54 D7 99 A3 ED [14:26:45]CheckFolder [14:26:45]dirname=/storage/ofd_packets [14:26:45]CheckFolder done [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00075472 [14:26:45]NVStorageSaveData ofd_packets/00075472 [14:26:45]File name is /storage/ofd_packets/00075472 [14:26:45]Write 295 bytes [14:26:45]NVStorageSaveData done [14:26:45]OFDSenderStorePacket done [14:26:45]KKMCreateOFDPacket done [14:26:45]NVStorageSaveData kkm_last_timestamp [14:26:45]File name is /storage/kkm_last_timestamp [14:26:45]Write 4 bytes [14:26:45]NVStorageSaveData done [14:26:45]ExternCall_PrintAddStr [14:26:45]wPrintStart [14:26:45]Write to MH i2c: 01 00 00 18 0D 25 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 18 0D 00 00 00 00 00 FF 0F 3A [14:26:45]RasterBufferAndPrint [14:26:45]line Счет N : (1)1965615 [14:26:45]line ИНН: 02508201610067 [14:26:45]line Контрольно-Кассовый Чек [14:26:45]line ПРОДАЖА [14:26:45]line ТРК (МРК, ГНК) : 71 [14:26:45]line Товар: 2711129700 [14:26:45]line ГАЗ [14:26:45]line 25.710 * 38.90 [14:26:45]line = 1000.12 [14:26:45]line НДС 12% НСП 1% [14:26:45]line > о реализуемом товаре [14:26:45]line ОКРУГЛЕНИЕ: -0.12 [14:26:45]line ИТОГО: 1000.00 [14:26:45]line Внесено: 1000.00 [14:26:45]line СДАЧА: 0.00 [14:26:45]line НСП 1% : 8.85 [14:26:45]line НДС 12% : 106.21 [14:26:45]line Наличными: 1000.00 [14:26:45]line Безнал.: 0.00 [14:26:45]line Место: АЗС № 133 "Партнер Нефть" [14:26:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:26:45]line СНО: Общий режим [14:26:45]line Чек 205 23.10.2024 14:26 [14:26:45]line Смена: 173 ФФД: 1.0 [14:26:45]line ЗНМ: 0300000020 [14:26:45]line РНМ: 0000000000161154 [14:26:45]line Версия ККМ: v1.0 [14:26:45]line ФМ: 0000000000963323 [14:26:45]line ФД: 75472 [14:26:45]line ФПД: 37596917358735 [14:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142644&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75472&fm=37596917358735&tin=02508201610067®Number=0000000000161154&sum=100000 [14:26:45]OFD Sender: Processing packet 75472 [packets to send 16, broken 15] [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00075472 [14:26:45]OFD Sender: To server: pG, [14:26:45]CommunicateWithHost lk.salyk.kg:30040 [14:26:45]ConnectInit lk.salyk.kg [14:26:45]written 0, free lines is 4095 [14:26:45]Connected sock=10 [14:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 3C AB 01 01 64 7B 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CD 00 00 00 F4 03 04 00 A4 07 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D0 26 01 00 35 04 06 00 22 31 B6 E7 60 8F ED 29 1E 54 D7 99 A3 ED [14:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FD D7 47 00 BC 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 39 36 33 33 32 33 10 04 04 00 D0 26 01 00 F4 03 04 00 7E B0 18 67 B6 04 01 00 00 86 10 45 46 39 6A E0 05 [14:26:45]CommunicateWithHost err = 0 [14:26:45]CheckOFDResponse [14:26:45]1017 (14) - 77093643461234 [14:26:45]1041 (16) - 0000000000963323 [14:26:45]1040 (4) - 75472 [14:26:45]1012 (4) - 23.10.2024 08:14 [14:26:45]1206 (1) - 0 [14:26:45]OFD Sender: Remove packet 75472 [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00075472 [14:26:45]NVStorageDeleteData [14:26:45]Write to MH i2c: 01 00 00 42 0D 4F [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 42 0D 00 00 00 00 00 9E 0C 00 [14:26:45]RasterBufferAndPrint [14:26:45]line [14:26:45]line [14:26:45]line [14:26:45]line [14:26:45]line [14:26:45]written 0, free lines is 3237 [14:26:45]MH_Cut [14:26:46]Write to MH i2c: D1 01 00 49 0D 01 28 [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 01 00 [14:26:46]MH_I2C_Read... [14:26:46]Read from MH i2c: D1 01 00 49 0D 00 27 [14:26:46]Write to MH i2c: 01 00 00 4A 0D 57 [14:26:46]Write i2c OK [14:26:46]MH_I2C_Read... [14:26:46]OFD Sender: No OFD packet to send [14:26:46]*** Cut start [14:26:46]*** Partial cut [14:26:46]*** CUTSNS_PIN = 1 [14:26:46]*** CUTSNS_PIN = 0 [14:26:47]*** Brake cut motor [14:26:47]Read from MH i2c: 01 [14:26:47]MH_I2C_Read... [14:26:47]*** Stop cut motor [14:26:47]*** Cut end [14:26:47]Read from MH i2c: 01 07 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 07 00 4A 0D 00 00 00 00 00 FF 0F 6C [14:26:47]process_action close_receipt done [14:26:47]requested_data is exist [14:26:47]produce_requested_data [14:26:47]requested_item fm.sn is exist - process it [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 11 00 00 [14:26:47]Write to MH i2c: E2 08 00 4B 0D 80 11 00 00 00 00 00 00 D2 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 17 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 17 00 4B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1F [14:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:26:47]wFMCommunicate OK [14:26:47]requested_item fd.num is exist - process it [14:26:47]SAM_PROTO_GetFieldsCounters [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 00 00 [14:26:47]Write to MH i2c: E2 08 00 4C 0D 80 13 00 00 00 00 00 00 D5 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 62 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 62 00 4C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D0 26 01 00 0E 04 04 00 AD 00 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 F4 [14:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D0 26 01 00 0E 04 04 00 AD 00 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 [14:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetFieldsCounters done [14:26:47]requested_item shift.num is exist - process it [14:26:47]requested_item shift.opened is exist - process it [14:26:47]req_shift_opened [14:26:47]FM_GetShiftState [14:26:47]SAM_PROTO_GetShiftState [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 01 00 [14:26:47]Write to MH i2c: E2 08 00 4D 0D 80 13 01 00 00 00 00 00 D7 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 4D 0D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3C [14:26:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetShiftState done [14:26:47]FM_GetShiftState done [14:26:47]req_shift_opened done [14:26:47]requested_item shift.open_date is exist - process it [14:26:47]req_shift_open_date [14:26:47]req_shift_open_date done [14:26:47]produce_requested_data done [14:26:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75472,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:26:47]process_action_free close_receipt [14:26:47]json_value_free [14:26:47]json_value_free done [14:26:47]process_json_proto returns [14:26:47]Send response to host [14:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75472,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:26:47]free response buf [14:26:47]execute_script done [14:26:47]execute_script returns [14:26:47]free content buf [14:26:47]Sock 8.Close socket [14:26:47]Sock 8.Thread stoped [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:06]accept exits with 9 [14:49:06]New connection [14:49:06]New thread 3066608996 created [14:49:06]Thread 3066465636 joined [14:49:06]Waiting for new connection... [14:49:06] Sock 9.Parse request [14:49:06]Sock 9.Check first char [14:49:06]Sock 9.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.44.196:8080 [14:49:06]Content-Length: 755 [14:49:06]Content-Type: application/json [14:49:06] [14:49:06]POST finish read [14:49:06]Found Content-Length = 755 [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)1965644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053252", "payments": [ { "type": 1, "sum" : 0.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)1965644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053252", "payments": [ { "type": 1, "sum" : 0.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 4E 0D 4A [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 09 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: F0 09 00 4E 0D 00 E3 0C 19 67 E7 19 F8 65 1F [14:49:06]GetLastDocTimeStamp 1729693604 [14:49:06]current date 1729694947 [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 4F 0D 80 13 01 00 00 00 00 00 D9 [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 4F 0D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3E [14:49:06]RAPDU: 09 00 01 99 41 18 67 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 1729642905 [14:49:06]opened+sec_in_day 1729729305 [14:49:06]quantity*price = 0 [14:49:06]sum+1 = 1 [14:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 206 23.10.2024 14:49 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30053252 ФМ: 0000000000963323 ФД: 75473 ФПД: 173559122033339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144907&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75473&fm=173559122033339&tin=02508201610067®Number=0000000000161154&sum=0 [14:49:07]StoreToDocumentArchive [14:49:07]shift 173 fd 75473 [14:49:07]save to /storage/0173/doc_00075473 [14:49:07]save last doc name /storage/0173/doc_00075473 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=251 [14:49:07]tlvbuf is 0079AD30 [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 5C 0D 80 09 00 00 00 00 00 00 DB [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 5C 0D 00 90 00 DD [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 5D 0D 80 0D 01 02 00 00 00 00 E3 [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 5D 0D 00 90 00 DE [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E3 0C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D1 26 01 00 35 04 06 00 9D [14:49:07]Write to MH i2c: E2 02 01 5E 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E3 0C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D1 26 01 00 35 04 06 00 9D 00 00 96 [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 5E 0D 00 90 00 DF [14:49:08]RAPDU: 90 00 [14:49:08]wFMCommunicate OK [14:49:08]wFMCommunicate request_size=10 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 0D 02 02 05 D9 E1 D0 FA BB [14:49:08]Write to MH i2c: E2 0D 00 5F 0D 80 0D 02 02 05 00 D9 E1 D0 FA BB 00 00 2F [14:49:08]Write i2c OK [14:49:08]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 5F 0D 00 90 00 E0 [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 60 0D 80 0D 03 02 00 00 00 00 E8 [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 60 0D 00 C7 3F 9F 5E 1D DA 6E 36 90 00 87 [14:49:08]RAPDU: C7 3F 9F 5E 1D DA 6E 36 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 61 0D 80 11 00 00 00 00 00 00 E8 [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 61 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 35 [14:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:49:08]wFMCommunicate OK [14:49:08]CreateOFDProtocolMessage done [14:49:08]OFDSenderStorePacket 75473 [14:49:08]StoreOFDPacket docnum=75473 [14:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 F8 F0 07 01 D4 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E3 0C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D1 26 01 00 35 04 06 00 9D D9 E1 D0 FA BB C7 3F 9F 5E 1D DA 6E 36 [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/00075473 [14:49:08]NVStorageSaveData ofd_packets/00075473 [14:49:08]File name is /storage/ofd_packets/00075473 [14:49:08]Write 301 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 62 0D 6F [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 62 0D 00 00 00 00 00 FF 0F 84 [14:49:08]RasterBufferAndPrint [14:49:08]line Счет N : (1)1965644 [14:49:08]line ИНН: 02508201610067 [14:49:08]line Контрольно-Кассовый Чек [14:49:08]line ПРОДАЖА [14:49:08]line ТРК (МРК, ГНК) : 33 [14:49:08]line Товар: 2710124130 [14:49:08]line Аи-92-К-5 [14:49:08]line 10.000 * 0.00 [14:49:08]line = 0.00 [14:49:08]line НДС 12% НСП 1% [14:49:08]line > о реализуемом товаре [14:49:08]line ИТОГО: 0.00 [14:49:08]line НСП 1% : 0.00 [14:49:08]line НДС 12% : 0.00 [14:49:08]line Наличными: 0.00 [14:49:08]line Безнал.: 0.00 [14:49:08]line Место: АЗС № 133 "Партнер Нефть" [14:49:08]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:49:08]line СНО: Общий режим [14:49:08]line Чек 206 23.10.2024 14:49 [14:49:08]line Смена: 173 ФФД: 1.0 [14:49:08]line ЗНМ: 0300000020 [14:49:08]line РНМ: 0000000000161154 [14:49:08]line Версия ККМ: v1.0 [14:49:08]line Талоны: ТК ГПНА Online [14:49:08]line 30053252 [14:49:08]line ФМ: 0000000000963323 [14:49:08]line ФД: 75473 [14:49:08]line ФПД: 173559122033339 [14:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T144907&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75473&fm=173559122033339&tin=02508201610067®Number=0000000000161154&sum=0 [14:49:08]OFD Sender: Processing packet 75473 [packets to send 16, broken 15] [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00075473 [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 39 36 33 33 32 33 0F 01 00 00 F8 F0 07 01 D4 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E3 0C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D1 26 01 00 35 04 06 00 9D D9 E1 D0 FA BB C7 3F 9F 5E 1D DA 6E 36 [14:49:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 88 B9 47 00 7E 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D1 26 01 00 F4 03 04 00 BE B5 18 67 B6 04 01 00 00 F3 6D 1E B8 AA 66 D9 F8 [14:49:08]CommunicateWithHost err = 0 [14:49:08]CheckOFDResponse [14:49:08]1017 (14) - 77093643461234 [14:49:08]1041 (16) - 0000000000963323 [14:49:08]1040 (4) - 75473 [14:49:08]1012 (4) - 23.10.2024 08:37 [14:49:08]1206 (1) - 0 [14:49:08]OFD Sender: Remove packet 75473 [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00075473 [14:49:08]NVStorageDeleteData [14:49:09]Write to MH i2c: 01 00 00 8B 0D 98 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 8B 0D 00 00 00 00 00 C0 0C 6B [14:49:09]RasterBufferAndPrint [14:49:09]line [14:49:09]line [14:49:09]line [14:49:09]line [14:49:09]line [14:49:09]written 0, free lines is 3268 [14:49:09]MH_Cut [14:49:09]Write to MH i2c: D1 01 00 92 0D 01 71 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: D1 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: D1 01 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: D1 01 00 92 0D 00 70 [14:49:09]Write to MH i2c: 01 00 00 93 0D A0 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]OFD Sender: No OFD packet to send [14:49:10]*** Cut start [14:49:10]*** Partial cut [14:49:10]*** CUTSNS_PIN = 1 [14:49:10]*** CUTSNS_PIN = 0 [14:49:10]*** Brake cut motor [14:49:10]Read from MH i2c: 01 [14:49:10]MH_I2C_Read... [14:49:10]*** Stop cut motor [14:49:10]*** Cut end [14:49:10]Read from MH i2c: 01 07 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: 01 07 00 93 0D 00 00 00 00 00 FF 0F B5 [14:49:10]process_action close_receipt done [14:49:10]requested_data is exist [14:49:10]produce_requested_data [14:49:10]requested_item fm.sn is exist - process it [14:49:10]wFMCommunicate request_size=4 [14:49:10]MH_SAM_APDU [14:49:10]CAPDU: 80 11 00 00 [14:49:10]Write to MH i2c: E2 08 00 94 0D 80 11 00 00 00 00 00 00 1B [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 17 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 17 00 94 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 68 [14:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:49:10]wFMCommunicate OK [14:49:10]requested_item fd.num is exist - process it [14:49:10]SAM_PROTO_GetFieldsCounters [14:49:10]wFMCommunicate request_size=4 [14:49:10]MH_SAM_APDU [14:49:10]CAPDU: 80 13 00 00 [14:49:10]Write to MH i2c: E2 08 00 95 0D 80 13 00 00 00 00 00 00 1E [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 62 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 62 00 95 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D1 26 01 00 0E 04 04 00 AD 00 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 41 [14:49:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D1 26 01 00 0E 04 04 00 AD 00 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 [14:49:10]wFMCommunicate OK [14:49:10]SAM_PROTO_GetFieldsCounters done [14:49:10]requested_item shift.num is exist - process it [14:49:10]requested_item shift.opened is exist - process it [14:49:10]req_shift_opened [14:49:10]FM_GetShiftState [14:49:10]SAM_PROTO_GetShiftState [14:49:10]wFMCommunicate request_size=4 [14:49:10]MH_SAM_APDU [14:49:10]CAPDU: 80 13 01 00 [14:49:10]Write to MH i2c: E2 08 00 96 0D 80 13 01 00 00 00 00 00 20 [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 0E 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 0E 00 96 0D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 85 [14:49:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:49:10]wFMCommunicate OK [14:49:10]SAM_PROTO_GetShiftState done [14:49:10]FM_GetShiftState done [14:49:10]req_shift_opened done [14:49:10]requested_item shift.open_date is exist - process it [14:49:10]req_shift_open_date [14:49:10]req_shift_open_date done [14:49:10]produce_requested_data done [14:49:10]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75473,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:49:10]process_action_free close_receipt [14:49:10]json_value_free [14:49:10]json_value_free done [14:49:10]process_json_proto returns [14:49:10]Send response to host [14:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75473,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:49:10]free response buf [14:49:10]execute_script done [14:49:10]execute_script returns [14:49:10]free content buf [14:49:10]Sock 9.Close socket [14:49:10]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:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:05]accept exits with 8 [14:52:05]New connection [14:52:05]New thread 3066465636 created [14:52:05]Thread 3066608996 joined [14:52:05]Waiting for new connection... [14:52:05] Sock 8.Parse request [14:52:05]Sock 8.Check first char [14:52:05]Sock 8.First char is OK [14:52:05]request: POST /json_proto HTTP/1.0 [14:52:05]Method: POST [14:52:05]URL: /json_proto [14:52:05]Method is POST - this is cgi request [14:52:05]url: /json_proto [14:52:05]query_string will be loaded in cgi processing [14:52:05]execute_cgi json_proto POST (null) [14:52:05]execute_cgi path=json_proto method=POST [14:52:05]POST find Content-Length [14:52:05]Host: 172.17.44.196:8080 [14:52:05]Content-Length: 659 [14:52:05]Content-Type: application/json [14:52:05] [14:52:05]POST finish read [14:52:05]Found Content-Length = 659 [14:52:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:05]execute_script... [14:52: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)1965650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:05]POST & json_proto [14:52:05]process_json_proto [14:52:05]json parsed OK: [14:52:05]protocol is kg_v1.0 [14:52:05]action value=close_receipt [14:52:05]process_action close_receipt [14:52:05]cmd_close_receipt [14:52:05]MH_GetDate [14:52:05]Write to MH i2c: F0 00 00 97 0D 93 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: F0 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: F0 09 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: F0 09 00 97 0D 00 96 0D 19 67 E7 19 F8 65 1C [14:52:05]GetLastDocTimeStamp 1729694947 [14:52:05]current date 1729695126 [14:52:05]FM_GetShiftState [14:52:05]SAM_PROTO_GetShiftState [14:52:05]wFMCommunicate request_size=4 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 13 01 00 [14:52:05]Write to MH i2c: E2 08 00 98 0D 80 13 01 00 00 00 00 00 22 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 0E 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 0E 00 98 0D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 87 [14:52:05]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:52:05]wFMCommunicate OK [14:52:05]SAM_PROTO_GetShiftState done [14:52:05]FM_GetShiftState done [14:52:05]opened in 1729642905 [14:52:05]opened+sec_in_day 1729729305 [14:52:05]quantity*price = 40014 [14:52:05]sum+1 = 40015 [14:52:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 207 23.10.2024 14:52 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75474 ФПД: 220244870313662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145206&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75474&fm=220244870313662&tin=02508201610067®Number=0000000000161154&sum=40000 [14:52:06]StoreToDocumentArchive [14:52:06]shift 173 fd 75474 [14:52:06]save to /storage/0173/doc_00075474 [14:52:06]save last doc name /storage/0173/doc_00075474 to /storage/kkm_last_doc_name [14:52:06]save OK [14:52:06]Clear old archive folders... [14:52:06]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:52:06]tlvbuf is 00771EC0 [14:52:06]SAM_PROTO_ClearQueue [14:52:06]wFMCommunicate request_size=4 [14:52:06]MH_SAM_APDU [14:52:06]CAPDU: 80 09 00 00 [14:52:06]Write to MH i2c: E2 08 00 A5 0D 80 09 00 00 00 00 00 00 24 [14:52:06]Write i2c OK [14:52:06]MH_I2C_Read... [14:52:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:06]Read from MH i2c: E2 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: E2 03 00 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: E2 03 00 A5 0D 00 90 00 26 [14:52:06]RAPDU: 90 00 [14:52:06]wFMCommunicate OK [14:52:06]SAM_PROTO_ClearQueue done [14:52:06]KKMCreateOFDPacket [14:52:06]OFDProtocolAddRootSTLVToBuf [14:52:06]FM_MakeSignedData [14:52:06]FM_MakeSignedData [14:52:06]SAM_PROTO_SignData [14:52:06]wFMCommunicate request_size=4 [14:52:06]MH_SAM_APDU [14:52:06]CAPDU: 80 0D 01 02 [14:52:06]Write to MH i2c: E2 08 00 A6 0D 80 0D 01 02 00 00 00 00 2C [14:52:06]Write i2c OK [14:52:06]MH_I2C_Read... [14:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:07]Read from MH i2c: E2 [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: E2 03 00 [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: E2 03 00 A6 0D 00 90 00 27 [14:52:07]RAPDU: 90 00 [14:52:07]wFMCommunicate OK [14:52:07]wFMCommunicate request_size=253 [14:52:07]MH_SAM_APDU [14:52:07]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 CF 00 00 00 F4 03 04 00 96 0D 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D2 26 01 00 35 04 06 00 C8 4F C1 42 36 BE [14:52:07]Write to MH i2c: E2 00 01 A7 0D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 CF 00 00 00 F4 03 04 00 96 0D 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D2 26 01 00 35 04 06 00 C8 4F C1 42 36 BE 00 00 ED [14:52:07]Write i2c OK [14:52:07]MH_I2C_Read... [14:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:07]Read from MH i2c: E2 [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: E2 03 00 [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: E2 03 00 A7 0D 00 90 00 28 [14:52:07]RAPDU: 90 00 [14:52:07]wFMCommunicate OK [14:52:07]wFMCommunicate request_size=4 [14:52:07]MH_SAM_APDU [14:52:07]CAPDU: 80 0D 03 02 [14:52:07]Write to MH i2c: E2 08 00 A8 0D 80 0D 03 02 00 00 00 00 30 [14:52:07]Write i2c OK [14:52:07]MH_I2C_Read... [14:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:07]Read from MH i2c: E2 [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: E2 0B 00 [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: E2 0B 00 A8 0D 00 D2 5B D5 9C C1 B2 9D 55 90 00 34 [14:52:07]RAPDU: D2 5B D5 9C C1 B2 9D 55 90 00 [14:52:07]wFMCommunicate OK [14:52:07]SAM_PROTO_SignData done [14:52:07]FM_MakeSignedData done [14:52:07]CreateOFDProtocolMessage [14:52:07]wFMCommunicate request_size=4 [14:52:07]MH_SAM_APDU [14:52:07]CAPDU: 80 11 00 00 [14:52:07]Write to MH i2c: E2 08 00 A9 0D 80 11 00 00 00 00 00 00 30 [14:52:07]Write i2c OK [14:52:07]MH_I2C_Read... [14:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:07]Read from MH i2c: E2 [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: E2 17 00 [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: E2 17 00 A9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7D [14:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:52:07]wFMCommunicate OK [14:52:07]CreateOFDProtocolMessage done [14:52:07]OFDSenderStorePacket 75474 [14:52:07]StoreOFDPacket docnum=75474 [14:52:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 08 E6 00 01 57 59 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 CF 00 00 00 F4 03 04 00 96 0D 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D2 26 01 00 35 04 06 00 C8 4F C1 42 36 BE D2 5B D5 9C C1 B2 9D 55 [14:52:07]CheckFolder [14:52:07]dirname=/storage/ofd_packets [14:52:07]CheckFolder done [14:52:07]ProducePacketName [14:52:07]name=ofd_packets/00075474 [14:52:07]NVStorageSaveData ofd_packets/00075474 [14:52:07]File name is /storage/ofd_packets/00075474 [14:52:07]Write 294 bytes [14:52:07]NVStorageSaveData done [14:52:07]OFDSenderStorePacket done [14:52:07]KKMCreateOFDPacket done [14:52:07]NVStorageSaveData kkm_last_timestamp [14:52:07]File name is /storage/kkm_last_timestamp [14:52:07]Write 4 bytes [14:52:07]NVStorageSaveData done [14:52:07]ExternCall_PrintAddStr [14:52:07]wPrintStart [14:52:07]Write to MH i2c: 01 00 00 AA 0D B7 [14:52:07]Write i2c OK [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: 01 [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: 01 07 00 [14:52:07]MH_I2C_Read... [14:52:07]Read from MH i2c: 01 07 00 AA 0D 00 00 00 00 00 FF 0F CC [14:52:07]RasterBufferAndPrint [14:52:07]line Счет N : (1)1965650 [14:52:07]line ИНН: 02508201610067 [14:52:07]line Контрольно-Кассовый Чек [14:52:07]line ПРОДАЖА [14:52:07]line ТРК (МРК, ГНК) : 52 [14:52:07]line Товар: 2710124130 [14:52:07]line SU-92 [14:52:07]line 5.850 * 68.40 [14:52:07]line = 400.14 [14:52:07]line НДС 12% НСП 1% [14:52:07]line > о реализуемом товаре [14:52:07]line ОКРУГЛЕНИЕ: -0.14 [14:52:07]line ИТОГО: 400.00 [14:52:07]line Внесено: 400.00 [14:52:07]line СДАЧА: 0.00 [14:52:07]line НСП 1% : 3.54 [14:52:07]line НДС 12% : 42.49 [14:52:07]line Наличными: 400.00 [14:52:07]line Безнал.: 0.00 [14:52:07]line Место: АЗС № 133 "Партнер Нефть" [14:52:07]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:52:07]line СНО: Общий режим [14:52:07]line Чек 207 23.10.2024 14:52 [14:52:07]line Смена: 173 ФФД: 1.0 [14:52:07]line ЗНМ: 0300000020 [14:52:07]line РНМ: 0000000000161154 [14:52:07]line Версия ККМ: v1.0 [14:52:07]line ФМ: 0000000000963323 [14:52:07]line ФД: 75474 [14:52:07]line ФПД: 220244870313662 [14:52:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145206&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75474&fm=220244870313662&tin=02508201610067®Number=0000000000161154&sum=40000 [14:52:07]OFD Sender: Processing packet 75474 [packets to send 16, broken 15] [14:52:07]ProducePacketName [14:52:07]name=ofd_packets/00075474 [14:52:07]OFD Sender: To server: pG, [14:52:07]CommunicateWithHost lk.salyk.kg:30040 [14:52:07]ConnectInit lk.salyk.kg [14:52:07]written 0, free lines is 4095 [14:52:07]Connected sock=10 [14:52:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 08 E6 00 01 57 59 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 CF 00 00 00 F4 03 04 00 96 0D 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D2 26 01 00 35 04 06 00 C8 4F C1 42 36 BE D2 5B D5 9C C1 B2 9D 55 [14:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AD F0 47 00 AC 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D2 26 01 00 F4 03 04 00 71 B6 18 67 B6 04 01 00 00 17 4E FA 62 40 65 CC 04 [14:52:08]CommunicateWithHost err = 0 [14:52:08]CheckOFDResponse [14:52:08]1017 (14) - 77093643461234 [14:52:08]1041 (16) - 0000000000963323 [14:52:08]1040 (4) - 75474 [14:52:08]1012 (4) - 23.10.2024 08:40 [14:52:08]1206 (1) - 0 [14:52:08]OFD Sender: Remove packet 75474 [14:52:08]ProducePacketName [14:52:08]name=ofd_packets/00075474 [14:52:08]NVStorageDeleteData [14:52:08]Write to MH i2c: 01 00 00 D4 0D E1 [14:52:08]Write i2c OK [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: 01 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: 01 07 00 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: 01 07 00 D4 0D 00 00 00 00 00 A6 0C 9A [14:52:08]RasterBufferAndPrint [14:52:08]line [14:52:08]line [14:52:08]line [14:52:08]line [14:52:08]line [14:52:08]written 0, free lines is 3241 [14:52:08]MH_Cut [14:52:08]Write to MH i2c: D1 01 00 DB 0D 01 BA [14:52:08]Write i2c OK [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: D1 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: D1 01 00 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: D1 01 00 DB 0D 00 B9 [14:52:08]Write to MH i2c: 01 00 00 DC 0D E9 [14:52:08]Write i2c OK [14:52:08]MH_I2C_Read... [14:52:08]OFD Sender: No OFD packet to send [14:52:09]*** Cut start [14:52:09]*** Partial cut [14:52:09]*** CUTSNS_PIN = 1 [14:52:09]*** CUTSNS_PIN = 0 [14:52:09]*** Brake cut motor [14:52:09]Read from MH i2c: 01 [14:52:09]MH_I2C_Read... [14:52:09]*** Stop cut motor [14:52:09]*** Cut end [14:52:09]Read from MH i2c: 01 07 00 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 FF 0F FE [14:52:09]process_action close_receipt done [14:52:09]requested_data is exist [14:52:09]produce_requested_data [14:52:09]requested_item fm.sn is exist - process it [14:52:09]wFMCommunicate request_size=4 [14:52:09]MH_SAM_APDU [14:52:09]CAPDU: 80 11 00 00 [14:52:09]Write to MH i2c: E2 08 00 DD 0D 80 11 00 00 00 00 00 00 64 [14:52:09]Write i2c OK [14:52:09]MH_I2C_Read... [14:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:09]Read from MH i2c: E2 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 17 00 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 17 00 DD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B1 [14:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:52:09]wFMCommunicate OK [14:52:09]requested_item fd.num is exist - process it [14:52:09]SAM_PROTO_GetFieldsCounters [14:52:09]wFMCommunicate request_size=4 [14:52:09]MH_SAM_APDU [14:52:09]CAPDU: 80 13 00 00 [14:52:09]Write to MH i2c: E2 08 00 DE 0D 80 13 00 00 00 00 00 00 67 [14:52:09]Write i2c OK [14:52:09]MH_I2C_Read... [14:52:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:09]Read from MH i2c: E2 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 62 00 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 62 00 DE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D2 26 01 00 0E 04 04 00 AD 00 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 8E [14:52:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D2 26 01 00 0E 04 04 00 AD 00 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 [14:52:09]wFMCommunicate OK [14:52:09]SAM_PROTO_GetFieldsCounters done [14:52:09]requested_item shift.num is exist - process it [14:52:09]requested_item shift.opened is exist - process it [14:52:09]req_shift_opened [14:52:09]FM_GetShiftState [14:52:09]SAM_PROTO_GetShiftState [14:52:09]wFMCommunicate request_size=4 [14:52:09]MH_SAM_APDU [14:52:09]CAPDU: 80 13 01 00 [14:52:09]Write to MH i2c: E2 08 00 DF 0D 80 13 01 00 00 00 00 00 69 [14:52:09]Write i2c OK [14:52:09]MH_I2C_Read... [14:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:09]Read from MH i2c: E2 [14:52:09]MH_I2C_Read... [14:52:10]Read from MH i2c: E2 0E 00 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: E2 0E 00 DF 0D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CE [14:52:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:52:10]wFMCommunicate OK [14:52:10]SAM_PROTO_GetShiftState done [14:52:10]FM_GetShiftState done [14:52:10]req_shift_opened done [14:52:10]requested_item shift.open_date is exist - process it [14:52:10]req_shift_open_date [14:52:10]req_shift_open_date done [14:52:10]produce_requested_data done [14:52:10]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75474,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:52:10]process_action_free close_receipt [14:52:10]json_value_free [14:52:10]json_value_free done [14:52:10]process_json_proto returns [14:52:10]Send response to host [14:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75474,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:52:10]free response buf [14:52:10]execute_script done [14:52:10]execute_script returns [14:52:10]free content buf [14:52:10]Sock 8.Close socket [14:52:10]Sock 8.Thread stoped [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:02]accept exits with 9 [14:54:02]New connection [14:54:02]New thread 3066608996 created [14:54:02]Thread 3066465636 joined [14:54:02]Waiting for new connection... [14:54:02] Sock 9.Parse request [14:54:02]Sock 9.Check first char [14:54:02]Sock 9.First char is OK [14:54:02]request: POST /json_proto HTTP/1.0 [14:54:02]Method: POST [14:54:02]URL: /json_proto [14:54:02]Method is POST - this is cgi request [14:54:02]url: /json_proto [14:54:02]query_string will be loaded in cgi processing [14:54:02]execute_cgi json_proto POST (null) [14:54:02]execute_cgi path=json_proto method=POST [14:54:02]POST find Content-Length [14:54:02]Host: 172.17.44.196:8080 [14:54:02]Content-Length: 691 [14:54:02]Content-Type: application/json [14:54:02] [14:54:02]POST finish read [14:54:02]Found Content-Length = 691 [14:54:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273260", "tax_sys" : 0, "items" : [ { "code": "4700321005017", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 43.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:02]execute_script... [14:54:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273260", "tax_sys" : 0, "items" : [ { "code": "4700321005017", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 43.00, "quantity" : 1.000, "sum" : 43.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 43.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:02]POST & json_proto [14:54:02]process_json_proto [14:54:02]json parsed OK: [14:54:02]protocol is kg_v1.0 [14:54:02]action value=close_receipt [14:54:02]process_action close_receipt [14:54:02]cmd_close_receipt [14:54:02]MH_GetDate [14:54:02]Write to MH i2c: F0 00 00 E0 0D DC [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: F0 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: F0 09 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: F0 09 00 E0 0D 00 0A 0E 19 67 E7 19 F8 65 DA [14:54:02]GetLastDocTimeStamp 1729695126 [14:54:02]current date 1729695242 [14:54:02]FM_GetShiftState [14:54:02]SAM_PROTO_GetShiftState [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 13 01 00 [14:54:02]Write to MH i2c: E2 08 00 E1 0D 80 13 01 00 00 00 00 00 6B [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 0E 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 0E 00 E1 0D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D0 [14:54:02]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:54:02]wFMCommunicate OK [14:54:02]SAM_PROTO_GetShiftState done [14:54:02]FM_GetShiftState done [14:54:02]opened in 1729642905 [14:54:02]opened+sec_in_day 1729729305 [14:54:02]quantity*price = 4300 [14:54:02]sum+1 = 4301 [14:54:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 43.00 НСП 1% : 0.38 НДС 12% : 4.57 Наличными: 43.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 208 23.10.2024 14:54 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75475 ФПД: 254448307866364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145402&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75475&fm=254448307866364&tin=02508201610067®Number=0000000000161154&sum=4300 0 [14:54:03]StoreToDocumentArchive [14:54:03]shift 173 fd 75475 [14:54:03]save to /storage/0173/doc_00075475 [14:54:03]save last doc name /storage/0173/doc_00075475 to /storage/kkm_last_doc_name [14:54:03]save OK [14:54:03]Clear old archive folders... [14:54:03]ProcessDocumentItem done err = 0, tmpTLVsize=294 [14:54:03]tlvbuf is 007D2D70 [14:54:03]SAM_PROTO_ClearQueue [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 09 00 00 [14:54:03]Write to MH i2c: E2 08 00 EE 0D 80 09 00 00 00 00 00 00 6D [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 EE 0D 00 90 00 6F [14:54:03]RAPDU: 90 00 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_ClearQueue done [14:54:03]KKMCreateOFDPacket [14:54:03]OFDProtocolAddRootSTLVToBuf [14:54:03]FM_MakeSignedData [14:54:03]FM_MakeSignedData [14:54:03]SAM_PROTO_SignData [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 0D 01 02 [14:54:03]Write to MH i2c: E2 08 00 EF 0D 80 0D 01 02 00 00 00 00 75 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 EF 0D 00 90 00 70 [14:54:03]RAPDU: 90 00 [14:54:03]wFMCommunicate OK [14:54:03]wFMCommunicate request_size=255 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 0A 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [14:54:03]Write to MH i2c: E2 02 01 F0 0D 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 0A 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 EB [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 F0 0D 00 90 00 71 [14:54:03]RAPDU: 90 00 [14:54:03]wFMCommunicate OK [14:54:03]wFMCommunicate request_size=53 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 0D 02 02 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D3 26 01 00 35 04 06 00 E7 6B 5D 01 0A FC [14:54:03]Write to MH i2c: E2 38 00 F1 0D 80 0D 02 02 30 00 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D3 26 01 00 35 04 06 00 E7 6B 5D 01 0A FC 00 00 10 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 F1 0D 00 90 00 72 [14:54:03]RAPDU: 90 00 [14:54:03]wFMCommunicate OK [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 0D 03 02 [14:54:03]Write to MH i2c: E2 08 00 F2 0D 80 0D 03 02 00 00 00 00 7A [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]OFD Sender: No OFD packet to send [14:54:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0B 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0B 00 F2 0D 00 AF 78 6C BA 78 47 FD 95 90 00 19 [14:54:03]RAPDU: AF 78 6C BA 78 47 FD 95 90 00 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_SignData done [14:54:03]FM_MakeSignedData done [14:54:03]CreateOFDProtocolMessage [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 11 00 00 [14:54:03]Write to MH i2c: E2 08 00 F3 0D 80 11 00 00 00 00 00 00 7A [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 F3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C7 [14:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:54:03]wFMCommunicate OK [14:54:03]CreateOFDProtocolMessage done [14:54:03]OFDSenderStorePacket 75475 [14:54:03]StoreOFDPacket docnum=75475 [14:54:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3A 01 00 00 E0 71 32 01 F7 19 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 0A 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D3 26 01 00 35 04 06 00 E7 6B 5D 01 0A FC AF 78 6C BA 78 47 FD 95 [14:54:03]CheckFolder [14:54:03]dirname=/storage/ofd_packets [14:54:03]CheckFolder done [14:54:03]ProducePacketName [14:54:03]name=ofd_packets/00075475 [14:54:03]NVStorageSaveData ofd_packets/00075475 [14:54:03]File name is /storage/ofd_packets/00075475 [14:54:03]Write 344 bytes [14:54:03]NVStorageSaveData done [14:54:03]OFDSenderStorePacket done [14:54:03]KKMCreateOFDPacket done [14:54:03]NVStorageSaveData kkm_last_timestamp [14:54:03]File name is /storage/kkm_last_timestamp [14:54:03]Write 4 bytes [14:54:03]NVStorageSaveData done [14:54:03]ExternCall_PrintAddStr [14:54:03]wPrintStart [14:54:03]Write to MH i2c: 01 00 00 F4 0D 01 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 F4 0D 00 00 00 00 00 FF 0F 16 [14:54:03]RasterBufferAndPrint [14:54:03]line Счет N : (3)273260 [14:54:03]line ИНН: 02508201610067 [14:54:03]line Контрольно-Кассовый Чек [14:54:03]line ПРОДАЖА [14:54:03]line Товар: 4700321005017 [14:54:03]line Арахис Mike жареный соленый 50г [14:54:03]line 1.000 * 43.00 [14:54:03]line = 43.00 [14:54:03]line НДС 12% НСП 1% [14:54:03]line > о реализуемом товаре [14:54:03]line ИТОГО: 43.00 [14:54:03]line НСП 1% : 0.38 [14:54:03]line НДС 12% : 4.57 [14:54:03]line Наличными: 43.00 [14:54:03]line Безнал.: 0.00 [14:54:03]line Место: АЗС № 133 "Партнер Нефть" [14:54:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:54:03]line СНО: Общий режим [14:54:03]line Чек 208 23.10.2024 14:54 [14:54:03]line Смена: 173 ФФД: 1.0 [14:54:03]line ЗНМ: 0300000020 [14:54:03]line РНМ: 0000000000161154 [14:54:03]line Версия ККМ: v1.0 [14:54:03]line ФМ: 0000000000963323 [14:54:03]line ФД: 75475 [14:54:03]line ФПД: 254448307866364 [14:54:03]OFD Sender: Processing packet 75475 [packets to send 16, broken 15] [14:54:03]ProducePacketName [14:54:03]name=ofd_packets/00075475 [14:54:03]OFD Sender: To server: pG, [14:54:04]CommunicateWithHost lk.salyk.kg:30040 [14:54:04]ConnectInit lk.salyk.kg [14:54:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145402&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75475&fm=254448307866364&tin=02508201610067®Number=0000000000161154&sum=4300 [14:54:04]line 0 [14:54:04]written 0, free lines is 4095 [14:54:04]Connected sock=10 [14:54:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3A 01 00 00 E0 71 32 01 F7 19 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 31 37 06 04 34 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 10 00 00 00 00 13 04 06 00 CC 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 01 00 00 00 00 07 04 06 00 CC 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 0A 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D3 26 01 00 35 04 06 00 E7 6B 5D 01 0A FC AF 78 6C BA 78 47 FD 95 [14:54:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 CD A6 47 00 0B 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 39 36 33 33 32 33 10 04 04 00 D3 26 01 00 F4 03 04 00 E5 B6 18 67 B6 04 01 00 00 7F 9D 69 F5 97 91 06 89 [14:54:04]CommunicateWithHost err = 0 [14:54:04]CheckOFDResponse [14:54:04]1017 (14) - 77093643461234 [14:54:04]1041 (16) - 0000000000963323 [14:54:04]1040 (4) - 75475 [14:54:04]1012 (4) - 23.10.2024 08:42 [14:54:04]1206 (1) - 0 [14:54:04]OFD Sender: Remove packet 75475 [14:54:04]ProducePacketName [14:54:04]name=ofd_packets/00075475 [14:54:04]NVStorageDeleteData [14:54:04]Write to MH i2c: 01 00 00 1C 0E 2A [14:54:04]Write i2c OK [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: 01 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: 01 07 00 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: 01 07 00 1C 0E 00 00 00 00 00 BD 0C FA [14:54:04]RasterBufferAndPrint [14:54:04]line [14:54:04]line [14:54:04]line [14:54:04]line [14:54:04]line [14:54:04]written 0, free lines is 3264 [14:54:04]MH_Cut [14:54:04]Write to MH i2c: D1 01 00 23 0E 01 03 [14:54:04]Write i2c OK [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: D1 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: D1 01 00 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: D1 01 00 23 0E 00 02 [14:54:04]Write to MH i2c: 01 00 00 24 0E 32 [14:54:04]Write i2c OK [14:54:04]MH_I2C_Read... [14:54:04]OFD Sender: No OFD packet to send [14:54:05]*** Cut start [14:54:05]*** Partial cut [14:54:05]*** CUTSNS_PIN = 1 [14:54:05]*** CUTSNS_PIN = 0 [14:54:05]*** Brake cut motor [14:54:06]Read from MH i2c: 01 [14:54:06]MH_I2C_Read... [14:54:06]*** Stop cut motor [14:54:06]*** Cut end [14:54:06]Read from MH i2c: 01 07 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: 01 07 00 24 0E 00 00 00 00 00 FF 0F 47 [14:54:06]process_action close_receipt done [14:54:06]requested_data is exist [14:54:06]produce_requested_data [14:54:06]requested_item fm.sn is exist - process it [14:54:06]wFMCommunicate request_size=4 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 11 00 00 [14:54:06]Write to MH i2c: E2 08 00 25 0E 80 11 00 00 00 00 00 00 AD [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 17 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 17 00 25 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FA [14:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:54:06]wFMCommunicate OK [14:54:06]requested_item fd.num is exist - process it [14:54:06]SAM_PROTO_GetFieldsCounters [14:54:06]wFMCommunicate request_size=4 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 13 00 00 [14:54:06]Write to MH i2c: E2 08 00 26 0E 80 13 00 00 00 00 00 00 B0 [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 62 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 62 00 26 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D3 26 01 00 0E 04 04 00 AD 00 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 DB [14:54:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D3 26 01 00 0E 04 04 00 AD 00 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 [14:54:06]wFMCommunicate OK [14:54:06]SAM_PROTO_GetFieldsCounters done [14:54:06]requested_item shift.num is exist - process it [14:54:06]requested_item shift.opened is exist - process it [14:54:06]req_shift_opened [14:54:06]FM_GetShiftState [14:54:06]SAM_PROTO_GetShiftState [14:54:06]wFMCommunicate request_size=4 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 13 01 00 [14:54:06]Write to MH i2c: E2 08 00 27 0E 80 13 01 00 00 00 00 00 B2 [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 0E 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 0E 00 27 0E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 17 [14:54:06]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:54:06]wFMCommunicate OK [14:54:06]SAM_PROTO_GetShiftState done [14:54:06]FM_GetShiftState done [14:54:06]req_shift_opened done [14:54:06]requested_item shift.open_date is exist - process it [14:54:06]req_shift_open_date [14:54:06]req_shift_open_date done [14:54:06]produce_requested_data done [14:54:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75475,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:54:06]process_action_free close_receipt [14:54:06]json_value_free [14:54:06]json_value_free done [14:54:06]process_json_proto returns [14:54:06]Send response to host [14:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75475,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:54:06]free response buf [14:54:06]execute_script done [14:54:06]execute_script returns [14:54:06]free content buf [14:54:06]Sock 9.Close socket [14:54:06]Sock 9.Thread stoped [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:15]accept exits with 8 [14:55:15]New connection [14:55:15]New thread 3066465636 created [14:55:15]Thread 3066608996 joined [14:55:15]Waiting for new connection... [14:55:15] Sock 8.Parse request [14:55:15]Sock 8.Check first char [14:55:15]Sock 8.First char is OK [14:55:15]request: POST /json_proto HTTP/1.0 [14:55:15]Method: POST [14:55:15]URL: /json_proto [14:55:15]Method is POST - this is cgi request [14:55:15]url: /json_proto [14:55:15]query_string will be loaded in cgi processing [14:55:15]execute_cgi json_proto POST (null) [14:55:15]execute_cgi path=json_proto method=POST [14:55:15]POST find Content-Length [14:55:15]Host: 172.17.44.196:8080 [14:55:15]Content-Length: 667 [14:55:15]Content-Type: application/json [14:55:15] [14:55:15]POST finish read [14:55:15]Found Content-Length = 667 [14:55:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 0.090, "sum" : 3.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:15]execute_script... [14:55: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)1965653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 0.090, "sum" : 3.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:15]POST & json_proto [14:55:15]process_json_proto [14:55:15]json parsed OK: [14:55:15]protocol is kg_v1.0 [14:55:15]action value=close_receipt [14:55:15]process_action close_receipt [14:55:15]cmd_close_receipt [14:55:15]MH_GetDate [14:55:15]Write to MH i2c: F0 00 00 28 0E 25 [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: F0 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: F0 09 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: F0 09 00 28 0E 00 54 0E 19 67 E7 19 F8 65 6D [14:55:15]GetLastDocTimeStamp 1729695242 [14:55:15]current date 1729695316 [14:55:15]FM_GetShiftState [14:55:15]SAM_PROTO_GetShiftState [14:55:15]wFMCommunicate request_size=4 [14:55:15]MH_SAM_APDU [14:55:15]CAPDU: 80 13 01 00 [14:55:15]Write to MH i2c: E2 08 00 29 0E 80 13 01 00 00 00 00 00 B4 [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:16]Read from MH i2c: E2 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 0E 00 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 0E 00 29 0E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 19 [14:55:16]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:55:16]wFMCommunicate OK [14:55:16]SAM_PROTO_GetShiftState done [14:55:16]FM_GetShiftState done [14:55:16]opened in 1729642905 [14:55:16]opened+sec_in_day 1729729305 [14:55:16]quantity*price = 350 [14:55:16]sum+1 = 351 [14:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 3.00 Внесено: 1200.00 СДАЧА: 1197.00 НСП 1% : 0.03 НДС 12% : 0.37 Наличными: 3.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 209 23.10.2024 14:55 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75476 ФПД: 15187450975815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145516&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75476&fm=15187450975815&tin=02508201610067®Number=0000000000161154&sum=300 [14:55:17]StoreToDocumentArchive [14:55:17]shift 173 fd 75476 [14:55:17]save to /storage/0173/doc_00075476 [14:55:17]save last doc name /storage/0173/doc_00075476 to /storage/kkm_last_doc_name [14:55:17]save OK [14:55:17]Clear old archive folders... [14:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=245 [14:55:17]tlvbuf is 007AE130 [14:55:17]SAM_PROTO_ClearQueue [14:55:17]wFMCommunicate request_size=4 [14:55:17]MH_SAM_APDU [14:55:17]CAPDU: 80 09 00 00 [14:55:17]Write to MH i2c: E2 08 00 36 0E 80 09 00 00 00 00 00 00 B6 [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:17]Read from MH i2c: E2 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 03 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [14:55:17]RAPDU: 90 00 [14:55:17]wFMCommunicate OK [14:55:17]SAM_PROTO_ClearQueue done [14:55:17]KKMCreateOFDPacket [14:55:17]OFDProtocolAddRootSTLVToBuf [14:55:17]FM_MakeSignedData [14:55:17]FM_MakeSignedData [14:55:17]SAM_PROTO_SignData [14:55:17]wFMCommunicate request_size=4 [14:55:17]MH_SAM_APDU [14:55:17]CAPDU: 80 0D 01 02 [14:55:17]Write to MH i2c: E2 08 00 37 0E 80 0D 01 02 00 00 00 00 BE [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:17]Read from MH i2c: E2 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 03 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 03 00 37 0E 00 90 00 B9 [14:55:17]RAPDU: 90 00 [14:55:17]wFMCommunicate OK [14:55:17]wFMCommunicate request_size=254 [14:55:17]MH_SAM_APDU [14:55:17]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5E 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 54 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D4 26 01 00 35 04 06 00 0D D0 1A 9E D6 47 [14:55:17]Write to MH i2c: E2 01 01 38 0E 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5E 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 54 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D4 26 01 00 35 04 06 00 0D D0 1A 9E D6 47 00 00 EA [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:17]Read from MH i2c: E2 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 03 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 03 00 38 0E 00 90 00 BA [14:55:17]RAPDU: 90 00 [14:55:17]wFMCommunicate OK [14:55:17]wFMCommunicate request_size=4 [14:55:17]MH_SAM_APDU [14:55:17]CAPDU: 80 0D 03 02 [14:55:17]Write to MH i2c: E2 08 00 39 0E 80 0D 03 02 00 00 00 00 C2 [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:17]Read from MH i2c: E2 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 0B 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 0B 00 39 0E 00 2C EE 79 99 9E EF F8 19 90 00 8D [14:55:17]RAPDU: 2C EE 79 99 9E EF F8 19 90 00 [14:55:17]wFMCommunicate OK [14:55:17]SAM_PROTO_SignData done [14:55:17]FM_MakeSignedData done [14:55:17]CreateOFDProtocolMessage [14:55:17]wFMCommunicate request_size=4 [14:55:17]MH_SAM_APDU [14:55:17]CAPDU: 80 11 00 00 [14:55:17]Write to MH i2c: E2 08 00 3A 0E 80 11 00 00 00 00 00 00 C2 [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:17]Read from MH i2c: E2 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 17 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 17 00 3A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0F [14:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:55:17]wFMCommunicate OK [14:55:17]CreateOFDProtocolMessage done [14:55:17]OFDSenderStorePacket 75476 [14:55:17]StoreOFDPacket docnum=75476 [14:55:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 7E 19 01 01 3D 1F 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5E 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 54 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D4 26 01 00 35 04 06 00 0D D0 1A 9E D6 47 2C EE 79 99 9E EF F8 19 [14:55:17]CheckFolder [14:55:17]dirname=/storage/ofd_packets [14:55:17]CheckFolder done [14:55:17]ProducePacketName [14:55:17]name=ofd_packets/00075476 [14:55:17]NVStorageSaveData ofd_packets/00075476 [14:55:17]File name is /storage/ofd_packets/00075476 [14:55:17]Write 295 bytes [14:55:17]NVStorageSaveData done [14:55:17]OFDSenderStorePacket done [14:55:17]KKMCreateOFDPacket done [14:55:17]NVStorageSaveData kkm_last_timestamp [14:55:17]File name is /storage/kkm_last_timestamp [14:55:17]Write 4 bytes [14:55:17]NVStorageSaveData done [14:55:17]ExternCall_PrintAddStr [14:55:17]wPrintStart [14:55:17]Write to MH i2c: 01 00 00 3B 0E 49 [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 07 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 07 00 3B 0E 00 00 00 00 00 FF 0F 5E [14:55:17]RasterBufferAndPrint [14:55:17]line Счет N : (1)1965653 [14:55:17]line ИНН: 02508201610067 [14:55:17]line Контрольно-Кассовый Чек [14:55:17]line ПРОДАЖА [14:55:17]line ТРК (МРК, ГНК) : 71 [14:55:17]line Товар: 2711129700 [14:55:17]line ГАЗ [14:55:17]line 0.090 * 38.90 [14:55:17]line = 3.50 [14:55:17]line НДС 12% НСП 1% [14:55:17]line > о реализуемом товаре [14:55:17]line ОКРУГЛЕНИЕ: -0.50 [14:55:17]line ИТОГО: 3.00 [14:55:17]line Внесено: 1200.00 [14:55:17]line СДАЧА: 1197.00 [14:55:17]line НСП 1% : 0.03 [14:55:17]line НДС 12% : 0.37 [14:55:17]line Наличными: 3.00 [14:55:17]line Безнал.: 0.00 [14:55:17]line Место: АЗС № 133 "Партнер Нефть" [14:55:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:55:17]line СНО: Общий режим [14:55:17]line Чек 209 23.10.2024 14:55 [14:55:17]line Смена: 173 ФФД: 1.0 [14:55:17]line ЗНМ: 0300000020 [14:55:17]line РНМ: 0000000000161154 [14:55:17]line Версия ККМ: v1.0 [14:55:17]line ФМ: 0000000000963323 [14:55:17]line ФД: 75476 [14:55:17]line ФПД: 15187450975815 [14:55:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145516&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75476&fm=15187450975815&tin=02508201610067®Number=0000000000161154&sum=300 [14:55:17]OFD Sender: Processing packet 75476 [packets to send 16, broken 15] [14:55:17]ProducePacketName [14:55:17]name=ofd_packets/00075476 [14:55:17]OFD Sender: To server: pG, [14:55:17]CommunicateWithHost lk.salyk.kg:30040 [14:55:17]ConnectInit lk.salyk.kg [14:55:17]written 0, free lines is 4095 [14:55:18]Connected sock=10 [14:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 7E 19 01 01 3D 1F 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5E 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 54 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D4 26 01 00 35 04 06 00 0D D0 1A 9E D6 47 2C EE 79 99 9E EF F8 19 [14:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D0 C3 47 00 8C 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D4 26 01 00 F4 03 04 00 2F B7 18 67 B6 04 01 00 00 65 B3 64 D9 DE 75 6D BC [14:55:18]CommunicateWithHost err = 0 [14:55:18]CheckOFDResponse [14:55:18]1017 (14) - 77093643461234 [14:55:18]1041 (16) - 0000000000963323 [14:55:18]1040 (4) - 75476 [14:55:18]1012 (4) - 23.10.2024 08:43 [14:55:18]1206 (1) - 0 [14:55:18]OFD Sender: Remove packet 75476 [14:55:18]ProducePacketName [14:55:18]name=ofd_packets/00075476 [14:55:18]NVStorageDeleteData [14:55:18]Write to MH i2c: 01 00 00 65 0E 73 [14:55:18]Write i2c OK [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: 01 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: 01 07 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: 01 07 00 65 0E 00 00 00 00 00 9E 0C 24 [14:55:18]RasterBufferAndPrint [14:55:18]line [14:55:18]line [14:55:18]line [14:55:18]line [14:55:18]line [14:55:18]written 0, free lines is 3234 [14:55:18]MH_Cut [14:55:18]Write to MH i2c: D1 01 00 6C 0E 01 4C [14:55:18]Write i2c OK [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: D1 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: D1 01 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: D1 01 00 6C 0E 00 4B [14:55:18]Write to MH i2c: 01 00 00 6D 0E 7B [14:55:18]Write i2c OK [14:55:18]MH_I2C_Read... [14:55:18]OFD Sender: No OFD packet to send [14:55:19]*** Cut start [14:55:19]*** Partial cut [14:55:19]*** CUTSNS_PIN = 1 [14:55:19]*** CUTSNS_PIN = 0 [14:55:19]*** Brake cut motor [14:55:19]Read from MH i2c: 01 [14:55:19]MH_I2C_Read... [14:55:19]*** Stop cut motor [14:55:19]*** Cut end [14:55:19]Read from MH i2c: 01 07 00 [14:55:19]MH_I2C_Read... [14:55:19]Read from MH i2c: 01 07 00 6D 0E 00 00 00 00 00 FF 0F 90 [14:55:19]process_action close_receipt done [14:55:19]requested_data is exist [14:55:19]produce_requested_data [14:55:19]requested_item fm.sn is exist - process it [14:55:19]wFMCommunicate request_size=4 [14:55:19]MH_SAM_APDU [14:55:19]CAPDU: 80 11 00 00 [14:55:19]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [14:55:19]Write i2c OK [14:55:19]MH_I2C_Read... [14:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:20]Read from MH i2c: E2 [14:55:20]MH_I2C_Read... [14:55:20]Read from MH i2c: E2 17 00 [14:55:20]MH_I2C_Read... [14:55:20]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 43 [14:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:55:20]wFMCommunicate OK [14:55:20]requested_item fd.num is exist - process it [14:55:20]SAM_PROTO_GetFieldsCounters [14:55:20]wFMCommunicate request_size=4 [14:55:20]MH_SAM_APDU [14:55:20]CAPDU: 80 13 00 00 [14:55:20]Write to MH i2c: E2 08 00 6F 0E 80 13 00 00 00 00 00 00 F9 [14:55:20]Write i2c OK [14:55:20]MH_I2C_Read... [14:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:20]Read from MH i2c: E2 [14:55:20]MH_I2C_Read... [14:55:20]Read from MH i2c: E2 62 00 [14:55:20]MH_I2C_Read... [14:55:20]Read from MH i2c: E2 62 00 6F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D4 26 01 00 0E 04 04 00 AD 00 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 28 [14:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D4 26 01 00 0E 04 04 00 AD 00 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 [14:55:20]wFMCommunicate OK [14:55:20]SAM_PROTO_GetFieldsCounters done [14:55:20]requested_item shift.num is exist - process it [14:55:20]requested_item shift.opened is exist - process it [14:55:20]req_shift_opened [14:55:20]FM_GetShiftState [14:55:20]SAM_PROTO_GetShiftState [14:55:20]wFMCommunicate request_size=4 [14:55:20]MH_SAM_APDU [14:55:20]CAPDU: 80 13 01 00 [14:55:20]Write to MH i2c: E2 08 00 70 0E 80 13 01 00 00 00 00 00 FB [14:55:20]Write i2c OK [14:55:20]MH_I2C_Read... [14:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:20]Read from MH i2c: E2 [14:55:20]MH_I2C_Read... [14:55:20]Read from MH i2c: E2 0E 00 [14:55:20]MH_I2C_Read... [14:55:20]Read from MH i2c: E2 0E 00 70 0E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 60 [14:55:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:55:20]wFMCommunicate OK [14:55:20]SAM_PROTO_GetShiftState done [14:55:20]FM_GetShiftState done [14:55:20]req_shift_opened done [14:55:20]requested_item shift.open_date is exist - process it [14:55:20]req_shift_open_date [14:55:20]req_shift_open_date done [14:55:20]produce_requested_data done [14:55:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75476,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:55:20]process_action_free close_receipt [14:55:20]json_value_free [14:55:20]json_value_free done [14:55:20]process_json_proto returns [14:55:20]Send response to host [14:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75476,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:55:20]free response buf [14:55:20]execute_script done [14:55:20]execute_script returns [14:55:20]free content buf [14:55:20]Sock 8.Close socket [14:55:20]Sock 8.Thread stoped [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:31]accept exits with 9 [14:55:31]New connection [14:55:31]New thread 3066608996 created [14:55:31]Thread 3066465636 joined [14:55:31]Waiting for new connection... [14:55:31] Sock 9.Parse request [14:55:31]Sock 9.Check first char [14:55:31]Sock 9.First char is OK [14:55:31]request: POST /json_proto HTTP/1.0 [14:55:31]Method: POST [14:55:31]URL: /json_proto [14:55:31]Method is POST - this is cgi request [14:55:31]url: /json_proto [14:55:31]query_string will be loaded in cgi processing [14:55:31]execute_cgi json_proto POST (null) [14:55:31]execute_cgi path=json_proto method=POST [14:55:31]POST find Content-Length [14:55:31]Host: 172.17.44.196:8080 [14:55:31]Content-Length: 982 [14:55:31]Content-Type: application/json [14:55:31] [14:55:31]POST finish read [14:55:31]Found Content-Length = 982 [14:55:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:31]execute_script... [14:55: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)1965648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:31]POST & json_proto [14:55:31]process_json_proto [14:55:31]json parsed OK: [14:55:31]protocol is kg_v1.0 [14:55:31]action value=close_receipt [14:55:31]process_action close_receipt [14:55:31]cmd_close_receipt [14:55:31]MH_GetDate [14:55:31]Write to MH i2c: F0 00 00 71 0E 6E [14:55:31]Write i2c OK [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: F0 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: F0 09 00 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: F0 09 00 71 0E 00 64 0E 19 67 E7 19 F8 65 C6 [14:55:31]GetLastDocTimeStamp 1729695316 [14:55:31]current date 1729695332 [14:55:31]FM_GetShiftState [14:55:31]SAM_PROTO_GetShiftState [14:55:31]wFMCommunicate request_size=4 [14:55:31]MH_SAM_APDU [14:55:31]CAPDU: 80 13 01 00 [14:55:31]Write to MH i2c: E2 08 00 72 0E 80 13 01 00 00 00 00 00 FD [14:55:31]Write i2c OK [14:55:31]MH_I2C_Read... [14:55:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:31]Read from MH i2c: E2 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: E2 0E 00 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: E2 0E 00 72 0E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 62 [14:55:31]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:55:31]wFMCommunicate OK [14:55:31]SAM_PROTO_GetShiftState done [14:55:31]FM_GetShiftState done [14:55:31]opened in 1729642905 [14:55:31]opened+sec_in_day 1729729305 [14:55:31]quantity*price = 999032 [14:55:31]sum+1 = 999033 [14:55:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 9990.00 Внесено: 10000.00 СДАЧА: 10.00 НСП 1% : 88.41 НДС 12% : 1060.92 Наличными: 9990.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 210 23.10.2024 14:55 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 132.85 сом ФМ: 0000000000963323 ФД: 75477 ФПД: 62613447649454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145532&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75477&fm=62613447649454&tin=02508201610067®Number=0000000000161154&sum=999000 [14:55:32]StoreToDocumentArchive [14:55:32]shift 173 fd 75477 [14:55:32]save to /storage/0173/doc_00075477 [14:55:32]save last doc name /storage/0173/doc_00075477 to /storage/kkm_last_doc_name [14:55:32]save OK [14:55:32]Clear old archive folders... [14:55:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:55:32]tlvbuf is 00783D10 [14:55:32]SAM_PROTO_ClearQueue [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 09 00 00 [14:55:32]Write to MH i2c: E2 08 00 7F 0E 80 09 00 00 00 00 00 00 FF [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [14:55:32]RAPDU: 90 00 [14:55:32]wFMCommunicate OK [14:55:32]SAM_PROTO_ClearQueue done [14:55:32]KKMCreateOFDPacket [14:55:32]OFDProtocolAddRootSTLVToBuf [14:55:32]FM_MakeSignedData [14:55:32]FM_MakeSignedData [14:55:32]SAM_PROTO_SignData [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 0D 01 02 [14:55:32]Write to MH i2c: E2 08 00 80 0E 80 0D 01 02 00 00 00 00 07 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 03 00 80 0E 00 90 00 02 [14:55:32]RAPDU: 90 00 [14:55:32]wFMCommunicate OK [14:55:32]wFMCommunicate request_size=255 [14:55:32]MH_SAM_APDU [14:55:32]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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 64 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D5 26 01 00 35 04 06 00 38 F2 54 4E [14:55:32]Write to MH i2c: E2 02 01 81 0E 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 64 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D5 26 01 00 35 04 06 00 38 F2 54 4E 00 00 CC [14:55:33]Write i2c OK [14:55:33]MH_I2C_Read... [14:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:33]Read from MH i2c: E2 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: E2 03 00 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [14:55:33]RAPDU: 90 00 [14:55:33]wFMCommunicate OK [14:55:33]wFMCommunicate request_size=7 [14:55:33]MH_SAM_APDU [14:55:33]CAPDU: 80 0D 02 02 02 28 AE [14:55:33]Write to MH i2c: E2 0A 00 82 0E 80 0D 02 02 02 00 28 AE 00 00 E4 [14:55:33]Write i2c OK [14:55:33]MH_I2C_Read... [14:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:33]Read from MH i2c: E2 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: E2 03 00 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: E2 03 00 82 0E 00 90 00 04 [14:55:33]RAPDU: 90 00 [14:55:33]wFMCommunicate OK [14:55:33]wFMCommunicate request_size=4 [14:55:33]MH_SAM_APDU [14:55:33]CAPDU: 80 0D 03 02 [14:55:33]Write to MH i2c: E2 08 00 83 0E 80 0D 03 02 00 00 00 00 0C [14:55:33]Write i2c OK [14:55:33]MH_I2C_Read... [14:55:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:33]Read from MH i2c: E2 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: E2 0B 00 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: E2 0B 00 83 0E 00 A7 B9 7C 46 B6 08 37 04 90 00 28 [14:55:33]RAPDU: A7 B9 7C 46 B6 08 37 04 90 00 [14:55:33]wFMCommunicate OK [14:55:33]SAM_PROTO_SignData done [14:55:33]FM_MakeSignedData done [14:55:33]CreateOFDProtocolMessage [14:55:33]wFMCommunicate request_size=4 [14:55:33]MH_SAM_APDU [14:55:33]CAPDU: 80 11 00 00 [14:55:33]Write to MH i2c: E2 08 00 84 0E 80 11 00 00 00 00 00 00 0C [14:55:33]Write i2c OK [14:55:33]MH_I2C_Read... [14:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:33]Read from MH i2c: E2 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: E2 17 00 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: E2 17 00 84 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 59 [14:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:55:33]wFMCommunicate OK [14:55:33]CreateOFDProtocolMessage done [14:55:33]OFDSenderStorePacket 75477 [14:55:33]StoreOFDPacket docnum=75477 [14:55:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 5F EC 04 01 F9 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 64 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D5 26 01 00 35 04 06 00 38 F2 54 4E 28 AE A7 B9 7C 46 B6 08 37 04 [14:55:33]CheckFolder [14:55:33]dirname=/storage/ofd_packets [14:55:33]CheckFolder done [14:55:33]ProducePacketName [14:55:33]name=ofd_packets/00075477 [14:55:33]NVStorageSaveData ofd_packets/00075477 [14:55:33]File name is /storage/ofd_packets/00075477 [14:55:33]Write 298 bytes [14:55:33]NVStorageSaveData done [14:55:33]OFDSenderStorePacket done [14:55:33]KKMCreateOFDPacket done [14:55:33]NVStorageSaveData kkm_last_timestamp [14:55:33]File name is /storage/kkm_last_timestamp [14:55:33]Write 4 bytes [14:55:33]NVStorageSaveData done [14:55:33]ExternCall_PrintAddStr [14:55:33]wPrintStart [14:55:33]Write to MH i2c: 01 00 00 85 0E 93 [14:55:33]Write i2c OK [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: 01 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: 01 07 00 [14:55:33]MH_I2C_Read... [14:55:33]Read from MH i2c: 01 07 00 85 0E 00 00 00 00 00 FF 0F A8 [14:55:33]RasterBufferAndPrint [14:55:33]line Счет N : (1)1965648 [14:55:33]line ИНН: 02508201610067 [14:55:33]line Контрольно-Кассовый Чек [14:55:33]line ПРОДАЖА [14:55:33]line ТРК (МРК, ГНК) : 11 [14:55:33]line Товар: 2710194210 [14:55:33]line ДТ-К-5 [14:55:33]line 132.850 * 75.20 [14:55:33]line = 9990.32 [14:55:33]line НДС 12% НСП 1% [14:55:33]line > о реализуемом товаре [14:55:33]line ОКРУГЛЕНИЕ: -0.32 [14:55:33]line ИТОГО: 9990.00 [14:55:33]line Внесено: 10000.00 [14:55:33]line СДАЧА: 10.00 [14:55:33]line НСП 1% : 88.41 [14:55:33]line НДС 12% : 1060.92 [14:55:33]line Наличными: 9990.00 [14:55:33]line Безнал.: 0.00 [14:55:33]line Место: АЗС № 133 "Партнер Нефть" [14:55:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:55:33]line СНО: Общий режим [14:55:33]line Чек 210 23.10.2024 14:55 [14:55:33]line Смена: 173 ФФД: 1.0 [14:55:33]line ЗНМ: 0300000020 [14:55:33]line РНМ: 0000000000161154 [14:55:33]line Версия ККМ: v1.0 [14:55:33]line [14:55:33]line Дисконтная программа [14:55:33]line ДТ [14:55:33]line номер 133 [14:55:33]line сэкономлено 132.85 сом [14:55:33]line ФМ: 0000000000963323 [14:55:33]line ФД: 75477 [14:55:33]line ФПД: 62613447649454 [14:55:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145532&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75477&fm=62613447649454&tin=02508201610067®Number=0000000000161154&sum=999000 [14:55:33]OFD Sender: Processing packet 75477 [packets to send 16, broken 15] [14:55:33]ProducePacketName [14:55:33]name=ofd_packets/00075477 [14:55:33]OFD Sender: To server: pG, [14:55:33]CommunicateWithHost lk.salyk.kg:30040 [14:55:33]ConnectInit lk.salyk.kg [14:55:33]written 0, free lines is 4095 [14:55:33]Connected sock=10 [14:55:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 5F EC 04 01 F9 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 64 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D5 26 01 00 35 04 06 00 38 F2 54 4E 28 AE A7 B9 7C 46 B6 08 37 04 [14:55:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0D 14 47 00 DD 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 39 36 33 33 32 33 10 04 04 00 D5 26 01 00 F4 03 04 00 3F B7 18 67 B6 04 01 00 00 61 4E BB 4A F9 C3 AB C1 [14:55:34]CommunicateWithHost err = 0 [14:55:34]CheckOFDResponse [14:55:34]1017 (14) - 77093643461234 [14:55:34]1041 (16) - 0000000000963323 [14:55:34]1040 (4) - 75477 [14:55:34]1012 (4) - 23.10.2024 08:43 [14:55:34]1206 (1) - 0 [14:55:34]OFD Sender: Remove packet 75477 [14:55:34]ProducePacketName [14:55:34]name=ofd_packets/00075477 [14:55:34]NVStorageDeleteData [14:55:34]Write to MH i2c: 01 00 00 B4 0E C2 [14:55:34]Write i2c OK [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: 01 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: 01 07 00 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: 01 07 00 B4 0E 00 00 00 00 00 42 0C 17 [14:55:34]RasterBufferAndPrint [14:55:34]line [14:55:34]line [14:55:34]line [14:55:34]line [14:55:34]line [14:55:34]written 0, free lines is 3145 [14:55:34]MH_Cut [14:55:34]Write to MH i2c: D1 01 00 BB 0E 01 9B [14:55:34]Write i2c OK [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: D1 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: D1 01 00 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: D1 01 00 BB 0E 00 9A [14:55:34]Write to MH i2c: 01 00 00 BC 0E CA [14:55:34]Write i2c OK [14:55:34]MH_I2C_Read... [14:55:34]OFD Sender: No OFD packet to send [14:55:35]*** Cut start [14:55:35]*** Partial cut [14:55:35]*** CUTSNS_PIN = 1 [14:55:35]*** CUTSNS_PIN = 0 [14:55:35]*** Brake cut motor [14:55:35]Read from MH i2c: 01 [14:55:35]MH_I2C_Read... [14:55:35]*** Stop cut motor [14:55:35]*** Cut end [14:55:35]Read from MH i2c: 01 07 00 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: 01 07 00 BC 0E 00 00 00 00 00 FF 0F DF [14:55:35]process_action close_receipt done [14:55:35]requested_data is exist [14:55:35]produce_requested_data [14:55:35]requested_item fm.sn is exist - process it [14:55:35]wFMCommunicate request_size=4 [14:55:35]MH_SAM_APDU [14:55:35]CAPDU: 80 11 00 00 [14:55:35]Write to MH i2c: E2 08 00 BD 0E 80 11 00 00 00 00 00 00 45 [14:55:35]Write i2c OK [14:55:35]MH_I2C_Read... [14:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:35]Read from MH i2c: E2 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 17 00 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 17 00 BD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 92 [14:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:55:35]wFMCommunicate OK [14:55:35]requested_item fd.num is exist - process it [14:55:35]SAM_PROTO_GetFieldsCounters [14:55:35]wFMCommunicate request_size=4 [14:55:35]MH_SAM_APDU [14:55:35]CAPDU: 80 13 00 00 [14:55:35]Write to MH i2c: E2 08 00 BE 0E 80 13 00 00 00 00 00 00 48 [14:55:35]Write i2c OK [14:55:35]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 62 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 62 00 BE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D5 26 01 00 0E 04 04 00 AD 00 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 7B [14:55:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D5 26 01 00 0E 04 04 00 AD 00 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 [14:55:36]wFMCommunicate OK [14:55:36]SAM_PROTO_GetFieldsCounters done [14:55:36]requested_item shift.num is exist - process it [14:55:36]requested_item shift.opened is exist - process it [14:55:36]req_shift_opened [14:55:36]FM_GetShiftState [14:55:36]SAM_PROTO_GetShiftState [14:55:36]wFMCommunicate request_size=4 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 13 01 00 [14:55:36]Write to MH i2c: E2 08 00 BF 0E 80 13 01 00 00 00 00 00 4A [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 0E 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 0E 00 BF 0E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AF [14:55:36]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:55:36]wFMCommunicate OK [14:55:36]SAM_PROTO_GetShiftState done [14:55:36]FM_GetShiftState done [14:55:36]req_shift_opened done [14:55:36]requested_item shift.open_date is exist - process it [14:55:36]req_shift_open_date [14:55:36]req_shift_open_date done [14:55:36]produce_requested_data done [14:55:36]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75477,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:55:36]process_action_free close_receipt [14:55:36]json_value_free [14:55:36]json_value_free done [14:55:36]process_json_proto returns [14:55:36]Send response to host [14:55:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75477,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:55:36]free response buf [14:55:36]execute_script done [14:55:36]execute_script returns [14:55:36]free content buf [14:55:36]Sock 9.Close socket [14:55:36]Sock 9.Thread stoped [14:55:39]OFD Sender: No OFD packet to send [14:55:40]accept exits with 8 [14:55:40]New connection [14:55:40]New thread 3066465636 created [14:55:40]Thread 3066608996 joined [14:55:40]Waiting for new connection... [14:55:40] Sock 8.Parse request [14:55:40]Sock 8.Check first char [14:55:40]Sock 8.First char is OK [14:55:40]request: POST /json_proto HTTP/1.0 [14:55:40]Method: POST [14:55:40]URL: /json_proto [14:55:40]Method is POST - this is cgi request [14:55:40]url: /json_proto [14:55:40]query_string will be loaded in cgi processing [14:55:40]execute_cgi json_proto POST (null) [14:55:40]execute_cgi path=json_proto method=POST [14:55:40]POST find Content-Length [14:55:40]Host: 172.17.44.196:8080 [14:55:40]Content-Length: 801 [14:55:40]Content-Type: application/json [14:55:40] [14:55:40]POST finish read [14:55:40]Found Content-Length = 801 [14:55:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1646189", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:40]execute_script... [14:55: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)1965655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1646189", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:40]POST & json_proto [14:55:40]process_json_proto [14:55:40]json parsed OK: [14:55:40]protocol is kg_v1.0 [14:55:40]action value=close_receipt [14:55:40]process_action close_receipt [14:55:40]cmd_close_receipt [14:55:40]MH_GetDate [14:55:40]Write to MH i2c: F0 00 00 C0 0E BD [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: F0 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: F0 09 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: F0 09 00 C0 0E 00 6D 0E 19 67 E7 19 F8 65 1E [14:55:40]GetLastDocTimeStamp 1729695332 [14:55:40]current date 1729695341 [14:55:40]FM_GetShiftState [14:55:40]SAM_PROTO_GetShiftState [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 13 01 00 [14:55:40]Write to MH i2c: E2 08 00 C1 0E 80 13 01 00 00 00 00 00 4C [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 0E 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 0E 00 C1 0E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B1 [14:55:40]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:55:40]wFMCommunicate OK [14:55:40]SAM_PROTO_GetShiftState done [14:55:40]FM_GetShiftState done [14:55:40]opened in 1729642905 [14:55:40]opened+sec_in_day 1729729305 [14:55:40]quantity*price = 0 [14:55:40]sum+1 = 1 [14:55:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 211 23.10.2024 14:55 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: Топливные Талоны 1646189 ФМ: 0000000000963323 ФД: 75478 ФПД: 77210880967544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145541&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75478&fm=77210880967544&tin=02508201610067®Number=0000000000161154&sum=0 [14:55:41]StoreToDocumentArchive [14:55:41]shift 173 fd 75478 [14:55:41]save to /storage/0173/doc_00075478 [14:55:41]save last doc name /storage/0173/doc_00075478 to /storage/kkm_last_doc_name [14:55:41]save OK [14:55:41]Clear old archive folders... [14:55:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:41]tlvbuf is 007781E0 [14:55:41]SAM_PROTO_ClearQueue [14:55:41]wFMCommunicate request_size=4 [14:55:41]MH_SAM_APDU [14:55:41]CAPDU: 80 09 00 00 [14:55:41]Write to MH i2c: E2 08 00 CE 0E 80 09 00 00 00 00 00 00 4E [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:41]Read from MH i2c: E2 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 03 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 03 00 CE 0E 00 90 00 50 [14:55:41]RAPDU: 90 00 [14:55:41]wFMCommunicate OK [14:55:41]SAM_PROTO_ClearQueue done [14:55:41]KKMCreateOFDPacket [14:55:41]OFDProtocolAddRootSTLVToBuf [14:55:41]FM_MakeSignedData [14:55:41]FM_MakeSignedData [14:55:41]SAM_PROTO_SignData [14:55:41]wFMCommunicate request_size=4 [14:55:41]MH_SAM_APDU [14:55:41]CAPDU: 80 0D 01 02 [14:55:41]Write to MH i2c: E2 08 00 CF 0E 80 0D 01 02 00 00 00 00 56 [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:41]Read from MH i2c: E2 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 03 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 03 00 CF 0E 00 90 00 51 [14:55:41]RAPDU: 90 00 [14:55:41]wFMCommunicate OK [14:55:41]wFMCommunicate request_size=255 [14:55:41]MH_SAM_APDU [14:55: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6D 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D6 26 01 00 35 04 06 00 46 [14:55:41]Write to MH i2c: E2 02 01 D0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6D 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D6 26 01 00 35 04 06 00 46 00 00 4C [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:41]Read from MH i2c: E2 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 03 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 03 00 D0 0E 00 90 00 52 [14:55:41]RAPDU: 90 00 [14:55:41]wFMCommunicate OK [14:55:41]wFMCommunicate request_size=10 [14:55:41]MH_SAM_APDU [14:55:41]CAPDU: 80 0D 02 02 05 39 0F 22 03 78 [14:55:41]Write to MH i2c: E2 0D 00 D1 0E 80 0D 02 02 05 00 39 0F 22 03 78 00 00 48 [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:41]Read from MH i2c: E2 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 03 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 03 00 D1 0E 00 90 00 53 [14:55:41]RAPDU: 90 00 [14:55:41]wFMCommunicate OK [14:55:41]wFMCommunicate request_size=4 [14:55:41]MH_SAM_APDU [14:55:41]CAPDU: 80 0D 03 02 [14:55:41]Write to MH i2c: E2 08 00 D2 0E 80 0D 03 02 00 00 00 00 5B [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:41]Read from MH i2c: E2 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 0B 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 0B 00 D2 0E 00 1A D9 6F F9 44 18 0E 94 90 00 B5 [14:55:41]RAPDU: 1A D9 6F F9 44 18 0E 94 90 00 [14:55:41]wFMCommunicate OK [14:55:41]SAM_PROTO_SignData done [14:55:41]FM_MakeSignedData done [14:55:41]CreateOFDProtocolMessage [14:55:41]wFMCommunicate request_size=4 [14:55:41]MH_SAM_APDU [14:55:41]CAPDU: 80 11 00 00 [14:55:41]Write to MH i2c: E2 08 00 D3 0E 80 11 00 00 00 00 00 00 5B [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 17 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 17 00 D3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A8 [14:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:55:42]wFMCommunicate OK [14:55:42]CreateOFDProtocolMessage done [14:55:42]OFDSenderStorePacket 75478 [14:55:42]StoreOFDPacket docnum=75478 [14:55:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CD 7D 07 01 14 D1 5A 03 01 00 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6D 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D6 26 01 00 35 04 06 00 46 39 0F 22 03 78 1A D9 6F F9 44 18 0E 94 [14:55:42]CheckFolder [14:55:42]dirname=/storage/ofd_packets [14:55:42]CheckFolder done [14:55:42]ProducePacketName [14:55:42]name=ofd_packets/00075478 [14:55:42]NVStorageSaveData ofd_packets/00075478 [14:55:42]File name is /storage/ofd_packets/00075478 [14:55:42]Write 301 bytes [14:55:42]NVStorageSaveData done [14:55:42]OFDSenderStorePacket done [14:55:42]KKMCreateOFDPacket done [14:55:42]NVStorageSaveData kkm_last_timestamp [14:55:42]File name is /storage/kkm_last_timestamp [14:55:42]Write 4 bytes [14:55:42]NVStorageSaveData done [14:55:42]ExternCall_PrintAddStr [14:55:42]wPrintStart [14:55:42]Write to MH i2c: 01 00 00 D4 0E E2 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: 01 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: 01 07 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: 01 07 00 D4 0E 00 00 00 00 00 FF 0F F7 [14:55:42]RasterBufferAndPrint [14:55:42]line Счет N : (1)1965655 [14:55:42]line ИНН: 02508201610067 [14:55:42]line Контрольно-Кассовый Чек [14:55:42]line ПРОДАЖА [14:55:42]line ТРК (МРК, ГНК) : 54 [14:55:42]line Товар: 2710124500 [14:55:42]line Аи-95-К-5 [14:55:42]line 10.000 * 0.00 [14:55:42]line = 0.00 [14:55:42]line НДС 12% НСП 1% [14:55:42]line > о реализуемом товаре [14:55:42]line ИТОГО: 0.00 [14:55:42]line НСП 1% : 0.00 [14:55:42]line НДС 12% : 0.00 [14:55:42]line Наличными: 0.00 [14:55:42]line Безнал.: 0.00 [14:55:42]line Место: АЗС № 133 "Партнер Нефть" [14:55:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:55:42]line СНО: Общий режим [14:55:42]line Чек 211 23.10.2024 14:55 [14:55:42]line Смена: 173 ФФД: 1.0 [14:55:42]line ЗНМ: 0300000020 [14:55:42]line РНМ: 0000000000161154 [14:55:42]line Версия ККМ: v1.0 [14:55:42]line Талоны: Топливные Талоны [14:55:42]line 1646189 [14:55:42]line ФМ: 0000000000963323 [14:55:42]line ФД: 75478 [14:55:42]line ФПД: 77210880967544 [14:55:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145541&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75478&fm=77210880967544&tin=02508201610067®Number=0000000000161154&sum=0 [14:55:42]written 0, free lines is 4095 [14:55:42]OFD Sender: Processing packet 75478 [packets to send 16, broken 15] [14:55:42]ProducePacketName [14:55:42]name=ofd_packets/00075478 [14:55:42]OFD Sender: To server: pG, [14:55:42]CommunicateWithHost lk.salyk.kg:30040 [14:55:42]ConnectInit lk.salyk.kg [14:55:42]Connected sock=10 [14:55:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CD 7D 07 01 14 D1 5A 03 01 00 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6D 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D6 26 01 00 35 04 06 00 46 39 0F 22 03 78 1A D9 6F F9 44 18 0E 94 [14:55:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3A 5D 47 00 1C 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D6 26 01 00 F4 03 04 00 47 B7 18 67 B6 04 01 00 00 1D 1A B7 C8 B2 8C 72 3E [14:55:42]CommunicateWithHost err = 0 [14:55:42]CheckOFDResponse [14:55:42]1017 (14) - 77093643461234 [14:55:42]1041 (16) - 0000000000963323 [14:55:42]1040 (4) - 75478 [14:55:42]1012 (4) - 23.10.2024 08:43 [14:55:42]1206 (1) - 0 [14:55:42]OFD Sender: Remove packet 75478 [14:55:42]ProducePacketName [14:55:42]name=ofd_packets/00075478 [14:55:42]NVStorageDeleteData [14:55:42]Write to MH i2c: 01 00 00 FD 0E 0B [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: 01 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: 01 07 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: 01 07 00 FD 0E 00 00 00 00 00 C2 0C E0 [14:55:42]RasterBufferAndPrint [14:55:42]line [14:55:42]line [14:55:42]line [14:55:42]line [14:55:42]line [14:55:42]written 0, free lines is 3273 [14:55:42]MH_Cut [14:55:42]Write to MH i2c: D1 01 00 04 0F 01 E5 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: D1 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: D1 01 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: D1 01 00 04 0F 00 E4 [14:55:42]Write to MH i2c: 01 00 00 05 0F 14 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]OFD Sender: No OFD packet to send [14:55:43]*** Cut start [14:55:43]*** Partial cut [14:55:43]*** CUTSNS_PIN = 1 [14:55:43]*** CUTSNS_PIN = 0 [14:55:43]*** Brake cut motor [14:55:43]Read from MH i2c: 01 [14:55:43]MH_I2C_Read... [14:55:43]*** Stop cut motor [14:55:43]*** Cut end [14:55:43]Read from MH i2c: 01 07 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 07 00 05 0F 00 00 00 00 00 FF 0F 29 [14:55:43]process_action close_receipt done [14:55:43]requested_data is exist [14:55:43]produce_requested_data [14:55:43]requested_item fm.sn is exist - process it [14:55:43]wFMCommunicate request_size=4 [14:55:43]MH_SAM_APDU [14:55:43]CAPDU: 80 11 00 00 [14:55:43]Write to MH i2c: E2 08 00 06 0F 80 11 00 00 00 00 00 00 8F [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:44]Read from MH i2c: E2 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: E2 17 00 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: E2 17 00 06 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DC [14:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:55:44]wFMCommunicate OK [14:55:44]requested_item fd.num is exist - process it [14:55:44]SAM_PROTO_GetFieldsCounters [14:55:44]wFMCommunicate request_size=4 [14:55:44]MH_SAM_APDU [14:55:44]CAPDU: 80 13 00 00 [14:55:44]Write to MH i2c: E2 08 00 07 0F 80 13 00 00 00 00 00 00 92 [14:55:44]Write i2c OK [14:55:44]MH_I2C_Read... [14:55:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:44]Read from MH i2c: E2 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: E2 62 00 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: E2 62 00 07 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D6 26 01 00 0E 04 04 00 AD 00 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 C9 [14:55:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D6 26 01 00 0E 04 04 00 AD 00 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 [14:55:44]wFMCommunicate OK [14:55:44]SAM_PROTO_GetFieldsCounters done [14:55:44]requested_item shift.num is exist - process it [14:55:44]requested_item shift.opened is exist - process it [14:55:44]req_shift_opened [14:55:44]FM_GetShiftState [14:55:44]SAM_PROTO_GetShiftState [14:55:44]wFMCommunicate request_size=4 [14:55:44]MH_SAM_APDU [14:55:44]CAPDU: 80 13 01 00 [14:55:44]Write to MH i2c: E2 08 00 08 0F 80 13 01 00 00 00 00 00 94 [14:55:44]Write i2c OK [14:55:44]MH_I2C_Read... [14:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:44]Read from MH i2c: E2 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: E2 0E 00 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: E2 0E 00 08 0F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F9 [14:55:44]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:55:44]wFMCommunicate OK [14:55:44]SAM_PROTO_GetShiftState done [14:55:44]FM_GetShiftState done [14:55:44]req_shift_opened done [14:55:44]requested_item shift.open_date is exist - process it [14:55:44]req_shift_open_date [14:55:44]req_shift_open_date done [14:55:44]produce_requested_data done [14:55:44]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75478,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:55:44]process_action_free close_receipt [14:55:44]json_value_free [14:55:44]json_value_free done [14:55:44]process_json_proto returns [14:55:44]Send response to host [14:55:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75478,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:55:44]free response buf [14:55:44]execute_script done [14:55:44]execute_script returns [14:55:44]free content buf [14:55:44]Sock 8.Close socket [14:55:44]Sock 8.Thread stoped [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:07]accept exits with 9 [14:57:07]New connection [14:57:07]New thread 3066608996 created [14:57:07]Thread 3066465636 joined [14:57:07]Waiting for new connection... [14:57:07] Sock 9.Parse request [14:57:07]Sock 9.Check first char [14:57:07]Sock 9.First char is OK [14:57:07]request: POST /json_proto HTTP/1.0 [14:57:07]Method: POST [14:57:07]URL: /json_proto [14:57:07]Method is POST - this is cgi request [14:57:07]url: /json_proto [14:57:07]query_string will be loaded in cgi processing [14:57:07]execute_cgi json_proto POST (null) [14:57:07]execute_cgi path=json_proto method=POST [14:57:07]POST find Content-Length [14:57:07]Host: 172.17.44.196:8080 [14:57:07]Content-Length: 982 [14:57:07]Content-Type: application/json [14:57:07] [14:57:07]POST finish read [14:57:07]Found Content-Length = 982 [14:57:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:07]execute_script... [14:57: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)1965651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.850, "sum" : 9990.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.85 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 9990.00, "payments": [ { "type": 0, "sum" : 9990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:07]POST & json_proto [14:57:07]process_json_proto [14:57:07]json parsed OK: [14:57:07]protocol is kg_v1.0 [14:57:07]action value=close_receipt [14:57:07]process_action close_receipt [14:57:07]cmd_close_receipt [14:57:07]MH_GetDate [14:57:07]Write to MH i2c: F0 00 00 09 0F 07 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: F0 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: F0 09 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: F0 09 00 09 0F 00 C4 0E 19 67 E7 19 F8 65 BF [14:57:07]GetLastDocTimeStamp 1729695341 [14:57:07]current date 1729695428 [14:57:07]FM_GetShiftState [14:57:07]SAM_PROTO_GetShiftState [14:57:07]wFMCommunicate request_size=4 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 13 01 00 [14:57:07]Write to MH i2c: E2 08 00 0A 0F 80 13 01 00 00 00 00 00 96 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:07]Read from MH i2c: E2 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 0E 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 0E 00 0A 0F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FB [14:57:07]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:57:07]wFMCommunicate OK [14:57:07]SAM_PROTO_GetShiftState done [14:57:07]FM_GetShiftState done [14:57:07]opened in 1729642905 [14:57:07]opened+sec_in_day 1729729305 [14:57:07]quantity*price = 999032 [14:57:07]sum+1 = 999033 [14:57:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 9990.00 Внесено: 10000.00 СДАЧА: 10.00 НСП 1% : 88.41 НДС 12% : 1060.92 Наличными: 9990.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 212 23.10.2024 14:57 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 132.85 сом ФМ: 0000000000963323 ФД: 75479 ФПД: 66582134282720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145708&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75479&fm=66582134282720&tin=02508201610067®Number=0000000000161154&sum=999000 [14:57:09]StoreToDocumentArchive [14:57:09]shift 173 fd 75479 [14:57:09]save to /storage/0173/doc_00075479 [14:57:09]save last doc name /storage/0173/doc_00075479 to /storage/kkm_last_doc_name [14:57:09]save OK [14:57:09]Clear old archive folders... [14:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:57:09]tlvbuf is 00783B90 [14:57:09]SAM_PROTO_ClearQueue [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 09 00 00 [14:57:09]Write to MH i2c: E2 08 00 17 0F 80 09 00 00 00 00 00 00 98 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 17 0F 00 90 00 9A [14:57:09]RAPDU: 90 00 [14:57:09]wFMCommunicate OK [14:57:09]SAM_PROTO_ClearQueue done [14:57:09]KKMCreateOFDPacket [14:57:09]OFDProtocolAddRootSTLVToBuf [14:57:09]FM_MakeSignedData [14:57:09]FM_MakeSignedData [14:57:09]SAM_PROTO_SignData [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 0D 01 02 [14:57:09]Write to MH i2c: E2 08 00 18 0F 80 0D 01 02 00 00 00 00 A0 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 18 0F 00 90 00 9B [14:57:09]RAPDU: 90 00 [14:57:09]wFMCommunicate OK [14:57:09]wFMCommunicate request_size=255 [14:57:09]MH_SAM_APDU [14:57: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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 C4 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D7 26 01 00 35 04 06 00 3C 8E 5C 76 [14:57:09]Write to MH i2c: E2 02 01 19 0F 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 C4 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D7 26 01 00 35 04 06 00 3C 8E 5C 76 00 00 99 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 19 0F 00 90 00 9C [14:57:09]RAPDU: 90 00 [14:57:09]wFMCommunicate OK [14:57:09]wFMCommunicate request_size=7 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 0D 02 02 02 59 E0 [14:57:09]Write to MH i2c: E2 0A 00 1A 0F 80 0D 02 02 02 00 59 E0 00 00 E0 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 1A 0F 00 90 00 9D [14:57:09]RAPDU: 90 00 [14:57:09]wFMCommunicate OK [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 0D 03 02 [14:57:09]Write to MH i2c: E2 08 00 1B 0F 80 0D 03 02 00 00 00 00 A5 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 0B 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 0B 00 1B 0F 00 D9 16 77 A1 DE FA 1B 73 90 00 13 [14:57:09]RAPDU: D9 16 77 A1 DE FA 1B 73 90 00 [14:57:09]wFMCommunicate OK [14:57:09]SAM_PROTO_SignData done [14:57:09]FM_MakeSignedData done [14:57:09]CreateOFDProtocolMessage [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 11 00 00 [14:57:09]Write to MH i2c: E2 08 00 1C 0F 80 11 00 00 00 00 00 00 A5 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 17 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 17 00 1C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F2 [14:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:57:09]wFMCommunicate OK [14:57:09]CreateOFDProtocolMessage done [14:57:09]OFDSenderStorePacket 75479 [14:57:09]StoreOFDPacket docnum=75479 [14:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 9A 5E 04 01 15 A1 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 C4 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D7 26 01 00 35 04 06 00 3C 8E 5C 76 59 E0 D9 16 77 A1 DE FA 1B 73 [14:57:09]CheckFolder [14:57:09]dirname=/storage/ofd_packets [14:57:09]CheckFolder done [14:57:09]ProducePacketName [14:57:09]name=ofd_packets/00075479 [14:57:09]NVStorageSaveData ofd_packets/00075479 [14:57:09]File name is /storage/ofd_packets/00075479 [14:57:09]Write 298 bytes [14:57:09]NVStorageSaveData done [14:57:09]OFDSenderStorePacket done [14:57:09]KKMCreateOFDPacket done [14:57:09]NVStorageSaveData kkm_last_timestamp [14:57:09]File name is /storage/kkm_last_timestamp [14:57:09]Write 4 bytes [14:57:09]NVStorageSaveData done [14:57:09]ExternCall_PrintAddStr [14:57:09]wPrintStart [14:57:09]Write to MH i2c: 01 00 00 1D 0F 2C [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: 01 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: 01 07 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: 01 07 00 1D 0F 00 00 00 00 00 FF 0F 41 [14:57:09]RasterBufferAndPrint [14:57:09]line Счет N : (1)1965651 [14:57:09]line ИНН: 02508201610067 [14:57:09]line Контрольно-Кассовый Чек [14:57:09]line ПРОДАЖА [14:57:09]line ТРК (МРК, ГНК) : 21 [14:57:09]line Товар: 2710194210 [14:57:09]line ДТ-К-5 [14:57:09]line 132.850 * 75.20 [14:57:09]line = 9990.32 [14:57:09]line НДС 12% НСП 1% [14:57:09]line > о реализуемом товаре [14:57:09]line ОКРУГЛЕНИЕ: -0.32 [14:57:09]line ИТОГО: 9990.00 [14:57:09]line Внесено: 10000.00 [14:57:09]line СДАЧА: 10.00 [14:57:09]line НСП 1% : 88.41 [14:57:09]line НДС 12% : 1060.92 [14:57:09]line Наличными: 9990.00 [14:57:09]line Безнал.: 0.00 [14:57:09]line Место: АЗС № 133 "Партнер Нефть" [14:57:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:57:09]line СНО: Общий режим [14:57:09]line Чек 212 23.10.2024 14:57 [14:57:09]line Смена: 173 ФФД: 1.0 [14:57:09]line ЗНМ: 0300000020 [14:57:09]line РНМ: 0000000000161154 [14:57:09]line Версия ККМ: v1.0 [14:57:09]line [14:57:09]line Дисконтная программа [14:57:09]line ДТ [14:57:09]line номер 133 [14:57:09]line сэкономлено 132.85 сом [14:57:09]line ФМ: 0000000000963323 [14:57:09]line ФД: 75479 [14:57:09]line ФПД: 66582134282720 [14:57:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145708&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75479&fm=66582134282720&tin=02508201610067®Number=0000000000161154&sum=999000 [14:57:09]OFD Sender: Processing packet 75479 [packets to send 16, broken 15] [14:57:09]ProducePacketName [14:57:09]name=ofd_packets/00075479 [14:57:09]OFD Sender: To server: pG, [14:57:09]CommunicateWithHost lk.salyk.kg:30040 [14:57:09]ConnectInit lk.salyk.kg [14:57:09]written 0, free lines is 4095 [14:57:09]Connected sock=10 [14:57:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 9A 5E 04 01 15 A1 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 F2 06 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 78 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 58 3E 0F 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 C4 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D7 26 01 00 35 04 06 00 3C 8E 5C 76 59 E0 D9 16 77 A1 DE FA 1B 73 [14:57:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 12 58 47 00 D2 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D7 26 01 00 F4 03 04 00 9F B7 18 67 B6 04 01 00 00 3C 0B 3C 76 4C 63 E8 7F [14:57:10]CommunicateWithHost err = 0 [14:57:10]CheckOFDResponse [14:57:10]1017 (14) - 77093643461234 [14:57:10]1041 (16) - 0000000000963323 [14:57:10]1040 (4) - 75479 [14:57:10]1012 (4) - 23.10.2024 08:45 [14:57:10]1206 (1) - 0 [14:57:10]OFD Sender: Remove packet 75479 [14:57:10]ProducePacketName [14:57:10]name=ofd_packets/00075479 [14:57:10]NVStorageDeleteData [14:57:10]Write to MH i2c: 01 00 00 4C 0F 5B [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: 01 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: 01 07 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: 01 07 00 4C 0F 00 00 00 00 00 41 0C AF [14:57:10]RasterBufferAndPrint [14:57:10]line [14:57:10]line [14:57:10]line [14:57:10]line [14:57:10]line [14:57:10]written 0, free lines is 3141 [14:57:10]MH_Cut [14:57:10]Write to MH i2c: D1 01 00 53 0F 01 34 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: D1 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: D1 01 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: D1 01 00 53 0F 00 33 [14:57:10]Write to MH i2c: 01 00 00 54 0F 63 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]OFD Sender: No OFD packet to send [14:57:11]*** Cut start [14:57:11]*** Partial cut [14:57:11]*** CUTSNS_PIN = 1 [14:57:11]*** CUTSNS_PIN = 0 [14:57:11]*** Brake cut motor [14:57:12]Read from MH i2c: 01 [14:57:12]MH_I2C_Read... [14:57:12]*** Stop cut motor [14:57:12]*** Cut end [14:57:12]Read from MH i2c: 01 07 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 07 00 54 0F 00 00 00 00 00 FF 0F 78 [14:57:12]process_action close_receipt done [14:57:12]requested_data is exist [14:57:12]produce_requested_data [14:57:12]requested_item fm.sn is exist - process it [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 11 00 00 [14:57:12]Write to MH i2c: E2 08 00 55 0F 80 11 00 00 00 00 00 00 DE [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 17 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 17 00 55 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2B [14:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:57:12]wFMCommunicate OK [14:57:12]requested_item fd.num is exist - process it [14:57:12]SAM_PROTO_GetFieldsCounters [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 13 00 00 [14:57:12]Write to MH i2c: E2 08 00 56 0F 80 13 00 00 00 00 00 00 E1 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 62 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 62 00 56 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D7 26 01 00 0E 04 04 00 AD 00 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 1C [14:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D7 26 01 00 0E 04 04 00 AD 00 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 [14:57:12]wFMCommunicate OK [14:57:12]SAM_PROTO_GetFieldsCounters done [14:57:12]requested_item shift.num is exist - process it [14:57:12]requested_item shift.opened is exist - process it [14:57:12]req_shift_opened [14:57:12]FM_GetShiftState [14:57:12]SAM_PROTO_GetShiftState [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 13 01 00 [14:57:12]Write to MH i2c: E2 08 00 57 0F 80 13 01 00 00 00 00 00 E3 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 0E 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 0E 00 57 0F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 48 [14:57:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:57:12]wFMCommunicate OK [14:57:12]SAM_PROTO_GetShiftState done [14:57:12]FM_GetShiftState done [14:57:12]req_shift_opened done [14:57:12]requested_item shift.open_date is exist - process it [14:57:12]req_shift_open_date [14:57:12]req_shift_open_date done [14:57:12]produce_requested_data done [14:57:12]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75479,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:57:12]process_action_free close_receipt [14:57:12]json_value_free [14:57:12]json_value_free done [14:57:12]process_json_proto returns [14:57:12]Send response to host [14:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75479,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:57:12]free response buf [14:57:12]execute_script done [14:57:12]execute_script returns [14:57:12]free content buf [14:57:12]Sock 9.Close socket [14:57:12]Sock 9.Thread stoped [14:57:15]accept exits with 8 [14:57:15]New connection [14:57:15]New thread 3066465636 created [14:57:15]Thread 3066608996 joined [14:57:15]Waiting for new connection... [14:57:15] Sock 8.Parse request [14:57:15]Sock 8.Check first char [14:57:15]Sock 8.First char is OK [14:57:15]request: POST /json_proto HTTP/1.0 [14:57:15]Method: POST [14:57:15]URL: /json_proto [14:57:15]Method is POST - this is cgi request [14:57:15]url: /json_proto [14:57:15]query_string will be loaded in cgi processing [14:57:15]execute_cgi json_proto POST (null) [14:57:15]execute_cgi path=json_proto method=POST [14:57:15]POST find Content-Length [14:57:15]Host: 172.17.44.196:8080 [14:57:15]Content-Length: 669 [14:57:15]Content-Type: application/json [14:57:15] [14:57:15]POST finish read [14:57:15]Found Content-Length = 669 [14:57:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273261", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:15]execute_script... [14:57: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 : (3)273261", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:15]POST & json_proto [14:57:15]process_json_proto [14:57:15]json parsed OK: [14:57:15]protocol is kg_v1.0 [14:57:15]action value=close_receipt [14:57:15]process_action close_receipt [14:57:15]cmd_close_receipt [14:57:15]MH_GetDate [14:57:15]Write to MH i2c: F0 00 00 58 0F 56 [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: F0 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: F0 09 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: F0 09 00 58 0F 00 CB 0E 19 67 E7 19 F8 65 15 [14:57:15]GetLastDocTimeStamp 1729695428 [14:57:15]current date 1729695435 [14:57:15]FM_GetShiftState [14:57:15]SAM_PROTO_GetShiftState [14:57:15]wFMCommunicate request_size=4 [14:57:15]MH_SAM_APDU [14:57:15]CAPDU: 80 13 01 00 [14:57:15]Write to MH i2c: E2 08 00 59 0F 80 13 01 00 00 00 00 00 E5 [14:57:15]Write i2c OK [14:57:15]MH_I2C_Read... [14:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:15]Read from MH i2c: E2 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 0E 00 [14:57:15]MH_I2C_Read... [14:57:15]Read from MH i2c: E2 0E 00 59 0F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 4A [14:57:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:57:15]wFMCommunicate OK [14:57:15]SAM_PROTO_GetShiftState done [14:57:15]FM_GetShiftState done [14:57:15]opened in 1729642905 [14:57:15]opened+sec_in_day 1729729305 [14:57:15]quantity*price = 5000 [14:57:15]sum+1 = 5001 [14:57:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 213 23.10.2024 14:57 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75480 ФПД: 266964203936095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145715&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75480&fm=266964203936095&tin=02508201610067®Number=0000000000161154&sum=5000 0 [14:57:16]StoreToDocumentArchive [14:57:16]shift 173 fd 75480 [14:57:16]save to /storage/0173/doc_00075480 [14:57:16]save last doc name /storage/0173/doc_00075480 to /storage/kkm_last_doc_name [14:57:16]save OK [14:57:16]Clear old archive folders... [14:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=292 [14:57:16]tlvbuf is B6E54E60 [14:57:16]SAM_PROTO_ClearQueue [14:57:16]wFMCommunicate request_size=4 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 09 00 00 [14:57:16]Write to MH i2c: E2 08 00 66 0F 80 09 00 00 00 00 00 00 E7 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [14:57:16]RAPDU: 90 00 [14:57:16]wFMCommunicate OK [14:57:16]SAM_PROTO_ClearQueue done [14:57:16]KKMCreateOFDPacket [14:57:16]OFDProtocolAddRootSTLVToBuf [14:57:16]FM_MakeSignedData [14:57:16]FM_MakeSignedData [14:57:16]SAM_PROTO_SignData [14:57:16]wFMCommunicate request_size=4 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 0D 01 02 [14:57:16]Write to MH i2c: E2 08 00 67 0F 80 0D 01 02 00 00 00 00 EF [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 67 0F 00 90 00 EA [14:57:16]RAPDU: 90 00 [14:57:16]wFMCommunicate OK [14:57:16]wFMCommunicate request_size=255 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CB 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [14:57:16]Write to MH i2c: E2 02 01 68 0F 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CB 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 1B [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 68 0F 00 90 00 EB [14:57:16]RAPDU: 90 00 [14:57:16]wFMCommunicate OK [14:57:16]wFMCommunicate request_size=51 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 0D 02 02 2E 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D8 26 01 00 35 04 06 00 F2 CD 72 8B 19 5F [14:57:16]Write to MH i2c: E2 36 00 69 0F 80 0D 02 02 2E 00 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D8 26 01 00 35 04 06 00 F2 CD 72 8B 19 5F 00 00 A9 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 03 00 69 0F 00 90 00 EC [14:57:16]RAPDU: 90 00 [14:57:16]wFMCommunicate OK [14:57:16]wFMCommunicate request_size=4 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 0D 03 02 [14:57:16]Write to MH i2c: E2 08 00 6A 0F 80 0D 03 02 00 00 00 00 F4 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 0B 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 0B 00 6A 0F 00 25 64 BE A8 93 D9 D4 B1 90 00 D5 [14:57:16]RAPDU: 25 64 BE A8 93 D9 D4 B1 90 00 [14:57:16]wFMCommunicate OK [14:57:16]SAM_PROTO_SignData done [14:57:16]FM_MakeSignedData done [14:57:16]CreateOFDProtocolMessage [14:57:16]wFMCommunicate request_size=4 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 11 00 00 [14:57:16]Write to MH i2c: E2 08 00 6B 0F 80 11 00 00 00 00 00 00 F4 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 17 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 17 00 6B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 41 [14:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:57:16]wFMCommunicate OK [14:57:16]CreateOFDProtocolMessage done [14:57:16]OFDSenderStorePacket 75480 [14:57:16]StoreOFDPacket docnum=75480 [14:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 38 01 00 00 B9 4F 30 01 4D EB 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CB 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D8 26 01 00 35 04 06 00 F2 CD 72 8B 19 5F 25 64 BE A8 93 D9 D4 B1 [14:57:16]CheckFolder [14:57:16]dirname=/storage/ofd_packets [14:57:16]CheckFolder done [14:57:16]ProducePacketName [14:57:16]name=ofd_packets/00075480 [14:57:16]NVStorageSaveData ofd_packets/00075480 [14:57:16]File name is /storage/ofd_packets/00075480 [14:57:16]Write 342 bytes [14:57:16]NVStorageSaveData done [14:57:16]OFDSenderStorePacket done [14:57:16]KKMCreateOFDPacket done [14:57:16]NVStorageSaveData kkm_last_timestamp [14:57:16]File name is /storage/kkm_last_timestamp [14:57:16]Write 4 bytes [14:57:16]NVStorageSaveData done [14:57:16]ExternCall_PrintAddStr [14:57:16]wPrintStart [14:57:16]Write to MH i2c: 01 00 00 6C 0F 7B [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: 01 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: 01 07 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: 01 07 00 6C 0F 00 00 00 00 00 FF 0F 90 [14:57:16]RasterBufferAndPrint [14:57:16]line Счет N : (3)273261 [14:57:16]line ИНН: 02508201610067 [14:57:16]line Контрольно-Кассовый Чек [14:57:16]line ПРОДАЖА [14:57:16]line Товар: 4700003010018 [14:57:16]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [14:57:16]line 1.000 * 50.00 [14:57:16]line = 50.00 [14:57:16]line НДС 12% НСП 1% [14:57:16]line > о реализуемом товаре [14:57:16]line ИТОГО: 50.00 [14:57:16]line НСП 1% : 0.44 [14:57:16]line НДС 12% : 5.31 [14:57:16]line Наличными: 50.00 [14:57:16]line Безнал.: 0.00 [14:57:16]line Место: АЗС № 133 "Партнер Нефть" [14:57:16]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:57:16]line СНО: Общий режим [14:57:16]line Чек 213 23.10.2024 14:57 [14:57:16]line Смена: 173 ФФД: 1.0 [14:57:16]line ЗНМ: 0300000020 [14:57:16]line РНМ: 0000000000161154 [14:57:16]line Версия ККМ: v1.0 [14:57:16]line ФМ: 0000000000963323 [14:57:16]line ФД: 75480 [14:57:16]line ФПД: 266964203936095 [14:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145715&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75480&fm=266964203936095&tin=02508201610067®Number=0000000000161154&sum=5000 [14:57:17]line 0 [14:57:17]OFD Sender: Processing packet 75480 [packets to send 16, broken 15] [14:57:17]ProducePacketName [14:57:17]name=ofd_packets/00075480 [14:57:17]OFD Sender: To server: pG, [14:57:17]CommunicateWithHost lk.salyk.kg:30040 [14:57:17]ConnectInit lk.salyk.kg [14:57:17]written 0, free lines is 4095 [14:57:17]Connected sock=10 [14:57:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 38 01 00 00 B9 4F 30 01 4D EB 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CB 0E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D8 26 01 00 35 04 06 00 F2 CD 72 8B 19 5F 25 64 BE A8 93 D9 D4 B1 [14:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5B 72 47 00 00 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 39 36 33 33 32 33 10 04 04 00 D8 26 01 00 F4 03 04 00 A6 B7 18 67 B6 04 01 00 00 28 DC 1B AD BA 54 EC DB [14:57:17]CommunicateWithHost err = 0 [14:57:17]CheckOFDResponse [14:57:17]1017 (14) - 77093643461234 [14:57:17]1041 (16) - 0000000000963323 [14:57:17]1040 (4) - 75480 [14:57:17]1012 (4) - 23.10.2024 08:45 [14:57:17]1206 (1) - 0 [14:57:17]OFD Sender: Remove packet 75480 [14:57:17]ProducePacketName [14:57:17]name=ofd_packets/00075480 [14:57:17]NVStorageDeleteData [14:57:17]Write to MH i2c: 01 00 00 94 0F A3 [14:57:17]Write i2c OK [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: 01 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: 01 07 00 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: 01 07 00 94 0F 00 00 00 00 00 CB 0C 81 [14:57:17]RasterBufferAndPrint [14:57:17]line [14:57:17]line [14:57:17]line [14:57:17]line [14:57:17]line [14:57:17]written 0, free lines is 3281 [14:57:17]MH_Cut [14:57:17]Write to MH i2c: D1 01 00 9B 0F 01 7C [14:57:17]Write i2c OK [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: D1 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: D1 01 00 [14:57:17]MH_I2C_Read... [14:57:17]Read from MH i2c: D1 01 00 9B 0F 00 7B [14:57:17]Write to MH i2c: 01 00 00 9C 0F AB [14:57:17]Write i2c OK [14:57:17]MH_I2C_Read... [14:57:17]OFD Sender: No OFD packet to send [14:57:18]*** Cut start [14:57:18]*** Partial cut [14:57:18]*** CUTSNS_PIN = 1 [14:57:18]*** CUTSNS_PIN = 0 [14:57:18]*** Brake cut motor [14:57:19]Read from MH i2c: 01 [14:57:19]MH_I2C_Read... [14:57:19]*** Stop cut motor [14:57:19]*** Cut end [14:57:19]Read from MH i2c: 01 07 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [14:57:19]process_action close_receipt done [14:57:19]requested_data is exist [14:57:19]produce_requested_data [14:57:19]requested_item fm.sn is exist - process it [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 11 00 00 [14:57:19]Write to MH i2c: E2 08 00 9D 0F 80 11 00 00 00 00 00 00 26 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 17 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 17 00 9D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 73 [14:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:57:19]wFMCommunicate OK [14:57:19]requested_item fd.num is exist - process it [14:57:19]SAM_PROTO_GetFieldsCounters [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 13 00 00 [14:57:19]Write to MH i2c: E2 08 00 9E 0F 80 13 00 00 00 00 00 00 29 [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 62 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 62 00 9E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D8 26 01 00 0E 04 04 00 AD 00 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 68 [14:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D8 26 01 00 0E 04 04 00 AD 00 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 [14:57:19]wFMCommunicate OK [14:57:19]SAM_PROTO_GetFieldsCounters done [14:57:19]requested_item shift.num is exist - process it [14:57:19]requested_item shift.opened is exist - process it [14:57:19]req_shift_opened [14:57:19]FM_GetShiftState [14:57:19]SAM_PROTO_GetShiftState [14:57:19]wFMCommunicate request_size=4 [14:57:19]MH_SAM_APDU [14:57:19]CAPDU: 80 13 01 00 [14:57:19]Write to MH i2c: E2 08 00 9F 0F 80 13 01 00 00 00 00 00 2B [14:57:19]Write i2c OK [14:57:19]MH_I2C_Read... [14:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:19]Read from MH i2c: E2 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 0E 00 [14:57:19]MH_I2C_Read... [14:57:19]Read from MH i2c: E2 0E 00 9F 0F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 90 [14:57:19]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:57:19]wFMCommunicate OK [14:57:19]SAM_PROTO_GetShiftState done [14:57:19]FM_GetShiftState done [14:57:19]req_shift_opened done [14:57:19]requested_item shift.open_date is exist - process it [14:57:19]req_shift_open_date [14:57:19]req_shift_open_date done [14:57:19]produce_requested_data done [14:57:19]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75480,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:57:19]process_action_free close_receipt [14:57:19]json_value_free [14:57:19]json_value_free done [14:57:19]process_json_proto returns [14:57:19]Send response to host [14:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75480,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:57:19]free response buf [14:57:19]execute_script done [14:57:19]execute_script returns [14:57:19]free content buf [14:57:19]Sock 8.Close socket [14:57:19]Sock 8.Thread stoped [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:12]accept exits with 9 [14:58:12]New connection [14:58:12]New thread 3066608996 created [14:58:12]Thread 3066465636 joined [14:58:12]Waiting for new connection... [14:58:12] Sock 9.Parse request [14:58:12]Sock 9.Check first char [14:58:12]Sock 9.First char is OK [14:58:12]request: POST /json_proto HTTP/1.0 [14:58:12]Method: POST [14:58:12]URL: /json_proto [14:58:12]Method is POST - this is cgi request [14:58:12]url: /json_proto [14:58:12]query_string will be loaded in cgi processing [14:58:12]execute_cgi json_proto POST (null) [14:58:12]execute_cgi path=json_proto method=POST [14:58:12]POST find Content-Length [14:58:12]Host: 172.17.44.196:8080 [14:58:12]Content-Length: 979 [14:58:12]Content-Type: application/json [14:58:12] [14:58:12]POST finish read [14:58:12]Found Content-Length = 979 [14:58:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.760, "sum" : 5020.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.76 \u0441\u043E\u043C", "deposit" : 5020.00, "total" : 5020.00, "payments": [ { "type": 0, "sum" : 5020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:12]execute_script... [14:58: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)1965657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.760, "sum" : 5020.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.76 \u0441\u043E\u043C", "deposit" : 5020.00, "total" : 5020.00, "payments": [ { "type": 0, "sum" : 5020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:12]POST & json_proto [14:58:12]process_json_proto [14:58:12]json parsed OK: [14:58:12]protocol is kg_v1.0 [14:58:12]action value=close_receipt [14:58:12]process_action close_receipt [14:58:12]cmd_close_receipt [14:58:12]MH_GetDate [14:58:12]Write to MH i2c: F0 00 00 A0 0F 9E [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: F0 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: F0 09 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: F0 09 00 A0 0F 00 05 0F 19 67 E7 19 F8 65 98 [14:58:12]GetLastDocTimeStamp 1729695435 [14:58:12]current date 1729695493 [14:58:12]FM_GetShiftState [14:58:12]SAM_PROTO_GetShiftState [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 13 01 00 [14:58:12]Write to MH i2c: E2 08 00 A1 0F 80 13 01 00 00 00 00 00 2D [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 0E 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 0E 00 A1 0F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 92 [14:58:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:58:12]wFMCommunicate OK [14:58:12]SAM_PROTO_GetShiftState done [14:58:12]FM_GetShiftState done [14:58:12]opened in 1729642905 [14:58:12]opened+sec_in_day 1729729305 [14:58:12]quantity*price = 502035 [14:58:12]sum+1 = 502036 [14:58:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 5020.00 Внесено: 5020.00 СДАЧА: 0.00 НСП 1% : 44.43 НДС 12% : 533.13 Наличными: 5020.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 214 23.10.2024 14:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 66.76 сом ФМ: 0000000000963323 ФД: 75481 ФПД: 134200118700119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145813&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75481&fm=134200118700119&tin=02508201610067®Number=0000000000161154&sum=502000 [14:58:13]StoreToDocumentArchive [14:58:13]shift 173 fd 75481 [14:58:13]save to /storage/0173/doc_00075481 [14:58:13]save last doc name /storage/0173/doc_00075481 to /storage/kkm_last_doc_name [14:58:13]save OK [14:58:13]Clear old archive folders... [14:58:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:58:13]tlvbuf is 007D3AA0 [14:58:13]SAM_PROTO_ClearQueue [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 09 00 00 [14:58:13]Write to MH i2c: E2 08 00 AE 0F 80 09 00 00 00 00 00 00 2F [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 AE 0F 00 90 00 31 [14:58:13]RAPDU: 90 00 [14:58:13]wFMCommunicate OK [14:58:13]SAM_PROTO_ClearQueue done [14:58:13]KKMCreateOFDPacket [14:58:13]OFDProtocolAddRootSTLVToBuf [14:58:13]FM_MakeSignedData [14:58:13]FM_MakeSignedData [14:58:13]SAM_PROTO_SignData [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 0D 01 02 [14:58:13]Write to MH i2c: E2 08 00 AF 0F 80 0D 01 02 00 00 00 00 37 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 03 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 03 00 AF 0F 00 90 00 32 [14:58:14]RAPDU: 90 00 [14:58:14]wFMCommunicate OK [14:58:14]wFMCommunicate request_size=255 [14:58:14]MH_SAM_APDU [14:58:14]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 C8 04 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 13 A9 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 A8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 D0 00 00 00 00 07 04 06 00 F0 A8 07 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 05 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D9 26 01 00 35 04 06 00 7A 0D E6 67 [14:58:14]Write to MH i2c: E2 02 01 B0 0F 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 C8 04 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 13 A9 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 A8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 D0 00 00 00 00 07 04 06 00 F0 A8 07 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 05 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D9 26 01 00 35 04 06 00 7A 0D E6 67 00 00 3A [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 03 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 03 00 B0 0F 00 90 00 33 [14:58:14]RAPDU: 90 00 [14:58:14]wFMCommunicate OK [14:58:14]wFMCommunicate request_size=7 [14:58:14]MH_SAM_APDU [14:58:14]CAPDU: 80 0D 02 02 02 68 57 [14:58:14]Write to MH i2c: E2 0A 00 B1 0F 80 0D 02 02 02 00 68 57 00 00 FD [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 03 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 03 00 B1 0F 00 90 00 34 [14:58:14]RAPDU: 90 00 [14:58:14]wFMCommunicate OK [14:58:14]wFMCommunicate request_size=4 [14:58:14]MH_SAM_APDU [14:58:14]CAPDU: 80 0D 03 02 [14:58:14]Write to MH i2c: E2 08 00 B2 0F 80 0D 03 02 00 00 00 00 3C [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 0B 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 0B 00 B2 0F 00 BF 23 D6 F1 21 8E E6 09 90 00 84 [14:58:14]RAPDU: BF 23 D6 F1 21 8E E6 09 90 00 [14:58:14]wFMCommunicate OK [14:58:14]SAM_PROTO_SignData done [14:58:14]FM_MakeSignedData done [14:58:14]CreateOFDProtocolMessage [14:58:14]wFMCommunicate request_size=4 [14:58:14]MH_SAM_APDU [14:58:14]CAPDU: 80 11 00 00 [14:58:14]Write to MH i2c: E2 08 00 B3 0F 80 11 00 00 00 00 00 00 3C [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 17 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 17 00 B3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 89 [14:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:58:14]wFMCommunicate OK [14:58:14]CreateOFDProtocolMessage done [14:58:14]OFDSenderStorePacket 75481 [14:58:14]StoreOFDPacket docnum=75481 [14:58:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 16 0F 04 01 1F B3 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 C8 04 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 13 A9 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 A8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 D0 00 00 00 00 07 04 06 00 F0 A8 07 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 05 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D9 26 01 00 35 04 06 00 7A 0D E6 67 68 57 BF 23 D6 F1 21 8E E6 09 [14:58:14]CheckFolder [14:58:14]dirname=/storage/ofd_packets [14:58:14]CheckFolder done [14:58:14]ProducePacketName [14:58:14]name=ofd_packets/00075481 [14:58:14]NVStorageSaveData ofd_packets/00075481 [14:58:14]File name is /storage/ofd_packets/00075481 [14:58:14]Write 298 bytes [14:58:14]NVStorageSaveData done [14:58:14]OFDSenderStorePacket done [14:58:14]KKMCreateOFDPacket done [14:58:14]NVStorageSaveData kkm_last_timestamp [14:58:14]File name is /storage/kkm_last_timestamp [14:58:14]Write 4 bytes [14:58:14]NVStorageSaveData done [14:58:14]ExternCall_PrintAddStr [14:58:14]wPrintStart [14:58:14]Write to MH i2c: 01 00 00 B4 0F C3 [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: 01 07 00 B4 0F 00 00 00 00 00 FF 0F D8 [14:58:14]RasterBufferAndPrint [14:58:14]line Счет N : (1)1965657 [14:58:14]line ИНН: 02508201610067 [14:58:14]line Контрольно-Кассовый Чек [14:58:14]line ПРОДАЖА [14:58:14]line ТРК (МРК, ГНК) : 11 [14:58:14]line Товар: 2710194210 [14:58:14]line ДТ-К-5 [14:58:14]line 66.760 * 75.20 [14:58:14]line = 5020.35 [14:58:14]line НДС 12% НСП 1% [14:58:14]line > о реализуемом товаре [14:58:14]line ОКРУГЛЕНИЕ: -0.35 [14:58:14]line ИТОГО: 5020.00 [14:58:14]line Внесено: 5020.00 [14:58:14]line СДАЧА: 0.00 [14:58:14]line НСП 1% : 44.43 [14:58:14]line НДС 12% : 533.13 [14:58:14]line Наличными: 5020.00 [14:58:14]line Безнал.: 0.00 [14:58:14]line Место: АЗС № 133 "Партнер Нефть" [14:58:14]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:58:14]line СНО: Общий режим [14:58:14]line Чек 214 23.10.2024 14:58 [14:58:14]line Смена: 173 ФФД: 1.0 [14:58:14]line ЗНМ: 0300000020 [14:58:14]line РНМ: 0000000000161154 [14:58:14]line Версия ККМ: v1.0 [14:58:14]line [14:58:14]line Дисконтная программа [14:58:14]line ДТ [14:58:14]line номер 133 [14:58:14]line сэкономлено 66.76 сом [14:58:14]line ФМ: 0000000000963323 [14:58:14]line ФД: 75481 [14:58:14]line ФПД: 134200118700119 [14:58:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145813&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75481&fm=134200118700119&tin=02508201610067®Number=0000000000161154&sum=502000 [14:58:14]OFD Sender: Processing packet 75481 [packets to send 16, broken 15] [14:58:14]ProducePacketName [14:58:14]name=ofd_packets/00075481 [14:58:14]OFD Sender: To server: pG, [14:58:14]CommunicateWithHost lk.salyk.kg:30040 [14:58:14]ConnectInit lk.salyk.kg [14:58:14]written 0, free lines is 4095 [14:58:14]Connected sock=10 [14:58:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 16 0F 04 01 1F B3 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 C8 04 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 13 A9 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 A8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 D0 00 00 00 00 07 04 06 00 F0 A8 07 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 05 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D9 26 01 00 35 04 06 00 7A 0D E6 67 68 57 BF 23 D6 F1 21 8E E6 09 [14:58:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2C 0A 47 00 AC A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 D9 26 01 00 F4 03 04 00 E0 B7 18 67 B6 04 01 00 00 5D 61 2F 25 E0 97 65 C1 [14:58:15]CommunicateWithHost err = 0 [14:58:15]CheckOFDResponse [14:58:15]1017 (14) - 77093643461234 [14:58:15]1041 (16) - 0000000000963323 [14:58:15]1040 (4) - 75481 [14:58:15]1012 (4) - 23.10.2024 08:46 [14:58:15]1206 (1) - 0 [14:58:15]OFD Sender: Remove packet 75481 [14:58:15]ProducePacketName [14:58:15]name=ofd_packets/00075481 [14:58:15]NVStorageDeleteData [14:58:15]Write to MH i2c: 01 00 00 E3 0F F2 [14:58:15]Write i2c OK [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: 01 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: 01 07 00 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: 01 07 00 E3 0F 00 00 00 00 00 4C 0C 51 [14:58:15]RasterBufferAndPrint [14:58:15]line [14:58:15]line [14:58:15]line [14:58:15]line [14:58:15]line [14:58:15]written 0, free lines is 3152 [14:58:15]MH_Cut [14:58:15]Write to MH i2c: D1 01 00 EA 0F 01 CB [14:58:15]Write i2c OK [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: D1 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: D1 01 00 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: D1 01 00 EA 0F 00 CA [14:58:15]Write to MH i2c: 01 00 00 EB 0F FA [14:58:15]Write i2c OK [14:58:15]MH_I2C_Read... [14:58:15]OFD Sender: No OFD packet to send [14:58:16]*** Cut start [14:58:16]*** Partial cut [14:58:16]*** CUTSNS_PIN = 1 [14:58:16]*** CUTSNS_PIN = 0 [14:58:16]*** Brake cut motor [14:58:16]Read from MH i2c: 01 [14:58:16]MH_I2C_Read... [14:58:16]*** Stop cut motor [14:58:16]*** Cut end [14:58:16]Read from MH i2c: 01 07 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: 01 07 00 EB 0F 00 00 00 00 00 FF 0F 0F [14:58:16]process_action close_receipt done [14:58:16]requested_data is exist [14:58:16]produce_requested_data [14:58:16]requested_item fm.sn is exist - process it [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 11 00 00 [14:58:16]Write to MH i2c: E2 08 00 EC 0F 80 11 00 00 00 00 00 00 75 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 17 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 17 00 EC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C2 [14:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:58:16]wFMCommunicate OK [14:58:16]requested_item fd.num is exist - process it [14:58:16]SAM_PROTO_GetFieldsCounters [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 13 00 00 [14:58:16]Write to MH i2c: E2 08 00 ED 0F 80 13 00 00 00 00 00 00 78 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:17]Read from MH i2c: E2 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 62 00 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 62 00 ED 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D9 26 01 00 0E 04 04 00 AD 00 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 BB [14:58:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 D9 26 01 00 0E 04 04 00 AD 00 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 [14:58:17]wFMCommunicate OK [14:58:17]SAM_PROTO_GetFieldsCounters done [14:58:17]requested_item shift.num is exist - process it [14:58:17]requested_item shift.opened is exist - process it [14:58:17]req_shift_opened [14:58:17]FM_GetShiftState [14:58:17]SAM_PROTO_GetShiftState [14:58:17]wFMCommunicate request_size=4 [14:58:17]MH_SAM_APDU [14:58:17]CAPDU: 80 13 01 00 [14:58:17]Write to MH i2c: E2 08 00 EE 0F 80 13 01 00 00 00 00 00 7A [14:58:17]Write i2c OK [14:58:17]MH_I2C_Read... [14:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:17]Read from MH i2c: E2 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 0E 00 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 0E 00 EE 0F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 DF [14:58:17]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:58:17]wFMCommunicate OK [14:58:17]SAM_PROTO_GetShiftState done [14:58:17]FM_GetShiftState done [14:58:17]req_shift_opened done [14:58:17]requested_item shift.open_date is exist - process it [14:58:17]req_shift_open_date [14:58:17]req_shift_open_date done [14:58:17]produce_requested_data done [14:58:17]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75481,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:58:17]process_action_free close_receipt [14:58:17]json_value_free [14:58:17]json_value_free done [14:58:17]process_json_proto returns [14:58:17]Send response to host [14:58:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75481,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:58:17]free response buf [14:58:17]execute_script done [14:58:17]execute_script returns [14:58:17]free content buf [14:58:17]Sock 9.Close socket [14:58:17]Sock 9.Thread stoped [14:58:17]accept exits with 8 [14:58:17]New connection [14:58:17]New thread 3066465636 created [14:58:17]Thread 3066608996 joined [14:58:17]Waiting for new connection... [14:58:17] Sock 8.Parse request [14:58:17]Sock 8.Check first char [14:58:17]Sock 8.First char is OK [14:58:17]request: POST /json_proto HTTP/1.0 [14:58:17]Method: POST [14:58:17]URL: /json_proto [14:58:17]Method is POST - this is cgi request [14:58:17]url: /json_proto [14:58:17]query_string will be loaded in cgi processing [14:58:17]execute_cgi json_proto POST (null) [14:58:17]execute_cgi path=json_proto method=POST [14:58:17]POST find Content-Length [14:58:17]Host: 172.17.44.196:8080 [14:58:17]Content-Length: 677 [14:58:17]Content-Type: application/json [14:58:17] [14:58:17]POST finish read [14:58:17]Found Content-Length = 677 [14:58:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:17]execute_script... [14:58:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:17]POST & json_proto [14:58:17]process_json_proto [14:58:17]json parsed OK: [14:58:17]protocol is kg_v1.0 [14:58:17]action value=close_receipt [14:58:17]process_action close_receipt [14:58:17]cmd_close_receipt [14:58:17]MH_GetDate [14:58:17]Write to MH i2c: F0 00 00 EF 0F ED [14:58:17]Write i2c OK [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: F0 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: F0 09 00 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: F0 09 00 EF 0F 00 0A 0F 19 67 E7 19 F8 65 EC [14:58:17]GetLastDocTimeStamp 1729695493 [14:58:17]current date 1729695498 [14:58:17]FM_GetShiftState [14:58:17]SAM_PROTO_GetShiftState [14:58:17]wFMCommunicate request_size=4 [14:58:17]MH_SAM_APDU [14:58:17]CAPDU: 80 13 01 00 [14:58:17]Write to MH i2c: E2 08 00 F0 0F 80 13 01 00 00 00 00 00 7C [14:58:17]Write i2c OK [14:58:17]MH_I2C_Read... [14:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:17]Read from MH i2c: E2 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 0E 00 [14:58:17]MH_I2C_Read... [14:58:17]Read from MH i2c: E2 0E 00 F0 0F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E1 [14:58:17]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:58:17]wFMCommunicate OK [14:58:17]SAM_PROTO_GetShiftState done [14:58:17]FM_GetShiftState done [14:58:17]opened in 1729642905 [14:58:17]opened+sec_in_day 1729729305 [14:58:17]quantity*price = 120006 [14:58:17]sum+1 = 120008 [14:58:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 215 23.10.2024 14:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75482 ФПД: 29574602994504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145818&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75482&fm=29574602994504&tin=02508201610067®Number=0000000000161154&sum=120000 [14:58:18]StoreToDocumentArchive [14:58:18]shift 173 fd 75482 [14:58:18]save to /storage/0173/doc_00075482 [14:58:18]save last doc name /storage/0173/doc_00075482 to /storage/kkm_last_doc_name [14:58:18]save OK [14:58:18]Clear old archive folders... [14:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=245 [14:58:18]tlvbuf is 007EDBE0 [14:58:18]SAM_PROTO_ClearQueue [14:58:18]wFMCommunicate request_size=4 [14:58:18]MH_SAM_APDU [14:58:18]CAPDU: 80 09 00 00 [14:58:18]Write to MH i2c: E2 08 00 FD 0F 80 09 00 00 00 00 00 00 7E [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:18]Read from MH i2c: E2 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 03 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 03 00 FD 0F 00 90 00 80 [14:58:18]RAPDU: 90 00 [14:58:18]wFMCommunicate OK [14:58:18]SAM_PROTO_ClearQueue done [14:58:18]KKMCreateOFDPacket [14:58:18]OFDProtocolAddRootSTLVToBuf [14:58:18]FM_MakeSignedData [14:58:18]FM_MakeSignedData [14:58:18]SAM_PROTO_SignData [14:58:18]wFMCommunicate request_size=4 [14:58:18]MH_SAM_APDU [14:58:18]CAPDU: 80 0D 01 02 [14:58:18]Write to MH i2c: E2 08 00 FE 0F 80 0D 01 02 00 00 00 00 86 [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:18]Read from MH i2c: E2 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 03 00 [14:58:18]MH_I2C_Read... [14:58:18]Read from MH i2c: E2 03 00 FE 0F 00 90 00 81 [14:58:18]RAPDU: 90 00 [14:58:18]wFMCommunicate OK [14:58:18]wFMCommunicate request_size=254 [14:58:18]MH_SAM_APDU [14:58:18]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 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 0A 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 26 01 00 35 04 06 00 1A E5 DF B4 B3 48 [14:58:18]Write to MH i2c: E2 01 01 FF 0F 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 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 0A 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 26 01 00 35 04 06 00 1A E5 DF B4 B3 48 00 00 F8 [14:58:18]Write i2c OK [14:58:18]MH_I2C_Read... [14:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:19]Read from MH i2c: E2 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: E2 03 00 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: E2 03 00 FF 0F 00 90 00 82 [14:58:19]RAPDU: 90 00 [14:58:19]wFMCommunicate OK [14:58:19]wFMCommunicate request_size=4 [14:58:19]MH_SAM_APDU [14:58:19]CAPDU: 80 0D 03 02 [14:58:19]Write to MH i2c: E2 08 00 00 10 80 0D 03 02 00 00 00 00 8B [14:58:19]Write i2c OK [14:58:19]MH_I2C_Read... [14:58:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:19]Read from MH i2c: E2 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: E2 0B 00 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: E2 0B 00 00 10 00 81 54 84 36 9B 66 20 56 90 00 92 [14:58:19]RAPDU: 81 54 84 36 9B 66 20 56 90 00 [14:58:19]wFMCommunicate OK [14:58:19]SAM_PROTO_SignData done [14:58:19]FM_MakeSignedData done [14:58:19]CreateOFDProtocolMessage [14:58:19]wFMCommunicate request_size=4 [14:58:19]MH_SAM_APDU [14:58:19]CAPDU: 80 11 00 00 [14:58:19]Write to MH i2c: E2 08 00 01 10 80 11 00 00 00 00 00 00 8B [14:58:19]Write i2c OK [14:58:19]MH_I2C_Read... [14:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:19]Read from MH i2c: E2 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: E2 17 00 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: E2 17 00 01 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D8 [14:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:58:19]wFMCommunicate OK [14:58:19]CreateOFDProtocolMessage done [14:58:19]OFDSenderStorePacket 75482 [14:58:19]StoreOFDPacket docnum=75482 [14:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 C1 03 01 01 C2 8C 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 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 0A 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 26 01 00 35 04 06 00 1A E5 DF B4 B3 48 81 54 84 36 9B 66 20 56 [14:58:19]CheckFolder [14:58:19]dirname=/storage/ofd_packets [14:58:19]CheckFolder done [14:58:19]ProducePacketName [14:58:19]name=ofd_packets/00075482 [14:58:19]NVStorageSaveData ofd_packets/00075482 [14:58:19]File name is /storage/ofd_packets/00075482 [14:58:19]Write 295 bytes [14:58:19]NVStorageSaveData done [14:58:19]OFDSenderStorePacket done [14:58:19]KKMCreateOFDPacket done [14:58:19]NVStorageSaveData kkm_last_timestamp [14:58:19]File name is /storage/kkm_last_timestamp [14:58:19]Write 4 bytes [14:58:19]NVStorageSaveData done [14:58:19]ExternCall_PrintAddStr [14:58:19]wPrintStart [14:58:19]Write to MH i2c: 01 00 00 02 10 12 [14:58:19]Write i2c OK [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: 01 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: 01 07 00 [14:58:19]MH_I2C_Read... [14:58:19]Read from MH i2c: 01 07 00 02 10 00 00 00 00 00 FF 0F 27 [14:58:19]RasterBufferAndPrint [14:58:19]line Счет N : (1)1965656 [14:58:19]line ИНН: 02508201610067 [14:58:19]line Контрольно-Кассовый Чек [14:58:19]line ПРОДАЖА [14:58:19]line ТРК (МРК, ГНК) : 71 [14:58:19]line Товар: 2711129700 [14:58:19]line ГАЗ [14:58:19]line 30.850 * 38.90 [14:58:19]line = 1200.07 [14:58:19]line НДС 12% НСП 1% [14:58:19]line > о реализуемом товаре [14:58:19]line ОКРУГЛЕНИЕ: -0.07 [14:58:19]line ИТОГО: 1200.00 [14:58:19]line Внесено: 1200.00 [14:58:19]line СДАЧА: 0.00 [14:58:19]line НСП 1% : 10.62 [14:58:19]line НДС 12% : 127.44 [14:58:19]line Наличными: 1200.00 [14:58:19]line Безнал.: 0.00 [14:58:19]line Место: АЗС № 133 "Партнер Нефть" [14:58:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:58:19]line СНО: Общий режим [14:58:19]line Чек 215 23.10.2024 14:58 [14:58:19]line Смена: 173 ФФД: 1.0 [14:58:19]line ЗНМ: 0300000020 [14:58:19]line РНМ: 0000000000161154 [14:58:19]line Версия ККМ: v1.0 [14:58:19]line ФМ: 0000000000963323 [14:58:19]line ФД: 75482 [14:58:19]line ФПД: 29574602994504 [14:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145818&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75482&fm=29574602994504&tin=02508201610067®Number=0000000000161154&sum=120000 [14:58:19]written 0, free lines is 4095 [14:58:19]OFD Sender: Processing packet 75482 [packets to send 16, broken 15] [14:58:19]ProducePacketName [14:58:19]name=ofd_packets/00075482 [14:58:19]OFD Sender: To server: pG, [14:58:19]CommunicateWithHost lk.salyk.kg:30040 [14:58:19]ConnectInit lk.salyk.kg [14:58:19]Connected sock=10 [14:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 C1 03 01 01 C2 8C 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 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 0A 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DA 26 01 00 35 04 06 00 1A E5 DF B4 B3 48 81 54 84 36 9B 66 20 56 [14:58:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 76 A0 47 00 2E 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 39 36 33 33 32 33 10 04 04 00 DA 26 01 00 F4 03 04 00 E5 B7 18 67 B6 04 01 00 00 31 88 3F A9 44 7A DF CB [14:58:19]CommunicateWithHost err = 0 [14:58:19]CheckOFDResponse [14:58:19]1017 (14) - 77093643461234 [14:58:19]1041 (16) - 0000000000963323 [14:58:19]1040 (4) - 75482 [14:58:19]1012 (4) - 23.10.2024 08:46 [14:58:19]1206 (1) - 0 [14:58:19]OFD Sender: Remove packet 75482 [14:58:19]ProducePacketName [14:58:19]name=ofd_packets/00075482 [14:58:19]NVStorageDeleteData [14:58:20]Write to MH i2c: 01 00 00 2C 10 3C [14:58:20]Write i2c OK [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 07 00 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 07 00 2C 10 00 00 00 00 00 C0 0C 0F [14:58:20]RasterBufferAndPrint [14:58:20]line [14:58:20]line [14:58:20]line [14:58:20]line [14:58:20]line [14:58:20]written 0, free lines is 3270 [14:58:20]MH_Cut [14:58:20]Write to MH i2c: D1 01 00 33 10 01 15 [14:58:20]Write i2c OK [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: D1 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: D1 01 00 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: D1 01 00 33 10 00 14 [14:58:20]Write to MH i2c: 01 00 00 34 10 44 [14:58:20]Write i2c OK [14:58:20]MH_I2C_Read... [14:58:20]OFD Sender: No OFD packet to send [14:58:20]*** Cut start [14:58:20]*** Partial cut [14:58:20]*** CUTSNS_PIN = 1 [14:58:20]*** CUTSNS_PIN = 0 [14:58:21]*** Brake cut motor [14:58:21]Read from MH i2c: 01 [14:58:21]MH_I2C_Read... [14:58:21]*** Stop cut motor [14:58:21]*** Cut end [14:58:21]Read from MH i2c: 01 07 00 [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: 01 07 00 34 10 00 00 00 00 00 FF 0F 59 [14:58:21]process_action close_receipt done [14:58:21]requested_data is exist [14:58:21]produce_requested_data [14:58:21]requested_item fm.sn is exist - process it [14:58:21]wFMCommunicate request_size=4 [14:58:21]MH_SAM_APDU [14:58:21]CAPDU: 80 11 00 00 [14:58:21]Write to MH i2c: E2 08 00 35 10 80 11 00 00 00 00 00 00 BF [14:58:21]Write i2c OK [14:58:21]MH_I2C_Read... [14:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:21]Read from MH i2c: E2 [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: E2 17 00 [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: E2 17 00 35 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0C [14:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:58:21]wFMCommunicate OK [14:58:21]requested_item fd.num is exist - process it [14:58:21]SAM_PROTO_GetFieldsCounters [14:58:21]wFMCommunicate request_size=4 [14:58:21]MH_SAM_APDU [14:58:21]CAPDU: 80 13 00 00 [14:58:21]Write to MH i2c: E2 08 00 36 10 80 13 00 00 00 00 00 00 C2 [14:58:21]Write i2c OK [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: E2 [14:58:21]MH_I2C_Read... [14:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:21]Read from MH i2c: E2 62 00 [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: E2 62 00 36 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DA 26 01 00 0E 04 04 00 AD 00 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 09 [14:58:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DA 26 01 00 0E 04 04 00 AD 00 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 [14:58:21]wFMCommunicate OK [14:58:21]SAM_PROTO_GetFieldsCounters done [14:58:21]requested_item shift.num is exist - process it [14:58:21]requested_item shift.opened is exist - process it [14:58:21]req_shift_opened [14:58:21]FM_GetShiftState [14:58:21]SAM_PROTO_GetShiftState [14:58:21]wFMCommunicate request_size=4 [14:58:21]MH_SAM_APDU [14:58:21]CAPDU: 80 13 01 00 [14:58:21]Write to MH i2c: E2 08 00 37 10 80 13 01 00 00 00 00 00 C4 [14:58:21]Write i2c OK [14:58:21]MH_I2C_Read... [14:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:21]Read from MH i2c: E2 [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: E2 0E 00 [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: E2 0E 00 37 10 00 09 00 01 99 41 18 67 00 00 00 00 90 00 29 [14:58:21]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:58:21]wFMCommunicate OK [14:58:21]SAM_PROTO_GetShiftState done [14:58:21]FM_GetShiftState done [14:58:21]req_shift_opened done [14:58:21]requested_item shift.open_date is exist - process it [14:58:21]req_shift_open_date [14:58:21]req_shift_open_date done [14:58:21]produce_requested_data done [14:58:21]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75482,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:58:21]process_action_free close_receipt [14:58:21]json_value_free [14:58:21]json_value_free done [14:58:21]process_json_proto returns [14:58:21]Send response to host [14:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75482,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:58:21]free response buf [14:58:21]execute_script done [14:58:21]execute_script returns [14:58:21]free content buf [14:58:21]Sock 8.Close socket [14:58:21]Sock 8.Thread stoped [14:58:25]OFD Sender: No OFD packet to send [14:58:28]accept exits with 9 [14:58:28]New connection [14:58:28]New thread 3066608996 created [14:58:28]Thread 3066465636 joined [14:58:28]Waiting for new connection... [14:58:28] Sock 9.Parse request [14:58:28]Sock 9.Check first char [14:58:28]Sock 9.First char is OK [14:58:28]request: POST /json_proto HTTP/1.0 [14:58:28]Method: POST [14:58:28]URL: /json_proto [14:58:28]Method is POST - this is cgi request [14:58:28]url: /json_proto [14:58:28]query_string will be loaded in cgi processing [14:58:28]execute_cgi json_proto POST (null) [14:58:28]execute_cgi path=json_proto method=POST [14:58:28]POST find Content-Length [14:58:28]Host: 172.17.44.196:8080 [14:58:28]Content-Length: 621 [14:58:28]Content-Type: application/json [14:58:28] [14:58:28]POST finish read [14:58:28]Found Content-Length = 621 [14:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:28]execute_script... [14:58: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)1965659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:28]POST & json_proto [14:58:28]process_json_proto [14:58:28]json parsed OK: [14:58:28]protocol is kg_v1.0 [14:58:28]action value=close_receipt [14:58:28]process_action close_receipt [14:58:28]cmd_close_receipt [14:58:28]MH_GetDate [14:58:28]Write to MH i2c: F0 00 00 38 10 37 [14:58:28]Write i2c OK [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: F0 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: F0 09 00 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: F0 09 00 38 10 00 15 0F 19 67 E7 19 F8 65 41 [14:58:28]GetLastDocTimeStamp 1729695498 [14:58:28]current date 1729695509 [14:58:28]FM_GetShiftState [14:58:28]SAM_PROTO_GetShiftState [14:58:28]wFMCommunicate request_size=4 [14:58:28]MH_SAM_APDU [14:58:28]CAPDU: 80 13 01 00 [14:58:28]Write to MH i2c: E2 08 00 39 10 80 13 01 00 00 00 00 00 C6 [14:58:28]Write i2c OK [14:58:28]MH_I2C_Read... [14:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:28]Read from MH i2c: E2 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: E2 0E 00 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: E2 0E 00 39 10 00 09 00 01 99 41 18 67 00 00 00 00 90 00 2B [14:58:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:58:28]wFMCommunicate OK [14:58:28]SAM_PROTO_GetShiftState done [14:58:28]FM_GetShiftState done [14:58:28]opened in 1729642905 [14:58:28]opened+sec_in_day 1729729305 [14:58:28]quantity*price = 50000 [14:58:28]sum+1 = 50001 [14:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 216 23.10.2024 14:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75483 ФПД: 4027220740557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145829&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75483&fm=4027220740557&tin=02508201610067®Number=0000000000161154&sum=50000 [14:58:29]StoreToDocumentArchive [14:58:29]shift 173 fd 75483 [14:58:29]save to /storage/0173/doc_00075483 [14:58:29]save last doc name /storage/0173/doc_00075483 to /storage/kkm_last_doc_name [14:58:29]save OK [14:58:29]Clear old archive folders... [14:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:58:29]tlvbuf is 007E9D10 [14:58:29]SAM_PROTO_ClearQueue [14:58:29]wFMCommunicate request_size=4 [14:58:29]MH_SAM_APDU [14:58:29]CAPDU: 80 09 00 00 [14:58:29]Write to MH i2c: E2 08 00 46 10 80 09 00 00 00 00 00 00 C8 [14:58:29]Write i2c OK [14:58:29]MH_I2C_Read... [14:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:29]Read from MH i2c: E2 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: E2 03 00 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: E2 03 00 46 10 00 90 00 CA [14:58:29]RAPDU: 90 00 [14:58:29]wFMCommunicate OK [14:58:29]SAM_PROTO_ClearQueue done [14:58:29]KKMCreateOFDPacket [14:58:29]OFDProtocolAddRootSTLVToBuf [14:58:29]FM_MakeSignedData [14:58:29]FM_MakeSignedData [14:58:29]SAM_PROTO_SignData [14:58:29]wFMCommunicate request_size=4 [14:58:29]MH_SAM_APDU [14:58:29]CAPDU: 80 0D 01 02 [14:58:29]Write to MH i2c: E2 08 00 47 10 80 0D 01 02 00 00 00 00 D0 [14:58:29]Write i2c OK [14:58:29]MH_I2C_Read... [14:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:29]Read from MH i2c: E2 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: E2 03 00 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: E2 03 00 47 10 00 90 00 CB [14:58:29]RAPDU: 90 00 [14:58:29]wFMCommunicate OK [14:58:29]wFMCommunicate request_size=253 [14:58:29]MH_SAM_APDU [14:58:29]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 D8 00 00 00 F4 03 04 00 15 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 26 01 00 35 04 06 00 03 A9 A9 0F C9 CD [14:58:29]Write to MH i2c: E2 00 01 48 10 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 D8 00 00 00 F4 03 04 00 15 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 26 01 00 35 04 06 00 03 A9 A9 0F C9 CD 00 00 E2 [14:58:29]Write i2c OK [14:58:29]MH_I2C_Read... [14:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:29]Read from MH i2c: E2 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: E2 03 00 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: E2 03 00 48 10 00 90 00 CC [14:58:29]RAPDU: 90 00 [14:58:29]wFMCommunicate OK [14:58:29]wFMCommunicate request_size=4 [14:58:29]MH_SAM_APDU [14:58:29]CAPDU: 80 0D 03 02 [14:58:29]Write to MH i2c: E2 08 00 49 10 80 0D 03 02 00 00 00 00 D4 [14:58:29]Write i2c OK [14:58:29]MH_I2C_Read... [14:58:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:29]Read from MH i2c: E2 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: E2 0B 00 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: E2 0B 00 49 10 00 ED 31 8D B4 F9 4E 63 33 90 00 11 [14:58:29]RAPDU: ED 31 8D B4 F9 4E 63 33 90 00 [14:58:29]wFMCommunicate OK [14:58:29]SAM_PROTO_SignData done [14:58:29]FM_MakeSignedData done [14:58:29]CreateOFDProtocolMessage [14:58:29]wFMCommunicate request_size=4 [14:58:29]MH_SAM_APDU [14:58:29]CAPDU: 80 11 00 00 [14:58:29]Write to MH i2c: E2 08 00 4A 10 80 11 00 00 00 00 00 00 D4 [14:58:29]Write i2c OK [14:58:29]MH_I2C_Read... [14:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:30]Read from MH i2c: E2 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 17 00 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 17 00 4A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 21 [14:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:58:30]wFMCommunicate OK [14:58:30]CreateOFDProtocolMessage done [14:58:30]OFDSenderStorePacket 75483 [14:58:30]StoreOFDPacket docnum=75483 [14:58:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 79 76 00 01 DF 46 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 D8 00 00 00 F4 03 04 00 15 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 26 01 00 35 04 06 00 03 A9 A9 0F C9 CD ED 31 8D B4 F9 4E 63 33 [14:58:30]CheckFolder [14:58:30]dirname=/storage/ofd_packets [14:58:30]CheckFolder done [14:58:30]ProducePacketName [14:58:30]name=ofd_packets/00075483 [14:58:30]NVStorageSaveData ofd_packets/00075483 [14:58:30]File name is /storage/ofd_packets/00075483 [14:58:30]Write 294 bytes [14:58:30]NVStorageSaveData done [14:58:30]OFDSenderStorePacket done [14:58:30]KKMCreateOFDPacket done [14:58:30]NVStorageSaveData kkm_last_timestamp [14:58:30]File name is /storage/kkm_last_timestamp [14:58:30]Write 4 bytes [14:58:30]NVStorageSaveData done [14:58:30]ExternCall_PrintAddStr [14:58:30]wPrintStart [14:58:30]Write to MH i2c: 01 00 00 4B 10 5B [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: 01 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: 01 07 00 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: 01 07 00 4B 10 00 00 00 00 00 FF 0F 70 [14:58:30]RasterBufferAndPrint [14:58:30]line Счет N : (1)1965659 [14:58:30]line ИНН: 02508201610067 [14:58:30]line Контрольно-Кассовый Чек [14:58:30]line ПРОДАЖА [14:58:30]line ТРК (МРК, ГНК) : 42 [14:58:30]line Товар: 2710124130 [14:58:30]line SU-92 [14:58:30]line 7.310 * 68.40 [14:58:30]line = 500.00 [14:58:30]line НДС 12% НСП 1% [14:58:30]line > о реализуемом товаре [14:58:30]line ИТОГО: 500.00 [14:58:30]line НСП 1% : 4.42 [14:58:30]line НДС 12% : 53.10 [14:58:30]line Наличными: 500.00 [14:58:30]line Безнал.: 0.00 [14:58:30]line Место: АЗС № 133 "Партнер Нефть" [14:58:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:58:30]line СНО: Общий режим [14:58:30]line Чек 216 23.10.2024 14:58 [14:58:30]line Смена: 173 ФФД: 1.0 [14:58:30]line ЗНМ: 0300000020 [14:58:30]line РНМ: 0000000000161154 [14:58:30]line Версия ККМ: v1.0 [14:58:30]line ФМ: 0000000000963323 [14:58:30]line ФД: 75483 [14:58:30]line ФПД: 4027220740557 [14:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145829&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75483&fm=4027220740557&tin=02508201610067®Number=0000000000161154&sum=50000 [14:58:30]written 0, free lines is 4095 [14:58:30]OFD Sender: Processing packet 75483 [packets to send 16, broken 15] [14:58:30]ProducePacketName [14:58:30]name=ofd_packets/00075483 [14:58:30]OFD Sender: To server: pG, [14:58:30]CommunicateWithHost lk.salyk.kg:30040 [14:58:30]ConnectInit lk.salyk.kg [14:58:30]Connected sock=11 [14:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 79 76 00 01 DF 46 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 D8 00 00 00 F4 03 04 00 15 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 26 01 00 35 04 06 00 03 A9 A9 0F C9 CD ED 31 8D B4 F9 4E 63 33 [14:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 52 56 47 00 59 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DB 26 01 00 F4 03 04 00 EF B7 18 67 B6 04 01 00 00 A4 11 C3 33 93 8D B1 AD [14:58:30]CommunicateWithHost err = 0 [14:58:30]CheckOFDResponse [14:58:30]1017 (14) - 77093643461234 [14:58:30]1041 (16) - 0000000000963323 [14:58:30]1040 (4) - 75483 [14:58:30]1012 (4) - 23.10.2024 08:46 [14:58:30]1206 (1) - 0 [14:58:30]OFD Sender: Remove packet 75483 [14:58:30]ProducePacketName [14:58:30]name=ofd_packets/00075483 [14:58:30]NVStorageDeleteData [14:58:30]Write to MH i2c: 01 00 00 72 10 82 [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: 01 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: 01 07 00 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: 01 07 00 72 10 00 00 00 00 00 1B 0D B1 [14:58:30]RasterBufferAndPrint [14:58:30]line [14:58:30]line [14:58:30]line [14:58:30]line [14:58:30]line [14:58:30]written 0, free lines is 3367 [14:58:30]MH_Cut [14:58:30]Write to MH i2c: D1 01 00 79 10 01 5B [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: D1 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: D1 01 00 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: D1 01 00 79 10 00 5A [14:58:30]Write to MH i2c: 01 00 00 7A 10 8A [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:31]OFD Sender: No OFD packet to send [14:58:31]*** Cut start [14:58:31]*** Partial cut [14:58:31]*** CUTSNS_PIN = 1 [14:58:31]*** CUTSNS_PIN = 0 [14:58:31]*** Brake cut motor [14:58:31]Read from MH i2c: 01 [14:58:31]MH_I2C_Read... [14:58:31]*** Stop cut motor [14:58:31]*** Cut end [14:58:31]Read from MH i2c: 01 07 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: 01 07 00 7A 10 00 00 00 00 00 FF 0F 9F [14:58:31]process_action close_receipt done [14:58:31]requested_data is exist [14:58:31]produce_requested_data [14:58:31]requested_item fm.sn is exist - process it [14:58:31]wFMCommunicate request_size=4 [14:58:31]MH_SAM_APDU [14:58:31]CAPDU: 80 11 00 00 [14:58:31]Write to MH i2c: E2 08 00 7B 10 80 11 00 00 00 00 00 00 05 [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 17 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 17 00 7B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 52 [14:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:58:32]wFMCommunicate OK [14:58:32]requested_item fd.num is exist - process it [14:58:32]SAM_PROTO_GetFieldsCounters [14:58:32]wFMCommunicate request_size=4 [14:58:32]MH_SAM_APDU [14:58:32]CAPDU: 80 13 00 00 [14:58:32]Write to MH i2c: E2 08 00 7C 10 80 13 00 00 00 00 00 00 08 [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 62 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 62 00 7C 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DB 26 01 00 0E 04 04 00 AD 00 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 53 [14:58:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DB 26 01 00 0E 04 04 00 AD 00 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 [14:58:32]wFMCommunicate OK [14:58:32]SAM_PROTO_GetFieldsCounters done [14:58:32]requested_item shift.num is exist - process it [14:58:32]requested_item shift.opened is exist - process it [14:58:32]req_shift_opened [14:58:32]FM_GetShiftState [14:58:32]SAM_PROTO_GetShiftState [14:58:32]wFMCommunicate request_size=4 [14:58:32]MH_SAM_APDU [14:58:32]CAPDU: 80 13 01 00 [14:58:32]Write to MH i2c: E2 08 00 7D 10 80 13 01 00 00 00 00 00 0A [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 0E 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 0E 00 7D 10 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6F [14:58:32]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:58:32]wFMCommunicate OK [14:58:32]SAM_PROTO_GetShiftState done [14:58:32]FM_GetShiftState done [14:58:32]req_shift_opened done [14:58:32]requested_item shift.open_date is exist - process it [14:58:32]req_shift_open_date [14:58:32]req_shift_open_date done [14:58:32]produce_requested_data done [14:58:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75483,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:58:32]process_action_free close_receipt [14:58:32]json_value_free [14:58:32]json_value_free done [14:58:32]process_json_proto returns [14:58:32]Send response to host [14:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75483,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:58:32]free response buf [14:58:32]execute_script done [14:58:32]execute_script returns [14:58:32]free content buf [14:58:32]Sock 9.Close socket [14:58:32]Sock 9.Thread stoped [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:44]accept exits with 8 [14:58:44]New connection [14:58:44]New thread 3066465636 created [14:58:44]Thread 3066608996 joined [14:58:44]Waiting for new connection... [14:58:44] Sock 8.Parse request [14:58:44]Sock 8.Check first char [14:58:44]Sock 8.First char is OK [14:58:44]request: POST /json_proto HTTP/1.0 [14:58:44]Method: POST [14:58:44]URL: /json_proto [14:58:44]Method is POST - this is cgi request [14:58:44]url: /json_proto [14:58:44]query_string will be loaded in cgi processing [14:58:44]execute_cgi json_proto POST (null) [14:58:44]execute_cgi path=json_proto method=POST [14:58:44]POST find Content-Length [14:58:44]Host: 172.17.44.196:8080 [14:58:44]Content-Length: 755 [14:58:44]Content-Type: application/json [14:58:44] [14:58:44]POST finish read [14:58:44]Found Content-Length = 755 [14:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036562", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:44]execute_script... [14:58: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)1965660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036562", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:44]POST & json_proto [14:58:44]process_json_proto [14:58:44]json parsed OK: [14:58:44]protocol is kg_v1.0 [14:58:44]action value=close_receipt [14:58:44]process_action close_receipt [14:58:44]cmd_close_receipt [14:58:44]MH_GetDate [14:58:44]Write to MH i2c: F0 00 00 7E 10 7D [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: F0 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: F0 09 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: F0 09 00 7E 10 00 24 0F 19 67 E7 19 F8 65 96 [14:58:44]GetLastDocTimeStamp 1729695509 [14:58:44]current date 1729695524 [14:58:44]FM_GetShiftState [14:58:44]SAM_PROTO_GetShiftState [14:58:44]wFMCommunicate request_size=4 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 13 01 00 [14:58:44]Write to MH i2c: E2 08 00 7F 10 80 13 01 00 00 00 00 00 0C [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 0E 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 0E 00 7F 10 00 09 00 01 99 41 18 67 00 00 00 00 90 00 71 [14:58:44]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:58:44]wFMCommunicate OK [14:58:44]SAM_PROTO_GetShiftState done [14:58:44]FM_GetShiftState done [14:58:44]opened in 1729642905 [14:58:44]opened+sec_in_day 1729729305 [14:58:44]quantity*price = 0 [14:58:44]sum+1 = 1 [14:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 217 23.10.2024 14:58 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30036562 ФМ: 0000000000963323 ФД: 75484 ФПД: 77551035569385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145844&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75484&fm=77551035569385&tin=02508201610067®Number=0000000000161154&sum=0 [14:58:45]StoreToDocumentArchive [14:58:45]shift 173 fd 75484 [14:58:45]save to /storage/0173/doc_00075484 [14:58:45]save last doc name /storage/0173/doc_00075484 to /storage/kkm_last_doc_name [14:58:45]save OK [14:58:45]Clear old archive folders... [14:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:45]tlvbuf is 007F7940 [14:58:45]SAM_PROTO_ClearQueue [14:58:45]wFMCommunicate request_size=4 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 09 00 00 [14:58:45]Write to MH i2c: E2 08 00 8C 10 80 09 00 00 00 00 00 00 0E [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 8C 10 00 90 00 10 [14:58:45]RAPDU: 90 00 [14:58:45]wFMCommunicate OK [14:58:45]SAM_PROTO_ClearQueue done [14:58:45]KKMCreateOFDPacket [14:58:45]OFDProtocolAddRootSTLVToBuf [14:58:45]FM_MakeSignedData [14:58:45]FM_MakeSignedData [14:58:45]SAM_PROTO_SignData [14:58:45]wFMCommunicate request_size=4 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 0D 01 02 [14:58:45]Write to MH i2c: E2 08 00 8D 10 80 0D 01 02 00 00 00 00 16 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 8D 10 00 90 00 11 [14:58:45]RAPDU: 90 00 [14:58:45]wFMCommunicate OK [14:58:45]wFMCommunicate request_size=255 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 24 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 26 01 00 35 04 06 00 46 [14:58:45]Write to MH i2c: E2 02 01 8E 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 24 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 26 01 00 35 04 06 00 46 00 00 67 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 8E 10 00 90 00 12 [14:58:45]RAPDU: 90 00 [14:58:45]wFMCommunicate OK [14:58:45]wFMCommunicate request_size=10 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 0D 02 02 05 88 41 ED 54 E9 [14:58:45]Write to MH i2c: E2 0D 00 8F 10 80 0D 02 02 05 00 88 41 ED 54 E9 00 00 16 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 8F 10 00 90 00 13 [14:58:45]RAPDU: 90 00 [14:58:45]wFMCommunicate OK [14:58:45]wFMCommunicate request_size=4 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 0D 03 02 [14:58:45]Write to MH i2c: E2 08 00 90 10 80 0D 03 02 00 00 00 00 1B [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 0B 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 0B 00 90 10 00 7E 24 CE 57 19 F2 96 49 90 00 CD [14:58:45]RAPDU: 7E 24 CE 57 19 F2 96 49 90 00 [14:58:45]wFMCommunicate OK [14:58:45]SAM_PROTO_SignData done [14:58:45]FM_MakeSignedData done [14:58:45]CreateOFDProtocolMessage [14:58:45]wFMCommunicate request_size=4 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 11 00 00 [14:58:45]Write to MH i2c: E2 08 00 91 10 80 11 00 00 00 00 00 00 1B [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 17 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 17 00 91 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 68 [14:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:58:45]wFMCommunicate OK [14:58:45]CreateOFDProtocolMessage done [14:58:45]OFDSenderStorePacket 75484 [14:58:45]StoreOFDPacket docnum=75484 [14:58:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 33 68 07 01 C4 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 24 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 26 01 00 35 04 06 00 46 88 41 ED 54 E9 7E 24 CE 57 19 F2 96 49 [14:58:45]CheckFolder [14:58:45]dirname=/storage/ofd_packets [14:58:45]CheckFolder done [14:58:45]ProducePacketName [14:58:45]name=ofd_packets/00075484 [14:58:45]NVStorageSaveData ofd_packets/00075484 [14:58:45]File name is /storage/ofd_packets/00075484 [14:58:45]Write 301 bytes [14:58:45]NVStorageSaveData done [14:58:45]OFDSenderStorePacket done [14:58:45]KKMCreateOFDPacket done [14:58:45]NVStorageSaveData kkm_last_timestamp [14:58:45]File name is /storage/kkm_last_timestamp [14:58:45]Write 4 bytes [14:58:45]NVStorageSaveData done [14:58:45]ExternCall_PrintAddStr [14:58:45]wPrintStart [14:58:45]Write to MH i2c: 01 00 00 92 10 A2 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: 01 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: 01 07 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: 01 07 00 92 10 00 00 00 00 00 FF 0F B7 [14:58:45]RasterBufferAndPrint [14:58:45]line Счет N : (1)1965660 [14:58:45]line ИНН: 02508201610067 [14:58:45]line Контрольно-Кассовый Чек [14:58:45]line ПРОДАЖА [14:58:45]line ТРК (МРК, ГНК) : 53 [14:58:45]line Товар: 2710124130 [14:58:45]line Аи-92-К-5 [14:58:45]line 15.000 * 0.00 [14:58:45]line = 0.00 [14:58:45]line НДС 12% НСП 1% [14:58:45]line > о реализуемом товаре [14:58:45]line ИТОГО: 0.00 [14:58:45]line НСП 1% : 0.00 [14:58:45]line НДС 12% : 0.00 [14:58:45]line Наличными: 0.00 [14:58:45]line Безнал.: 0.00 [14:58:45]line Место: АЗС № 133 "Партнер Нефть" [14:58:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [14:58:45]line СНО: Общий режим [14:58:45]line Чек 217 23.10.2024 14:58 [14:58:45]line Смена: 173 ФФД: 1.0 [14:58:45]line ЗНМ: 0300000020 [14:58:45]line РНМ: 0000000000161154 [14:58:45]line Версия ККМ: v1.0 [14:58:45]line Талоны: ТК ГПНА Online [14:58:45]line 30036562 [14:58:45]line ФМ: 0000000000963323 [14:58:45]line ФД: 75484 [14:58:45]line ФПД: 77551035569385 [14:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145844&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75484&fm=77551035569385&tin=02508201610067®Number=0000000000161154&sum=0 [14:58:45]written 0, free lines is 4095 [14:58:45]OFD Sender: Processing packet 75484 [packets to send 16, broken 15] [14:58:45]ProducePacketName [14:58:45]name=ofd_packets/00075484 [14:58:45]OFD Sender: To server: pG, [14:58:45]CommunicateWithHost lk.salyk.kg:30040 [14:58:45]ConnectInit lk.salyk.kg [14:58:45]Connected sock=11 [14:58:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 33 68 07 01 C4 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 24 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 26 01 00 35 04 06 00 46 88 41 ED 54 E9 7E 24 CE 57 19 F2 96 49 [14:58:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 9E C9 47 00 1E 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DC 26 01 00 F4 03 04 00 FF B7 18 67 B6 04 01 00 00 13 CB 40 15 6F 2A F1 E9 [14:58:46]CommunicateWithHost err = 0 [14:58:46]CheckOFDResponse [14:58:46]1017 (14) - 77093643461234 [14:58:46]1041 (16) - 0000000000963323 [14:58:46]1040 (4) - 75484 [14:58:46]1012 (4) - 23.10.2024 08:46 [14:58:46]1206 (1) - 0 [14:58:46]OFD Sender: Remove packet 75484 [14:58:46]ProducePacketName [14:58:46]name=ofd_packets/00075484 [14:58:46]NVStorageDeleteData [14:58:46]Write to MH i2c: 01 00 00 BB 10 CB [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 07 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 07 00 BB 10 00 00 00 00 00 CF 0C AD [14:58:46]RasterBufferAndPrint [14:58:46]line [14:58:46]line [14:58:46]line [14:58:46]line [14:58:46]line [14:58:46]written 0, free lines is 3289 [14:58:46]MH_Cut [14:58:46]Write to MH i2c: D1 01 00 C2 10 01 A4 [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: D1 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: D1 01 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: D1 01 00 C2 10 00 A3 [14:58:46]Write to MH i2c: 01 00 00 C3 10 D3 [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]OFD Sender: No OFD packet to send [14:58:47]*** Cut start [14:58:47]*** Partial cut [14:58:47]*** CUTSNS_PIN = 1 [14:58:47]*** CUTSNS_PIN = 0 [14:58:47]*** Brake cut motor [14:58:47]Read from MH i2c: 01 [14:58:47]MH_I2C_Read... [14:58:47]*** Stop cut motor [14:58:47]*** Cut end [14:58:47]Read from MH i2c: 01 07 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: 01 07 00 C3 10 00 00 00 00 00 FF 0F E8 [14:58:47]process_action close_receipt done [14:58:47]requested_data is exist [14:58:47]produce_requested_data [14:58:47]requested_item fm.sn is exist - process it [14:58:47]wFMCommunicate request_size=4 [14:58:47]MH_SAM_APDU [14:58:47]CAPDU: 80 11 00 00 [14:58:47]Write to MH i2c: E2 08 00 C4 10 80 11 00 00 00 00 00 00 4E [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:47]Read from MH i2c: E2 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 17 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 17 00 C4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9B [14:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [14:58:47]wFMCommunicate OK [14:58:47]requested_item fd.num is exist - process it [14:58:47]SAM_PROTO_GetFieldsCounters [14:58:47]wFMCommunicate request_size=4 [14:58:47]MH_SAM_APDU [14:58:47]CAPDU: 80 13 00 00 [14:58:47]Write to MH i2c: E2 08 00 C5 10 80 13 00 00 00 00 00 00 51 [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:47]Read from MH i2c: E2 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 62 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 62 00 C5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DC 26 01 00 0E 04 04 00 AD 00 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 A0 [14:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DC 26 01 00 0E 04 04 00 AD 00 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 [14:58:48]wFMCommunicate OK [14:58:48]SAM_PROTO_GetFieldsCounters done [14:58:48]requested_item shift.num is exist - process it [14:58:48]requested_item shift.opened is exist - process it [14:58:48]req_shift_opened [14:58:48]FM_GetShiftState [14:58:48]SAM_PROTO_GetShiftState [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 13 01 00 [14:58:48]Write to MH i2c: E2 08 00 C6 10 80 13 01 00 00 00 00 00 53 [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 0E 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 0E 00 C6 10 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B8 [14:58:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [14:58:48]wFMCommunicate OK [14:58:48]SAM_PROTO_GetShiftState done [14:58:48]FM_GetShiftState done [14:58:48]req_shift_opened done [14:58:48]requested_item shift.open_date is exist - process it [14:58:48]req_shift_open_date [14:58:48]req_shift_open_date done [14:58:48]produce_requested_data done [14:58:48]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75484,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [14:58:48]process_action_free close_receipt [14:58:48]json_value_free [14:58:48]json_value_free done [14:58:48]process_json_proto returns [14:58:48]Send response to host [14:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75484,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [14:58:48]free response buf [14:58:48]execute_script done [14:58:48]execute_script returns [14:58:48]free content buf [14:58:48]Sock 8.Close socket [14:58:48]Sock 8.Thread stoped [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:18]accept exits with 9 [15:00:18]New connection [15:00:18]New thread 3066608996 created [15:00:18]Thread 3066465636 joined [15:00:18]Waiting for new connection... [15:00:18] Sock 9.Parse request [15:00:18]Sock 9.Check first char [15:00:18]Sock 9.First char is OK [15:00:18]request: POST /json_proto HTTP/1.0 [15:00:18]Method: POST [15:00:18]URL: /json_proto [15:00:18]Method is POST - this is cgi request [15:00:18]url: /json_proto [15:00:18]query_string will be loaded in cgi processing [15:00:18]execute_cgi json_proto POST (null) [15:00:18]execute_cgi path=json_proto method=POST [15:00:18]POST find Content-Length [15:00:18]Host: 172.17.44.196:8080 [15:00:18]Content-Length: 614 [15:00:18]Content-Type: application/json [15:00:18] [15:00:18]POST finish read [15:00:18]Found Content-Length = 614 [15:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273262", "tax_sys" : 0, "items" : [ { "code": "48702522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Marlboro Red", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:18]execute_script... [15:00:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273262", "tax_sys" : 0, "items" : [ { "code": "48702522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Marlboro Red", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:18]POST & json_proto [15:00:18]process_json_proto [15:00:18]json parsed OK: [15:00:18]protocol is kg_v1.0 [15:00:18]action value=close_receipt [15:00:18]process_action close_receipt [15:00:18]cmd_close_receipt [15:00:18]MH_GetDate [15:00:18]Write to MH i2c: F0 00 00 C7 10 C6 [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: F0 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: F0 09 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: F0 09 00 C7 10 00 83 0F 19 67 E7 19 F8 65 3E [15:00:18]GetLastDocTimeStamp 1729695524 [15:00:18]current date 1729695619 [15:00:18]FM_GetShiftState [15:00:18]SAM_PROTO_GetShiftState [15:00:18]wFMCommunicate request_size=4 [15:00:18]MH_SAM_APDU [15:00:18]CAPDU: 80 13 01 00 [15:00:18]Write to MH i2c: E2 08 00 C8 10 80 13 01 00 00 00 00 00 55 [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:19]Read from MH i2c: E2 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 0E 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 0E 00 C8 10 00 09 00 01 99 41 18 67 00 00 00 00 90 00 BA [15:00:19]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:00:19]wFMCommunicate OK [15:00:19]SAM_PROTO_GetShiftState done [15:00:19]FM_GetShiftState done [15:00:19]opened in 1729642905 [15:00:19]opened+sec_in_day 1729729305 [15:00:19]quantity*price = 14500 [15:00:19]sum+1 = 14501 [15:00:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 218 23.10.2024 15:00 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75485 ФПД: 111409148815821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150019&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75485&fm=111409148815821&tin=02508201610067®Number=0000000000161154&sum=14500 0 [15:00:19]StoreToDocumentArchive [15:00:19]shift 173 fd 75485 [15:00:19]save to /storage/0173/doc_00075485 [15:00:19]save last doc name /storage/0173/doc_00075485 to /storage/kkm_last_doc_name [15:00:19]save OK [15:00:19]Clear old archive folders... [15:00:19]ProcessDocumentItem done err = 0, tmpTLVsize=266 [15:00:19]tlvbuf is 007AE390 [15:00:19]SAM_PROTO_ClearQueue [15:00:19]wFMCommunicate request_size=4 [15:00:19]MH_SAM_APDU [15:00:19]CAPDU: 80 09 00 00 [15:00:19]Write to MH i2c: E2 08 00 D5 10 80 09 00 00 00 00 00 00 57 [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:19]Read from MH i2c: E2 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 03 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 03 00 D5 10 00 90 00 59 [15:00:19]RAPDU: 90 00 [15:00:19]wFMCommunicate OK [15:00:19]SAM_PROTO_ClearQueue done [15:00:19]KKMCreateOFDPacket [15:00:19]OFDProtocolAddRootSTLVToBuf [15:00:19]FM_MakeSignedData [15:00:19]FM_MakeSignedData [15:00:19]SAM_PROTO_SignData [15:00:19]wFMCommunicate request_size=4 [15:00:19]MH_SAM_APDU [15:00:19]CAPDU: 80 0D 01 02 [15:00:19]Write to MH i2c: E2 08 00 D6 10 80 0D 01 02 00 00 00 00 5F [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:19]Read from MH i2c: E2 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 03 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 03 00 D6 10 00 90 00 5A [15:00:19]RAPDU: 90 00 [15:00:19]wFMCommunicate OK [15:00:19]wFMCommunicate request_size=255 [15:00:19]MH_SAM_APDU [15:00:19]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 30 32 35 32 32 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 83 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 [15:00:19]Write to MH i2c: E2 02 01 D7 10 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 30 32 35 32 32 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 83 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 00 00 96 [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 D7 10 00 90 00 5B [15:00:20]RAPDU: 90 00 [15:00:20]wFMCommunicate OK [15:00:20]wFMCommunicate request_size=25 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 0D 02 02 14 32 33 10 04 04 00 DD 26 01 00 35 04 06 00 65 53 76 BD 69 CD [15:00:20]Write to MH i2c: E2 1C 00 D8 10 80 0D 02 02 14 00 32 33 10 04 04 00 DD 26 01 00 35 04 06 00 65 53 76 BD 69 CD 00 00 6B [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 03 00 D8 10 00 90 00 5C [15:00:20]RAPDU: 90 00 [15:00:20]wFMCommunicate OK [15:00:20]wFMCommunicate request_size=4 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 0D 03 02 [15:00:20]Write to MH i2c: E2 08 00 D9 10 80 0D 03 02 00 00 00 00 64 [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 0B 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 0B 00 D9 10 00 DD 8A B3 71 D9 E0 57 06 90 00 06 [15:00:20]RAPDU: DD 8A B3 71 D9 E0 57 06 90 00 [15:00:20]wFMCommunicate OK [15:00:20]SAM_PROTO_SignData done [15:00:20]FM_MakeSignedData done [15:00:20]CreateOFDProtocolMessage [15:00:20]wFMCommunicate request_size=4 [15:00:20]MH_SAM_APDU [15:00:20]CAPDU: 80 11 00 00 [15:00:20]Write to MH i2c: E2 08 00 DA 10 80 11 00 00 00 00 00 00 64 [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:20]Read from MH i2c: E2 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 17 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: E2 17 00 DA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B1 [15:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:00:20]wFMCommunicate OK [15:00:20]CreateOFDProtocolMessage done [15:00:20]OFDSenderStorePacket 75485 [15:00:20]StoreOFDPacket docnum=75485 [15:00:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1E 01 00 00 FA 73 16 01 5E 77 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 30 32 35 32 32 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 83 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 26 01 00 35 04 06 00 65 53 76 BD 69 CD DD 8A B3 71 D9 E0 57 06 [15:00:20]CheckFolder [15:00:20]dirname=/storage/ofd_packets [15:00:20]CheckFolder done [15:00:20]ProducePacketName [15:00:20]name=ofd_packets/00075485 [15:00:20]NVStorageSaveData ofd_packets/00075485 [15:00:20]File name is /storage/ofd_packets/00075485 [15:00:20]Write 316 bytes [15:00:20]NVStorageSaveData done [15:00:20]OFDSenderStorePacket done [15:00:20]KKMCreateOFDPacket done [15:00:20]NVStorageSaveData kkm_last_timestamp [15:00:20]File name is /storage/kkm_last_timestamp [15:00:20]Write 4 bytes [15:00:20]NVStorageSaveData done [15:00:20]ExternCall_PrintAddStr [15:00:20]wPrintStart [15:00:20]Write to MH i2c: 01 00 00 DB 10 EB [15:00:20]Write i2c OK [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: 01 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: 01 07 00 [15:00:20]MH_I2C_Read... [15:00:20]Read from MH i2c: 01 07 00 DB 10 00 00 00 00 00 FF 0F 00 [15:00:20]RasterBufferAndPrint [15:00:20]line Счет N : (3)273262 [15:00:20]line ИНН: 02508201610067 [15:00:20]line Контрольно-Кассовый Чек [15:00:20]line ПРОДАЖА [15:00:20]line Товар: 48702522 [15:00:20]line Сигареты Marlboro Red [15:00:20]line 1.000 * 145.00 [15:00:20]line = 145.00 [15:00:20]line НДС 12% НСП 1% [15:00:20]line > о реализуемом товаре [15:00:20]line ИТОГО: 145.00 [15:00:20]line НСП 1% : 1.28 [15:00:20]line НДС 12% : 15.40 [15:00:20]line Наличными: 145.00 [15:00:20]line Безнал.: 0.00 [15:00:20]line Место: АЗС № 133 "Партнер Нефть" [15:00:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:00:20]line СНО: Общий режим [15:00:20]line Чек 218 23.10.2024 15:00 [15:00:20]line Смена: 173 ФФД: 1.0 [15:00:20]line ЗНМ: 0300000020 [15:00:20]line РНМ: 0000000000161154 [15:00:20]line Версия ККМ: v1.0 [15:00:20]line ФМ: 0000000000963323 [15:00:20]line ФД: 75485 [15:00:20]line ФПД: 111409148815821 [15:00:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150019&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75485&fm=111409148815821&tin=02508201610067®Number=0000000000161154&sum=14500 [15:00:20]line 0 [15:00:20]OFD Sender: Processing packet 75485 [packets to send 16, broken 15] [15:00:20]ProducePacketName [15:00:20]name=ofd_packets/00075485 [15:00:20]OFD Sender: To server: pG, [15:00:20]CommunicateWithHost lk.salyk.kg:30040 [15:00:20]ConnectInit lk.salyk.kg [15:00:20]written 0, free lines is 4095 [15:00:20]Connected sock=10 [15:00:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1E 01 00 00 FA 73 16 01 5E 77 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 30 32 35 32 32 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 83 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 26 01 00 35 04 06 00 65 53 76 BD 69 CD DD 8A B3 71 D9 E0 57 06 [15:00:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B1 A4 47 00 77 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DD 26 01 00 F4 03 04 00 5E B8 18 67 B6 04 01 00 00 82 F3 A7 F7 E2 7A 73 DF [15:00:21]CommunicateWithHost err = 0 [15:00:21]CheckOFDResponse [15:00:21]1017 (14) - 77093643461234 [15:00:21]1041 (16) - 0000000000963323 [15:00:21]1040 (4) - 75485 [15:00:21]1012 (4) - 23.10.2024 08:48 [15:00:21]1206 (1) - 0 [15:00:21]OFD Sender: Remove packet 75485 [15:00:21]ProducePacketName [15:00:21]name=ofd_packets/00075485 [15:00:21]NVStorageDeleteData [15:00:21]Write to MH i2c: 01 00 00 02 11 13 [15:00:21]Write i2c OK [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: 01 [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: 01 07 00 [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: 01 07 00 02 11 00 00 00 00 00 D5 0C FB [15:00:21]RasterBufferAndPrint [15:00:21]line [15:00:21]line [15:00:21]line [15:00:21]line [15:00:21]line [15:00:21]written 0, free lines is 3289 [15:00:21]MH_Cut [15:00:21]Write to MH i2c: D1 01 00 09 11 01 EC [15:00:21]Write i2c OK [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: D1 [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: D1 01 00 [15:00:21]MH_I2C_Read... [15:00:21]Read from MH i2c: D1 01 00 09 11 00 EB [15:00:21]Write to MH i2c: 01 00 00 0A 11 1B [15:00:21]Write i2c OK [15:00:21]MH_I2C_Read... [15:00:21]OFD Sender: No OFD packet to send [15:00:21]*** Cut start [15:00:21]*** Partial cut [15:00:21]*** CUTSNS_PIN = 1 [15:00:22]*** CUTSNS_PIN = 0 [15:00:22]*** Brake cut motor [15:00:22]Read from MH i2c: 01 [15:00:22]MH_I2C_Read... [15:00:22]*** Stop cut motor [15:00:22]*** Cut end [15:00:22]Read from MH i2c: 01 07 00 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: 01 07 00 0A 11 00 00 00 00 00 FF 0F 30 [15:00:22]process_action close_receipt done [15:00:22]requested_data is exist [15:00:22]produce_requested_data [15:00:22]requested_item fm.sn is exist - process it [15:00:22]wFMCommunicate request_size=4 [15:00:22]MH_SAM_APDU [15:00:22]CAPDU: 80 11 00 00 [15:00:22]Write to MH i2c: E2 08 00 0B 11 80 11 00 00 00 00 00 00 96 [15:00:22]Write i2c OK [15:00:22]MH_I2C_Read... [15:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:22]Read from MH i2c: E2 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 17 00 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 17 00 0B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E3 [15:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:00:22]wFMCommunicate OK [15:00:22]requested_item fd.num is exist - process it [15:00:22]SAM_PROTO_GetFieldsCounters [15:00:22]wFMCommunicate request_size=4 [15:00:22]MH_SAM_APDU [15:00:22]CAPDU: 80 13 00 00 [15:00:22]Write to MH i2c: E2 08 00 0C 11 80 13 00 00 00 00 00 00 99 [15:00:22]Write i2c OK [15:00:22]MH_I2C_Read... [15:00:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:22]Read from MH i2c: E2 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 62 00 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 62 00 0C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DD 26 01 00 0E 04 04 00 AD 00 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 EC [15:00:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DD 26 01 00 0E 04 04 00 AD 00 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 [15:00:22]wFMCommunicate OK [15:00:22]SAM_PROTO_GetFieldsCounters done [15:00:22]requested_item shift.num is exist - process it [15:00:22]requested_item shift.opened is exist - process it [15:00:22]req_shift_opened [15:00:22]FM_GetShiftState [15:00:22]SAM_PROTO_GetShiftState [15:00:22]wFMCommunicate request_size=4 [15:00:22]MH_SAM_APDU [15:00:22]CAPDU: 80 13 01 00 [15:00:22]Write to MH i2c: E2 08 00 0D 11 80 13 01 00 00 00 00 00 9B [15:00:22]Write i2c OK [15:00:22]MH_I2C_Read... [15:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:22]Read from MH i2c: E2 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 0E 00 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 0E 00 0D 11 00 09 00 01 99 41 18 67 00 00 00 00 90 00 00 [15:00:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:00:22]wFMCommunicate OK [15:00:22]SAM_PROTO_GetShiftState done [15:00:22]FM_GetShiftState done [15:00:22]req_shift_opened done [15:00:22]requested_item shift.open_date is exist - process it [15:00:22]req_shift_open_date [15:00:22]req_shift_open_date done [15:00:22]produce_requested_data done [15:00:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75485,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:00:22]process_action_free close_receipt [15:00:22]json_value_free [15:00:22]json_value_free done [15:00:22]process_json_proto returns [15:00:22]Send response to host [15:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75485,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:00:22]free response buf [15:00:22]execute_script done [15:00:22]execute_script returns [15:00:22]free content buf [15:00:22]Sock 9.Close socket [15:00:22]Sock 9.Thread stoped [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:01:57]accept exits with 8 [15:01:57]New connection [15:01:57]New thread 3066465636 created [15:01:57]Thread 3066608996 joined [15:01:57]Waiting for new connection... [15:01:57] Sock 8.Parse request [15:01:57]Sock 8.Check first char [15:01:57]Sock 8.First char is OK [15:01:57]request: POST /json_proto HTTP/1.0 [15:01:57]Method: POST [15:01:57]URL: /json_proto [15:01:57]Method is POST - this is cgi request [15:01:57]url: /json_proto [15:01:57]query_string will be loaded in cgi processing [15:01:57]execute_cgi json_proto POST (null) [15:01:57]execute_cgi path=json_proto method=POST [15:01:57]POST find Content-Length [15:01:57]Host: 172.17.44.196:8080 [15:01:57]Content-Length: 752 [15:01:57]Content-Type: application/json [15:01:57] [15:01:57]POST finish read [15:01:57]Found Content-Length = 752 [15:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131454", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:57]execute_script... [15:01: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)1965663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131454", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:57]POST & json_proto [15:01:57]process_json_proto [15:01:57]json parsed OK: [15:01:57]protocol is kg_v1.0 [15:01:57]action value=close_receipt [15:01:57]process_action close_receipt [15:01:57]cmd_close_receipt [15:01:57]MH_GetDate [15:01:57]Write to MH i2c: F0 00 00 0E 11 0E [15:01:57]Write i2c OK [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: F0 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: F0 09 00 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: F0 09 00 0E 11 00 E6 0F 19 67 E7 19 F8 65 E9 [15:01:57]GetLastDocTimeStamp 1729695619 [15:01:57]current date 1729695718 [15:01:57]FM_GetShiftState [15:01:57]SAM_PROTO_GetShiftState [15:01:57]wFMCommunicate request_size=4 [15:01:57]MH_SAM_APDU [15:01:57]CAPDU: 80 13 01 00 [15:01:57]Write to MH i2c: E2 08 00 0F 11 80 13 01 00 00 00 00 00 9D [15:01:57]Write i2c OK [15:01:57]MH_I2C_Read... [15:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:57]Read from MH i2c: E2 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 0E 00 [15:01:57]MH_I2C_Read... [15:01:57]Read from MH i2c: E2 0E 00 0F 11 00 09 00 01 99 41 18 67 00 00 00 00 90 00 02 [15:01:57]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:01:57]wFMCommunicate OK [15:01:57]SAM_PROTO_GetShiftState done [15:01:57]FM_GetShiftState done [15:01:57]opened in 1729642905 [15:01:57]opened+sec_in_day 1729729305 [15:01:57]quantity*price = 0 [15:01:57]sum+1 = 1 [15:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 219 23.10.2024 15:01 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30131454 ФМ: 0000000000963323 ФД: 75486 ФПД: 271911282275416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150158&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75486&fm=271911282275416&tin=02508201610067®Number=0000000000161154&sum=0 [15:01:59]StoreToDocumentArchive [15:01:59]shift 173 fd 75486 [15:01:59]save to /storage/0173/doc_00075486 [15:01:59]save last doc name /storage/0173/doc_00075486 to /storage/kkm_last_doc_name [15:01:59]save OK [15:01:59]Clear old archive folders... [15:01:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:01:59]tlvbuf is 007C8CD0 [15:01:59]SAM_PROTO_ClearQueue [15:01:59]wFMCommunicate request_size=4 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 09 00 00 [15:01:59]Write to MH i2c: E2 08 00 1C 11 80 09 00 00 00 00 00 00 9F [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 1C 11 00 90 00 A1 [15:01:59]RAPDU: 90 00 [15:01:59]wFMCommunicate OK [15:01:59]SAM_PROTO_ClearQueue done [15:01:59]KKMCreateOFDPacket [15:01:59]OFDProtocolAddRootSTLVToBuf [15:01:59]FM_MakeSignedData [15:01:59]FM_MakeSignedData [15:01:59]SAM_PROTO_SignData [15:01:59]wFMCommunicate request_size=4 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 0D 01 02 [15:01:59]Write to MH i2c: E2 08 00 1D 11 80 0D 01 02 00 00 00 00 A7 [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 1D 11 00 90 00 A2 [15:01:59]RAPDU: 90 00 [15:01:59]wFMCommunicate OK [15:01:59]wFMCommunicate request_size=255 [15:01:59]MH_SAM_APDU [15:01: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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E6 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 26 01 00 35 04 06 00 F7 4D 47 63 [15:01:59]Write to MH i2c: E2 02 01 1E 11 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E6 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 26 01 00 35 04 06 00 F7 4D 47 63 00 00 C3 [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 1E 11 00 90 00 A3 [15:01:59]RAPDU: 90 00 [15:01:59]wFMCommunicate OK [15:01:59]wFMCommunicate request_size=7 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 0D 02 02 02 F4 58 [15:01:59]Write to MH i2c: E2 0A 00 1F 11 80 0D 02 02 02 00 F4 58 00 00 FA [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 1F 11 00 90 00 A4 [15:01:59]RAPDU: 90 00 [15:01:59]wFMCommunicate OK [15:01:59]wFMCommunicate request_size=4 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 0D 03 02 [15:01:59]Write to MH i2c: E2 08 00 20 11 80 0D 03 02 00 00 00 00 AC [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 0B 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 0B 00 20 11 00 A5 D1 A3 8F 52 D6 C5 E7 90 00 29 [15:01:59]RAPDU: A5 D1 A3 8F 52 D6 C5 E7 90 00 [15:01:59]wFMCommunicate OK [15:01:59]SAM_PROTO_SignData done [15:01:59]FM_MakeSignedData done [15:01:59]CreateOFDProtocolMessage [15:01:59]wFMCommunicate request_size=4 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 11 00 00 [15:01:59]Write to MH i2c: E2 08 00 21 11 80 11 00 00 00 00 00 00 AC [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 17 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 17 00 21 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F9 [15:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:01:59]wFMCommunicate OK [15:01:59]CreateOFDProtocolMessage done [15:01:59]OFDSenderStorePacket 75486 [15:01:59]StoreOFDPacket docnum=75486 [15:01:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 83 41 04 01 F1 7F 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E6 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 26 01 00 35 04 06 00 F7 4D 47 63 F4 58 A5 D1 A3 8F 52 D6 C5 E7 [15:01:59]CheckFolder [15:01:59]dirname=/storage/ofd_packets [15:01:59]CheckFolder done [15:01:59]ProducePacketName [15:01:59]name=ofd_packets/00075486 [15:01:59]NVStorageSaveData ofd_packets/00075486 [15:01:59]File name is /storage/ofd_packets/00075486 [15:01:59]Write 298 bytes [15:01:59]NVStorageSaveData done [15:01:59]OFDSenderStorePacket done [15:01:59]KKMCreateOFDPacket done [15:01:59]NVStorageSaveData kkm_last_timestamp [15:01:59]File name is /storage/kkm_last_timestamp [15:01:59]Write 4 bytes [15:01:59]NVStorageSaveData done [15:01:59]ExternCall_PrintAddStr [15:01:59]wPrintStart [15:01:59]Write to MH i2c: 01 00 00 22 11 33 [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: 01 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: 01 07 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: 01 07 00 22 11 00 00 00 00 00 FF 0F 48 [15:01:59]RasterBufferAndPrint [15:01:59]line Счет N : (1)1965663 [15:01:59]line ИНН: 02508201610067 [15:01:59]line Контрольно-Кассовый Чек [15:01:59]line ПРОДАЖА [15:01:59]line ТРК (МРК, ГНК) : 21 [15:01:59]line Товар: 2710194210 [15:01:59]line ДТ-К-5 [15:01:59]line 40.000 * 0.00 [15:01:59]line = 0.00 [15:01:59]line НДС 12% НСП 1% [15:01:59]line > о реализуемом товаре [15:01:59]line ИТОГО: 0.00 [15:01:59]line НСП 1% : 0.00 [15:01:59]line НДС 12% : 0.00 [15:01:59]line Наличными: 0.00 [15:01:59]line Безнал.: 0.00 [15:01:59]line Место: АЗС № 133 "Партнер Нефть" [15:01:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:01:59]line СНО: Общий режим [15:01:59]line Чек 219 23.10.2024 15:01 [15:01:59]line Смена: 173 ФФД: 1.0 [15:01:59]line ЗНМ: 0300000020 [15:01:59]line РНМ: 0000000000161154 [15:01:59]line Версия ККМ: v1.0 [15:01:59]line Талоны: ТК ГПНА Online [15:01:59]line 30131454 [15:01:59]line ФМ: 0000000000963323 [15:01:59]line ФД: 75486 [15:01:59]line ФПД: 271911282275416 [15:01:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150158&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75486&fm=271911282275416&tin=02508201610067®Number=0000000000161154&sum=0 [15:01:59]OFD Sender: Processing packet 75486 [packets to send 16, broken 15] [15:01:59]ProducePacketName [15:01:59]name=ofd_packets/00075486 [15:01:59]OFD Sender: To server: pG, [15:01:59]CommunicateWithHost lk.salyk.kg:30040 [15:01:59]ConnectInit lk.salyk.kg [15:01:59]written 0, free lines is 4095 [15:01:59]Connected sock=10 [15:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 83 41 04 01 F1 7F 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E6 0F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DE 26 01 00 35 04 06 00 F7 4D 47 63 F4 58 A5 D1 A3 8F 52 D6 C5 E7 [15:02:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EC 21 47 00 5A 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 39 36 33 33 32 33 10 04 04 00 DE 26 01 00 F4 03 04 00 C1 B8 18 67 B6 04 01 00 00 88 1B 3E D2 45 58 B0 90 [15:02:00]CommunicateWithHost err = 0 [15:02:00]CheckOFDResponse [15:02:00]1017 (14) - 77093643461234 [15:02:00]1041 (16) - 0000000000963323 [15:02:00]1040 (4) - 75486 [15:02:00]1012 (4) - 23.10.2024 08:50 [15:02:00]1206 (1) - 0 [15:02:00]OFD Sender: Remove packet 75486 [15:02:00]ProducePacketName [15:02:00]name=ofd_packets/00075486 [15:02:00]NVStorageDeleteData [15:02:00]Write to MH i2c: 01 00 00 4B 11 5C [15:02:00]Write i2c OK [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: 01 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: 01 07 00 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: 01 07 00 4B 11 00 00 00 00 00 BC 0C 2B [15:02:00]RasterBufferAndPrint [15:02:00]line [15:02:00]line [15:02:00]line [15:02:00]line [15:02:00]line [15:02:00]written 0, free lines is 3263 [15:02:00]MH_Cut [15:02:00]Write to MH i2c: D1 01 00 52 11 01 35 [15:02:00]Write i2c OK [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: D1 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: D1 01 00 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: D1 01 00 52 11 00 34 [15:02:00]Write to MH i2c: 01 00 00 53 11 64 [15:02:00]Write i2c OK [15:02:00]MH_I2C_Read... [15:02:00]OFD Sender: No OFD packet to send [15:02:01]*** Cut start [15:02:01]*** Partial cut [15:02:01]*** CUTSNS_PIN = 1 [15:02:01]*** CUTSNS_PIN = 0 [15:02:01]*** Brake cut motor [15:02:01]Read from MH i2c: 01 [15:02:01]MH_I2C_Read... [15:02:01]*** Stop cut motor [15:02:01]*** Cut end [15:02:01]Read from MH i2c: 01 07 00 [15:02:01]MH_I2C_Read... [15:02:01]Read from MH i2c: 01 07 00 53 11 00 00 00 00 00 FF 0F 79 [15:02:01]process_action close_receipt done [15:02:01]requested_data is exist [15:02:01]produce_requested_data [15:02:01]requested_item fm.sn is exist - process it [15:02:01]wFMCommunicate request_size=4 [15:02:01]MH_SAM_APDU [15:02:01]CAPDU: 80 11 00 00 [15:02:01]Write to MH i2c: E2 08 00 54 11 80 11 00 00 00 00 00 00 DF [15:02:01]Write i2c OK [15:02:01]MH_I2C_Read... [15:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:01]Read from MH i2c: E2 [15:02:01]MH_I2C_Read... [15:02:01]Read from MH i2c: E2 17 00 [15:02:01]MH_I2C_Read... [15:02:01]Read from MH i2c: E2 17 00 54 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2C [15:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:02:01]wFMCommunicate OK [15:02:01]requested_item fd.num is exist - process it [15:02:01]SAM_PROTO_GetFieldsCounters [15:02:01]wFMCommunicate request_size=4 [15:02:01]MH_SAM_APDU [15:02:01]CAPDU: 80 13 00 00 [15:02:01]Write to MH i2c: E2 08 00 55 11 80 13 00 00 00 00 00 00 E2 [15:02:01]Write i2c OK [15:02:01]MH_I2C_Read... [15:02:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:02]Read from MH i2c: E2 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: E2 62 00 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: E2 62 00 55 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DE 26 01 00 0E 04 04 00 AD 00 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 39 [15:02:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DE 26 01 00 0E 04 04 00 AD 00 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 [15:02:02]wFMCommunicate OK [15:02:02]SAM_PROTO_GetFieldsCounters done [15:02:02]requested_item shift.num is exist - process it [15:02:02]requested_item shift.opened is exist - process it [15:02:02]req_shift_opened [15:02:02]FM_GetShiftState [15:02:02]SAM_PROTO_GetShiftState [15:02:02]wFMCommunicate request_size=4 [15:02:02]MH_SAM_APDU [15:02:02]CAPDU: 80 13 01 00 [15:02:02]Write to MH i2c: E2 08 00 56 11 80 13 01 00 00 00 00 00 E4 [15:02:02]Write i2c OK [15:02:02]MH_I2C_Read... [15:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:02]Read from MH i2c: E2 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: E2 0E 00 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: E2 0E 00 56 11 00 09 00 01 99 41 18 67 00 00 00 00 90 00 49 [15:02:02]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:02:02]wFMCommunicate OK [15:02:02]SAM_PROTO_GetShiftState done [15:02:02]FM_GetShiftState done [15:02:02]req_shift_opened done [15:02:02]requested_item shift.open_date is exist - process it [15:02:02]req_shift_open_date [15:02:02]req_shift_open_date done [15:02:02]produce_requested_data done [15:02:02]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75486,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:02:02]process_action_free close_receipt [15:02:02]json_value_free [15:02:02]json_value_free done [15:02:02]process_json_proto returns [15:02:02]Send response to host [15:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75486,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:02:02]free response buf [15:02:02]execute_script done [15:02:02]execute_script returns [15:02:02]free content buf [15:02:02]Sock 8.Close socket [15:02:02]Sock 8.Thread stoped [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:47]accept exits with 9 [15:02:47]New connection [15:02:47]New thread 3066608996 created [15:02:47]Thread 3066465636 joined [15:02:47]Waiting for new connection... [15:02:47] Sock 9.Parse request [15:02:47]Sock 9.Check first char [15:02:47]Sock 9.First char is OK [15:02:47]request: POST /json_proto HTTP/1.0 [15:02:47]Method: POST [15:02:47]URL: /json_proto [15:02:47]Method is POST - this is cgi request [15:02:47]url: /json_proto [15:02:47]query_string will be loaded in cgi processing [15:02:47]execute_cgi json_proto POST (null) [15:02:47]execute_cgi path=json_proto method=POST [15:02:47]POST find Content-Length [15:02:47]Host: 172.17.44.196:8080 [15:02:47]Content-Length: 677 [15:02:47]Content-Type: application/json [15:02:47] [15:02:47]POST finish read [15:02:47]Found Content-Length = 677 [15:02:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 42.810, "sum" : 1665.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1665.00, "payments": [ { "type": 0, "sum" : 1665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:47]execute_script... [15:02: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)1965661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 42.810, "sum" : 1665.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1665.00, "payments": [ { "type": 0, "sum" : 1665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:47]POST & json_proto [15:02:47]process_json_proto [15:02:47]json parsed OK: [15:02:47]protocol is kg_v1.0 [15:02:47]action value=close_receipt [15:02:47]process_action close_receipt [15:02:47]cmd_close_receipt [15:02:47]MH_GetDate [15:02:47]Write to MH i2c: F0 00 00 57 11 57 [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: F0 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: F0 09 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: F0 09 00 57 11 00 18 10 19 67 E7 19 F8 65 65 [15:02:47]GetLastDocTimeStamp 1729695718 [15:02:47]current date 1729695768 [15:02:47]FM_GetShiftState [15:02:47]SAM_PROTO_GetShiftState [15:02:47]wFMCommunicate request_size=4 [15:02:47]MH_SAM_APDU [15:02:47]CAPDU: 80 13 01 00 [15:02:47]Write to MH i2c: E2 08 00 58 11 80 13 01 00 00 00 00 00 E6 [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:47]Read from MH i2c: E2 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 0E 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 0E 00 58 11 00 09 00 01 99 41 18 67 00 00 00 00 90 00 4B [15:02:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:02:47]wFMCommunicate OK [15:02:47]SAM_PROTO_GetShiftState done [15:02:47]FM_GetShiftState done [15:02:47]opened in 1729642905 [15:02:47]opened+sec_in_day 1729729305 [15:02:47]quantity*price = 166530 [15:02:47]sum+1 = 166532 [15:02:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 1665.00 Внесено: 3000.00 СДАЧА: 1335.00 НСП 1% : 14.74 НДС 12% : 176.85 Наличными: 1665.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 220 23.10.2024 15:02 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75487 ФПД: 232943025094921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150248&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75487&fm=232943025094921&tin=02508201610067®Number=0000000000161154&sum=166500 [15:02:48]StoreToDocumentArchive [15:02:48]shift 173 fd 75487 [15:02:48]save to /storage/0173/doc_00075487 [15:02:48]save last doc name /storage/0173/doc_00075487 to /storage/kkm_last_doc_name [15:02:48]save OK [15:02:48]Clear old archive folders... [15:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=245 [15:02:48]tlvbuf is 007C8A20 [15:02:48]SAM_PROTO_ClearQueue [15:02:48]wFMCommunicate request_size=4 [15:02:48]MH_SAM_APDU [15:02:48]CAPDU: 80 09 00 00 [15:02:48]Write to MH i2c: E2 08 00 65 11 80 09 00 00 00 00 00 00 E8 [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:48]Read from MH i2c: E2 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 65 11 00 90 00 EA [15:02:48]RAPDU: 90 00 [15:02:48]wFMCommunicate OK [15:02:48]SAM_PROTO_ClearQueue done [15:02:48]KKMCreateOFDPacket [15:02:48]OFDProtocolAddRootSTLVToBuf [15:02:48]FM_MakeSignedData [15:02:48]FM_MakeSignedData [15:02:48]SAM_PROTO_SignData [15:02:48]wFMCommunicate request_size=4 [15:02:48]MH_SAM_APDU [15:02:48]CAPDU: 80 0D 01 02 [15:02:48]Write to MH i2c: E2 08 00 66 11 80 0D 01 02 00 00 00 00 F0 [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:48]Read from MH i2c: E2 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 66 11 00 90 00 EB [15:02:48]RAPDU: 90 00 [15:02:48]wFMCommunicate OK [15:02:48]wFMCommunicate request_size=254 [15:02:48]MH_SAM_APDU [15:02:48]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3A A7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 83 8A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 8A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 45 00 00 00 00 07 04 06 00 64 8A 02 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 18 10 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 26 01 00 35 04 06 00 D3 DC 46 43 81 09 [15:02:48]Write to MH i2c: E2 01 01 67 11 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3A A7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 83 8A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 8A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 45 00 00 00 00 07 04 06 00 64 8A 02 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 18 10 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 26 01 00 35 04 06 00 D3 DC 46 43 81 09 00 00 BE [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:48]Read from MH i2c: E2 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 03 00 67 11 00 90 00 EC [15:02:48]RAPDU: 90 00 [15:02:48]wFMCommunicate OK [15:02:48]wFMCommunicate request_size=4 [15:02:48]MH_SAM_APDU [15:02:48]CAPDU: 80 0D 03 02 [15:02:48]Write to MH i2c: E2 08 00 68 11 80 0D 03 02 00 00 00 00 F4 [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:48]Read from MH i2c: E2 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 0B 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 0B 00 68 11 00 5A F9 2F 3F 46 A3 8B 57 90 00 81 [15:02:48]RAPDU: 5A F9 2F 3F 46 A3 8B 57 90 00 [15:02:48]wFMCommunicate OK [15:02:48]SAM_PROTO_SignData done [15:02:48]FM_MakeSignedData done [15:02:48]CreateOFDProtocolMessage [15:02:48]wFMCommunicate request_size=4 [15:02:48]MH_SAM_APDU [15:02:48]CAPDU: 80 11 00 00 [15:02:48]Write to MH i2c: E2 08 00 69 11 80 11 00 00 00 00 00 00 F4 [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:48]Read from MH i2c: E2 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 17 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: E2 17 00 69 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 41 [15:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:02:48]wFMCommunicate OK [15:02:48]CreateOFDProtocolMessage done [15:02:48]OFDSenderStorePacket 75487 [15:02:48]StoreOFDPacket docnum=75487 [15:02:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 F0 6D 01 01 35 61 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3A A7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 83 8A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 8A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 45 00 00 00 00 07 04 06 00 64 8A 02 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 18 10 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 26 01 00 35 04 06 00 D3 DC 46 43 81 09 5A F9 2F 3F 46 A3 8B 57 [15:02:48]CheckFolder [15:02:48]dirname=/storage/ofd_packets [15:02:48]CheckFolder done [15:02:48]ProducePacketName [15:02:48]name=ofd_packets/00075487 [15:02:48]NVStorageSaveData ofd_packets/00075487 [15:02:48]File name is /storage/ofd_packets/00075487 [15:02:48]Write 295 bytes [15:02:48]NVStorageSaveData done [15:02:48]OFDSenderStorePacket done [15:02:48]KKMCreateOFDPacket done [15:02:48]NVStorageSaveData kkm_last_timestamp [15:02:48]File name is /storage/kkm_last_timestamp [15:02:48]Write 4 bytes [15:02:48]NVStorageSaveData done [15:02:48]ExternCall_PrintAddStr [15:02:48]wPrintStart [15:02:48]Write to MH i2c: 01 00 00 6A 11 7B [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: 01 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: 01 07 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: 01 07 00 6A 11 00 00 00 00 00 FF 0F 90 [15:02:48]RasterBufferAndPrint [15:02:48]line Счет N : (1)1965661 [15:02:48]line ИНН: 02508201610067 [15:02:48]line Контрольно-Кассовый Чек [15:02:48]line ПРОДАЖА [15:02:48]line ТРК (МРК, ГНК) : 71 [15:02:48]line Товар: 2711129700 [15:02:48]line ГАЗ [15:02:48]line 42.810 * 38.90 [15:02:48]line = 1665.31 [15:02:48]line НДС 12% НСП 1% [15:02:48]line > о реализуемом товаре [15:02:48]line ОКРУГЛЕНИЕ: -0.31 [15:02:48]line ИТОГО: 1665.00 [15:02:48]line Внесено: 3000.00 [15:02:48]line СДАЧА: 1335.00 [15:02:48]line НСП 1% : 14.74 [15:02:48]line НДС 12% : 176.85 [15:02:48]line Наличными: 1665.00 [15:02:48]line Безнал.: 0.00 [15:02:48]line Место: АЗС № 133 "Партнер Нефть" [15:02:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:02:48]line СНО: Общий режим [15:02:48]line Чек 220 23.10.2024 15:02 [15:02:48]line Смена: 173 ФФД: 1.0 [15:02:48]line ЗНМ: 0300000020 [15:02:48]line РНМ: 0000000000161154 [15:02:48]line Версия ККМ: v1.0 [15:02:48]line ФМ: 0000000000963323 [15:02:48]line ФД: 75487 [15:02:48]line ФПД: 232943025094921 [15:02:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150248&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75487&fm=232943025094921&tin=02508201610067®Number=0000000000161154&sum=166500 [15:02:49]OFD Sender: Processing packet 75487 [packets to send 16, broken 15] [15:02:49]ProducePacketName [15:02:49]name=ofd_packets/00075487 [15:02:49]OFD Sender: To server: pG, [15:02:49]CommunicateWithHost lk.salyk.kg:30040 [15:02:49]ConnectInit lk.salyk.kg [15:02:49]written 0, free lines is 4095 [15:02:49]Connected sock=10 [15:02:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 F0 6D 01 01 35 61 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 3A A7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 83 8A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 8A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 45 00 00 00 00 07 04 06 00 64 8A 02 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 18 10 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 26 01 00 35 04 06 00 D3 DC 46 43 81 09 5A F9 2F 3F 46 A3 8B 57 [15:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 85 82 47 00 06 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 DF 26 01 00 F4 03 04 00 F2 B8 18 67 B6 04 01 00 00 DE B9 97 46 B3 97 F2 6B [15:02:49]CommunicateWithHost err = 0 [15:02:49]CheckOFDResponse [15:02:49]1017 (14) - 77093643461234 [15:02:49]1041 (16) - 0000000000963323 [15:02:49]1040 (4) - 75487 [15:02:49]1012 (4) - 23.10.2024 08:50 [15:02:49]1206 (1) - 0 [15:02:49]OFD Sender: Remove packet 75487 [15:02:49]ProducePacketName [15:02:49]name=ofd_packets/00075487 [15:02:49]NVStorageDeleteData [15:02:49]Write to MH i2c: 01 00 00 94 11 A5 [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: 01 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: 01 07 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: 01 07 00 94 11 00 00 00 00 00 AD 0C 65 [15:02:49]RasterBufferAndPrint [15:02:49]line [15:02:49]line [15:02:49]line [15:02:49]line [15:02:49]line [15:02:49]written 0, free lines is 3248 [15:02:49]MH_Cut [15:02:49]Write to MH i2c: D1 01 00 9B 11 01 7E [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: D1 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: D1 01 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: D1 01 00 9B 11 00 7D [15:02:49]Write to MH i2c: 01 00 00 9C 11 AD [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:50]OFD Sender: No OFD packet to send [15:02:50]*** Cut start [15:02:50]*** Partial cut [15:02:50]*** CUTSNS_PIN = 1 [15:02:50]*** CUTSNS_PIN = 0 [15:02:50]*** Brake cut motor [15:02:51]Read from MH i2c: 01 [15:02:51]MH_I2C_Read... [15:02:51]*** Stop cut motor [15:02:51]*** Cut end [15:02:51]Read from MH i2c: 01 07 00 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: 01 07 00 9C 11 00 00 00 00 00 FF 0F C2 [15:02:51]process_action close_receipt done [15:02:51]requested_data is exist [15:02:51]produce_requested_data [15:02:51]requested_item fm.sn is exist - process it [15:02:51]wFMCommunicate request_size=4 [15:02:51]MH_SAM_APDU [15:02:51]CAPDU: 80 11 00 00 [15:02:51]Write to MH i2c: E2 08 00 9D 11 80 11 00 00 00 00 00 00 28 [15:02:51]Write i2c OK [15:02:51]MH_I2C_Read... [15:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:51]Read from MH i2c: E2 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 17 00 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 17 00 9D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 75 [15:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:02:51]wFMCommunicate OK [15:02:51]requested_item fd.num is exist - process it [15:02:51]SAM_PROTO_GetFieldsCounters [15:02:51]wFMCommunicate request_size=4 [15:02:51]MH_SAM_APDU [15:02:51]CAPDU: 80 13 00 00 [15:02:51]Write to MH i2c: E2 08 00 9E 11 80 13 00 00 00 00 00 00 2B [15:02:51]Write i2c OK [15:02:51]MH_I2C_Read... [15:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:51]Read from MH i2c: E2 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 62 00 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 62 00 9E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DF 26 01 00 0E 04 04 00 AD 00 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 86 [15:02:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 DF 26 01 00 0E 04 04 00 AD 00 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 [15:02:51]wFMCommunicate OK [15:02:51]SAM_PROTO_GetFieldsCounters done [15:02:51]requested_item shift.num is exist - process it [15:02:51]requested_item shift.opened is exist - process it [15:02:51]req_shift_opened [15:02:51]FM_GetShiftState [15:02:51]SAM_PROTO_GetShiftState [15:02:51]wFMCommunicate request_size=4 [15:02:51]MH_SAM_APDU [15:02:51]CAPDU: 80 13 01 00 [15:02:51]Write to MH i2c: E2 08 00 9F 11 80 13 01 00 00 00 00 00 2D [15:02:51]Write i2c OK [15:02:51]MH_I2C_Read... [15:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:51]Read from MH i2c: E2 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 0E 00 [15:02:51]MH_I2C_Read... [15:02:51]Read from MH i2c: E2 0E 00 9F 11 00 09 00 01 99 41 18 67 00 00 00 00 90 00 92 [15:02:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:02:51]wFMCommunicate OK [15:02:51]SAM_PROTO_GetShiftState done [15:02:51]FM_GetShiftState done [15:02:51]req_shift_opened done [15:02:51]requested_item shift.open_date is exist - process it [15:02:51]req_shift_open_date [15:02:51]req_shift_open_date done [15:02:51]produce_requested_data done [15:02:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75487,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:02:51]process_action_free close_receipt [15:02:51]json_value_free [15:02:51]json_value_free done [15:02:51]process_json_proto returns [15:02:51]Send response to host [15:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75487,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:02:51]free response buf [15:02:51]execute_script done [15:02:51]execute_script returns [15:02:51]free content buf [15:02:51]Sock 9.Close socket [15:02:51]Sock 9.Thread stoped [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:10]accept exits with 8 [15:04:10]New connection [15:04:10]New thread 3066465636 created [15:04:10]Thread 3066608996 joined [15:04:10]Waiting for new connection... [15:04:10] Sock 8.Parse request [15:04:10]Sock 8.Check first char [15:04:10]Sock 8.First char is OK [15:04:10]request: POST /json_proto HTTP/1.0 [15:04:10]Method: POST [15:04:10]URL: /json_proto [15:04:10]Method is POST - this is cgi request [15:04:10]url: /json_proto [15:04:10]query_string will be loaded in cgi processing [15:04:10]execute_cgi json_proto POST (null) [15:04:10]execute_cgi path=json_proto method=POST [15:04:10]POST find Content-Length [15:04:10]Host: 172.17.44.196:8080 [15:04:10]Content-Length: 664 [15:04:10]Content-Type: application/json [15:04:10] [15:04:10]POST finish read [15:04:10]Found Content-Length = 664 [15:04:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:04:10]execute_script... [15:04:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "SU-92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:04:10]POST & json_proto [15:04:10]process_json_proto [15:04:10]json parsed OK: [15:04:10]protocol is kg_v1.0 [15:04:10]action value=close_receipt [15:04:10]process_action close_receipt [15:04:10]cmd_close_receipt [15:04:10]MH_GetDate [15:04:10]Write to MH i2c: F0 00 00 A0 11 A0 [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: F0 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: F0 09 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: F0 09 00 A0 11 00 6B 10 19 67 E7 19 F8 65 01 [15:04:10]GetLastDocTimeStamp 1729695768 [15:04:10]current date 1729695851 [15:04:10]FM_GetShiftState [15:04:10]SAM_PROTO_GetShiftState [15:04:10]wFMCommunicate request_size=4 [15:04:10]MH_SAM_APDU [15:04:10]CAPDU: 80 13 01 00 [15:04:10]Write to MH i2c: E2 08 00 A1 11 80 13 01 00 00 00 00 00 2F [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:10]Read from MH i2c: E2 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: E2 0E 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: E2 0E 00 A1 11 00 09 00 01 99 41 18 67 00 00 00 00 90 00 94 [15:04:10]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:04:10]wFMCommunicate OK [15:04:10]SAM_PROTO_GetShiftState done [15:04:10]FM_GetShiftState done [15:04:10]opened in 1729642905 [15:04:10]opened+sec_in_day 1729729305 [15:04:10]quantity*price = 100000 [15:04:10]sum+1 = 100002 [15:04:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 221 23.10.2024 15:04 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75488 ФПД: 28439317794721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150411&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75488&fm=28439317794721&tin=02508201610067®Number=0000000000161154&sum=100000 [15:04:11]StoreToDocumentArchive [15:04:11]shift 173 fd 75488 [15:04:11]save to /storage/0173/doc_00075488 [15:04:11]save last doc name /storage/0173/doc_00075488 to /storage/kkm_last_doc_name [15:04:11]save OK [15:04:11]Clear old archive folders... [15:04:11]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:04:11]tlvbuf is 0079AFB0 [15:04:11]SAM_PROTO_ClearQueue [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 09 00 00 [15:04:11]Write to MH i2c: E2 08 00 AE 11 80 09 00 00 00 00 00 00 31 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 AE 11 00 90 00 33 [15:04:11]RAPDU: 90 00 [15:04:11]wFMCommunicate OK [15:04:11]SAM_PROTO_ClearQueue done [15:04:11]KKMCreateOFDPacket [15:04:11]OFDProtocolAddRootSTLVToBuf [15:04:11]FM_MakeSignedData [15:04:11]FM_MakeSignedData [15:04:11]SAM_PROTO_SignData [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 0D 01 02 [15:04:11]Write to MH i2c: E2 08 00 AF 11 80 0D 01 02 00 00 00 00 39 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 AF 11 00 90 00 34 [15:04:11]RAPDU: 90 00 [15:04:11]wFMCommunicate OK [15:04:11]wFMCommunicate request_size=253 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 00 00 00 F4 03 04 00 6B 10 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 26 01 00 35 04 06 00 19 DD 8B 6F 4F A1 [15:04:11]Write to MH i2c: E2 00 01 B0 11 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 00 00 00 F4 03 04 00 6B 10 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 26 01 00 35 04 06 00 19 DD 8B 6F 4F A1 00 00 0A [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 B0 11 00 90 00 35 [15:04:11]RAPDU: 90 00 [15:04:11]wFMCommunicate OK [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 0D 03 02 [15:04:11]Write to MH i2c: E2 08 00 B1 11 80 0D 03 02 00 00 00 00 3D [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 0B 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 0B 00 B1 11 00 19 F5 7A 57 1C EE 56 16 90 00 93 [15:04:11]RAPDU: 19 F5 7A 57 1C EE 56 16 90 00 [15:04:11]wFMCommunicate OK [15:04:11]SAM_PROTO_SignData done [15:04:11]FM_MakeSignedData done [15:04:11]CreateOFDProtocolMessage [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 11 00 00 [15:04:11]Write to MH i2c: E2 08 00 B2 11 80 11 00 00 00 00 00 00 3D [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 17 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 17 00 B2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [15:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:04:11]wFMCommunicate OK [15:04:11]CreateOFDProtocolMessage done [15:04:11]OFDSenderStorePacket 75488 [15:04:11]StoreOFDPacket docnum=75488 [15:04:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 74 C5 00 01 94 CB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 00 00 00 F4 03 04 00 6B 10 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 26 01 00 35 04 06 00 19 DD 8B 6F 4F A1 19 F5 7A 57 1C EE 56 16 [15:04:11]CheckFolder [15:04:11]dirname=/storage/ofd_packets [15:04:11]CheckFolder done [15:04:11]ProducePacketName [15:04:11]name=ofd_packets/00075488 [15:04:11]NVStorageSaveData ofd_packets/00075488 [15:04:11]File name is /storage/ofd_packets/00075488 [15:04:11]Write 294 bytes [15:04:11]NVStorageSaveData done [15:04:11]OFDSenderStorePacket done [15:04:11]KKMCreateOFDPacket done [15:04:11]NVStorageSaveData kkm_last_timestamp [15:04:11]File name is /storage/kkm_last_timestamp [15:04:11]Write 4 bytes [15:04:11]NVStorageSaveData done [15:04:11]ExternCall_PrintAddStr [15:04:11]wPrintStart [15:04:11]Write to MH i2c: 01 00 00 B3 11 C4 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: 01 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: 01 07 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: 01 07 00 B3 11 00 00 00 00 00 FF 0F D9 [15:04:11]RasterBufferAndPrint [15:04:11]line Счет N : (1)1965667 [15:04:11]line ИНН: 02508201610067 [15:04:11]line Контрольно-Кассовый Чек [15:04:11]line ПРОДАЖА [15:04:11]line ТРК (МРК, ГНК) : 62 [15:04:11]line Товар: 2710124130 [15:04:11]line SU-92 [15:04:11]line 14.620 * 68.40 [15:04:11]line = 1000.01 [15:04:11]line НДС 12% НСП 1% [15:04:11]line > о реализуемом товаре [15:04:11]line ОКРУГЛЕНИЕ: -0.01 [15:04:11]line ИТОГО: 1000.00 [15:04:11]line Внесено: 1000.00 [15:04:11]line СДАЧА: 0.00 [15:04:11]line НСП 1% : 8.85 [15:04:11]line НДС 12% : 106.20 [15:04:11]line Наличными: 1000.00 [15:04:11]line Безнал.: 0.00 [15:04:11]line Место: АЗС № 133 "Партнер Нефть" [15:04:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:04:11]line СНО: Общий режим [15:04:11]line Чек 221 23.10.2024 15:04 [15:04:11]line Смена: 173 ФФД: 1.0 [15:04:11]line ЗНМ: 0300000020 [15:04:11]line РНМ: 0000000000161154 [15:04:11]line Версия ККМ: v1.0 [15:04:11]line ФМ: 0000000000963323 [15:04:11]line ФД: 75488 [15:04:11]line ФПД: 28439317794721 [15:04:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150411&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75488&fm=28439317794721&tin=02508201610067®Number=0000000000161154&sum=100000 [15:04:12]OFD Sender: Processing packet 75488 [packets to send 16, broken 15] [15:04:12]ProducePacketName [15:04:12]name=ofd_packets/00075488 [15:04:12]OFD Sender: To server: pG, [15:04:12]CommunicateWithHost lk.salyk.kg:30040 [15:04:12]ConnectInit lk.salyk.kg [15:04:12]written 0, free lines is 4095 [15:04:12]Connected sock=10 [15:04:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 08 01 00 00 74 C5 00 01 94 CB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 00 00 00 F4 03 04 00 6B 10 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 26 01 00 35 04 06 00 19 DD 8B 6F 4F A1 19 F5 7A 57 1C EE 56 16 [15:04:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6D 84 47 00 22 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E0 26 01 00 F4 03 04 00 45 B9 18 67 B6 04 01 00 00 56 31 03 25 A2 8A B9 F7 [15:04:12]CommunicateWithHost err = 0 [15:04:12]CheckOFDResponse [15:04:12]1017 (14) - 77093643461234 [15:04:12]1041 (16) - 0000000000963323 [15:04:12]1040 (4) - 75488 [15:04:12]1012 (4) - 23.10.2024 08:52 [15:04:12]1206 (1) - 0 [15:04:12]OFD Sender: Remove packet 75488 [15:04:12]ProducePacketName [15:04:12]name=ofd_packets/00075488 [15:04:12]NVStorageDeleteData [15:04:12]Write to MH i2c: 01 00 00 DD 11 EE [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: 01 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: 01 07 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: 01 07 00 DD 11 00 00 00 00 00 A6 0C A7 [15:04:12]RasterBufferAndPrint [15:04:12]line [15:04:12]line [15:04:12]line [15:04:12]line [15:04:12]line [15:04:12]written 0, free lines is 3242 [15:04:12]MH_Cut [15:04:12]Write to MH i2c: D1 01 00 E4 11 01 C7 [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: D1 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: D1 01 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: D1 01 00 E4 11 00 C6 [15:04:12]Write to MH i2c: 01 00 00 E5 11 F6 [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:13]OFD Sender: No OFD packet to send [15:04:13]*** Cut start [15:04:13]*** Partial cut [15:04:13]*** CUTSNS_PIN = 1 [15:04:13]*** CUTSNS_PIN = 0 [15:04:13]*** Brake cut motor [15:04:14]Read from MH i2c: 01 [15:04:14]MH_I2C_Read... [15:04:14]*** Stop cut motor [15:04:14]*** Cut end [15:04:14]Read from MH i2c: 01 07 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: 01 07 00 E5 11 00 00 00 00 00 FF 0F 0B [15:04:14]process_action close_receipt done [15:04:14]requested_data is exist [15:04:14]produce_requested_data [15:04:14]requested_item fm.sn is exist - process it [15:04:14]wFMCommunicate request_size=4 [15:04:14]MH_SAM_APDU [15:04:14]CAPDU: 80 11 00 00 [15:04:14]Write to MH i2c: E2 08 00 E6 11 80 11 00 00 00 00 00 00 71 [15:04:14]Write i2c OK [15:04:14]MH_I2C_Read... [15:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:14]Read from MH i2c: E2 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 17 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 17 00 E6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BE [15:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:04:14]wFMCommunicate OK [15:04:14]requested_item fd.num is exist - process it [15:04:14]SAM_PROTO_GetFieldsCounters [15:04:14]wFMCommunicate request_size=4 [15:04:14]MH_SAM_APDU [15:04:14]CAPDU: 80 13 00 00 [15:04:14]Write to MH i2c: E2 08 00 E7 11 80 13 00 00 00 00 00 00 74 [15:04:14]Write i2c OK [15:04:14]MH_I2C_Read... [15:04:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:14]Read from MH i2c: E2 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 62 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 62 00 E7 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E0 26 01 00 0E 04 04 00 AD 00 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 D3 [15:04:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E0 26 01 00 0E 04 04 00 AD 00 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 [15:04:14]wFMCommunicate OK [15:04:14]SAM_PROTO_GetFieldsCounters done [15:04:14]requested_item shift.num is exist - process it [15:04:14]requested_item shift.opened is exist - process it [15:04:14]req_shift_opened [15:04:14]FM_GetShiftState [15:04:14]SAM_PROTO_GetShiftState [15:04:14]wFMCommunicate request_size=4 [15:04:14]MH_SAM_APDU [15:04:14]CAPDU: 80 13 01 00 [15:04:14]Write to MH i2c: E2 08 00 E8 11 80 13 01 00 00 00 00 00 76 [15:04:14]Write i2c OK [15:04:14]MH_I2C_Read... [15:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:14]Read from MH i2c: E2 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 0E 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 0E 00 E8 11 00 09 00 01 99 41 18 67 00 00 00 00 90 00 DB [15:04:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:04:14]wFMCommunicate OK [15:04:14]SAM_PROTO_GetShiftState done [15:04:14]FM_GetShiftState done [15:04:14]req_shift_opened done [15:04:14]requested_item shift.open_date is exist - process it [15:04:14]req_shift_open_date [15:04:14]req_shift_open_date done [15:04:14]produce_requested_data done [15:04:14]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75488,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:04:14]process_action_free close_receipt [15:04:14]json_value_free [15:04:14]json_value_free done [15:04:14]process_json_proto returns [15:04:14]Send response to host [15:04:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75488,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:04:14]free response buf [15:04:14]execute_script done [15:04:14]execute_script returns [15:04:14]free content buf [15:04:14]Sock 8.Close socket [15:04:14]Sock 8.Thread stoped [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:54]accept exits with 9 [15:07:54]New connection [15:07:54]New thread 3066608996 created [15:07:54]Thread 3066465636 joined [15:07:54]Waiting for new connection... [15:07:54] Sock 9.Parse request [15:07:54]Sock 9.Check first char [15:07:54]Sock 9.First char is OK [15:07:54]request: POST /json_proto HTTP/1.0 [15:07:54]Method: POST [15:07:54]URL: /json_proto [15:07:54]Method is POST - this is cgi request [15:07:54]url: /json_proto [15:07:54]query_string will be loaded in cgi processing [15:07:54]execute_cgi json_proto POST (null) [15:07:54]execute_cgi path=json_proto method=POST [15:07:54]POST find Content-Length [15:07:54]Host: 172.17.44.196:8080 [15:07:54]Content-Length: 678 [15:07:54]Content-Type: application/json [15:07:54] [15:07:54]POST finish read [15:07:54]Found Content-Length = 678 [15:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [15:07:54]execute_script... [15:07:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [15:07:54]POST & json_proto [15:07:54]process_json_proto [15:07:54]json parsed OK: [15:07:54]protocol is kg_v1.0 [15:07:54]action value=close_receipt [15:07:54]process_action close_receipt [15:07:54]cmd_close_receipt [15:07:54]MH_GetDate [15:07:54]Write to MH i2c: F0 00 00 E9 11 E9 [15:07:54]Write i2c OK [15:07:54]MH_I2C_Read... [15:07:54]Read from MH i2c: F0 [15:07:54]MH_I2C_Read... [15:07:54]Read from MH i2c: F0 09 00 [15:07:54]MH_I2C_Read... [15:07:54]Read from MH i2c: F0 09 00 E9 11 00 4B 11 19 67 E7 19 F8 65 2B [15:07:54]GetLastDocTimeStamp 1729695851 [15:07:54]current date 1729696075 [15:07:54]FM_GetShiftState [15:07:54]SAM_PROTO_GetShiftState [15:07:54]wFMCommunicate request_size=4 [15:07:54]MH_SAM_APDU [15:07:54]CAPDU: 80 13 01 00 [15:07:54]Write to MH i2c: E2 08 00 EA 11 80 13 01 00 00 00 00 00 78 [15:07:54]Write i2c OK [15:07:54]MH_I2C_Read... [15:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:54]Read from MH i2c: E2 [15:07:54]MH_I2C_Read... [15:07:54]Read from MH i2c: E2 0E 00 [15:07:54]MH_I2C_Read... [15:07:54]Read from MH i2c: E2 0E 00 EA 11 00 09 00 01 99 41 18 67 00 00 00 00 90 00 DD [15:07:54]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:07:54]wFMCommunicate OK [15:07:54]SAM_PROTO_GetShiftState done [15:07:54]FM_GetShiftState done [15:07:54]opened in 1729642905 [15:07:54]opened+sec_in_day 1729729305 [15:07:54]quantity*price = 50041 [15:07:54]sum+1 = 50042 [15:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 222 23.10.2024 15:07 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75489 ФПД: 212813635919346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150755&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75489&fm=212813635919346&tin=02508201610067®Number=0000000000161154&sum=50000 [15:07:55]StoreToDocumentArchive [15:07:55]shift 173 fd 75489 [15:07:55]save to /storage/0173/doc_00075489 [15:07:55]save last doc name /storage/0173/doc_00075489 to /storage/kkm_last_doc_name [15:07:55]save OK [15:07:55]Clear old archive folders... [15:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:55]tlvbuf is 007B4930 [15:07:55]SAM_PROTO_ClearQueue [15:07:55]wFMCommunicate request_size=4 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 09 00 00 [15:07:55]Write to MH i2c: E2 08 00 F7 11 80 09 00 00 00 00 00 00 7A [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:56]Read from MH i2c: E2 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 03 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 03 00 F7 11 00 90 00 7C [15:07:56]RAPDU: 90 00 [15:07:56]wFMCommunicate OK [15:07:56]SAM_PROTO_ClearQueue done [15:07:56]KKMCreateOFDPacket [15:07:56]OFDProtocolAddRootSTLVToBuf [15:07:56]FM_MakeSignedData [15:07:56]FM_MakeSignedData [15:07:56]SAM_PROTO_SignData [15:07:56]wFMCommunicate request_size=4 [15:07:56]MH_SAM_APDU [15:07:56]CAPDU: 80 0D 01 02 [15:07:56]Write to MH i2c: E2 08 00 F8 11 80 0D 01 02 00 00 00 00 82 [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:56]Read from MH i2c: E2 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 03 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 03 00 F8 11 00 90 00 7D [15:07:56]RAPDU: 90 00 [15:07:56]wFMCommunicate OK [15:07:56]wFMCommunicate request_size=255 [15:07:56]MH_SAM_APDU [15:07: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 DE 00 00 00 F4 03 04 00 4B 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 26 01 00 35 04 06 00 C1 [15:07:56]Write to MH i2c: E2 02 01 F9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 DE 00 00 00 F4 03 04 00 4B 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 26 01 00 35 04 06 00 C1 00 00 34 [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:56]Read from MH i2c: E2 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 03 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 03 00 F9 11 00 90 00 7E [15:07:56]RAPDU: 90 00 [15:07:56]wFMCommunicate OK [15:07:56]wFMCommunicate request_size=10 [15:07:56]MH_SAM_APDU [15:07:56]CAPDU: 80 0D 02 02 05 8D 89 2C 1D F2 [15:07:56]Write to MH i2c: E2 0D 00 FA 11 80 0D 02 02 05 00 8D 89 2C 1D F2 00 00 E0 [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:56]Read from MH i2c: E2 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 03 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 03 00 FA 11 00 90 00 7F [15:07:56]RAPDU: 90 00 [15:07:56]wFMCommunicate OK [15:07:56]wFMCommunicate request_size=4 [15:07:56]MH_SAM_APDU [15:07:56]CAPDU: 80 0D 03 02 [15:07:56]Write to MH i2c: E2 08 00 FB 11 80 0D 03 02 00 00 00 00 87 [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:56]Read from MH i2c: E2 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 0B 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 0B 00 FB 11 00 9F 92 16 B4 4E B9 05 AB 90 00 3A [15:07:56]RAPDU: 9F 92 16 B4 4E B9 05 AB 90 00 [15:07:56]wFMCommunicate OK [15:07:56]SAM_PROTO_SignData done [15:07:56]FM_MakeSignedData done [15:07:56]CreateOFDProtocolMessage [15:07:56]wFMCommunicate request_size=4 [15:07:56]MH_SAM_APDU [15:07:56]CAPDU: 80 11 00 00 [15:07:56]Write to MH i2c: E2 08 00 FC 11 80 11 00 00 00 00 00 00 87 [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:56]Read from MH i2c: E2 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 17 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: E2 17 00 FC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D4 [15:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:07:56]wFMCommunicate OK [15:07:56]CreateOFDProtocolMessage done [15:07:56]OFDSenderStorePacket 75489 [15:07:56]StoreOFDPacket docnum=75489 [15:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 ED 54 07 01 3D 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 DE 00 00 00 F4 03 04 00 4B 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 26 01 00 35 04 06 00 C1 8D 89 2C 1D F2 9F 92 16 B4 4E B9 05 AB [15:07:56]CheckFolder [15:07:56]dirname=/storage/ofd_packets [15:07:56]CheckFolder done [15:07:56]ProducePacketName [15:07:56]name=ofd_packets/00075489 [15:07:56]NVStorageSaveData ofd_packets/00075489 [15:07:56]File name is /storage/ofd_packets/00075489 [15:07:56]Write 301 bytes [15:07:56]NVStorageSaveData done [15:07:56]OFDSenderStorePacket done [15:07:56]KKMCreateOFDPacket done [15:07:56]NVStorageSaveData kkm_last_timestamp [15:07:56]File name is /storage/kkm_last_timestamp [15:07:56]Write 4 bytes [15:07:56]NVStorageSaveData done [15:07:56]ExternCall_PrintAddStr [15:07:56]wPrintStart [15:07:56]Write to MH i2c: 01 00 00 FD 11 0E [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: 01 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: 01 07 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: 01 07 00 FD 11 00 00 00 00 00 FF 0F 23 [15:07:56]RasterBufferAndPrint [15:07:56]line Счет N : (1)1965670 [15:07:56]line ИНН: 02508201610067 [15:07:56]line Контрольно-Кассовый Чек [15:07:56]line ПРОДАЖА [15:07:56]line ТРК (МРК, ГНК) : 43 [15:07:56]line Товар: 2710124130 [15:07:56]line Аи-92-К-5 [15:07:56]line 7.480 * 66.90 [15:07:56]line = 500.41 [15:07:56]line НДС 12% НСП 1% [15:07:56]line > о реализуемом товаре [15:07:56]line ОКРУГЛЕНИЕ: -0.41 [15:07:56]line ИТОГО: 500.00 [15:07:56]line Внесено: 500.00 [15:07:56]line СДАЧА: 0.00 [15:07:56]line НСП 1% : 4.43 [15:07:56]line НДС 12% : 53.14 [15:07:56]line Наличными: 500.00 [15:07:56]line Безнал.: 0.00 [15:07:56]line Место: АЗС № 133 "Партнер Нефть" [15:07:56]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:07:56]line СНО: Общий режим [15:07:56]line Чек 222 23.10.2024 15:07 [15:07:56]line Смена: 173 ФФД: 1.0 [15:07:56]line ЗНМ: 0300000020 [15:07:56]line РНМ: 0000000000161154 [15:07:56]line Версия ККМ: v1.0 [15:07:56]line ФМ: 0000000000963323 [15:07:56]line ФД: 75489 [15:07:56]line ФПД: 212813635919346 [15:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150755&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75489&fm=212813635919346&tin=02508201610067®Number=0000000000161154&sum=50000 [15:07:56]OFD Sender: Processing packet 75489 [packets to send 16, broken 15] [15:07:56]ProducePacketName [15:07:56]name=ofd_packets/00075489 [15:07:56]OFD Sender: To server: pG, [15:07:56]CommunicateWithHost lk.salyk.kg:30040 [15:07:56]ConnectInit lk.salyk.kg [15:07:56]written 0, free lines is 4095 [15:07:57]Connected sock=11 [15:07:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 ED 54 07 01 3D 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 DE 00 00 00 F4 03 04 00 4B 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 26 01 00 35 04 06 00 C1 8D 89 2C 1D F2 9F 92 16 B4 4E B9 05 AB [15:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4D 8C 47 00 FC 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E1 26 01 00 F4 03 04 00 26 BA 18 67 B6 04 01 00 00 4C E4 92 E8 02 9B FD BE [15:07:57]CommunicateWithHost err = 0 [15:07:57]CheckOFDResponse [15:07:57]1017 (14) - 77093643461234 [15:07:57]1041 (16) - 0000000000963323 [15:07:57]1040 (4) - 75489 [15:07:57]1012 (4) - 23.10.2024 08:56 [15:07:57]1206 (1) - 0 [15:07:57]OFD Sender: Remove packet 75489 [15:07:57]ProducePacketName [15:07:57]name=ofd_packets/00075489 [15:07:57]NVStorageDeleteData [15:07:57]Write to MH i2c: 01 00 00 27 12 39 [15:07:57]Write i2c OK [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: 01 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: 01 07 00 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: 01 07 00 27 12 00 00 00 00 00 AD 0C F9 [15:07:57]RasterBufferAndPrint [15:07:57]line [15:07:57]line [15:07:57]line [15:07:57]line [15:07:57]line [15:07:57]written 0, free lines is 3249 [15:07:57]MH_Cut [15:07:57]Write to MH i2c: D1 01 00 2E 12 01 12 [15:07:57]Write i2c OK [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: D1 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: D1 01 00 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: D1 01 00 2E 12 00 11 [15:07:57]Write to MH i2c: 01 00 00 2F 12 41 [15:07:57]Write i2c OK [15:07:57]MH_I2C_Read... [15:07:57]OFD Sender: No OFD packet to send [15:07:58]*** Cut start [15:07:58]*** Partial cut [15:07:58]*** CUTSNS_PIN = 1 [15:07:58]*** CUTSNS_PIN = 0 [15:07:58]*** Brake cut motor [15:07:58]Read from MH i2c: 01 [15:07:58]MH_I2C_Read... [15:07:58]*** Stop cut motor [15:07:58]*** Cut end [15:07:58]Read from MH i2c: 01 07 00 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: 01 07 00 2F 12 00 00 00 00 00 FF 0F 56 [15:07:58]process_action close_receipt done [15:07:58]requested_data is exist [15:07:58]produce_requested_data [15:07:58]requested_item fm.sn is exist - process it [15:07:58]wFMCommunicate request_size=4 [15:07:58]MH_SAM_APDU [15:07:58]CAPDU: 80 11 00 00 [15:07:58]Write to MH i2c: E2 08 00 30 12 80 11 00 00 00 00 00 00 BC [15:07:58]Write i2c OK [15:07:58]MH_I2C_Read... [15:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:58]Read from MH i2c: E2 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: E2 17 00 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: E2 17 00 30 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 09 [15:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:07:58]wFMCommunicate OK [15:07:58]requested_item fd.num is exist - process it [15:07:58]SAM_PROTO_GetFieldsCounters [15:07:58]wFMCommunicate request_size=4 [15:07:58]MH_SAM_APDU [15:07:58]CAPDU: 80 13 00 00 [15:07:58]Write to MH i2c: E2 08 00 31 12 80 13 00 00 00 00 00 00 BF [15:07:58]Write i2c OK [15:07:58]MH_I2C_Read... [15:07:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:59]Read from MH i2c: E2 [15:07:59]MH_I2C_Read... [15:07:59]Read from MH i2c: E2 62 00 [15:07:59]MH_I2C_Read... [15:07:59]Read from MH i2c: E2 62 00 31 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E1 26 01 00 0E 04 04 00 AD 00 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 22 [15:07:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E1 26 01 00 0E 04 04 00 AD 00 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 [15:07:59]wFMCommunicate OK [15:07:59]SAM_PROTO_GetFieldsCounters done [15:07:59]requested_item shift.num is exist - process it [15:07:59]requested_item shift.opened is exist - process it [15:07:59]req_shift_opened [15:07:59]FM_GetShiftState [15:07:59]SAM_PROTO_GetShiftState [15:07:59]wFMCommunicate request_size=4 [15:07:59]MH_SAM_APDU [15:07:59]CAPDU: 80 13 01 00 [15:07:59]Write to MH i2c: E2 08 00 32 12 80 13 01 00 00 00 00 00 C1 [15:07:59]Write i2c OK [15:07:59]MH_I2C_Read... [15:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:59]Read from MH i2c: E2 [15:07:59]MH_I2C_Read... [15:07:59]Read from MH i2c: E2 0E 00 [15:07:59]MH_I2C_Read... [15:07:59]Read from MH i2c: E2 0E 00 32 12 00 09 00 01 99 41 18 67 00 00 00 00 90 00 26 [15:07:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:07:59]wFMCommunicate OK [15:07:59]SAM_PROTO_GetShiftState done [15:07:59]FM_GetShiftState done [15:07:59]req_shift_opened done [15:07:59]requested_item shift.open_date is exist - process it [15:07:59]req_shift_open_date [15:07:59]req_shift_open_date done [15:07:59]produce_requested_data done [15:07:59]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75489,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:07:59]process_action_free close_receipt [15:07:59]json_value_free [15:07:59]json_value_free done [15:07:59]process_json_proto returns [15:07:59]Send response to host [15:07:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75489,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:07:59]free response buf [15:07:59]execute_script done [15:07:59]execute_script returns [15:07:59]free content buf [15:07:59]Sock 9.Close socket [15:07:59]Sock 9.Thread stoped [15:08:01]accept exits with 8 [15:08:01]New connection [15:08:01]New thread 3066465636 created [15:08:01]Thread 3066608996 joined [15:08:01]Waiting for new connection... [15:08:01] Sock 8.Parse request [15:08:01]Sock 8.Check first char [15:08:01]Sock 8.First char is OK [15:08:01]request: POST /json_proto HTTP/1.0 [15:08:01]Method: POST [15:08:01]URL: /json_proto [15:08:01]Method is POST - this is cgi request [15:08:01]url: /json_proto [15:08:01]query_string will be loaded in cgi processing [15:08:01]execute_cgi json_proto POST (null) [15:08:01]execute_cgi path=json_proto method=POST [15:08:01]POST find Content-Length [15:08:01]Host: 172.17.44.196:8080 [15:08:01]Content-Length: 623 [15:08:01]Content-Type: application/json [15:08:01] [15:08:01]POST finish read [15:08:01]Found Content-Length = 623 [15:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273263", "tax_sys" : 0, "items" : [ { "code": "4606532011642", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 1.000, "sum" : 63.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 63.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:01]execute_script... [15:08: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)273263", "tax_sys" : 0, "items" : [ { "code": "4606532011642", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 1.000, "sum" : 63.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 63.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:01]POST & json_proto [15:08:01]process_json_proto [15:08:01]json parsed OK: [15:08:01]protocol is kg_v1.0 [15:08:01]action value=close_receipt [15:08:01]process_action close_receipt [15:08:01]cmd_close_receipt [15:08:01]MH_GetDate [15:08:01]Write to MH i2c: F0 00 00 33 12 34 [15:08:01]Write i2c OK [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: F0 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: F0 09 00 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: F0 09 00 33 12 00 52 11 19 67 E7 19 F8 65 7D [15:08:01]GetLastDocTimeStamp 1729696075 [15:08:01]current date 1729696082 [15:08:01]FM_GetShiftState [15:08:01]SAM_PROTO_GetShiftState [15:08:01]wFMCommunicate request_size=4 [15:08:01]MH_SAM_APDU [15:08:01]CAPDU: 80 13 01 00 [15:08:01]Write to MH i2c: E2 08 00 34 12 80 13 01 00 00 00 00 00 C3 [15:08:01]Write i2c OK [15:08:01]MH_I2C_Read... [15:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:01]Read from MH i2c: E2 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: E2 0E 00 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: E2 0E 00 34 12 00 09 00 01 99 41 18 67 00 00 00 00 90 00 28 [15:08:01]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:08:01]wFMCommunicate OK [15:08:01]SAM_PROTO_GetShiftState done [15:08:01]FM_GetShiftState done [15:08:01]opened in 1729642905 [15:08:01]opened+sec_in_day 1729729305 [15:08:01]quantity*price = 6300 [15:08:01]sum+1 = 6301 [15:08:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 63.00 НСП 1% : 0.56 НДС 12% : 6.69 Наличными: 63.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 223 23.10.2024 15:08 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75490 ФПД: 141271969764634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150802&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75490&fm=141271969764634&tin=02508201610067®Number=0000000000161154&sum=6300 0 [15:08:02]StoreToDocumentArchive [15:08:02]shift 173 fd 75490 [15:08:02]save to /storage/0173/doc_00075490 [15:08:02]save last doc name /storage/0173/doc_00075490 to /storage/kkm_last_doc_name [15:08:02]save OK [15:08:02]Clear old archive folders... [15:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=270 [15:08:02]tlvbuf is 007D3900 [15:08:02]SAM_PROTO_ClearQueue [15:08:02]wFMCommunicate request_size=4 [15:08:02]MH_SAM_APDU [15:08:02]CAPDU: 80 09 00 00 [15:08:02]Write to MH i2c: E2 08 00 41 12 80 09 00 00 00 00 00 00 C5 [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:02]Read from MH i2c: E2 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 03 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 03 00 41 12 00 90 00 C7 [15:08:02]RAPDU: 90 00 [15:08:02]wFMCommunicate OK [15:08:02]SAM_PROTO_ClearQueue done [15:08:02]KKMCreateOFDPacket [15:08:02]OFDProtocolAddRootSTLVToBuf [15:08:02]FM_MakeSignedData [15:08:02]FM_MakeSignedData [15:08:02]SAM_PROTO_SignData [15:08:02]wFMCommunicate request_size=4 [15:08:02]MH_SAM_APDU [15:08:02]CAPDU: 80 0D 01 02 [15:08:02]Write to MH i2c: E2 08 00 42 12 80 0D 01 02 00 00 00 00 CD [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:02]Read from MH i2c: E2 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 03 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 03 00 42 12 00 90 00 C8 [15:08:02]RAPDU: 90 00 [15:08:02]wFMCommunicate OK [15:08:02]wFMCommunicate request_size=255 [15:08:02]MH_SAM_APDU [15:08:02]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 31 36 34 32 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 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 52 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [15:08:02]Write to MH i2c: E2 02 01 43 12 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 31 36 34 32 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 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 52 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 5E [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:02]Read from MH i2c: E2 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 03 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 03 00 43 12 00 90 00 C9 [15:08:02]RAPDU: 90 00 [15:08:02]wFMCommunicate OK [15:08:02]wFMCommunicate request_size=29 [15:08:02]MH_SAM_APDU [15:08:02]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 E2 26 01 00 35 04 06 00 80 7C 71 93 15 1A [15:08:02]Write to MH i2c: E2 20 00 44 12 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 E2 26 01 00 35 04 06 00 80 7C 71 93 15 1A 00 00 C9 [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:02]Read from MH i2c: E2 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 03 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 03 00 44 12 00 90 00 CA [15:08:02]RAPDU: 90 00 [15:08:02]wFMCommunicate OK [15:08:02]wFMCommunicate request_size=4 [15:08:02]MH_SAM_APDU [15:08:02]CAPDU: 80 0D 03 02 [15:08:02]Write to MH i2c: E2 08 00 45 12 80 0D 03 02 00 00 00 00 D2 [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:02]Read from MH i2c: E2 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 0B 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 0B 00 45 12 00 FB 0D 3A F2 08 CB 05 DA 90 00 B9 [15:08:02]RAPDU: FB 0D 3A F2 08 CB 05 DA 90 00 [15:08:02]wFMCommunicate OK [15:08:02]SAM_PROTO_SignData done [15:08:02]FM_MakeSignedData done [15:08:02]CreateOFDProtocolMessage [15:08:02]wFMCommunicate request_size=4 [15:08:02]MH_SAM_APDU [15:08:02]CAPDU: 80 11 00 00 [15:08:02]Write to MH i2c: E2 08 00 46 12 80 11 00 00 00 00 00 00 D2 [15:08:02]OFD Sender: No OFD packet to send [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:02]Read from MH i2c: E2 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 17 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 17 00 46 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1F [15:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:08:02]wFMCommunicate OK [15:08:02]CreateOFDProtocolMessage done [15:08:02]OFDSenderStorePacket 75490 [15:08:02]StoreOFDPacket docnum=75490 [15:08:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 59 0E 1A 01 B4 35 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 31 36 34 32 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 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 52 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 26 01 00 35 04 06 00 80 7C 71 93 15 1A FB 0D 3A F2 08 CB 05 DA [15:08:02]CheckFolder [15:08:02]dirname=/storage/ofd_packets [15:08:02]CheckFolder done [15:08:02]ProducePacketName [15:08:02]name=ofd_packets/00075490 [15:08:02]NVStorageSaveData ofd_packets/00075490 [15:08:02]File name is /storage/ofd_packets/00075490 [15:08:02]Write 320 bytes [15:08:02]NVStorageSaveData done [15:08:02]OFDSenderStorePacket done [15:08:02]KKMCreateOFDPacket done [15:08:02]NVStorageSaveData kkm_last_timestamp [15:08:02]File name is /storage/kkm_last_timestamp [15:08:02]Write 4 bytes [15:08:02]NVStorageSaveData done [15:08:02]ExternCall_PrintAddStr [15:08:02]wPrintStart [15:08:02]Write to MH i2c: 01 00 00 47 12 59 [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: 01 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: 01 07 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: 01 07 00 47 12 00 00 00 00 00 FF 0F 6E [15:08:02]RasterBufferAndPrint [15:08:02]line Счет N : (3)273263 [15:08:02]line ИНН: 02508201610067 [15:08:02]line Контрольно-Кассовый Чек [15:08:02]line ПРОДАЖА [15:08:02]line Товар: 4606532011642 [15:08:02]line Перчатки Felix х/б [15:08:02]line 1.000 * 63.00 [15:08:02]line = 63.00 [15:08:02]line НДС 12% НСП 1% [15:08:02]line > о реализуемом товаре [15:08:02]line ИТОГО: 63.00 [15:08:02]line НСП 1% : 0.56 [15:08:02]line НДС 12% : 6.69 [15:08:02]line Наличными: 63.00 [15:08:02]line Безнал.: 0.00 [15:08:02]line Место: АЗС № 133 "Партнер Нефть" [15:08:02]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:08:02]line СНО: Общий режим [15:08:02]line Чек 223 23.10.2024 15:08 [15:08:02]line Смена: 173 ФФД: 1.0 [15:08:02]line ЗНМ: 0300000020 [15:08:02]line РНМ: 0000000000161154 [15:08:02]line Версия ККМ: v1.0 [15:08:02]line ФМ: 0000000000963323 [15:08:02]line ФД: 75490 [15:08:02]line ФПД: 141271969764634 [15:08:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150802&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75490&fm=141271969764634&tin=02508201610067®Number=0000000000161154&sum=6300 [15:08:02]line 0 [15:08:02]written 0, free lines is 4095 [15:08:02]OFD Sender: Processing packet 75490 [packets to send 16, broken 15] [15:08:02]ProducePacketName [15:08:02]name=ofd_packets/00075490 [15:08:02]OFD Sender: To server: pG, [15:08:02]CommunicateWithHost lk.salyk.kg:30040 [15:08:02]ConnectInit lk.salyk.kg [15:08:03]Connected sock=10 [15:08:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 59 0E 1A 01 B4 35 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 31 36 34 32 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 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 52 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 26 01 00 35 04 06 00 80 7C 71 93 15 1A FB 0D 3A F2 08 CB 05 DA [15:08:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 2B F4 47 00 A1 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E2 26 01 00 F4 03 04 00 2C BA 18 67 B6 04 01 00 00 07 35 B0 5F 7C 8C 0F 49 [15:08:03]CommunicateWithHost err = 0 [15:08:03]CheckOFDResponse [15:08:03]1017 (14) - 77093643461234 [15:08:03]1041 (16) - 0000000000963323 [15:08:03]1040 (4) - 75490 [15:08:03]1012 (4) - 23.10.2024 08:56 [15:08:03]1206 (1) - 0 [15:08:03]OFD Sender: Remove packet 75490 [15:08:03]ProducePacketName [15:08:03]name=ofd_packets/00075490 [15:08:03]NVStorageDeleteData [15:08:03]Write to MH i2c: 01 00 00 6E 12 80 [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: 01 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: 01 07 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: 01 07 00 6E 12 00 00 00 00 00 E6 0C 79 [15:08:03]RasterBufferAndPrint [15:08:03]line [15:08:03]line [15:08:03]line [15:08:03]line [15:08:03]line [15:08:03]written 0, free lines is 3308 [15:08:03]MH_Cut [15:08:03]Write to MH i2c: D1 01 00 75 12 01 59 [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: D1 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: D1 01 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: D1 01 00 75 12 00 58 [15:08:03]Write to MH i2c: 01 00 00 76 12 88 [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]OFD Sender: No OFD packet to send [15:08:04]*** Cut start [15:08:04]*** Partial cut [15:08:04]*** CUTSNS_PIN = 1 [15:08:04]*** CUTSNS_PIN = 0 [15:08:04]*** Brake cut motor [15:08:04]Read from MH i2c: 01 [15:08:04]MH_I2C_Read... [15:08:04]*** Stop cut motor [15:08:04]*** Cut end [15:08:04]Read from MH i2c: 01 07 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: 01 07 00 76 12 00 00 00 00 00 FF 0F 9D [15:08:04]process_action close_receipt done [15:08:04]requested_data is exist [15:08:04]produce_requested_data [15:08:04]requested_item fm.sn is exist - process it [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 11 00 00 [15:08:04]Write to MH i2c: E2 08 00 77 12 80 11 00 00 00 00 00 00 03 [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 17 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 17 00 77 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 50 [15:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:08:04]wFMCommunicate OK [15:08:04]requested_item fd.num is exist - process it [15:08:04]SAM_PROTO_GetFieldsCounters [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 13 00 00 [15:08:04]Write to MH i2c: E2 08 00 78 12 80 13 00 00 00 00 00 00 06 [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 [15:08:05]MH_I2C_Read... [15:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:05]Read from MH i2c: E2 62 00 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: E2 62 00 78 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E2 26 01 00 0E 04 04 00 AD 00 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 6D [15:08:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E2 26 01 00 0E 04 04 00 AD 00 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 [15:08:05]wFMCommunicate OK [15:08:05]SAM_PROTO_GetFieldsCounters done [15:08:05]requested_item shift.num is exist - process it [15:08:05]requested_item shift.opened is exist - process it [15:08:05]req_shift_opened [15:08:05]FM_GetShiftState [15:08:05]SAM_PROTO_GetShiftState [15:08:05]wFMCommunicate request_size=4 [15:08:05]MH_SAM_APDU [15:08:05]CAPDU: 80 13 01 00 [15:08:05]Write to MH i2c: E2 08 00 79 12 80 13 01 00 00 00 00 00 08 [15:08:05]Write i2c OK [15:08:05]MH_I2C_Read... [15:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:05]Read from MH i2c: E2 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: E2 0E 00 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: E2 0E 00 79 12 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6D [15:08:05]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:08:05]wFMCommunicate OK [15:08:05]SAM_PROTO_GetShiftState done [15:08:05]FM_GetShiftState done [15:08:05]req_shift_opened done [15:08:05]requested_item shift.open_date is exist - process it [15:08:05]req_shift_open_date [15:08:05]req_shift_open_date done [15:08:05]produce_requested_data done [15:08:05]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75490,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:08:05]process_action_free close_receipt [15:08:05]json_value_free [15:08:05]json_value_free done [15:08:05]process_json_proto returns [15:08:05]Send response to host [15:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75490,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:08:05]free response buf [15:08:05]execute_script done [15:08:05]execute_script returns [15:08:05]free content buf [15:08:05]Sock 8.Close socket [15:08:05]Sock 8.Thread stoped [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]accept exits with 9 [15:10:08]New connection [15:10:08]New thread 3066608996 created [15:10:08]Thread 3066465636 joined [15:10:08]Waiting for new connection... [15:10:08] Sock 9.Parse request [15:10:08]Sock 9.Check first char [15:10:08]Sock 9.First char is OK [15:10:08]request: POST /json_proto HTTP/1.0 [15:10:08]Method: POST [15:10:08]URL: /json_proto [15:10:08]Method is POST - this is cgi request [15:10:08]url: /json_proto [15:10:08]query_string will be loaded in cgi processing [15:10:08]execute_cgi json_proto POST (null) [15:10:08]execute_cgi path=json_proto method=POST [15:10:08]POST find Content-Length [15:10:08]Host: 172.17.44.196:8080 [15:10:08]Content-Length: 817 [15:10:08]Content-Type: application/json [15:10:08] [15:10:08]POST finish read [15:10:08]Found Content-Length = 817 [15:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:08]execute_script... [15: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)1965672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:08]POST & json_proto [15:10:08]process_json_proto [15:10:08]json parsed OK: [15:10:08]protocol is kg_v1.0 [15:10:08]action value=close_receipt [15:10:08]process_action close_receipt [15:10:08]cmd_close_receipt [15:10:08]MH_GetDate [15:10:08]Write to MH i2c: F0 00 00 7A 12 7B [15:10:08]Write i2c OK [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: F0 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: F0 09 00 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: F0 09 00 7A 12 00 D1 11 19 67 E7 19 F8 65 43 [15:10:08]GetLastDocTimeStamp 1729696082 [15:10:08]current date 1729696209 [15:10:08]FM_GetShiftState [15:10:08]SAM_PROTO_GetShiftState [15:10:08]wFMCommunicate request_size=4 [15:10:08]MH_SAM_APDU [15:10:08]CAPDU: 80 13 01 00 [15:10:08]Write to MH i2c: E2 08 00 7B 12 80 13 01 00 00 00 00 00 0A [15:10:08]Write i2c OK [15:10:08]MH_I2C_Read... [15:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:08]Read from MH i2c: E2 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 0E 00 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 0E 00 7B 12 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6F [15:10:08]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:10:08]wFMCommunicate OK [15:10:08]SAM_PROTO_GetShiftState done [15:10:08]FM_GetShiftState done [15:10:08]opened in 1729642905 [15:10:08]opened+sec_in_day 1729729305 [15:10:08]quantity*price = 50041 [15:10:08]sum+1 = 50042 [15:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 224 23.10.2024 15:10 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000963323 ФД: 75491 ФПД: 60229244040364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151009&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75491&fm=60229244040364&tin=02508201610067®Number=0000000000161154&sum=50041 [15:10:09]StoreToDocumentArchive [15:10:09]shift 173 fd 75491 [15:10:09]save to /storage/0173/doc_00075491 [15:10:09]save last doc name /storage/0173/doc_00075491 to /storage/kkm_last_doc_name [15:10:09]save OK [15:10:09]Clear old archive folders... [15:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:09]tlvbuf is 007BA430 [15:10:09]SAM_PROTO_ClearQueue [15:10:09]wFMCommunicate request_size=4 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 09 00 00 [15:10:09]Write to MH i2c: E2 08 00 88 12 80 09 00 00 00 00 00 00 0C [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [15:10:09]RAPDU: 90 00 [15:10:09]wFMCommunicate OK [15:10:09]SAM_PROTO_ClearQueue done [15:10:09]KKMCreateOFDPacket [15:10:09]OFDProtocolAddRootSTLVToBuf [15:10:09]FM_MakeSignedData [15:10:09]FM_MakeSignedData [15:10:09]SAM_PROTO_SignData [15:10:09]wFMCommunicate request_size=4 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 0D 01 02 [15:10:09]Write to MH i2c: E2 08 00 89 12 80 0D 01 02 00 00 00 00 14 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 89 12 00 90 00 0F [15:10:09]RAPDU: 90 00 [15:10:09]wFMCommunicate OK [15:10:09]wFMCommunicate request_size=255 [15:10:09]MH_SAM_APDU [15:10: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D1 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 26 01 00 35 04 06 00 36 [15:10:09]Write to MH i2c: E2 02 01 8A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D1 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 26 01 00 35 04 06 00 36 00 00 17 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 8A 12 00 90 00 10 [15:10:09]RAPDU: 90 00 [15:10:09]wFMCommunicate OK [15:10:09]wFMCommunicate request_size=10 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 0D 02 02 05 C7 36 B2 34 AC [15:10:09]Write to MH i2c: E2 0D 00 8B 12 80 0D 02 02 05 00 C7 36 B2 34 AC 00 00 B0 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 8B 12 00 90 00 11 [15:10:09]RAPDU: 90 00 [15:10:09]wFMCommunicate OK [15:10:09]wFMCommunicate request_size=4 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 0D 03 02 [15:10:09]Write to MH i2c: E2 08 00 8C 12 80 0D 03 02 00 00 00 00 19 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:10]Read from MH i2c: E2 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: E2 0B 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: E2 0B 00 8C 12 00 65 27 32 9B F3 92 63 10 90 00 6B [15:10:10]RAPDU: 65 27 32 9B F3 92 63 10 90 00 [15:10:10]wFMCommunicate OK [15:10:10]SAM_PROTO_SignData done [15:10:10]FM_MakeSignedData done [15:10:10]CreateOFDProtocolMessage [15:10:10]wFMCommunicate request_size=4 [15:10:10]MH_SAM_APDU [15:10:10]CAPDU: 80 11 00 00 [15:10:10]Write to MH i2c: E2 08 00 8D 12 80 11 00 00 00 00 00 00 19 [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:10]Read from MH i2c: E2 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: E2 17 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: E2 17 00 8D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 66 [15:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:10:10]wFMCommunicate OK [15:10:10]CreateOFDProtocolMessage done [15:10:10]OFDSenderStorePacket 75491 [15:10:10]StoreOFDPacket docnum=75491 [15:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A6 08 07 01 35 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D1 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 26 01 00 35 04 06 00 36 C7 36 B2 34 AC 65 27 32 9B F3 92 63 10 [15:10:10]CheckFolder [15:10:10]dirname=/storage/ofd_packets [15:10:10]CheckFolder done [15:10:10]ProducePacketName [15:10:10]name=ofd_packets/00075491 [15:10:10]NVStorageSaveData ofd_packets/00075491 [15:10:10]File name is /storage/ofd_packets/00075491 [15:10:10]Write 301 bytes [15:10:10]NVStorageSaveData done [15:10:10]OFDSenderStorePacket done [15:10:10]KKMCreateOFDPacket done [15:10:10]NVStorageSaveData kkm_last_timestamp [15:10:10]File name is /storage/kkm_last_timestamp [15:10:10]Write 4 bytes [15:10:10]NVStorageSaveData done [15:10:10]ExternCall_PrintAddStr [15:10:10]wPrintStart [15:10:10]Write to MH i2c: 01 00 00 8E 12 A0 [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 07 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 07 00 8E 12 00 00 00 00 00 FF 0F B5 [15:10:10]RasterBufferAndPrint [15:10:10]line Счет N : (1)1965672 [15:10:10]line ИНН: 02508201610067 [15:10:10]line Контрольно-Кассовый Чек [15:10:10]line ПРОДАЖА [15:10:10]line ТРК (МРК, ГНК) : 43 [15:10:10]line Товар: 2710124130 [15:10:10]line Аи-92-К-5 [15:10:10]line 7.480 * 66.90 [15:10:10]line = 500.41 [15:10:10]line НДС 12% НСП 1% [15:10:10]line > о реализуемом товаре [15:10:10]line ИТОГО: 500.41 [15:10:10]line НСП 1% : 4.43 [15:10:10]line НДС 12% : 53.14 [15:10:10]line Наличными: 0.00 [15:10:10]line Безнал.: 500.41 [15:10:10]line Место: АЗС № 133 "Партнер Нефть" [15:10:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:10:10]line СНО: Общий режим [15:10:10]line Чек 224 23.10.2024 15:10 [15:10:10]line Смена: 173 ФФД: 1.0 [15:10:10]line ЗНМ: 0300000020 [15:10:10]line РНМ: 0000000000161154 [15:10:10]line Версия ККМ: v1.0 [15:10:10]line Платежная система: Бакай Банк [15:10:10]line ФМ: 0000000000963323 [15:10:10]line ФД: 75491 [15:10:10]line ФПД: 60229244040364 [15:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151009&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75491&fm=60229244040364&tin=02508201610067®Number=0000000000161154&sum=50041 [15:10:10]OFD Sender: Processing packet 75491 [packets to send 16, broken 15] [15:10:10]ProducePacketName [15:10:10]name=ofd_packets/00075491 [15:10:10]OFD Sender: To server: pG, [15:10:10]CommunicateWithHost lk.salyk.kg:30040 [15:10:10]ConnectInit lk.salyk.kg [15:10:10]written 0, free lines is 4095 [15:10:10]Connected sock=10 [15:10:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 A6 08 07 01 35 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D1 11 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 26 01 00 35 04 06 00 36 C7 36 B2 34 AC 65 27 32 9B F3 92 63 10 [15:10:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EC C3 47 00 43 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E3 26 01 00 F4 03 04 00 AB BA 18 67 B6 04 01 00 00 91 53 22 64 B9 FF BB 7E [15:10:10]CommunicateWithHost err = 0 [15:10:10]CheckOFDResponse [15:10:10]1017 (14) - 77093643461234 [15:10:10]1041 (16) - 0000000000963323 [15:10:10]1040 (4) - 75491 [15:10:10]1012 (4) - 23.10.2024 08:58 [15:10:10]1206 (1) - 0 [15:10:10]OFD Sender: Remove packet 75491 [15:10:10]ProducePacketName [15:10:10]name=ofd_packets/00075491 [15:10:10]NVStorageDeleteData [15:10:10]Write to MH i2c: 01 00 00 B7 12 C9 [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 07 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 07 00 B7 12 00 00 00 00 00 BC 0C 98 [15:10:10]RasterBufferAndPrint [15:10:10]line [15:10:10]line [15:10:10]line [15:10:10]line [15:10:10]line [15:10:10]written 0, free lines is 3264 [15:10:10]MH_Cut [15:10:10]Write to MH i2c: D1 01 00 BE 12 01 A2 [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: D1 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: D1 01 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: D1 01 00 BE 12 00 A1 [15:10:10]Write to MH i2c: 01 00 00 BF 12 D1 [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:11]OFD Sender: No OFD packet to send [15:10:11]*** Cut start [15:10:11]*** Partial cut [15:10:11]*** CUTSNS_PIN = 1 [15:10:11]*** CUTSNS_PIN = 0 [15:10:12]*** Brake cut motor [15:10:12]Read from MH i2c: 01 [15:10:12]MH_I2C_Read... [15:10:12]*** Stop cut motor [15:10:12]*** Cut end [15:10:12]Read from MH i2c: 01 07 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: 01 07 00 BF 12 00 00 00 00 00 FF 0F E6 [15:10:12]process_action close_receipt done [15:10:12]requested_data is exist [15:10:12]produce_requested_data [15:10:12]requested_item fm.sn is exist - process it [15:10:12]wFMCommunicate request_size=4 [15:10:12]MH_SAM_APDU [15:10:12]CAPDU: 80 11 00 00 [15:10:12]Write to MH i2c: E2 08 00 C0 12 80 11 00 00 00 00 00 00 4C [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:12]Read from MH i2c: E2 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 17 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 17 00 C0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 99 [15:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:10:12]wFMCommunicate OK [15:10:12]requested_item fd.num is exist - process it [15:10:12]SAM_PROTO_GetFieldsCounters [15:10:12]wFMCommunicate request_size=4 [15:10:12]MH_SAM_APDU [15:10:12]CAPDU: 80 13 00 00 [15:10:12]Write to MH i2c: E2 08 00 C1 12 80 13 00 00 00 00 00 00 4F [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:12]Read from MH i2c: E2 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 62 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 62 00 C1 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E3 26 01 00 0E 04 04 00 AD 00 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 BA [15:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E3 26 01 00 0E 04 04 00 AD 00 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 [15:10:12]wFMCommunicate OK [15:10:12]SAM_PROTO_GetFieldsCounters done [15:10:12]requested_item shift.num is exist - process it [15:10:12]requested_item shift.opened is exist - process it [15:10:12]req_shift_opened [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 C2 12 80 13 01 00 00 00 00 00 51 [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 C2 12 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B6 [15:10:12]RAPDU: 09 00 01 99 41 18 67 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]req_shift_opened done [15:10:12]requested_item shift.open_date is exist - process it [15:10:12]req_shift_open_date [15:10:12]req_shift_open_date done [15:10:12]produce_requested_data done [15:10:12]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75491,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:10:12]process_action_free close_receipt [15:10:12]json_value_free [15:10:12]json_value_free done [15:10:12]process_json_proto returns [15:10:12]Send response to host [15:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75491,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:10:12]free response buf [15:10:12]execute_script done [15:10:12]execute_script returns [15:10:12]free content buf [15:10:12]Sock 9.Close socket [15:10:12]Sock 9.Thread stoped [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:49]accept exits with 8 [15:13:49]New connection [15:13:49]New thread 3066465636 created [15:13:49]Thread 3066608996 joined [15:13:49]Waiting for new connection... [15:13:49] Sock 8.Parse request [15:13:49]Sock 8.Check first char [15:13:49]Sock 8.First char is OK [15:13:49]request: POST /json_proto HTTP/1.0 [15:13:49]Method: POST [15:13:49]URL: /json_proto [15:13:49]Method is POST - this is cgi request [15:13:49]url: /json_proto [15:13:49]query_string will be loaded in cgi processing [15:13:49]execute_cgi json_proto POST (null) [15:13:49]execute_cgi path=json_proto method=POST [15:13:49]POST find Content-Length [15:13:49]Host: 172.17.44.196:8080 [15:13:49]Content-Length: 764 [15:13:49]Content-Type: application/json [15:13:49] [15:13:49]POST finish read [15:13:49]Found Content-Length = 764 [15:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:49]execute_script... [15:13: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)1965673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:49]POST & json_proto [15:13:49]process_json_proto [15:13:49]json parsed OK: [15:13:49]protocol is kg_v1.0 [15:13:49]action value=close_receipt [15:13:49]process_action close_receipt [15:13:49]cmd_close_receipt [15:13:49]MH_GetDate [15:13:49]Write to MH i2c: F0 00 00 C3 12 C4 [15:13:49]Write i2c OK [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: F0 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: F0 09 00 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: F0 09 00 C3 12 00 AE 12 19 67 E7 19 F8 65 6A [15:13:49]GetLastDocTimeStamp 1729696209 [15:13:49]current date 1729696430 [15:13:49]FM_GetShiftState [15:13:49]SAM_PROTO_GetShiftState [15:13:49]wFMCommunicate request_size=4 [15:13:49]MH_SAM_APDU [15:13:49]CAPDU: 80 13 01 00 [15:13:49]Write to MH i2c: E2 08 00 C4 12 80 13 01 00 00 00 00 00 53 [15:13:49]Write i2c OK [15:13:49]MH_I2C_Read... [15:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:49]Read from MH i2c: E2 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: E2 0E 00 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: E2 0E 00 C4 12 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B8 [15:13:49]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:13:49]wFMCommunicate OK [15:13:49]SAM_PROTO_GetShiftState done [15:13:49]FM_GetShiftState done [15:13:49]opened in 1729642905 [15:13:49]opened+sec_in_day 1729729305 [15:13:49]quantity*price = 100011 [15:13:49]sum+1 = 100013 [15:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 225 23.10.2024 15:13 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75492 ФПД: 185758124935884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151350&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75492&fm=185758124935884&tin=02508201610067®Number=0000000000161154&sum=100012 [15:13:50]StoreToDocumentArchive [15:13:50]shift 173 fd 75492 [15:13:50]save to /storage/0173/doc_00075492 [15:13:50]save last doc name /storage/0173/doc_00075492 to /storage/kkm_last_doc_name [15:13:50]save OK [15:13:50]Clear old archive folders... [15:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=245 [15:13:50]tlvbuf is 007C9110 [15:13:50]SAM_PROTO_ClearQueue [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 09 00 00 [15:13:50]Write to MH i2c: E2 08 00 D1 12 80 09 00 00 00 00 00 00 55 [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 03 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [15:13:50]RAPDU: 90 00 [15:13:50]wFMCommunicate OK [15:13:50]SAM_PROTO_ClearQueue done [15:13:50]KKMCreateOFDPacket [15:13:50]OFDProtocolAddRootSTLVToBuf [15:13:50]FM_MakeSignedData [15:13:50]FM_MakeSignedData [15:13:50]SAM_PROTO_SignData [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 0D 01 02 [15:13:50]Write to MH i2c: E2 08 00 D2 12 80 0D 01 02 00 00 00 00 5D [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 03 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [15:13:50]RAPDU: 90 00 [15:13:50]wFMCommunicate OK [15:13:50]wFMCommunicate request_size=254 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 0D 02 02 F9 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AE 12 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 26 01 00 35 04 06 00 A8 F2 2F 0D 0A CC [15:13:50]Write to MH i2c: E2 01 01 D3 12 80 0D 02 02 F9 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AE 12 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 26 01 00 35 04 06 00 A8 F2 2F 0D 0A CC 00 00 4F [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 03 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [15:13:51]RAPDU: 90 00 [15:13:51]wFMCommunicate OK [15:13:51]wFMCommunicate request_size=4 [15:13:51]MH_SAM_APDU [15:13:51]CAPDU: 80 0D 03 02 [15:13:51]Write to MH i2c: E2 08 00 D4 12 80 0D 03 02 00 00 00 00 61 [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 0B 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 0B 00 D4 12 00 1A 63 38 1A 89 05 4D 4E 90 00 5A [15:13:51]RAPDU: 1A 63 38 1A 89 05 4D 4E 90 00 [15:13:51]wFMCommunicate OK [15:13:51]SAM_PROTO_SignData done [15:13:51]FM_MakeSignedData done [15:13:51]CreateOFDProtocolMessage [15:13:51]wFMCommunicate request_size=4 [15:13:51]MH_SAM_APDU [15:13:51]CAPDU: 80 11 00 00 [15:13:51]Write to MH i2c: E2 08 00 D5 12 80 11 00 00 00 00 00 00 61 [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 17 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 17 00 D5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AE [15:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:13:51]wFMCommunicate OK [15:13:51]CreateOFDProtocolMessage done [15:13:51]OFDSenderStorePacket 75492 [15:13:51]StoreOFDPacket docnum=75492 [15:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 B5 E1 01 01 37 0F 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AE 12 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 26 01 00 35 04 06 00 A8 F2 2F 0D 0A CC 1A 63 38 1A 89 05 4D 4E [15:13:51]CheckFolder [15:13:51]dirname=/storage/ofd_packets [15:13:51]CheckFolder done [15:13:51]ProducePacketName [15:13:51]name=ofd_packets/00075492 [15:13:51]NVStorageSaveData ofd_packets/00075492 [15:13:51]File name is /storage/ofd_packets/00075492 [15:13:51]Write 295 bytes [15:13:51]NVStorageSaveData done [15:13:51]OFDSenderStorePacket done [15:13:51]KKMCreateOFDPacket done [15:13:51]NVStorageSaveData kkm_last_timestamp [15:13:51]File name is /storage/kkm_last_timestamp [15:13:51]Write 4 bytes [15:13:51]NVStorageSaveData done [15:13:51]ExternCall_PrintAddStr [15:13:51]wPrintStart [15:13:51]Write to MH i2c: 01 00 00 D6 12 E8 [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: 01 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: 01 07 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: 01 07 00 D6 12 00 00 00 00 00 FF 0F FD [15:13:51]RasterBufferAndPrint [15:13:51]line Счет N : (1)1965673 [15:13:51]line ИНН: 02508201610067 [15:13:51]line Контрольно-Кассовый Чек [15:13:51]line ПРОДАЖА [15:13:51]line ТРК (МРК, ГНК) : 71 [15:13:51]line Товар: 2711129700 [15:13:51]line ГАЗ [15:13:51]line 25.710 * 38.90 [15:13:51]line = 1000.12 [15:13:51]line НДС 12% НСП 1% [15:13:51]line > о реализуемом товаре [15:13:51]line ИТОГО: 1000.12 [15:13:51]line НСП 1% : 8.85 [15:13:51]line НДС 12% : 106.21 [15:13:51]line Наличными: 0.00 [15:13:51]line Безнал.: 1000.12 [15:13:51]line Место: АЗС № 133 "Партнер Нефть" [15:13:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:13:51]line СНО: Общий режим [15:13:51]line Чек 225 23.10.2024 15:13 [15:13:51]line Смена: 173 ФФД: 1.0 [15:13:51]line ЗНМ: 0300000020 [15:13:51]line РНМ: 0000000000161154 [15:13:51]line Версия ККМ: v1.0 [15:13:51]line Платежная система: Mbank [15:13:51]line ФМ: 0000000000963323 [15:13:51]line ФД: 75492 [15:13:51]line ФПД: 185758124935884 [15:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151350&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75492&fm=185758124935884&tin=02508201610067®Number=0000000000161154&sum=100012 [15:13:51]OFD Sender: Processing packet 75492 [packets to send 16, broken 15] [15:13:51]ProducePacketName [15:13:51]name=ofd_packets/00075492 [15:13:51]OFD Sender: To server: pG, [15:13:51]CommunicateWithHost lk.salyk.kg:30040 [15:13:51]ConnectInit lk.salyk.kg [15:13:51]written 0, free lines is 4095 [15:13:51]Connected sock=10 [15:13:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 09 01 00 00 B5 E1 01 01 37 0F 5A 03 01 00 03 00 F5 00 1E 04 01 00 01 23 04 47 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 06 00 D0 93 D0 90 D0 97 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AE 12 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 26 01 00 35 04 06 00 A8 F2 2F 0D 0A CC 1A 63 38 1A 89 05 4D 4E [15:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FC 07 47 00 0D 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E4 26 01 00 F4 03 04 00 89 BB 18 67 B6 04 01 00 00 2E 4F 95 AB C3 49 09 BE [15:13:52]CommunicateWithHost err = 0 [15:13:52]CheckOFDResponse [15:13:52]1017 (14) - 77093643461234 [15:13:52]1041 (16) - 0000000000963323 [15:13:52]1040 (4) - 75492 [15:13:52]1012 (4) - 23.10.2024 09:02 [15:13:52]1206 (1) - 0 [15:13:52]OFD Sender: Remove packet 75492 [15:13:52]ProducePacketName [15:13:52]name=ofd_packets/00075492 [15:13:52]NVStorageDeleteData [15:13:52]Write to MH i2c: 01 00 00 FE 12 10 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 07 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 07 00 FE 12 00 00 00 00 00 D2 0C F5 [15:13:52]RasterBufferAndPrint [15:13:52]line [15:13:52]line [15:13:52]line [15:13:52]line [15:13:52]line [15:13:52]written 0, free lines is 3286 [15:13:52]MH_Cut [15:13:52]Write to MH i2c: D1 01 00 05 13 01 EA [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: D1 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: D1 01 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: D1 01 00 05 13 00 E9 [15:13:52]Write to MH i2c: 01 00 00 06 13 19 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]OFD Sender: No OFD packet to send [15:13:53]*** Cut start [15:13:53]*** Partial cut [15:13:53]*** CUTSNS_PIN = 1 [15:13:53]*** CUTSNS_PIN = 0 [15:13:53]*** Brake cut motor [15:13:53]Read from MH i2c: 01 [15:13:53]MH_I2C_Read... [15:13:53]*** Stop cut motor [15:13:53]*** Cut end [15:13:53]Read from MH i2c: 01 07 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: 01 07 00 06 13 00 00 00 00 00 FF 0F 2E [15:13:53]process_action close_receipt done [15:13:53]requested_data is exist [15:13:53]produce_requested_data [15:13:53]requested_item fm.sn is exist - process it [15:13:53]wFMCommunicate request_size=4 [15:13:53]MH_SAM_APDU [15:13:53]CAPDU: 80 11 00 00 [15:13:53]Write to MH i2c: E2 08 00 07 13 80 11 00 00 00 00 00 00 94 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:53]Read from MH i2c: E2 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 17 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 17 00 07 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E1 [15:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:13:53]wFMCommunicate OK [15:13:53]requested_item fd.num is exist - process it [15:13:53]SAM_PROTO_GetFieldsCounters [15:13:53]wFMCommunicate request_size=4 [15:13:53]MH_SAM_APDU [15:13:53]CAPDU: 80 13 00 00 [15:13:53]Write to MH i2c: E2 08 00 08 13 80 13 00 00 00 00 00 00 97 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:53]Read from MH i2c: E2 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 62 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 62 00 08 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E4 26 01 00 0E 04 04 00 AD 00 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 06 [15:13:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E4 26 01 00 0E 04 04 00 AD 00 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 [15:13:53]wFMCommunicate OK [15:13:53]SAM_PROTO_GetFieldsCounters done [15:13:53]requested_item shift.num is exist - process it [15:13:53]requested_item shift.opened is exist - process it [15:13:53]req_shift_opened [15:13:53]FM_GetShiftState [15:13:53]SAM_PROTO_GetShiftState [15:13:53]wFMCommunicate request_size=4 [15:13:53]MH_SAM_APDU [15:13:53]CAPDU: 80 13 01 00 [15:13:53]Write to MH i2c: E2 08 00 09 13 80 13 01 00 00 00 00 00 99 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:53]Read from MH i2c: E2 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 0E 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 0E 00 09 13 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FE [15:13:53]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:13:53]wFMCommunicate OK [15:13:53]SAM_PROTO_GetShiftState done [15:13:53]FM_GetShiftState done [15:13:53]req_shift_opened done [15:13:53]requested_item shift.open_date is exist - process it [15:13:53]req_shift_open_date [15:13:53]req_shift_open_date done [15:13:53]produce_requested_data done [15:13:53]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75492,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:13:53]process_action_free close_receipt [15:13:53]json_value_free [15:13:53]json_value_free done [15:13:53]process_json_proto returns [15:13:53]Send response to host [15:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75492,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:13:53]free response buf [15:13:53]execute_script done [15:13:53]execute_script returns [15:13:53]free content buf [15:13:53]Sock 8.Close socket [15:13:53]Sock 8.Thread stoped [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:35]accept exits with 9 [15:14:35]New connection [15:14:35]New thread 3066608996 created [15:14:35]Thread 3066465636 joined [15:14:35]Waiting for new connection... [15:14:35] Sock 9.Parse request [15:14:35]Sock 9.Check first char [15:14:35]Sock 9.First char is OK [15:14:35]request: POST /json_proto HTTP/1.0 [15:14:35]Method: POST [15:14:35]URL: /json_proto [15:14:35]Method is POST - this is cgi request [15:14:35]url: /json_proto [15:14:35]query_string will be loaded in cgi processing [15:14:35]execute_cgi json_proto POST (null) [15:14:35]execute_cgi path=json_proto method=POST [15:14:35]POST find Content-Length [15:14:35]Host: 172.17.44.196:8080 [15:14:35]Content-Length: 618 [15:14:35]Content-Type: application/json [15:14:35] [15:14:35]POST finish read [15:14:35]Found Content-Length = 618 [15:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273264", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:35]execute_script... [15:14:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273264", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:35]POST & json_proto [15:14:35]process_json_proto [15:14:35]json parsed OK: [15:14:35]protocol is kg_v1.0 [15:14:35]action value=close_receipt [15:14:35]process_action close_receipt [15:14:35]cmd_close_receipt [15:14:35]MH_GetDate [15:14:35]Write to MH i2c: F0 00 00 0A 13 0C [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: F0 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: F0 09 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: F0 09 00 0A 13 00 DB 12 19 67 E7 19 F8 65 DF [15:14:35]GetLastDocTimeStamp 1729696430 [15:14:35]current date 1729696475 [15:14:35]FM_GetShiftState [15:14:35]SAM_PROTO_GetShiftState [15:14:35]wFMCommunicate request_size=4 [15:14:35]MH_SAM_APDU [15:14:35]CAPDU: 80 13 01 00 [15:14:35]Write to MH i2c: E2 08 00 0B 13 80 13 01 00 00 00 00 00 9B [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:35]Read from MH i2c: E2 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 0E 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 0E 00 0B 13 00 09 00 01 99 41 18 67 00 00 00 00 90 00 00 [15:14:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:14:35]wFMCommunicate OK [15:14:35]SAM_PROTO_GetShiftState done [15:14:35]FM_GetShiftState done [15:14:35]opened in 1729642905 [15:14:35]opened+sec_in_day 1729729305 [15:14:35]quantity*price = 12500 [15:14:35]sum+1 = 12501 [15:14:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 226 23.10.2024 15:14 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75493 ФПД: 23344319148959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151435&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75493&fm=23344319148959&tin=02508201610067®Number=0000000000161154&sum=12500 0 [15:14:36]StoreToDocumentArchive [15:14:36]shift 173 fd 75493 [15:14:36]save to /storage/0173/doc_00075493 [15:14:36]save last doc name /storage/0173/doc_00075493 to /storage/kkm_last_doc_name [15:14:36]save OK [15:14:36]Clear old archive folders... [15:14:36]ProcessDocumentItem done err = 0, tmpTLVsize=270 [15:14:36]tlvbuf is B6E6D740 [15:14:36]SAM_PROTO_ClearQueue [15:14:36]wFMCommunicate request_size=4 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 09 00 00 [15:14:36]Write to MH i2c: E2 08 00 18 13 80 09 00 00 00 00 00 00 9D [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 18 13 00 90 00 9F [15:14:36]RAPDU: 90 00 [15:14:36]wFMCommunicate OK [15:14:36]SAM_PROTO_ClearQueue done [15:14:36]KKMCreateOFDPacket [15:14:36]OFDProtocolAddRootSTLVToBuf [15:14:36]FM_MakeSignedData [15:14:36]FM_MakeSignedData [15:14:36]SAM_PROTO_SignData [15:14:36]wFMCommunicate request_size=4 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 0D 01 02 [15:14:36]Write to MH i2c: E2 08 00 19 13 80 0D 01 02 00 00 00 00 A5 [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 19 13 00 90 00 A0 [15:14:36]RAPDU: 90 00 [15:14:36]wFMCommunicate OK [15:14:36]wFMCommunicate request_size=255 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 DB 12 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [15:14:36]Write to MH i2c: E2 02 01 1A 13 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 DB 12 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 7E [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 1A 13 00 90 00 A1 [15:14:36]RAPDU: 90 00 [15:14:36]wFMCommunicate OK [15:14:36]wFMCommunicate request_size=29 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 E5 26 01 00 35 04 06 00 15 3B 45 D9 B3 9F [15:14:36]Write to MH i2c: E2 20 00 1B 13 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 E5 26 01 00 35 04 06 00 15 3B 45 D9 B3 9F 00 00 35 [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [15:14:36]RAPDU: 90 00 [15:14:36]wFMCommunicate OK [15:14:36]wFMCommunicate request_size=4 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 0D 03 02 [15:14:36]Write to MH i2c: E2 08 00 1C 13 80 0D 03 02 00 00 00 00 AA [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 0B 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 0B 00 1C 13 00 B1 BE 3A 77 F4 12 AF 45 90 00 C5 [15:14:36]RAPDU: B1 BE 3A 77 F4 12 AF 45 90 00 [15:14:36]wFMCommunicate OK [15:14:36]SAM_PROTO_SignData done [15:14:36]FM_MakeSignedData done [15:14:36]CreateOFDProtocolMessage [15:14:36]wFMCommunicate request_size=4 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 11 00 00 [15:14:36]Write to MH i2c: E2 08 00 1D 13 80 11 00 00 00 00 00 00 AA [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 17 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 17 00 1D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F7 [15:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:14:36]wFMCommunicate OK [15:14:36]CreateOFDProtocolMessage done [15:14:36]OFDSenderStorePacket 75493 [15:14:36]StoreOFDPacket docnum=75493 [15:14:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 AB BE 1A 01 33 46 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 DB 12 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 26 01 00 35 04 06 00 15 3B 45 D9 B3 9F B1 BE 3A 77 F4 12 AF 45 [15:14:36]CheckFolder [15:14:36]dirname=/storage/ofd_packets [15:14:36]CheckFolder done [15:14:36]ProducePacketName [15:14:36]name=ofd_packets/00075493 [15:14:36]NVStorageSaveData ofd_packets/00075493 [15:14:36]File name is /storage/ofd_packets/00075493 [15:14:36]Write 320 bytes [15:14:36]NVStorageSaveData done [15:14:36]OFDSenderStorePacket done [15:14:36]KKMCreateOFDPacket done [15:14:36]NVStorageSaveData kkm_last_timestamp [15:14:36]File name is /storage/kkm_last_timestamp [15:14:36]Write 4 bytes [15:14:36]NVStorageSaveData done [15:14:36]ExternCall_PrintAddStr [15:14:36]wPrintStart [15:14:36]Write to MH i2c: 01 00 00 1E 13 31 [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: 01 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: 01 07 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: 01 07 00 1E 13 00 00 00 00 00 FF 0F 46 [15:14:36]RasterBufferAndPrint [15:14:36]line Счет N : (3)273264 [15:14:36]line ИНН: 02508201610067 [15:14:36]line Контрольно-Кассовый Чек [15:14:36]line ПРОДАЖА [15:14:36]line Товар: 48742191 [15:14:36]line Сигареты Bond Street Blue [15:14:36]line 1.000 * 125.00 [15:14:36]line = 125.00 [15:14:36]line НДС 12% НСП 1% [15:14:36]line > о реализуемом товаре [15:14:36]line ИТОГО: 125.00 [15:14:36]line НСП 1% : 1.11 [15:14:36]line НДС 12% : 13.27 [15:14:36]line Наличными: 125.00 [15:14:36]line Безнал.: 0.00 [15:14:36]line Место: АЗС № 133 "Партнер Нефть" [15:14:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:14:36]line СНО: Общий режим [15:14:36]line Чек 226 23.10.2024 15:14 [15:14:36]line Смена: 173 ФФД: 1.0 [15:14:36]line ЗНМ: 0300000020 [15:14:36]line РНМ: 0000000000161154 [15:14:36]line Версия ККМ: v1.0 [15:14:36]line ФМ: 0000000000963323 [15:14:36]line ФД: 75493 [15:14:36]line ФПД: 23344319148959 [15:14:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151435&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75493&fm=23344319148959&tin=02508201610067®Number=0000000000161154&sum=12500 [15:14:37]line 0 [15:14:37]OFD Sender: Processing packet 75493 [packets to send 16, broken 15] [15:14:37]ProducePacketName [15:14:37]name=ofd_packets/00075493 [15:14:37]OFD Sender: To server: pG, [15:14:37]CommunicateWithHost lk.salyk.kg:30040 [15:14:37]ConnectInit lk.salyk.kg [15:14:37]written 0, free lines is 4095 [15:14:37]Connected sock=10 [15:14:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 AB BE 1A 01 33 46 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 DB 12 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 26 01 00 35 04 06 00 15 3B 45 D9 B3 9F B1 BE 3A 77 F4 12 AF 45 [15:14:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4C 00 47 00 C1 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E5 26 01 00 F4 03 04 00 B6 BB 18 67 B6 04 01 00 00 77 B9 8B E1 A7 94 F7 E7 [15:14:37]CommunicateWithHost err = 0 [15:14:37]CheckOFDResponse [15:14:37]1017 (14) - 77093643461234 [15:14:37]1041 (16) - 0000000000963323 [15:14:37]1040 (4) - 75493 [15:14:37]1012 (4) - 23.10.2024 09:02 [15:14:37]1206 (1) - 0 [15:14:37]OFD Sender: Remove packet 75493 [15:14:37]ProducePacketName [15:14:37]name=ofd_packets/00075493 [15:14:37]NVStorageDeleteData [15:14:37]Write to MH i2c: 01 00 00 45 13 58 [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: 01 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: 01 07 00 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: 01 07 00 45 13 00 00 00 00 00 DA 0C 45 [15:14:37]RasterBufferAndPrint [15:14:37]line [15:14:37]line [15:14:37]line [15:14:37]line [15:14:37]line [15:14:37]written 0, free lines is 3297 [15:14:37]MH_Cut [15:14:37]Write to MH i2c: D1 01 00 4C 13 01 31 [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: D1 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: D1 01 00 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: D1 01 00 4C 13 00 30 [15:14:37]Write to MH i2c: 01 00 00 4D 13 60 [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:37]OFD Sender: No OFD packet to send [15:14:38]*** Cut start [15:14:38]*** Partial cut [15:14:38]*** CUTSNS_PIN = 1 [15:14:38]*** CUTSNS_PIN = 0 [15:14:38]*** Brake cut motor [15:14:38]Read from MH i2c: 01 [15:14:39]MH_I2C_Read... [15:14:39]*** Stop cut motor [15:14:39]*** Cut end [15:14:39]Read from MH i2c: 01 07 00 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: 01 07 00 4D 13 00 00 00 00 00 FF 0F 75 [15:14:39]process_action close_receipt done [15:14:39]requested_data is exist [15:14:39]produce_requested_data [15:14:39]requested_item fm.sn is exist - process it [15:14:39]wFMCommunicate request_size=4 [15:14:39]MH_SAM_APDU [15:14:39]CAPDU: 80 11 00 00 [15:14:39]Write to MH i2c: E2 08 00 4E 13 80 11 00 00 00 00 00 00 DB [15:14:39]Write i2c OK [15:14:39]MH_I2C_Read... [15:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:39]Read from MH i2c: E2 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 17 00 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 17 00 4E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 28 [15:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:14:39]wFMCommunicate OK [15:14:39]requested_item fd.num is exist - process it [15:14:39]SAM_PROTO_GetFieldsCounters [15:14:39]wFMCommunicate request_size=4 [15:14:39]MH_SAM_APDU [15:14:39]CAPDU: 80 13 00 00 [15:14:39]Write to MH i2c: E2 08 00 4F 13 80 13 00 00 00 00 00 00 DE [15:14:39]Write i2c OK [15:14:39]MH_I2C_Read... [15:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:39]Read from MH i2c: E2 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 62 00 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 62 00 4F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E5 26 01 00 0E 04 04 00 AD 00 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 51 [15:14:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E5 26 01 00 0E 04 04 00 AD 00 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 [15:14:39]wFMCommunicate OK [15:14:39]SAM_PROTO_GetFieldsCounters done [15:14:39]requested_item shift.num is exist - process it [15:14:39]requested_item shift.opened is exist - process it [15:14:39]req_shift_opened [15:14:39]FM_GetShiftState [15:14:39]SAM_PROTO_GetShiftState [15:14:39]wFMCommunicate request_size=4 [15:14:39]MH_SAM_APDU [15:14:39]CAPDU: 80 13 01 00 [15:14:39]Write to MH i2c: E2 08 00 50 13 80 13 01 00 00 00 00 00 E0 [15:14:39]Write i2c OK [15:14:39]MH_I2C_Read... [15:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:39]Read from MH i2c: E2 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 0E 00 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 0E 00 50 13 00 09 00 01 99 41 18 67 00 00 00 00 90 00 45 [15:14:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:14:39]wFMCommunicate OK [15:14:39]SAM_PROTO_GetShiftState done [15:14:39]FM_GetShiftState done [15:14:39]req_shift_opened done [15:14:39]requested_item shift.open_date is exist - process it [15:14:39]req_shift_open_date [15:14:39]req_shift_open_date done [15:14:39]produce_requested_data done [15:14:39]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75493,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:14:39]process_action_free close_receipt [15:14:39]json_value_free [15:14:39]json_value_free done [15:14:39]process_json_proto returns [15:14:39]Send response to host [15:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75493,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:14:39]free response buf [15:14:39]execute_script done [15:14:39]execute_script returns [15:14:39]free content buf [15:14:39]Sock 9.Close socket [15:14:39]Sock 9.Thread stoped [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:14]accept exits with 8 [15:15:14]New connection [15:15:14]New thread 3066465636 created [15:15:14]Thread 3066608996 joined [15:15:14]Waiting for new connection... [15:15:14] Sock 8.Parse request [15:15:14]Sock 8.Check first char [15:15:14]Sock 8.First char is OK [15:15:14]request: POST /json_proto HTTP/1.0 [15:15:14]Method: POST [15:15:14]URL: /json_proto [15:15:14]Method is POST - this is cgi request [15:15:14]url: /json_proto [15:15:14]query_string will be loaded in cgi processing [15:15:14]execute_cgi json_proto POST (null) [15:15:14]execute_cgi path=json_proto method=POST [15:15:14]POST find Content-Length [15:15:14]Host: 172.17.44.196:8080 [15:15:14]Content-Length: 768 [15:15:14]Content-Type: application/json [15:15:14] [15:15:14]POST finish read [15:15:14]Found Content-Length = 768 [15:15:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: cash2u", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:14]execute_script... [15:15: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)1965676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: cash2u", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:14]POST & json_proto [15:15:14]process_json_proto [15:15:14]json parsed OK: [15:15:14]protocol is kg_v1.0 [15:15:14]action value=close_receipt [15:15:14]process_action close_receipt [15:15:14]cmd_close_receipt [15:15:14]MH_GetDate [15:15:14]Write to MH i2c: F0 00 00 51 13 53 [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: F0 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: F0 09 00 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: F0 09 00 51 13 00 03 13 19 67 E7 19 F8 65 4F [15:15:14]GetLastDocTimeStamp 1729696475 [15:15:14]current date 1729696515 [15:15:14]FM_GetShiftState [15:15:14]SAM_PROTO_GetShiftState [15:15:14]wFMCommunicate request_size=4 [15:15:14]MH_SAM_APDU [15:15:14]CAPDU: 80 13 01 00 [15:15:14]Write to MH i2c: E2 08 00 52 13 80 13 01 00 00 00 00 00 E2 [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:14]Read from MH i2c: E2 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: E2 0E 00 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: E2 0E 00 52 13 00 09 00 01 99 41 18 67 00 00 00 00 90 00 47 [15:15:14]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:15:14]wFMCommunicate OK [15:15:14]SAM_PROTO_GetShiftState done [15:15:14]FM_GetShiftState done [15:15:14]opened in 1729642905 [15:15:14]opened+sec_in_day 1729729305 [15:15:14]quantity*price = 100050 [15:15:14]sum+1 = 100052 [15:15:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 227 23.10.2024 15:15 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: cash2u ФМ: 0000000000963323 ФД: 75494 ФПД: 256981001084578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151515&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75494&fm=256981001084578&tin=02508201610067®Number=0000000000161154&sum=100051 [15:15:15]StoreToDocumentArchive [15:15:15]shift 173 fd 75494 [15:15:15]save to /storage/0173/doc_00075494 [15:15:15]save last doc name /storage/0173/doc_00075494 to /storage/kkm_last_doc_name [15:15:15]save OK [15:15:15]Clear old archive folders... [15:15:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:15:15]tlvbuf is 0079AD40 [15:15:15]SAM_PROTO_ClearQueue [15:15:15]wFMCommunicate request_size=4 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 09 00 00 [15:15:15]Write to MH i2c: E2 08 00 5F 13 80 09 00 00 00 00 00 00 E4 [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 5F 13 00 90 00 E6 [15:15:15]RAPDU: 90 00 [15:15:15]wFMCommunicate OK [15:15:15]SAM_PROTO_ClearQueue done [15:15:15]KKMCreateOFDPacket [15:15:15]OFDProtocolAddRootSTLVToBuf [15:15:15]FM_MakeSignedData [15:15:15]FM_MakeSignedData [15:15:15]SAM_PROTO_SignData [15:15:15]wFMCommunicate request_size=4 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 0D 01 02 [15:15:15]Write to MH i2c: E2 08 00 60 13 80 0D 01 02 00 00 00 00 EC [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 60 13 00 90 00 E7 [15:15:15]RAPDU: 90 00 [15:15:15]wFMCommunicate OK [15:15:15]wFMCommunicate request_size=255 [15:15:15]MH_SAM_APDU [15:15: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 03 13 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E6 26 01 00 35 04 06 00 E9 B9 0D 48 [15:15:15]Write to MH i2c: E2 02 01 61 13 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 03 13 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E6 26 01 00 35 04 06 00 E9 B9 0D 48 00 00 F4 [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 61 13 00 90 00 E8 [15:15:15]RAPDU: 90 00 [15:15:15]wFMCommunicate OK [15:15:15]wFMCommunicate request_size=7 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 0D 02 02 02 9E A2 [15:15:15]Write to MH i2c: E2 0A 00 62 13 80 0D 02 02 02 00 9E A2 00 00 33 [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 62 13 00 90 00 E9 [15:15:15]RAPDU: 90 00 [15:15:15]wFMCommunicate OK [15:15:15]wFMCommunicate request_size=4 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 0D 03 02 [15:15:15]Write to MH i2c: E2 08 00 63 13 80 0D 03 02 00 00 00 00 F1 [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 0B 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 0B 00 63 13 00 3A E1 17 7A 9D 2F C5 25 90 00 54 [15:15:15]RAPDU: 3A E1 17 7A 9D 2F C5 25 90 00 [15:15:15]wFMCommunicate OK [15:15:15]SAM_PROTO_SignData done [15:15:15]FM_MakeSignedData done [15:15:15]CreateOFDProtocolMessage [15:15:15]wFMCommunicate request_size=4 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 11 00 00 [15:15:15]Write to MH i2c: E2 08 00 64 13 80 11 00 00 00 00 00 00 F1 [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 17 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 17 00 64 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3E [15:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:15:15]wFMCommunicate OK [15:15:15]CreateOFDProtocolMessage done [15:15:15]OFDSenderStorePacket 75494 [15:15:15]StoreOFDPacket docnum=75494 [15:15:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 C6 70 04 01 3B 2D 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 03 13 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E6 26 01 00 35 04 06 00 E9 B9 0D 48 9E A2 3A E1 17 7A 9D 2F C5 25 [15:15:15]CheckFolder [15:15:15]dirname=/storage/ofd_packets [15:15:15]CheckFolder done [15:15:15]ProducePacketName [15:15:15]name=ofd_packets/00075494 [15:15:15]NVStorageSaveData ofd_packets/00075494 [15:15:15]File name is /storage/ofd_packets/00075494 [15:15:15]Write 298 bytes [15:15:15]NVStorageSaveData done [15:15:15]OFDSenderStorePacket done [15:15:15]KKMCreateOFDPacket done [15:15:15]NVStorageSaveData kkm_last_timestamp [15:15:15]File name is /storage/kkm_last_timestamp [15:15:15]Write 4 bytes [15:15:15]NVStorageSaveData done [15:15:15]ExternCall_PrintAddStr [15:15:15]wPrintStart [15:15:15]Write to MH i2c: 01 00 00 65 13 78 [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: 01 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: 01 07 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: 01 07 00 65 13 00 00 00 00 00 FF 0F 8D [15:15:15]RasterBufferAndPrint [15:15:15]line Счет N : (1)1965676 [15:15:15]line ИНН: 02508201610067 [15:15:15]line Контрольно-Кассовый Чек [15:15:15]line ПРОДАЖА [15:15:15]line ТРК (МРК, ГНК) : 31 [15:15:15]line Товар: 2710194210 [15:15:15]line ДТ-К-5 [15:15:15]line 13.130 * 76.20 [15:15:15]line = 1000.51 [15:15:15]line НДС 12% НСП 1% [15:15:15]line > о реализуемом товаре [15:15:15]line ИТОГО: 1000.51 [15:15:15]line НСП 1% : 8.85 [15:15:15]line НДС 12% : 106.25 [15:15:15]line Наличными: 0.00 [15:15:15]line Безнал.: 1000.51 [15:15:15]line Место: АЗС № 133 "Партнер Нефть" [15:15:15]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:15:15]line СНО: Общий режим [15:15:15]line Чек 227 23.10.2024 15:15 [15:15:15]line Смена: 173 ФФД: 1.0 [15:15:15]line ЗНМ: 0300000020 [15:15:15]line РНМ: 0000000000161154 [15:15:15]line Версия ККМ: v1.0 [15:15:15]line Платежная система: cash2u [15:15:15]line ФМ: 0000000000963323 [15:15:15]line ФД: 75494 [15:15:15]line ФПД: 256981001084578 [15:15:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151515&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75494&fm=256981001084578&tin=02508201610067®Number=0000000000161154&sum=100051 [15:15:16]OFD Sender: Processing packet 75494 [packets to send 16, broken 15] [15:15:16]ProducePacketName [15:15:16]name=ofd_packets/00075494 [15:15:16]OFD Sender: To server: pG, [15:15:16]CommunicateWithHost lk.salyk.kg:30040 [15:15:16]ConnectInit lk.salyk.kg [15:15:16]written 0, free lines is 4095 [15:15:16]Connected sock=10 [15:15:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 C6 70 04 01 3B 2D 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 03 13 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E6 26 01 00 35 04 06 00 E9 B9 0D 48 9E A2 3A E1 17 7A 9D 2F C5 25 [15:15:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7B 3D 47 00 D6 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 39 36 33 33 32 33 10 04 04 00 E6 26 01 00 F4 03 04 00 DD BB 18 67 B6 04 01 00 00 F8 50 A9 6E 7A 29 32 14 [15:15:16]CommunicateWithHost err = 0 [15:15:16]CheckOFDResponse [15:15:16]1017 (14) - 77093643461234 [15:15:16]1041 (16) - 0000000000963323 [15:15:16]1040 (4) - 75494 [15:15:16]1012 (4) - 23.10.2024 09:03 [15:15:16]1206 (1) - 0 [15:15:16]OFD Sender: Remove packet 75494 [15:15:16]ProducePacketName [15:15:16]name=ofd_packets/00075494 [15:15:16]NVStorageDeleteData [15:15:16]Write to MH i2c: 01 00 00 8D 13 A0 [15:15:16]Write i2c OK [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: 01 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: 01 07 00 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: 01 07 00 8D 13 00 00 00 00 00 D1 0C 84 [15:15:16]RasterBufferAndPrint [15:15:16]line [15:15:16]line [15:15:16]line [15:15:16]line [15:15:16]line [15:15:16]written 0, free lines is 3285 [15:15:16]MH_Cut [15:15:16]Write to MH i2c: D1 01 00 94 13 01 79 [15:15:16]Write i2c OK [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: D1 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: D1 01 00 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: D1 01 00 94 13 00 78 [15:15:16]Write to MH i2c: 01 00 00 95 13 A8 [15:15:16]Write i2c OK [15:15:16]MH_I2C_Read... [15:15:17]OFD Sender: No OFD packet to send [15:15:17]*** Cut start [15:15:17]*** Partial cut [15:15:17]*** CUTSNS_PIN = 1 [15:15:17]*** CUTSNS_PIN = 0 [15:15:17]*** Brake cut motor [15:15:18]Read from MH i2c: 01 [15:15:18]MH_I2C_Read... [15:15:18]*** Stop cut motor [15:15:18]*** Cut end [15:15:18]Read from MH i2c: 01 07 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: 01 07 00 95 13 00 00 00 00 00 FF 0F BD [15:15:18]process_action close_receipt done [15:15:18]requested_data is exist [15:15:18]produce_requested_data [15:15:18]requested_item fm.sn is exist - process it [15:15:18]wFMCommunicate request_size=4 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 11 00 00 [15:15:18]Write to MH i2c: E2 08 00 96 13 80 11 00 00 00 00 00 00 23 [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 17 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 17 00 96 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 70 [15:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:15:18]wFMCommunicate OK [15:15:18]requested_item fd.num is exist - process it [15:15:18]SAM_PROTO_GetFieldsCounters [15:15:18]wFMCommunicate request_size=4 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 13 00 00 [15:15:18]Write to MH i2c: E2 08 00 97 13 80 13 00 00 00 00 00 00 26 [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 62 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 62 00 97 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E6 26 01 00 0E 04 04 00 AD 00 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 9D [15:15:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E6 26 01 00 0E 04 04 00 AD 00 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 [15:15:18]wFMCommunicate OK [15:15:18]SAM_PROTO_GetFieldsCounters done [15:15:18]requested_item shift.num is exist - process it [15:15:18]requested_item shift.opened is exist - process it [15:15:18]req_shift_opened [15:15:18]FM_GetShiftState [15:15:18]SAM_PROTO_GetShiftState [15:15:18]wFMCommunicate request_size=4 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 13 01 00 [15:15:18]Write to MH i2c: E2 08 00 98 13 80 13 01 00 00 00 00 00 28 [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 0E 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 0E 00 98 13 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8D [15:15:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:15:18]wFMCommunicate OK [15:15:18]SAM_PROTO_GetShiftState done [15:15:18]FM_GetShiftState done [15:15:18]req_shift_opened done [15:15:18]requested_item shift.open_date is exist - process it [15:15:18]req_shift_open_date [15:15:18]req_shift_open_date done [15:15:18]produce_requested_data done [15:15:18]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75494,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:15:18]process_action_free close_receipt [15:15:18]json_value_free [15:15:18]json_value_free done [15:15:18]process_json_proto returns [15:15:18]Send response to host [15:15:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75494,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:15:18]free response buf [15:15:18]execute_script done [15:15:18]execute_script returns [15:15:18]free content buf [15:15:18]Sock 8.Close socket [15:15:18]Sock 8.Thread stoped [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:31]accept exits with 9 [15:16:31]New connection [15:16:31]New thread 3066608996 created [15:16:31]Thread 3066465636 joined [15:16:31]Waiting for new connection... [15:16:31] Sock 9.Parse request [15:16:31]Sock 9.Check first char [15:16:31]Sock 9.First char is OK [15:16:31]request: POST /json_proto HTTP/1.0 [15:16:31]Method: POST [15:16:31]URL: /json_proto [15:16:31]Method is POST - this is cgi request [15:16:31]url: /json_proto [15:16:31]query_string will be loaded in cgi processing [15:16:31]execute_cgi json_proto POST (null) [15:16:31]execute_cgi path=json_proto method=POST [15:16:31]POST find Content-Length [15:16:31]Host: 172.17.44.196:8080 [15:16:31]Content-Length: 624 [15:16:31]Content-Type: application/json [15:16:31] [15:16:31]POST finish read [15:16:31]Found Content-Length = 624 [15:16:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273265", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:31]execute_script... [15:16:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273265", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:31]POST & json_proto [15:16:31]process_json_proto [15:16:31]json parsed OK: [15:16:31]protocol is kg_v1.0 [15:16:31]action value=close_receipt [15:16:31]process_action close_receipt [15:16:31]cmd_close_receipt [15:16:31]MH_GetDate [15:16:31]Write to MH i2c: F0 00 00 99 13 9B [15:16:32]Write i2c OK [15:16:32]MH_I2C_Read... [15:16:32]Read from MH i2c: F0 [15:16:32]MH_I2C_Read... [15:16:32]Read from MH i2c: F0 09 00 [15:16:32]MH_I2C_Read... [15:16:32]Read from MH i2c: F0 09 00 99 13 00 50 13 19 67 E7 19 F8 65 E4 [15:16:32]GetLastDocTimeStamp 1729696515 [15:16:32]current date 1729696592 [15:16:32]FM_GetShiftState [15:16:32]SAM_PROTO_GetShiftState [15:16:32]wFMCommunicate request_size=4 [15:16:32]MH_SAM_APDU [15:16:32]CAPDU: 80 13 01 00 [15:16:32]Write to MH i2c: E2 08 00 9A 13 80 13 01 00 00 00 00 00 2A [15:16:32]Write i2c OK [15:16:32]MH_I2C_Read... [15:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:32]Read from MH i2c: E2 [15:16:32]MH_I2C_Read... [15:16:32]Read from MH i2c: E2 0E 00 [15:16:32]MH_I2C_Read... [15:16:32]Read from MH i2c: E2 0E 00 9A 13 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8F [15:16:32]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:16:32]wFMCommunicate OK [15:16:32]SAM_PROTO_GetShiftState done [15:16:32]FM_GetShiftState done [15:16:32]opened in 1729642905 [15:16:32]opened+sec_in_day 1729729305 [15:16:32]quantity*price = 15000 [15:16:32]sum+1 = 15001 [15:16:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 228 23.10.2024 15:16 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75495 ФПД: 94105786687696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151632&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75495&fm=94105786687696&tin=02508201610067®Number=0000000000161154&sum=15000 0 [15:16:33]StoreToDocumentArchive [15:16:33]shift 173 fd 75495 [15:16:33]save to /storage/0173/doc_00075495 [15:16:33]save last doc name /storage/0173/doc_00075495 to /storage/kkm_last_doc_name [15:16:33]save OK [15:16:33]Clear old archive folders... [15:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:16:33]tlvbuf is 00783FB0 [15:16:33]SAM_PROTO_ClearQueue [15:16:33]wFMCommunicate request_size=4 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 09 00 00 [15:16:33]Write to MH i2c: E2 08 00 A7 13 80 09 00 00 00 00 00 00 2C [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 A7 13 00 90 00 2E [15:16:33]RAPDU: 90 00 [15:16:33]wFMCommunicate OK [15:16:33]SAM_PROTO_ClearQueue done [15:16:33]KKMCreateOFDPacket [15:16:33]OFDProtocolAddRootSTLVToBuf [15:16:33]FM_MakeSignedData [15:16:33]FM_MakeSignedData [15:16:33]SAM_PROTO_SignData [15:16:33]wFMCommunicate request_size=4 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 0D 01 02 [15:16:33]Write to MH i2c: E2 08 00 A8 13 80 0D 01 02 00 00 00 00 34 [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 A8 13 00 90 00 2F [15:16:33]RAPDU: 90 00 [15:16:33]wFMCommunicate OK [15:16:33]wFMCommunicate request_size=255 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 50 13 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 [15:16:33]Write to MH i2c: E2 02 01 A9 13 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 50 13 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 00 00 59 [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 A9 13 00 90 00 30 [15:16:33]RAPDU: 90 00 [15:16:33]wFMCommunicate OK [15:16:33]wFMCommunicate request_size=35 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E7 26 01 00 35 04 06 00 55 96 B5 FC A0 D0 [15:16:33]Write to MH i2c: E2 26 00 AA 13 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E7 26 01 00 35 04 06 00 55 96 B5 FC A0 D0 00 00 3E [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 AA 13 00 90 00 31 [15:16:33]RAPDU: 90 00 [15:16:33]wFMCommunicate OK [15:16:33]wFMCommunicate request_size=4 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 0D 03 02 [15:16:33]Write to MH i2c: E2 08 00 AB 13 80 0D 03 02 00 00 00 00 39 [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 0B 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 0B 00 AB 13 00 21 EB 4E 29 A6 B6 FE DF 90 00 F6 [15:16:33]RAPDU: 21 EB 4E 29 A6 B6 FE DF 90 00 [15:16:33]wFMCommunicate OK [15:16:33]SAM_PROTO_SignData done [15:16:33]FM_MakeSignedData done [15:16:33]CreateOFDProtocolMessage [15:16:33]wFMCommunicate request_size=4 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 11 00 00 [15:16:33]Write to MH i2c: E2 08 00 AC 13 80 11 00 00 00 00 00 00 39 [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 17 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 17 00 AC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [15:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:16:33]wFMCommunicate OK [15:16:33]CreateOFDProtocolMessage done [15:16:33]OFDSenderStorePacket 75495 [15:16:33]StoreOFDPacket docnum=75495 [15:16:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 13 1E 20 01 6B EC 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 50 13 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E7 26 01 00 35 04 06 00 55 96 B5 FC A0 D0 21 EB 4E 29 A6 B6 FE DF [15:16:33]CheckFolder [15:16:33]dirname=/storage/ofd_packets [15:16:33]CheckFolder done [15:16:33]ProducePacketName [15:16:33]name=ofd_packets/00075495 [15:16:33]NVStorageSaveData ofd_packets/00075495 [15:16:33]File name is /storage/ofd_packets/00075495 [15:16:33]Write 326 bytes [15:16:33]NVStorageSaveData done [15:16:33]OFDSenderStorePacket done [15:16:33]KKMCreateOFDPacket done [15:16:33]NVStorageSaveData kkm_last_timestamp [15:16:33]File name is /storage/kkm_last_timestamp [15:16:33]Write 4 bytes [15:16:33]NVStorageSaveData done [15:16:33]ExternCall_PrintAddStr [15:16:33]wPrintStart [15:16:33]Write to MH i2c: 01 00 00 AD 13 C0 [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: 01 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: 01 07 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: 01 07 00 AD 13 00 00 00 00 00 FF 0F D5 [15:16:33]RasterBufferAndPrint [15:16:33]line Счет N : (3)273265 [15:16:33]line ИНН: 02508201610067 [15:16:33]line Контрольно-Кассовый Чек [15:16:33]line ПРОДАЖА [15:16:33]line Товар: 48747073 [15:16:33]line Сигареты Richmond Royal Edition [15:16:33]line 1.000 * 150.00 [15:16:33]line = 150.00 [15:16:33]line НДС 12% НСП 1% [15:16:33]line > о реализуемом товаре [15:16:33]line ИТОГО: 150.00 [15:16:33]line НСП 1% : 1.33 [15:16:33]line НДС 12% : 15.93 [15:16:33]line Наличными: 150.00 [15:16:33]line Безнал.: 0.00 [15:16:33]line Место: АЗС № 133 "Партнер Нефть" [15:16:33]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:16:33]line СНО: Общий режим [15:16:33]line Чек 228 23.10.2024 15:16 [15:16:33]line Смена: 173 ФФД: 1.0 [15:16:33]line ЗНМ: 0300000020 [15:16:33]line РНМ: 0000000000161154 [15:16:33]line Версия ККМ: v1.0 [15:16:33]line ФМ: 0000000000963323 [15:16:33]line ФД: 75495 [15:16:33]line ФПД: 94105786687696 [15:16:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151632&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75495&fm=94105786687696&tin=02508201610067®Number=0000000000161154&sum=15000 [15:16:34]line 0 [15:16:34]OFD Sender: Processing packet 75495 [packets to send 16, broken 15] [15:16:34]ProducePacketName [15:16:34]name=ofd_packets/00075495 [15:16:34]OFD Sender: To server: pG, [15:16:34]CommunicateWithHost lk.salyk.kg:30040 [15:16:34]ConnectInit lk.salyk.kg [15:16:34]written 0, free lines is 4095 [15:16:34]Connected sock=10 [15:16:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 13 1E 20 01 6B EC 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 50 13 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E7 26 01 00 35 04 06 00 55 96 B5 FC A0 D0 21 EB 4E 29 A6 B6 FE DF [15:16:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8A A3 47 00 6E AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E7 26 01 00 F4 03 04 00 2B BC 18 67 B6 04 01 00 00 E5 27 26 BE 47 CA 33 A4 [15:16:34]CommunicateWithHost err = 0 [15:16:34]CheckOFDResponse [15:16:34]1017 (14) - 77093643461234 [15:16:34]1041 (16) - 0000000000963323 [15:16:34]1040 (4) - 75495 [15:16:34]1012 (4) - 23.10.2024 09:04 [15:16:34]1206 (1) - 0 [15:16:34]OFD Sender: Remove packet 75495 [15:16:34]ProducePacketName [15:16:34]name=ofd_packets/00075495 [15:16:34]NVStorageDeleteData [15:16:34]Write to MH i2c: 01 00 00 D5 13 E8 [15:16:34]Write i2c OK [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: 01 [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: 01 07 00 [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: 01 07 00 D5 13 00 00 00 00 00 B9 0C B4 [15:16:34]RasterBufferAndPrint [15:16:34]line [15:16:34]line [15:16:34]line [15:16:34]line [15:16:34]line [15:16:34]written 0, free lines is 3262 [15:16:34]MH_Cut [15:16:34]Write to MH i2c: D1 01 00 DC 13 01 C1 [15:16:34]Write i2c OK [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: D1 [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: D1 01 00 [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: D1 01 00 DC 13 00 C0 [15:16:34]Write to MH i2c: 01 00 00 DD 13 F0 [15:16:34]Write i2c OK [15:16:34]MH_I2C_Read... [15:16:34]OFD Sender: No OFD packet to send [15:16:35]*** Cut start [15:16:35]*** Partial cut [15:16:35]*** CUTSNS_PIN = 1 [15:16:35]*** CUTSNS_PIN = 0 [15:16:35]*** Brake cut motor [15:16:36]Read from MH i2c: 01 [15:16:36]MH_I2C_Read... [15:16:36]*** Stop cut motor [15:16:36]*** Cut end [15:16:36]Read from MH i2c: 01 07 00 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: 01 07 00 DD 13 00 00 00 00 00 FF 0F 05 [15:16:36]process_action close_receipt done [15:16:36]requested_data is exist [15:16:36]produce_requested_data [15:16:36]requested_item fm.sn is exist - process it [15:16:36]wFMCommunicate request_size=4 [15:16:36]MH_SAM_APDU [15:16:36]CAPDU: 80 11 00 00 [15:16:36]Write to MH i2c: E2 08 00 DE 13 80 11 00 00 00 00 00 00 6B [15:16:36]Write i2c OK [15:16:36]MH_I2C_Read... [15:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:36]Read from MH i2c: E2 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 17 00 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 17 00 DE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B8 [15:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:16:36]wFMCommunicate OK [15:16:36]requested_item fd.num is exist - process it [15:16:36]SAM_PROTO_GetFieldsCounters [15:16:36]wFMCommunicate request_size=4 [15:16:36]MH_SAM_APDU [15:16:36]CAPDU: 80 13 00 00 [15:16:36]Write to MH i2c: E2 08 00 DF 13 80 13 00 00 00 00 00 00 6E [15:16:36]Write i2c OK [15:16:36]MH_I2C_Read... [15:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:36]Read from MH i2c: E2 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 62 00 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 62 00 DF 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E7 26 01 00 0E 04 04 00 AD 00 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 E9 [15:16:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E7 26 01 00 0E 04 04 00 AD 00 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 [15:16:36]wFMCommunicate OK [15:16:36]SAM_PROTO_GetFieldsCounters done [15:16:36]requested_item shift.num is exist - process it [15:16:36]requested_item shift.opened is exist - process it [15:16:36]req_shift_opened [15:16:36]FM_GetShiftState [15:16:36]SAM_PROTO_GetShiftState [15:16:36]wFMCommunicate request_size=4 [15:16:36]MH_SAM_APDU [15:16:36]CAPDU: 80 13 01 00 [15:16:36]Write to MH i2c: E2 08 00 E0 13 80 13 01 00 00 00 00 00 70 [15:16:36]Write i2c OK [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 [15:16:36]MH_I2C_Read... [15:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:36]Read from MH i2c: E2 0E 00 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 0E 00 E0 13 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D5 [15:16:36]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:16:36]wFMCommunicate OK [15:16:36]SAM_PROTO_GetShiftState done [15:16:36]FM_GetShiftState done [15:16:36]req_shift_opened done [15:16:36]requested_item shift.open_date is exist - process it [15:16:36]req_shift_open_date [15:16:36]req_shift_open_date done [15:16:36]produce_requested_data done [15:16:36]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75495,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:16:36]process_action_free close_receipt [15:16:36]json_value_free [15:16:36]json_value_free done [15:16:36]process_json_proto returns [15:16:36]Send response to host [15:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75495,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:16:36]free response buf [15:16:36]execute_script done [15:16:36]execute_script returns [15:16:36]free content buf [15:16:36]Sock 9.Close socket [15:16:36]Sock 9.Thread stoped [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:36]accept exits with 8 [15:19:36]New connection [15:19:36]New thread 3066465636 created [15:19:36]Thread 3066608996 joined [15:19:36]Waiting for new connection... [15:19:36] Sock 8.Parse request [15:19:36]Sock 8.Check first char [15:19:36]Sock 8.First char is OK [15:19:36]request: POST /json_proto HTTP/1.0 [15:19:36]Method: POST [15:19:36]URL: /json_proto [15:19:36]Method is POST - this is cgi request [15:19:36]url: /json_proto [15:19:36]query_string will be loaded in cgi processing [15:19:36]execute_cgi json_proto POST (null) [15:19:36]execute_cgi path=json_proto method=POST [15:19:36]POST find Content-Length [15:19:36]Host: 172.17.44.196:8080 [15:19:36]Content-Length: 644 [15:19:36]Content-Type: application/json [15:19:36] [15:19:36]POST finish read [15:19:36]Found Content-Length = 644 [15:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273266", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:36]execute_script... [15:19:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273266", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:36]POST & json_proto [15:19:36]process_json_proto [15:19:36]json parsed OK: [15:19:36]protocol is kg_v1.0 [15:19:36]action value=close_receipt [15:19:36]process_action close_receipt [15:19:36]cmd_close_receipt [15:19:36]MH_GetDate [15:19:36]Write to MH i2c: F0 00 00 E1 13 E3 [15:19:36]Write i2c OK [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: F0 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: F0 09 00 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: F0 09 00 E1 13 00 09 14 19 67 E7 19 F8 65 E6 [15:19:36]GetLastDocTimeStamp 1729696592 [15:19:36]current date 1729696777 [15:19:36]FM_GetShiftState [15:19:36]SAM_PROTO_GetShiftState [15:19:36]wFMCommunicate request_size=4 [15:19:36]MH_SAM_APDU [15:19:36]CAPDU: 80 13 01 00 [15:19:36]Write to MH i2c: E2 08 00 E2 13 80 13 01 00 00 00 00 00 72 [15:19:36]Write i2c OK [15:19:36]MH_I2C_Read... [15:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:37]Read from MH i2c: E2 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 0E 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 0E 00 E2 13 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D7 [15:19:37]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:19:37]wFMCommunicate OK [15:19:37]SAM_PROTO_GetShiftState done [15:19:37]FM_GetShiftState done [15:19:37]opened in 1729642905 [15:19:37]opened+sec_in_day 1729729305 [15:19:37]quantity*price = 11500 [15:19:37]sum+1 = 11501 [15:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 229 23.10.2024 15:19 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75496 ФПД: 132396346991663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151937&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75496&fm=132396346991663&tin=02508201610067®Number=0000000000161154&sum=11500 0 [15:19:38]StoreToDocumentArchive [15:19:38]shift 173 fd 75496 [15:19:38]save to /storage/0173/doc_00075496 [15:19:38]save last doc name /storage/0173/doc_00075496 to /storage/kkm_last_doc_name [15:19:38]save OK [15:19:38]Clear old archive folders... [15:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:19:38]tlvbuf is B6E543E0 [15:19:38]SAM_PROTO_ClearQueue [15:19:38]wFMCommunicate request_size=4 [15:19:38]MH_SAM_APDU [15:19:38]CAPDU: 80 09 00 00 [15:19:38]Write to MH i2c: E2 08 00 EF 13 80 09 00 00 00 00 00 00 74 [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:38]Read from MH i2c: E2 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 03 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 03 00 EF 13 00 90 00 76 [15:19:38]RAPDU: 90 00 [15:19:38]wFMCommunicate OK [15:19:38]SAM_PROTO_ClearQueue done [15:19:38]KKMCreateOFDPacket [15:19:38]OFDProtocolAddRootSTLVToBuf [15:19:38]FM_MakeSignedData [15:19:38]FM_MakeSignedData [15:19:38]SAM_PROTO_SignData [15:19:38]wFMCommunicate request_size=4 [15:19:38]MH_SAM_APDU [15:19:38]CAPDU: 80 0D 01 02 [15:19:38]Write to MH i2c: E2 08 00 F0 13 80 0D 01 02 00 00 00 00 7C [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:38]Read from MH i2c: E2 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 03 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 03 00 F0 13 00 90 00 77 [15:19:38]RAPDU: 90 00 [15:19:38]wFMCommunicate OK [15:19:38]wFMCommunicate request_size=255 [15:19:38]MH_SAM_APDU [15:19:38]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 09 14 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 [15:19:38]Write to MH i2c: E2 02 01 F1 13 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 09 14 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 00 E4 [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:38]Read from MH i2c: E2 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 03 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 03 00 F1 13 00 90 00 78 [15:19:38]RAPDU: 90 00 [15:19:38]wFMCommunicate OK [15:19:38]wFMCommunicate request_size=39 [15:19:38]MH_SAM_APDU [15:19:38]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 26 01 00 35 04 06 00 78 69 ED 3B 64 2F [15:19:38]Write to MH i2c: E2 2A 00 F2 13 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 26 01 00 35 04 06 00 78 69 ED 3B 64 2F 00 00 DF [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:38]Read from MH i2c: E2 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 03 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 03 00 F2 13 00 90 00 79 [15:19:38]RAPDU: 90 00 [15:19:38]wFMCommunicate OK [15:19:38]wFMCommunicate request_size=4 [15:19:38]MH_SAM_APDU [15:19:38]CAPDU: 80 0D 03 02 [15:19:38]Write to MH i2c: E2 08 00 F3 13 80 0D 03 02 00 00 00 00 81 [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:38]Read from MH i2c: E2 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 0B 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 0B 00 F3 13 00 31 60 6A 2A 20 05 90 27 90 00 83 [15:19:38]RAPDU: 31 60 6A 2A 20 05 90 27 90 00 [15:19:38]wFMCommunicate OK [15:19:38]SAM_PROTO_SignData done [15:19:38]FM_MakeSignedData done [15:19:38]CreateOFDProtocolMessage [15:19:38]wFMCommunicate request_size=4 [15:19:38]MH_SAM_APDU [15:19:38]CAPDU: 80 11 00 00 [15:19:38]Write to MH i2c: E2 08 00 F4 13 80 11 00 00 00 00 00 00 81 [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:38]Read from MH i2c: E2 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 17 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: E2 17 00 F4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CE [15:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:19:38]wFMCommunicate OK [15:19:38]CreateOFDProtocolMessage done [15:19:38]OFDSenderStorePacket 75496 [15:19:38]StoreOFDPacket docnum=75496 [15:19:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 63 BD 24 01 48 D1 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 09 14 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 26 01 00 35 04 06 00 78 69 ED 3B 64 2F 31 60 6A 2A 20 05 90 27 [15:19:38]CheckFolder [15:19:38]dirname=/storage/ofd_packets [15:19:38]CheckFolder done [15:19:38]ProducePacketName [15:19:38]name=ofd_packets/00075496 [15:19:38]NVStorageSaveData ofd_packets/00075496 [15:19:38]File name is /storage/ofd_packets/00075496 [15:19:38]Write 330 bytes [15:19:38]NVStorageSaveData done [15:19:38]OFDSenderStorePacket done [15:19:38]KKMCreateOFDPacket done [15:19:38]NVStorageSaveData kkm_last_timestamp [15:19:38]File name is /storage/kkm_last_timestamp [15:19:38]Write 4 bytes [15:19:38]NVStorageSaveData done [15:19:38]ExternCall_PrintAddStr [15:19:38]wPrintStart [15:19:38]Write to MH i2c: 01 00 00 F5 13 08 [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: 01 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: 01 07 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: 01 07 00 F5 13 00 00 00 00 00 FF 0F 1D [15:19:38]RasterBufferAndPrint [15:19:38]line Счет N : (3)273266 [15:19:38]line ИНН: 02508201610067 [15:19:38]line Контрольно-Кассовый Чек [15:19:38]line ПРОДАЖА [15:19:38]line Товар: 2000036210013 [15:19:38]line Кофе Капучино (GABB TRADE) [15:19:38]line 1.000 * 115.00 [15:19:38]line = 115.00 [15:19:38]line НДС 12% НСП 1% [15:19:38]line > о реализуемом товаре [15:19:38]line ИТОГО: 115.00 [15:19:38]line НСП 1% : 1.02 [15:19:38]line НДС 12% : 12.21 [15:19:38]line Наличными: 115.00 [15:19:38]line Безнал.: 0.00 [15:19:38]line Место: АЗС № 133 "Партнер Нефть" [15:19:38]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:19:38]line СНО: Общий режим [15:19:38]line Чек 229 23.10.2024 15:19 [15:19:38]line Смена: 173 ФФД: 1.0 [15:19:38]line ЗНМ: 0300000020 [15:19:38]line РНМ: 0000000000161154 [15:19:38]line Версия ККМ: v1.0 [15:19:38]line ФМ: 0000000000963323 [15:19:38]line ФД: 75496 [15:19:38]line ФПД: 132396346991663 [15:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T151937&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75496&fm=132396346991663&tin=02508201610067®Number=0000000000161154&sum=11500 [15:19:39]line 0 [15:19:39]OFD Sender: Processing packet 75496 [packets to send 16, broken 15] [15:19:39]ProducePacketName [15:19:39]name=ofd_packets/00075496 [15:19:39]OFD Sender: To server: pG, [15:19:39]CommunicateWithHost lk.salyk.kg:30040 [15:19:39]ConnectInit lk.salyk.kg [15:19:39]written 0, free lines is 4095 [15:19:39]Connected sock=10 [15:19:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 63 BD 24 01 48 D1 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 09 14 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 26 01 00 35 04 06 00 78 69 ED 3B 64 2F 31 60 6A 2A 20 05 90 27 [15:19:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 3C A1 47 00 D5 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E8 26 01 00 F4 03 04 00 E4 BC 18 67 B6 04 01 00 00 1F B6 36 ED 6C 8B E4 EC [15:19:39]CommunicateWithHost err = 0 [15:19:39]CheckOFDResponse [15:19:39]1017 (14) - 77093643461234 [15:19:39]1041 (16) - 0000000000963323 [15:19:39]1040 (4) - 75496 [15:19:39]1012 (4) - 23.10.2024 09:07 [15:19:39]1206 (1) - 0 [15:19:39]OFD Sender: Remove packet 75496 [15:19:39]ProducePacketName [15:19:39]name=ofd_packets/00075496 [15:19:39]NVStorageDeleteData [15:19:39]Write to MH i2c: 01 00 00 1C 14 30 [15:19:39]Write i2c OK [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: 01 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: 01 07 00 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: 01 07 00 1C 14 00 00 00 00 00 DB 0C 1E [15:19:39]RasterBufferAndPrint [15:19:39]line [15:19:39]line [15:19:39]line [15:19:39]line [15:19:39]line [15:19:39]written 0, free lines is 3295 [15:19:39]MH_Cut [15:19:39]Write to MH i2c: D1 01 00 23 14 01 09 [15:19:39]Write i2c OK [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: D1 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: D1 01 00 [15:19:39]MH_I2C_Read... [15:19:39]Read from MH i2c: D1 01 00 23 14 00 08 [15:19:39]Write to MH i2c: 01 00 00 24 14 38 [15:19:39]Write i2c OK [15:19:39]MH_I2C_Read... [15:19:39]OFD Sender: No OFD packet to send [15:19:40]*** Cut start [15:19:40]*** Partial cut [15:19:40]*** CUTSNS_PIN = 1 [15:19:40]*** CUTSNS_PIN = 0 [15:19:40]*** Brake cut motor [15:19:40]Read from MH i2c: 01 [15:19:40]MH_I2C_Read... [15:19:40]*** Stop cut motor [15:19:40]*** Cut end [15:19:40]Read from MH i2c: 01 07 00 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: 01 07 00 24 14 00 00 00 00 00 FF 0F 4D [15:19:40]process_action close_receipt done [15:19:40]requested_data is exist [15:19:40]produce_requested_data [15:19:40]requested_item fm.sn is exist - process it [15:19:40]wFMCommunicate request_size=4 [15:19:40]MH_SAM_APDU [15:19:40]CAPDU: 80 11 00 00 [15:19:40]Write to MH i2c: E2 08 00 25 14 80 11 00 00 00 00 00 00 B3 [15:19:40]Write i2c OK [15:19:40]MH_I2C_Read... [15:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:41]Read from MH i2c: E2 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 17 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 17 00 25 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 00 [15:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:19:41]wFMCommunicate OK [15:19:41]requested_item fd.num is exist - process it [15:19:41]SAM_PROTO_GetFieldsCounters [15:19:41]wFMCommunicate request_size=4 [15:19:41]MH_SAM_APDU [15:19:41]CAPDU: 80 13 00 00 [15:19:41]Write to MH i2c: E2 08 00 26 14 80 13 00 00 00 00 00 00 B6 [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:41]Read from MH i2c: E2 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 62 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 62 00 26 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E8 26 01 00 0E 04 04 00 AD 00 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 35 [15:19:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E8 26 01 00 0E 04 04 00 AD 00 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 [15:19:41]wFMCommunicate OK [15:19:41]SAM_PROTO_GetFieldsCounters done [15:19:41]requested_item shift.num is exist - process it [15:19:41]requested_item shift.opened is exist - process it [15:19:41]req_shift_opened [15:19:41]FM_GetShiftState [15:19:41]SAM_PROTO_GetShiftState [15:19:41]wFMCommunicate request_size=4 [15:19:41]MH_SAM_APDU [15:19:41]CAPDU: 80 13 01 00 [15:19:41]Write to MH i2c: E2 08 00 27 14 80 13 01 00 00 00 00 00 B8 [15:19:41]Write i2c OK [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 [15:19:41]MH_I2C_Read... [15:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:41]Read from MH i2c: E2 0E 00 [15:19:41]MH_I2C_Read... [15:19:41]Read from MH i2c: E2 0E 00 27 14 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1D [15:19:41]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:19:41]wFMCommunicate OK [15:19:41]SAM_PROTO_GetShiftState done [15:19:41]FM_GetShiftState done [15:19:41]req_shift_opened done [15:19:41]requested_item shift.open_date is exist - process it [15:19:41]req_shift_open_date [15:19:41]req_shift_open_date done [15:19:41]produce_requested_data done [15:19:41]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75496,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:19:41]process_action_free close_receipt [15:19:41]json_value_free [15:19:41]json_value_free done [15:19:41]process_json_proto returns [15:19:41]Send response to host [15:19:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75496,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:19:41]free response buf [15:19:41]execute_script done [15:19:41]execute_script returns [15:19:41]free content buf [15:19:41]Sock 8.Close socket [15:19:41]Sock 8.Thread stoped [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]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:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:54]int [15:29:54]Write to MH i2c: 01 00 00 28 14 3C [15:29:54]*** FLAG_PRN_PAP1 set [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: 01 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: 01 07 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: 01 07 00 28 14 00 01 00 00 00 FF 0F 52 [15:29:54]state=0 [15:29:54]No paper [15:29:54]int [15:29:54]Write to MH i2c: 01 00 00 29 14 3D [15:29:54]*** FLAG_PRN_PAP2 set [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: 01 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: 01 07 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: 01 07 00 29 14 00 03 00 00 00 FF 0F 55 [15:29:54]state=0 [15:29:54]No paper [15:29:54]Cover opened [15:29:55]OFD Sender: No OFD packet to send [15:29:56]int [15:29:56]Write to MH i2c: 01 00 00 2A 14 3E [15:29:56]*** FLAG_PRN_PAP1 reset [15:29:56]*** FLAG_PRN_PAP2 reset [15:29:56]Write i2c OK [15:29:56]MH_I2C_Read... [15:29:56]Read from MH i2c: 01 [15:29:56]MH_I2C_Read... [15:29:56]Read from MH i2c: 01 07 00 [15:29:56]MH_I2C_Read... [15:29:56]Read from MH i2c: 01 07 00 2A 14 00 00 00 00 00 FF 0F 53 [15:29:56]state=3 [15:29:56]Cover closed [15:29:57]int [15:29:57]Write to MH i2c: 01 00 00 2B 14 3F [15:29:57]*** FLAG_PRN_KEY set [15:29:57]Write i2c OK [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: 01 [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: 01 07 00 [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: 01 07 00 2B 14 00 08 00 00 00 FF 0F 5C [15:29:57]state=0 [15:29:57]Key pressed [15:29:57]Feed [15:29:57]Write to MH i2c: D8 00 00 2C 14 17 [15:29:57]Write i2c OK [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: D8 [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: D8 01 00 [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: D8 01 00 2C 14 00 18 [15:29:57]int [15:29:57]Write to MH i2c: 01 00 00 2D 14 41 [15:29:57]Write i2c OK [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: 01 [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: 01 07 00 [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: 01 07 00 2D 14 00 48 00 00 00 3C 00 CC [15:29:57]state=2 [15:29:57]Key pressed [15:29:57]int [15:29:57]Write to MH i2c: 01 00 00 2E 14 42 [15:29:57]*** FLAG_PRN_KEY reset [15:29:57]Write i2c OK [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: 01 [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: 01 07 00 [15:29:57]MH_I2C_Read... [15:29:57]Read from MH i2c: 01 07 00 2E 14 00 00 00 00 00 F6 0F 4E [15:29:57]state=2 [15:29:57]Stop feed [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:46]accept exits with 9 [15:39:46]New connection [15:39:46]New thread 3066608996 created [15:39:46]Thread 3066465636 joined [15:39:46]Waiting for new connection... [15:39:46] Sock 9.Parse request [15:39:46]Sock 9.Check first char [15:39:46]Sock 9.First char is OK [15:39:46]request: POST /json_proto HTTP/1.0 [15:39:46]Method: POST [15:39:46]URL: /json_proto [15:39:46]Method is POST - this is cgi request [15:39:46]url: /json_proto [15:39:46]query_string will be loaded in cgi processing [15:39:46]execute_cgi json_proto POST (null) [15:39:46]execute_cgi path=json_proto method=POST [15:39:46]POST find Content-Length [15:39:46]Host: 172.17.44.196:8080 [15:39:46]Content-Length: 781 [15:39:46]Content-Type: application/json [15:39:46] [15:39:46]POST finish read [15:39:46]Found Content-Length = 781 [15:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273267", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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: Mbank", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:46]execute_script... [15:39: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 : (3)273267", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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: Mbank", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:46]POST & json_proto [15:39:46]process_json_proto [15:39:46]json parsed OK: [15:39:46]protocol is kg_v1.0 [15:39:46]action value=close_receipt [15:39:46]process_action close_receipt [15:39:46]cmd_close_receipt [15:39:46]MH_GetDate [15:39:46]Write to MH i2c: F0 00 00 2F 14 32 [15:39:46]Write i2c OK [15:39:46]MH_I2C_Read... [15:39:46]Read from MH i2c: F0 [15:39:46]MH_I2C_Read... [15:39:46]Read from MH i2c: F0 09 00 [15:39:46]MH_I2C_Read... [15:39:46]Read from MH i2c: F0 09 00 2F 14 00 C3 18 19 67 E7 19 F8 65 F3 [15:39:46]GetLastDocTimeStamp 1729696777 [15:39:46]current date 1729697987 [15:39:46]FM_GetShiftState [15:39:46]SAM_PROTO_GetShiftState [15:39:46]wFMCommunicate request_size=4 [15:39:46]MH_SAM_APDU [15:39:46]CAPDU: 80 13 01 00 [15:39:46]Write to MH i2c: E2 08 00 30 14 80 13 01 00 00 00 00 00 C1 [15:39:46]Write i2c OK [15:39:46]MH_I2C_Read... [15:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:46]Read from MH i2c: E2 [15:39:46]MH_I2C_Read... [15:39:46]Read from MH i2c: E2 0E 00 [15:39:46]MH_I2C_Read... [15:39:46]Read from MH i2c: E2 0E 00 30 14 00 09 00 01 99 41 18 67 00 00 00 00 90 00 26 [15:39:46]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:39:46]wFMCommunicate OK [15:39:46]SAM_PROTO_GetShiftState done [15:39:46]FM_GetShiftState done [15:39:46]opened in 1729642905 [15:39:46]opened+sec_in_day 1729729305 [15:39:46]quantity*price = 4500 [15:39:46]sum+1 = 4501 [15:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 0.00 Безнал.: 45.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 230 23.10.2024 15:39 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75497 ФПД: 181614521193958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153947&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75497&fm=181614521193958&tin=02508201610067®Number=0000000000161154&sum=4500 0 [15:39:48]StoreToDocumentArchive [15:39:48]shift 173 fd 75497 [15:39:48]save to /storage/0173/doc_00075497 [15:39:48]save last doc name /storage/0173/doc_00075497 to /storage/kkm_last_doc_name [15:39:48]save OK [15:39:48]Clear old archive folders... [15:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=277 [15:39:48]tlvbuf is 0079AC60 [15:39:48]SAM_PROTO_ClearQueue [15:39:48]wFMCommunicate request_size=4 [15:39:48]MH_SAM_APDU [15:39:48]CAPDU: 80 09 00 00 [15:39:48]Write to MH i2c: E2 08 00 3D 14 80 09 00 00 00 00 00 00 C3 [15:39:48]Write i2c OK [15:39:48]MH_I2C_Read... [15:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:48]Read from MH i2c: E2 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 03 00 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 03 00 3D 14 00 90 00 C5 [15:39:48]RAPDU: 90 00 [15:39:48]wFMCommunicate OK [15:39:48]SAM_PROTO_ClearQueue done [15:39:48]KKMCreateOFDPacket [15:39:48]OFDProtocolAddRootSTLVToBuf [15:39:48]FM_MakeSignedData [15:39:48]FM_MakeSignedData [15:39:48]SAM_PROTO_SignData [15:39:48]wFMCommunicate request_size=4 [15:39:48]MH_SAM_APDU [15:39:48]CAPDU: 80 0D 01 02 [15:39:48]Write to MH i2c: E2 08 00 3E 14 80 0D 01 02 00 00 00 00 CB [15:39:48]Write i2c OK [15:39:48]MH_I2C_Read... [15:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:48]Read from MH i2c: E2 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 03 00 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 03 00 3E 14 00 90 00 C6 [15:39:48]RAPDU: 90 00 [15:39:48]wFMCommunicate OK [15:39:48]wFMCommunicate request_size=255 [15:39:48]MH_SAM_APDU [15:39:48]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 C3 18 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 [15:39:48]Write to MH i2c: E2 02 01 3F 14 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 C3 18 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 00 00 46 [15:39:48]Write i2c OK [15:39:48]MH_I2C_Read... [15:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:48]Read from MH i2c: E2 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 03 00 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 03 00 3F 14 00 90 00 C7 [15:39:48]RAPDU: 90 00 [15:39:48]wFMCommunicate OK [15:39:48]wFMCommunicate request_size=36 [15:39:48]MH_SAM_APDU [15:39:48]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 26 01 00 35 04 06 00 A5 2D 6D 05 95 E6 [15:39:48]Write to MH i2c: E2 27 00 40 14 80 0D 02 02 1F 00 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 26 01 00 35 04 06 00 A5 2D 6D 05 95 E6 00 00 BC [15:39:48]Write i2c OK [15:39:48]MH_I2C_Read... [15:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:48]Read from MH i2c: E2 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 03 00 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 03 00 40 14 00 90 00 C8 [15:39:48]RAPDU: 90 00 [15:39:48]wFMCommunicate OK [15:39:48]wFMCommunicate request_size=4 [15:39:48]MH_SAM_APDU [15:39:48]CAPDU: 80 0D 03 02 [15:39:48]Write to MH i2c: E2 08 00 41 14 80 0D 03 02 00 00 00 00 D0 [15:39:48]Write i2c OK [15:39:48]MH_I2C_Read... [15:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:48]Read from MH i2c: E2 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 0B 00 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 0B 00 41 14 00 04 3A D4 1C 95 18 2F 14 90 00 EF [15:39:48]RAPDU: 04 3A D4 1C 95 18 2F 14 90 00 [15:39:48]wFMCommunicate OK [15:39:48]SAM_PROTO_SignData done [15:39:48]FM_MakeSignedData done [15:39:48]CreateOFDProtocolMessage [15:39:48]wFMCommunicate request_size=4 [15:39:48]MH_SAM_APDU [15:39:48]CAPDU: 80 11 00 00 [15:39:48]Write to MH i2c: E2 08 00 42 14 80 11 00 00 00 00 00 00 D0 [15:39:48]Write i2c OK [15:39:48]MH_I2C_Read... [15:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:48]Read from MH i2c: E2 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 17 00 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: E2 17 00 42 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1D [15:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:39:48]wFMCommunicate OK [15:39:48]CreateOFDProtocolMessage done [15:39:48]OFDSenderStorePacket 75497 [15:39:48]StoreOFDPacket docnum=75497 [15:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 29 01 00 00 6E 7F 21 01 C7 53 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 C3 18 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 26 01 00 35 04 06 00 A5 2D 6D 05 95 E6 04 3A D4 1C 95 18 2F 14 [15:39:48]CheckFolder [15:39:48]dirname=/storage/ofd_packets [15:39:48]CheckFolder done [15:39:48]ProducePacketName [15:39:48]name=ofd_packets/00075497 [15:39:48]NVStorageSaveData ofd_packets/00075497 [15:39:48]File name is /storage/ofd_packets/00075497 [15:39:48]Write 327 bytes [15:39:48]NVStorageSaveData done [15:39:48]OFDSenderStorePacket done [15:39:48]KKMCreateOFDPacket done [15:39:48]NVStorageSaveData kkm_last_timestamp [15:39:48]File name is /storage/kkm_last_timestamp [15:39:48]Write 4 bytes [15:39:48]NVStorageSaveData done [15:39:48]ExternCall_PrintAddStr [15:39:48]wPrintStart [15:39:48]Write to MH i2c: 01 00 00 43 14 57 [15:39:48]Write i2c OK [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: 01 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: 01 07 00 [15:39:48]MH_I2C_Read... [15:39:48]Read from MH i2c: 01 07 00 43 14 00 00 00 00 00 FF 0F 6C [15:39:48]RasterBufferAndPrint [15:39:48]line Счет N : (3)273267 [15:39:48]line ИНН: 02508201610067 [15:39:48]line Контрольно-Кассовый Чек [15:39:48]line ПРОДАЖА [15:39:48]line Товар: 42203100 [15:39:48]line Жев Orbit банан-клубника [15:39:48]line 1.000 * 45.00 [15:39:48]line = 45.00 [15:39:48]line НДС 12% НСП 1% [15:39:48]line > о реализуемом товаре [15:39:48]line ИТОГО: 45.00 [15:39:48]line НСП 1% : 0.40 [15:39:48]line НДС 12% : 4.78 [15:39:48]line Наличными: 0.00 [15:39:48]line Безнал.: 45.00 [15:39:48]line Место: АЗС № 133 "Партнер Нефть" [15:39:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:39:48]line СНО: Общий режим [15:39:48]line Чек 230 23.10.2024 15:39 [15:39:48]line Смена: 173 ФФД: 1.0 [15:39:48]line ЗНМ: 0300000020 [15:39:48]line РНМ: 0000000000161154 [15:39:48]line Версия ККМ: v1.0 [15:39:48]line Платежная система: Mbank [15:39:48]line ФМ: 0000000000963323 [15:39:48]line ФД: 75497 [15:39:48]line ФПД: 181614521193958 [15:39:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T153947&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75497&fm=181614521193958&tin=02508201610067®Number=0000000000161154&sum=4500 [15:39:48]line 0 [15:39:48]OFD Sender: Processing packet 75497 [packets to send 16, broken 15] [15:39:48]ProducePacketName [15:39:48]name=ofd_packets/00075497 [15:39:48]OFD Sender: To server: pG, [15:39:48]CommunicateWithHost lk.salyk.kg:30040 [15:39:48]ConnectInit lk.salyk.kg [15:39:48]written 0, free lines is 4095 [15:39:49]Connected sock=10 [15:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 29 01 00 00 6E 7F 21 01 C7 53 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 C3 18 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 26 01 00 35 04 06 00 A5 2D 6D 05 95 E6 04 3A D4 1C 95 18 2F 14 [15:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 76 7E 47 00 63 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 E9 26 01 00 F4 03 04 00 9E C1 18 67 B6 04 01 00 00 A2 AF C2 7D BB 5E AC 00 [15:39:49]CommunicateWithHost err = 0 [15:39:49]CheckOFDResponse [15:39:49]1017 (14) - 77093643461234 [15:39:49]1041 (16) - 0000000000963323 [15:39:49]1040 (4) - 75497 [15:39:49]1012 (4) - 23.10.2024 09:27 [15:39:49]1206 (1) - 0 [15:39:49]OFD Sender: Remove packet 75497 [15:39:49]ProducePacketName [15:39:49]name=ofd_packets/00075497 [15:39:49]NVStorageDeleteData [15:39:49]Write to MH i2c: 01 00 00 6B 14 7F [15:39:49]Write i2c OK [15:39:49]MH_I2C_Read... [15:39:49]Read from MH i2c: 01 [15:39:49]MH_I2C_Read... [15:39:49]Read from MH i2c: 01 07 00 [15:39:49]MH_I2C_Read... [15:39:49]Read from MH i2c: 01 07 00 6B 14 00 00 00 00 00 C3 0C 55 [15:39:49]RasterBufferAndPrint [15:39:49]line [15:39:49]line [15:39:49]line [15:39:49]line [15:39:49]line [15:39:49]written 0, free lines is 3272 [15:39:49]MH_Cut [15:39:49]Write to MH i2c: D1 01 00 72 14 01 58 [15:39:49]Write i2c OK [15:39:49]MH_I2C_Read... [15:39:49]Read from MH i2c: D1 [15:39:49]MH_I2C_Read... [15:39:49]Read from MH i2c: D1 01 00 [15:39:49]MH_I2C_Read... [15:39:49]Read from MH i2c: D1 01 00 72 14 00 57 [15:39:49]Write to MH i2c: 01 00 00 73 14 87 [15:39:49]Write i2c OK [15:39:49]MH_I2C_Read... [15:39:49]OFD Sender: No OFD packet to send [15:39:50]*** Cut start [15:39:50]*** Partial cut [15:39:50]*** CUTSNS_PIN = 1 [15:39:50]*** CUTSNS_PIN = 0 [15:39:50]*** Brake cut motor [15:39:50]Read from MH i2c: 01 [15:39:50]MH_I2C_Read... [15:39:50]*** Stop cut motor [15:39:50]*** Cut end [15:39:50]Read from MH i2c: 01 07 00 [15:39:50]MH_I2C_Read... [15:39:50]Read from MH i2c: 01 07 00 73 14 00 00 00 00 00 FF 0F 9C [15:39:50]process_action close_receipt done [15:39:50]requested_data is exist [15:39:50]produce_requested_data [15:39:50]requested_item fm.sn is exist - process it [15:39:50]wFMCommunicate request_size=4 [15:39:50]MH_SAM_APDU [15:39:50]CAPDU: 80 11 00 00 [15:39:50]Write to MH i2c: E2 08 00 74 14 80 11 00 00 00 00 00 00 02 [15:39:50]Write i2c OK [15:39:50]MH_I2C_Read... [15:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:50]Read from MH i2c: E2 [15:39:50]MH_I2C_Read... [15:39:50]Read from MH i2c: E2 17 00 [15:39:50]MH_I2C_Read... [15:39:50]Read from MH i2c: E2 17 00 74 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4F [15:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:39:50]wFMCommunicate OK [15:39:50]requested_item fd.num is exist - process it [15:39:50]SAM_PROTO_GetFieldsCounters [15:39:50]wFMCommunicate request_size=4 [15:39:50]MH_SAM_APDU [15:39:50]CAPDU: 80 13 00 00 [15:39:50]Write to MH i2c: E2 08 00 75 14 80 13 00 00 00 00 00 00 05 [15:39:50]Write i2c OK [15:39:50]MH_I2C_Read... [15:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:51]Read from MH i2c: E2 [15:39:51]MH_I2C_Read... [15:39:51]Read from MH i2c: E2 62 00 [15:39:51]MH_I2C_Read... [15:39:51]Read from MH i2c: E2 62 00 75 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E9 26 01 00 0E 04 04 00 AD 00 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 88 [15:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 E9 26 01 00 0E 04 04 00 AD 00 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 [15:39:51]wFMCommunicate OK [15:39:51]SAM_PROTO_GetFieldsCounters done [15:39:51]requested_item shift.num is exist - process it [15:39:51]requested_item shift.opened is exist - process it [15:39:51]req_shift_opened [15:39:51]FM_GetShiftState [15:39:51]SAM_PROTO_GetShiftState [15:39:51]wFMCommunicate request_size=4 [15:39:51]MH_SAM_APDU [15:39:51]CAPDU: 80 13 01 00 [15:39:51]Write to MH i2c: E2 08 00 76 14 80 13 01 00 00 00 00 00 07 [15:39:51]Write i2c OK [15:39:51]MH_I2C_Read... [15:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:51]Read from MH i2c: E2 [15:39:51]MH_I2C_Read... [15:39:51]Read from MH i2c: E2 0E 00 [15:39:51]MH_I2C_Read... [15:39:51]Read from MH i2c: E2 0E 00 76 14 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6C [15:39:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:39:51]wFMCommunicate OK [15:39:51]SAM_PROTO_GetShiftState done [15:39:51]FM_GetShiftState done [15:39:51]req_shift_opened done [15:39:51]requested_item shift.open_date is exist - process it [15:39:51]req_shift_open_date [15:39:51]req_shift_open_date done [15:39:51]produce_requested_data done [15:39:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75497,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:39:51]process_action_free close_receipt [15:39:51]json_value_free [15:39:51]json_value_free done [15:39:51]process_json_proto returns [15:39:51]Send response to host [15:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75497,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:39:51]free response buf [15:39:51]execute_script done [15:39:51]execute_script returns [15:39:51]free content buf [15:39:51]Sock 9.Close socket [15:39:51]Sock 9.Thread stoped [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:02]accept exits with 8 [15:52:02]New connection [15:52:02]New thread 3066465636 created [15:52:02]Thread 3066608996 joined [15:52:02]Waiting for new connection... [15:52:02] Sock 8.Parse request [15:52:02]Sock 8.Check first char [15:52:02]Sock 8.First char is OK [15:52:02]request: POST /json_proto HTTP/1.0 [15:52:02]Method: POST [15:52:02]URL: /json_proto [15:52:02]Method is POST - this is cgi request [15:52:02]url: /json_proto [15:52:02]query_string will be loaded in cgi processing [15:52:02]execute_cgi json_proto POST (null) [15:52:02]execute_cgi path=json_proto method=POST [15:52:02]POST find Content-Length [15:52:02]Host: 172.17.44.196:8080 [15:52:02]Content-Length: 654 [15:52:02]Content-Type: application/json [15:52:02] [15:52:02]POST finish read [15:52:02]Found Content-Length = 654 [15:52:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273268", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:02]execute_script... [15:52:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273268", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:02]POST & json_proto [15:52:02]process_json_proto [15:52:02]json parsed OK: [15:52:02]protocol is kg_v1.0 [15:52:02]action value=close_receipt [15:52:02]process_action close_receipt [15:52:02]cmd_close_receipt [15:52:02]MH_GetDate [15:52:02]Write to MH i2c: F0 00 00 77 14 7A [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: F0 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: F0 09 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: F0 09 00 77 14 00 A3 1B 19 67 E7 19 F8 65 1E [15:52:02]GetLastDocTimeStamp 1729697987 [15:52:02]current date 1729698723 [15:52:02]FM_GetShiftState [15:52:02]SAM_PROTO_GetShiftState [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 13 01 00 [15:52:02]Write to MH i2c: E2 08 00 78 14 80 13 01 00 00 00 00 00 09 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 0E 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 0E 00 78 14 00 09 00 01 99 41 18 67 00 00 00 00 90 00 6E [15:52:02]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:52:02]wFMCommunicate OK [15:52:02]SAM_PROTO_GetShiftState done [15:52:02]FM_GetShiftState done [15:52:02]opened in 1729642905 [15:52:02]opened+sec_in_day 1729729305 [15:52:02]quantity*price = 9500 [15:52:02]sum+1 = 9501 [15:52:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 231 23.10.2024 15:52 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75498 ФПД: 62945233161541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155203&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75498&fm=62945233161541&tin=02508201610067®Number=0000000000161154&sum=9500 0 [15:52:03]StoreToDocumentArchive [15:52:03]shift 173 fd 75498 [15:52:03]save to /storage/0173/doc_00075498 [15:52:03]save last doc name /storage/0173/doc_00075498 to /storage/kkm_last_doc_name [15:52:03]save OK [15:52:03]Clear old archive folders... [15:52:03]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:52:03]tlvbuf is 0079B630 [15:52:03]SAM_PROTO_ClearQueue [15:52:03]wFMCommunicate request_size=4 [15:52:03]MH_SAM_APDU [15:52:03]CAPDU: 80 09 00 00 [15:52:03]Write to MH i2c: E2 08 00 85 14 80 09 00 00 00 00 00 00 0B [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 85 14 00 90 00 0D [15:52:03]RAPDU: 90 00 [15:52:03]wFMCommunicate OK [15:52:03]SAM_PROTO_ClearQueue done [15:52:03]KKMCreateOFDPacket [15:52:03]OFDProtocolAddRootSTLVToBuf [15:52:03]FM_MakeSignedData [15:52:03]FM_MakeSignedData [15:52:03]SAM_PROTO_SignData [15:52:03]wFMCommunicate request_size=4 [15:52:03]MH_SAM_APDU [15:52:03]CAPDU: 80 0D 01 02 [15:52:03]Write to MH i2c: E2 08 00 86 14 80 0D 01 02 00 00 00 00 13 [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 86 14 00 90 00 0E [15:52:03]RAPDU: 90 00 [15:52:03]wFMCommunicate OK [15:52:03]wFMCommunicate request_size=255 [15:52:03]MH_SAM_APDU [15:52:03]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A3 1B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:52:03]Write to MH i2c: E2 02 01 87 14 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A3 1B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 85 [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 87 14 00 90 00 0F [15:52:03]RAPDU: 90 00 [15:52:03]wFMCommunicate OK [15:52:03]wFMCommunicate request_size=52 [15:52:03]MH_SAM_APDU [15:52:03]CAPDU: 80 0D 02 02 2F 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 26 01 00 35 04 06 00 39 3F 94 43 4D 45 [15:52:03]Write to MH i2c: E2 37 00 88 14 80 0D 02 02 2F 00 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 26 01 00 35 04 06 00 39 3F 94 43 4D 45 00 00 BE [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 88 14 00 90 00 10 [15:52:03]RAPDU: 90 00 [15:52:03]wFMCommunicate OK [15:52:03]wFMCommunicate request_size=4 [15:52:03]MH_SAM_APDU [15:52:03]CAPDU: 80 0D 03 02 [15:52:03]Write to MH i2c: E2 08 00 89 14 80 0D 03 02 00 00 00 00 18 [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 0B 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 0B 00 89 14 00 6B 9A 97 D2 45 87 85 29 90 00 01 [15:52:03]RAPDU: 6B 9A 97 D2 45 87 85 29 90 00 [15:52:03]wFMCommunicate OK [15:52:03]SAM_PROTO_SignData done [15:52:03]FM_MakeSignedData done [15:52:03]CreateOFDProtocolMessage [15:52:03]wFMCommunicate request_size=4 [15:52:03]MH_SAM_APDU [15:52:03]CAPDU: 80 11 00 00 [15:52:03]Write to MH i2c: E2 08 00 8A 14 80 11 00 00 00 00 00 00 18 [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 17 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 17 00 8A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 65 [15:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:52:03]wFMCommunicate OK [15:52:03]CreateOFDProtocolMessage done [15:52:03]OFDSenderStorePacket 75498 [15:52:03]StoreOFDPacket docnum=75498 [15:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 2B C7 31 01 1B C5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A3 1B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 26 01 00 35 04 06 00 39 3F 94 43 4D 45 6B 9A 97 D2 45 87 85 29 [15:52:03]CheckFolder [15:52:03]dirname=/storage/ofd_packets [15:52:03]CheckFolder done [15:52:03]ProducePacketName [15:52:03]name=ofd_packets/00075498 [15:52:03]NVStorageSaveData ofd_packets/00075498 [15:52:03]File name is /storage/ofd_packets/00075498 [15:52:03]Write 343 bytes [15:52:03]NVStorageSaveData done [15:52:03]OFDSenderStorePacket done [15:52:03]KKMCreateOFDPacket done [15:52:03]NVStorageSaveData kkm_last_timestamp [15:52:03]File name is /storage/kkm_last_timestamp [15:52:03]Write 4 bytes [15:52:03]NVStorageSaveData done [15:52:03]ExternCall_PrintAddStr [15:52:03]wPrintStart [15:52:03]Write to MH i2c: 01 00 00 8B 14 9F [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 07 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 07 00 8B 14 00 00 00 00 00 FF 0F B4 [15:52:03]RasterBufferAndPrint [15:52:03]line Счет N : (3)273268 [15:52:03]line ИНН: 02508201610067 [15:52:03]line Контрольно-Кассовый Чек [15:52:03]line ПРОДАЖА [15:52:03]line Товар: 4700000480050 [15:52:03]line Напиток Nitro Energy эн green ж/б 0,45л [15:52:03]line 1.000 * 95.00 [15:52:03]line = 95.00 [15:52:03]line НДС 12% НСП 1% [15:52:03]line > о реализуемом товаре [15:52:03]line ИТОГО: 95.00 [15:52:03]line НСП 1% : 0.84 [15:52:03]line НДС 12% : 10.09 [15:52:03]line Наличными: 95.00 [15:52:03]line Безнал.: 0.00 [15:52:03]line Место: АЗС № 133 "Партнер Нефть" [15:52:03]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:52:03]line СНО: Общий режим [15:52:03]line Чек 231 23.10.2024 15:52 [15:52:03]line Смена: 173 ФФД: 1.0 [15:52:03]line ЗНМ: 0300000020 [15:52:03]line РНМ: 0000000000161154 [15:52:03]line Версия ККМ: v1.0 [15:52:03]line ФМ: 0000000000963323 [15:52:03]line ФД: 75498 [15:52:03]line ФПД: 62945233161541 [15:52:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155203&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75498&fm=62945233161541&tin=02508201610067®Number=0000000000161154&sum=9500 [15:52:04]line 0 [15:52:04]OFD Sender: Processing packet 75498 [packets to send 16, broken 15] [15:52:04]ProducePacketName [15:52:04]name=ofd_packets/00075498 [15:52:04]OFD Sender: To server: pG, [15:52:04]CommunicateWithHost lk.salyk.kg:30040 [15:52:04]ConnectInit lk.salyk.kg [15:52:04]written 0, free lines is 4095 [15:52:04]Connected sock=10 [15:52:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 01 00 00 2B C7 31 01 1B C5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A3 1B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 26 01 00 35 04 06 00 39 3F 94 43 4D 45 6B 9A 97 D2 45 87 85 29 [15:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AA 8F 47 00 F1 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EA 26 01 00 F4 03 04 00 7D C4 18 67 B6 04 01 00 00 3F 02 8F 4E F4 55 70 20 [15:52:04]CommunicateWithHost err = 0 [15:52:04]CheckOFDResponse [15:52:04]1017 (14) - 77093643461234 [15:52:04]1041 (16) - 0000000000963323 [15:52:04]1040 (4) - 75498 [15:52:04]1012 (4) - 23.10.2024 09:40 [15:52:04]1206 (1) - 0 [15:52:04]OFD Sender: Remove packet 75498 [15:52:04]ProducePacketName [15:52:04]name=ofd_packets/00075498 [15:52:04]NVStorageDeleteData [15:52:04]Write to MH i2c: 01 00 00 B3 14 C7 [15:52:04]Write i2c OK [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: 01 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: 01 07 00 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: 01 07 00 B3 14 00 00 00 00 00 B4 0C 8E [15:52:04]RasterBufferAndPrint [15:52:04]line [15:52:04]line [15:52:04]line [15:52:04]line [15:52:04]line [15:52:04]written 0, free lines is 3257 [15:52:04]MH_Cut [15:52:04]Write to MH i2c: D1 01 00 BA 14 01 A0 [15:52:04]Write i2c OK [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: D1 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: D1 01 00 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: D1 01 00 BA 14 00 9F [15:52:04]Write to MH i2c: 01 00 00 BB 14 CF [15:52:04]Write i2c OK [15:52:04]MH_I2C_Read... [15:52:04]OFD Sender: No OFD packet to send [15:52:05]*** Cut start [15:52:05]*** Partial cut [15:52:05]*** CUTSNS_PIN = 1 [15:52:05]*** CUTSNS_PIN = 0 [15:52:05]*** Brake cut motor [15:52:06]Read from MH i2c: 01 [15:52:06]MH_I2C_Read... [15:52:06]*** Stop cut motor [15:52:06]*** Cut end [15:52:06]Read from MH i2c: 01 07 00 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: 01 07 00 BB 14 00 00 00 00 00 FF 0F E4 [15:52:06]process_action close_receipt done [15:52:06]requested_data is exist [15:52:06]produce_requested_data [15:52:06]requested_item fm.sn is exist - process it [15:52:06]wFMCommunicate request_size=4 [15:52:06]MH_SAM_APDU [15:52:06]CAPDU: 80 11 00 00 [15:52:06]Write to MH i2c: E2 08 00 BC 14 80 11 00 00 00 00 00 00 4A [15:52:06]Write i2c OK [15:52:06]MH_I2C_Read... [15:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:06]Read from MH i2c: E2 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: E2 17 00 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: E2 17 00 BC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 97 [15:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:52:06]wFMCommunicate OK [15:52:06]requested_item fd.num is exist - process it [15:52:06]SAM_PROTO_GetFieldsCounters [15:52:06]wFMCommunicate request_size=4 [15:52:06]MH_SAM_APDU [15:52:06]CAPDU: 80 13 00 00 [15:52:06]Write to MH i2c: E2 08 00 BD 14 80 13 00 00 00 00 00 00 4D [15:52:06]Write i2c OK [15:52:06]MH_I2C_Read... [15:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:06]Read from MH i2c: E2 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: E2 62 00 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: E2 62 00 BD 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EA 26 01 00 0E 04 04 00 AD 00 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 D4 [15:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EA 26 01 00 0E 04 04 00 AD 00 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 [15:52:06]wFMCommunicate OK [15:52:06]SAM_PROTO_GetFieldsCounters done [15:52:06]requested_item shift.num is exist - process it [15:52:06]requested_item shift.opened is exist - process it [15:52:06]req_shift_opened [15:52:06]FM_GetShiftState [15:52:06]SAM_PROTO_GetShiftState [15:52:06]wFMCommunicate request_size=4 [15:52:06]MH_SAM_APDU [15:52:06]CAPDU: 80 13 01 00 [15:52:06]Write to MH i2c: E2 08 00 BE 14 80 13 01 00 00 00 00 00 4F [15:52:06]Write i2c OK [15:52:06]MH_I2C_Read... [15:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:06]Read from MH i2c: E2 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: E2 0E 00 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: E2 0E 00 BE 14 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B4 [15:52:06]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:52:06]wFMCommunicate OK [15:52:06]SAM_PROTO_GetShiftState done [15:52:06]FM_GetShiftState done [15:52:06]req_shift_opened done [15:52:06]requested_item shift.open_date is exist - process it [15:52:06]req_shift_open_date [15:52:06]req_shift_open_date done [15:52:06]produce_requested_data done [15:52:06]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75498,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:52:06]process_action_free close_receipt [15:52:06]json_value_free [15:52:06]json_value_free done [15:52:06]process_json_proto returns [15:52:06]Send response to host [15:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75498,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:52:06]free response buf [15:52:06]execute_script done [15:52:06]execute_script returns [15:52:06]free content buf [15:52:06]Sock 8.Close socket [15:52:06]Sock 8.Thread stoped [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:48]accept exits with 9 [15:56:48]New connection [15:56:48]New thread 3066608996 created [15:56:48]Thread 3066465636 joined [15:56:48]Waiting for new connection... [15:56:48] Sock 9.Parse request [15:56:48]Sock 9.Check first char [15:56:48]Sock 9.First char is OK [15:56:48]request: POST /json_proto HTTP/1.0 [15:56:48]Method: POST [15:56:48]URL: /json_proto [15:56:48]Method is POST - this is cgi request [15:56:48]url: /json_proto [15:56:48]query_string will be loaded in cgi processing [15:56:48]execute_cgi json_proto POST (null) [15:56:48]execute_cgi path=json_proto method=POST [15:56:48]POST find Content-Length [15:56:48]Host: 172.17.44.196:8080 [15:56:48]Content-Length: 621 [15:56:48]Content-Type: application/json [15:56:48] [15:56:48]POST finish read [15:56:48]Found Content-Length = 621 [15:56:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273269", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:48]execute_script... [15:56:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273269", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:48]POST & json_proto [15:56:48]process_json_proto [15:56:48]json parsed OK: [15:56:48]protocol is kg_v1.0 [15:56:48]action value=close_receipt [15:56:48]process_action close_receipt [15:56:48]cmd_close_receipt [15:56:48]MH_GetDate [15:56:48]Write to MH i2c: F0 00 00 BF 14 C2 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: F0 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: F0 09 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: F0 09 00 BF 14 00 C1 1C 19 67 E7 19 F8 65 85 [15:56:48]GetLastDocTimeStamp 1729698723 [15:56:48]current date 1729699009 [15:56:48]FM_GetShiftState [15:56:48]SAM_PROTO_GetShiftState [15:56:48]wFMCommunicate request_size=4 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 13 01 00 [15:56:48]Write to MH i2c: E2 08 00 C0 14 80 13 01 00 00 00 00 00 51 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 0E 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 0E 00 C0 14 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B6 [15:56:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:56:48]wFMCommunicate OK [15:56:48]SAM_PROTO_GetShiftState done [15:56:48]FM_GetShiftState done [15:56:48]opened in 1729642905 [15:56:48]opened+sec_in_day 1729729305 [15:56:48]quantity*price = 14000 [15:56:48]sum+1 = 14001 [15:56:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 232 23.10.2024 15:56 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75499 ФПД: 1024060731374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155649&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75499&fm=1024060731374&tin=02508201610067®Number=0000000000161154&sum=14000 0 [15:56:49]StoreToDocumentArchive [15:56:49]shift 173 fd 75499 [15:56:49]save to /storage/0173/doc_00075499 [15:56:49]save last doc name /storage/0173/doc_00075499 to /storage/kkm_last_doc_name [15:56:49]save OK [15:56:49]Clear old archive folders... [15:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:56:49]tlvbuf is B6E545E0 [15:56:49]SAM_PROTO_ClearQueue [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 09 00 00 [15:56:49]Write to MH i2c: E2 08 00 CD 14 80 09 00 00 00 00 00 00 53 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 CD 14 00 90 00 55 [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]SAM_PROTO_ClearQueue done [15:56:49]KKMCreateOFDPacket [15:56:49]OFDProtocolAddRootSTLVToBuf [15:56:49]FM_MakeSignedData [15:56:49]FM_MakeSignedData [15:56:49]SAM_PROTO_SignData [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 01 02 [15:56:49]Write to MH i2c: E2 08 00 CE 14 80 0D 01 02 00 00 00 00 5B [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 CE 14 00 90 00 56 [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]wFMCommunicate request_size=255 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C1 1C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [15:56:49]Write to MH i2c: E2 02 01 CF 14 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C1 1C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 3B [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 CF 14 00 90 00 57 [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]wFMCommunicate request_size=32 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 26 01 00 35 04 06 00 00 EE 6E C6 AF EE [15:56:49]Write to MH i2c: E2 23 00 D0 14 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 26 01 00 35 04 06 00 00 EE 6E C6 AF EE 00 00 86 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 D0 14 00 90 00 58 [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 03 02 [15:56:49]Write to MH i2c: E2 08 00 D1 14 80 0D 03 02 00 00 00 00 60 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0B 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0B 00 D1 14 00 39 59 3D CA 25 E7 30 6B 90 00 A1 [15:56:49]RAPDU: 39 59 3D CA 25 E7 30 6B 90 00 [15:56:49]wFMCommunicate OK [15:56:49]SAM_PROTO_SignData done [15:56:49]FM_MakeSignedData done [15:56:49]CreateOFDProtocolMessage [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 11 00 00 [15:56:49]Write to MH i2c: E2 08 00 D2 14 80 11 00 00 00 00 00 00 60 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 17 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 17 00 D2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AD [15:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:56:49]wFMCommunicate OK [15:56:49]CreateOFDProtocolMessage done [15:56:49]OFDSenderStorePacket 75499 [15:56:49]StoreOFDPacket docnum=75499 [15:56:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 4E 74 1D 01 1F 82 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C1 1C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 26 01 00 35 04 06 00 00 EE 6E C6 AF EE 39 59 3D CA 25 E7 30 6B [15:56:49]CheckFolder [15:56:49]dirname=/storage/ofd_packets [15:56:49]CheckFolder done [15:56:49]ProducePacketName [15:56:49]name=ofd_packets/00075499 [15:56:49]NVStorageSaveData ofd_packets/00075499 [15:56:49]File name is /storage/ofd_packets/00075499 [15:56:49]Write 323 bytes [15:56:49]NVStorageSaveData done [15:56:49]OFDSenderStorePacket done [15:56:49]KKMCreateOFDPacket done [15:56:49]NVStorageSaveData kkm_last_timestamp [15:56:49]File name is /storage/kkm_last_timestamp [15:56:49]Write 4 bytes [15:56:49]NVStorageSaveData done [15:56:49]ExternCall_PrintAddStr [15:56:49]wPrintStart [15:56:49]Write to MH i2c: 01 00 00 D3 14 E7 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 D3 14 00 00 00 00 00 FF 0F FC [15:56:49]RasterBufferAndPrint [15:56:49]line Счет N : (3)273269 [15:56:49]line ИНН: 02508201610067 [15:56:49]line Контрольно-Кассовый Чек [15:56:49]line ПРОДАЖА [15:56:49]line Товар: 48743570 [15:56:49]line Сигареты Winston XStyle Blue [15:56:49]line 1.000 * 140.00 [15:56:49]line = 140.00 [15:56:49]line НДС 12% НСП 1% [15:56:49]line > о реализуемом товаре [15:56:49]line ИТОГО: 140.00 [15:56:49]line НСП 1% : 1.24 [15:56:49]line НДС 12% : 14.87 [15:56:49]line Наличными: 140.00 [15:56:49]line Безнал.: 0.00 [15:56:49]line Место: АЗС № 133 "Партнер Нефть" [15:56:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [15:56:49]line СНО: Общий режим [15:56:49]line Чек 232 23.10.2024 15:56 [15:56:49]line Смена: 173 ФФД: 1.0 [15:56:49]line ЗНМ: 0300000020 [15:56:49]line РНМ: 0000000000161154 [15:56:49]line Версия ККМ: v1.0 [15:56:49]line ФМ: 0000000000963323 [15:56:49]line ФД: 75499 [15:56:49]line ФПД: 1024060731374 [15:56:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155649&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75499&fm=1024060731374&tin=02508201610067®Number=0000000000161154&sum=14000 [15:56:50]line 0 [15:56:50]OFD Sender: Processing packet 75499 [packets to send 16, broken 15] [15:56:50]ProducePacketName [15:56:50]name=ofd_packets/00075499 [15:56:50]OFD Sender: To server: pG, [15:56:50]CommunicateWithHost lk.salyk.kg:30040 [15:56:50]ConnectInit lk.salyk.kg [15:56:50]written 0, free lines is 4095 [15:56:50]Connected sock=10 [15:56:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 4E 74 1D 01 1F 82 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C1 1C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 26 01 00 35 04 06 00 00 EE 6E C6 AF EE 39 59 3D CA 25 E7 30 6B [15:56:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 5A 89 47 00 3C 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EB 26 01 00 F4 03 04 00 9B C5 18 67 B6 04 01 00 00 12 2A 49 3C DE 5F 70 93 [15:56:50]CommunicateWithHost err = 0 [15:56:50]CheckOFDResponse [15:56:50]1017 (14) - 77093643461234 [15:56:50]1041 (16) - 0000000000963323 [15:56:50]1040 (4) - 75499 [15:56:50]1012 (4) - 23.10.2024 09:44 [15:56:50]1206 (1) - 0 [15:56:50]OFD Sender: Remove packet 75499 [15:56:50]ProducePacketName [15:56:50]name=ofd_packets/00075499 [15:56:50]NVStorageDeleteData [15:56:50]Write to MH i2c: 01 00 00 FA 14 0E [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: 01 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: 01 07 00 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: 01 07 00 FA 14 00 00 00 00 00 D9 0C FA [15:56:50]RasterBufferAndPrint [15:56:50]line [15:56:50]line [15:56:50]line [15:56:50]line [15:56:50]line [15:56:50]written 0, free lines is 3293 [15:56:50]MH_Cut [15:56:50]Write to MH i2c: D1 01 00 01 15 01 E8 [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: D1 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: D1 01 00 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: D1 01 00 01 15 00 E7 [15:56:50]Write to MH i2c: 01 00 00 02 15 17 [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:50]OFD Sender: No OFD packet to send [15:56:51]*** Cut start [15:56:51]*** Partial cut [15:56:51]*** CUTSNS_PIN = 1 [15:56:51]*** CUTSNS_PIN = 0 [15:56:51]*** Brake cut motor [15:56:51]Read from MH i2c: 01 [15:56:51]MH_I2C_Read... [15:56:51]*** Stop cut motor [15:56:52]*** Cut end [15:56:52]Read from MH i2c: 01 07 00 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: 01 07 00 02 15 00 00 00 00 00 FF 0F 2C [15:56:52]process_action close_receipt done [15:56:52]requested_data is exist [15:56:52]produce_requested_data [15:56:52]requested_item fm.sn is exist - process it [15:56:52]wFMCommunicate request_size=4 [15:56:52]MH_SAM_APDU [15:56:52]CAPDU: 80 11 00 00 [15:56:52]Write to MH i2c: E2 08 00 03 15 80 11 00 00 00 00 00 00 92 [15:56:52]Write i2c OK [15:56:52]MH_I2C_Read... [15:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:52]Read from MH i2c: E2 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 17 00 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 17 00 03 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DF [15:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [15:56:52]wFMCommunicate OK [15:56:52]requested_item fd.num is exist - process it [15:56:52]SAM_PROTO_GetFieldsCounters [15:56:52]wFMCommunicate request_size=4 [15:56:52]MH_SAM_APDU [15:56:52]CAPDU: 80 13 00 00 [15:56:52]Write to MH i2c: E2 08 00 04 15 80 13 00 00 00 00 00 00 95 [15:56:52]Write i2c OK [15:56:52]MH_I2C_Read... [15:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:52]Read from MH i2c: E2 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 62 00 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 62 00 04 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EB 26 01 00 0E 04 04 00 AD 00 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 20 [15:56:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EB 26 01 00 0E 04 04 00 AD 00 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 [15:56:52]wFMCommunicate OK [15:56:52]SAM_PROTO_GetFieldsCounters done [15:56:52]requested_item shift.num is exist - process it [15:56:52]requested_item shift.opened is exist - process it [15:56:52]req_shift_opened [15:56:52]FM_GetShiftState [15:56:52]SAM_PROTO_GetShiftState [15:56:52]wFMCommunicate request_size=4 [15:56:52]MH_SAM_APDU [15:56:52]CAPDU: 80 13 01 00 [15:56:52]Write to MH i2c: E2 08 00 05 15 80 13 01 00 00 00 00 00 97 [15:56:52]Write i2c OK [15:56:52]MH_I2C_Read... [15:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:52]Read from MH i2c: E2 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 0E 00 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 0E 00 05 15 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FC [15:56:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [15:56:52]wFMCommunicate OK [15:56:52]SAM_PROTO_GetShiftState done [15:56:52]FM_GetShiftState done [15:56:52]req_shift_opened done [15:56:52]requested_item shift.open_date is exist - process it [15:56:52]req_shift_open_date [15:56:52]req_shift_open_date done [15:56:52]produce_requested_data done [15:56:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75499,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [15:56:52]process_action_free close_receipt [15:56:52]json_value_free [15:56:52]json_value_free done [15:56:52]process_json_proto returns [15:56:52]Send response to host [15:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75499,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [15:56:52]free response buf [15:56:52]execute_script done [15:56:52]execute_script returns [15:56:52]free content buf [15:56:52]Sock 9.Close socket [15:56:52]Sock 9.Thread stoped [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:40]accept exits with 8 [16:10:40]New connection [16:10:40]New thread 3066465636 created [16:10:40]Thread 3066608996 joined [16:10:40]Waiting for new connection... [16:10:40] Sock 8.Parse request [16:10:40]Sock 8.Check first char [16:10:40]Sock 8.First char is OK [16:10:40]request: POST /json_proto HTTP/1.0 [16:10:40]Method: POST [16:10:40]URL: /json_proto [16:10:40]Method is POST - this is cgi request [16:10:40]url: /json_proto [16:10:40]query_string will be loaded in cgi processing [16:10:40]execute_cgi json_proto POST (null) [16:10:40]execute_cgi path=json_proto method=POST [16:10:40]POST find Content-Length [16:10:40]Host: 172.17.44.196:8080 [16:10:40]Content-Length: 644 [16:10:40]Content-Type: application/json [16:10:40] [16:10:40]POST finish read [16:10:40]Found Content-Length = 644 [16:10:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273270", "tax_sys" : 0, "items" : [ { "code": "42188889", "name": "\u0416\u0435\u0432 Five \u0421\u043E\u0447\u043D\u044B\u0439 \u0410\u0440\u0431\u0443\u0437", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:40]execute_script... [16:10: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 : (3)273270", "tax_sys" : 0, "items" : [ { "code": "42188889", "name": "\u0416\u0435\u0432 Five \u0421\u043E\u0447\u043D\u044B\u0439 \u0410\u0440\u0431\u0443\u0437", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:40]POST & json_proto [16:10:40]process_json_proto [16:10:40]json parsed OK: [16:10:40]protocol is kg_v1.0 [16:10:40]action value=close_receipt [16:10:40]process_action close_receipt [16:10:40]cmd_close_receipt [16:10:40]MH_GetDate [16:10:40]Write to MH i2c: F0 00 00 06 15 0A [16:10:40]Write i2c OK [16:10:40]MH_I2C_Read... [16:10:40]Read from MH i2c: F0 [16:10:40]MH_I2C_Read... [16:10:40]Read from MH i2c: F0 09 00 [16:10:40]MH_I2C_Read... [16:10:40]Read from MH i2c: F0 09 00 06 15 00 02 20 19 67 E7 19 F8 65 12 [16:10:40]GetLastDocTimeStamp 1729699009 [16:10:40]current date 1729699842 [16:10:40]FM_GetShiftState [16:10:40]SAM_PROTO_GetShiftState [16:10:40]wFMCommunicate request_size=4 [16:10:40]MH_SAM_APDU [16:10:40]CAPDU: 80 13 01 00 [16:10:40]Write to MH i2c: E2 08 00 07 15 80 13 01 00 00 00 00 00 99 [16:10:40]Write i2c OK [16:10:40]MH_I2C_Read... [16:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:41]Read from MH i2c: E2 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 0E 00 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 0E 00 07 15 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FE [16:10:41]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:10:41]wFMCommunicate OK [16:10:41]SAM_PROTO_GetShiftState done [16:10:41]FM_GetShiftState done [16:10:41]opened in 1729642905 [16:10:41]opened+sec_in_day 1729729305 [16:10:41]quantity*price = 12000 [16:10:41]sum+1 = 12001 [16:10:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 233 23.10.2024 16:10 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75500 ФПД: 199286597069820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161042&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75500&fm=199286597069820&tin=02508201610067®Number=0000000000161154&sum=12000 0 [16:10:42]StoreToDocumentArchive [16:10:42]shift 173 fd 75500 [16:10:42]save to /storage/0173/doc_00075500 [16:10:42]save last doc name /storage/0173/doc_00075500 to /storage/kkm_last_doc_name [16:10:42]save OK [16:10:42]Clear old archive folders... [16:10:42]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:10:42]tlvbuf is 007F8F10 [16:10:42]SAM_PROTO_ClearQueue [16:10:42]wFMCommunicate request_size=4 [16:10:42]MH_SAM_APDU [16:10:42]CAPDU: 80 09 00 00 [16:10:42]Write to MH i2c: E2 08 00 14 15 80 09 00 00 00 00 00 00 9B [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:42]Read from MH i2c: E2 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 03 00 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 03 00 14 15 00 90 00 9D [16:10:42]RAPDU: 90 00 [16:10:42]wFMCommunicate OK [16:10:42]SAM_PROTO_ClearQueue done [16:10:42]KKMCreateOFDPacket [16:10:42]OFDProtocolAddRootSTLVToBuf [16:10:42]FM_MakeSignedData [16:10:42]FM_MakeSignedData [16:10:42]SAM_PROTO_SignData [16:10:42]wFMCommunicate request_size=4 [16:10:42]MH_SAM_APDU [16:10:42]CAPDU: 80 0D 01 02 [16:10:42]Write to MH i2c: E2 08 00 15 15 80 0D 01 02 00 00 00 00 A3 [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:42]Read from MH i2c: E2 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 03 00 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 03 00 15 15 00 90 00 9E [16:10:42]RAPDU: 90 00 [16:10:42]wFMCommunicate OK [16:10:42]wFMCommunicate request_size=255 [16:10:42]MH_SAM_APDU [16:10:42]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 32 31 38 38 38 38 39 06 04 23 00 D0 96 D0 B5 D0 B2 20 46 69 76 65 20 D0 A1 D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 02 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 [16:10:42]Write to MH i2c: E2 02 01 16 15 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 32 31 38 38 38 38 39 06 04 23 00 D0 96 D0 B5 D0 B2 20 46 69 76 65 20 D0 A1 D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 02 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 21 [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:42]Read from MH i2c: E2 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 03 00 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 03 00 16 15 00 90 00 9F [16:10:42]RAPDU: 90 00 [16:10:42]wFMCommunicate OK [16:10:42]wFMCommunicate request_size=31 [16:10:42]MH_SAM_APDU [16:10:42]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 33 32 33 10 04 04 00 EC 26 01 00 35 04 06 00 B5 40 06 D3 AB FC [16:10:42]Write to MH i2c: E2 22 00 17 15 80 0D 02 02 1A 00 30 30 39 36 33 33 32 33 10 04 04 00 EC 26 01 00 35 04 06 00 B5 40 06 D3 AB FC 00 00 53 [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:42]Read from MH i2c: E2 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 03 00 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 03 00 17 15 00 90 00 A0 [16:10:42]RAPDU: 90 00 [16:10:42]wFMCommunicate OK [16:10:42]wFMCommunicate request_size=4 [16:10:42]MH_SAM_APDU [16:10:42]CAPDU: 80 0D 03 02 [16:10:42]Write to MH i2c: E2 08 00 18 15 80 0D 03 02 00 00 00 00 A8 [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:42]Read from MH i2c: E2 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 0B 00 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 0B 00 18 15 00 91 A2 C6 7D E4 FC 30 3F 90 00 6E [16:10:42]RAPDU: 91 A2 C6 7D E4 FC 30 3F 90 00 [16:10:42]wFMCommunicate OK [16:10:42]SAM_PROTO_SignData done [16:10:42]FM_MakeSignedData done [16:10:42]CreateOFDProtocolMessage [16:10:42]wFMCommunicate request_size=4 [16:10:42]MH_SAM_APDU [16:10:42]CAPDU: 80 11 00 00 [16:10:42]Write to MH i2c: E2 08 00 19 15 80 11 00 00 00 00 00 00 A8 [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:42]Read from MH i2c: E2 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 17 00 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: E2 17 00 19 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F5 [16:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:10:42]wFMCommunicate OK [16:10:42]CreateOFDProtocolMessage done [16:10:42]OFDSenderStorePacket 75500 [16:10:42]StoreOFDPacket docnum=75500 [16:10:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 3B 1E 1C 01 4A 1B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 32 31 38 38 38 38 39 06 04 23 00 D0 96 D0 B5 D0 B2 20 46 69 76 65 20 D0 A1 D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 02 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 26 01 00 35 04 06 00 B5 40 06 D3 AB FC 91 A2 C6 7D E4 FC 30 3F [16:10:42]CheckFolder [16:10:42]dirname=/storage/ofd_packets [16:10:42]CheckFolder done [16:10:42]ProducePacketName [16:10:42]name=ofd_packets/00075500 [16:10:42]NVStorageSaveData ofd_packets/00075500 [16:10:42]File name is /storage/ofd_packets/00075500 [16:10:42]Write 322 bytes [16:10:42]NVStorageSaveData done [16:10:42]OFDSenderStorePacket done [16:10:42]KKMCreateOFDPacket done [16:10:42]NVStorageSaveData kkm_last_timestamp [16:10:42]File name is /storage/kkm_last_timestamp [16:10:42]Write 4 bytes [16:10:42]NVStorageSaveData done [16:10:42]ExternCall_PrintAddStr [16:10:42]wPrintStart [16:10:42]Write to MH i2c: 01 00 00 1A 15 2F [16:10:42]OFD Sender: Processing packet 75500 [packets to send 16, broken 15] [16:10:42]ProducePacketName [16:10:42]name=ofd_packets/00075500 [16:10:42]OFD Sender: To server: pG, [16:10:42]CommunicateWithHost lk.salyk.kg:30040 [16:10:42]ConnectInit lk.salyk.kg [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: 01 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: 01 07 00 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: 01 07 00 1A 15 00 00 00 00 00 FF 0F 44 [16:10:42]RasterBufferAndPrint [16:10:42]line Счет N : (3)273270 [16:10:42]line ИНН: 02508201610067 [16:10:42]line Контрольно-Кассовый Чек [16:10:42]line ПРОДАЖА [16:10:42]line Товар: 42188889 [16:10:42]line Жев Five Сочный Арбуз [16:10:42]line 1.000 * 120.00 [16:10:42]line = 120.00 [16:10:42]line НДС 12% НСП 1% [16:10:42]line > о реализуемом товаре [16:10:42]line ИТОГО: 120.00 [16:10:42]line НСП 1% : 1.06 [16:10:42]line НДС 12% : 12.74 [16:10:42]line Наличными: 120.00 [16:10:42]line Безнал.: 0.00 [16:10:42]line Место: АЗС № 133 "Партнер Нефть" [16:10:42]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:10:42]line СНО: Общий режим [16:10:42]line Чек 233 23.10.2024 16:10 [16:10:42]line Смена: 173 ФФД: 1.0 [16:10:42]line ЗНМ: 0300000020 [16:10:42]line РНМ: 0000000000161154 [16:10:42]line Версия ККМ: v1.0 [16:10:42]line ФМ: 0000000000963323 [16:10:42]line ФД: 75500 [16:10:42]line ФПД: 199286597069820 [16:10:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161042&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75500&fm=199286597069820&tin=02508201610067®Number=0000000000161154&sum=12000 [16:10:43]line 0 [16:10:43]Connected sock=10 [16:10:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 24 01 00 00 3B 1E 1C 01 4A 1B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 32 31 38 38 38 38 39 06 04 23 00 D0 96 D0 B5 D0 B2 20 46 69 76 65 20 D0 A1 D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 02 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 26 01 00 35 04 06 00 B5 40 06 D3 AB FC 91 A2 C6 7D E4 FC 30 3F [16:10:43]written 0, free lines is 4095 [16:10:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 81 38 47 00 15 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EC 26 01 00 F4 03 04 00 DC C8 18 67 B6 04 01 00 00 CD 26 7B 8D 23 E1 4D 9D [16:10:43]CommunicateWithHost err = 0 [16:10:43]CheckOFDResponse [16:10:43]1017 (14) - 77093643461234 [16:10:43]1041 (16) - 0000000000963323 [16:10:43]1040 (4) - 75500 [16:10:43]1012 (4) - 23.10.2024 09:58 [16:10:43]1206 (1) - 0 [16:10:43]OFD Sender: Remove packet 75500 [16:10:43]ProducePacketName [16:10:43]name=ofd_packets/00075500 [16:10:43]NVStorageDeleteData [16:10:43]Write to MH i2c: 01 00 00 41 15 56 [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: 01 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: 01 07 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: 01 07 00 41 15 00 00 00 00 00 D2 0C 3B [16:10:43]RasterBufferAndPrint [16:10:43]line [16:10:43]line [16:10:43]line [16:10:43]line [16:10:43]line [16:10:43]written 0, free lines is 3286 [16:10:43]MH_Cut [16:10:43]Write to MH i2c: D1 01 00 48 15 01 2F [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: D1 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: D1 01 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: D1 01 00 48 15 00 2E [16:10:43]Write to MH i2c: 01 00 00 49 15 5E [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]OFD Sender: No OFD packet to send [16:10:44]*** Cut start [16:10:44]*** Partial cut [16:10:44]*** CUTSNS_PIN = 1 [16:10:44]*** CUTSNS_PIN = 0 [16:10:44]*** Brake cut motor [16:10:45]Read from MH i2c: 01 [16:10:45]MH_I2C_Read... [16:10:45]*** Stop cut motor [16:10:45]*** Cut end [16:10:45]Read from MH i2c: 01 07 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: 01 07 00 49 15 00 00 00 00 00 FF 0F 73 [16:10:45]process_action close_receipt done [16:10:45]requested_data is exist [16:10:45]produce_requested_data [16:10:45]requested_item fm.sn is exist - process it [16:10:45]wFMCommunicate request_size=4 [16:10:45]MH_SAM_APDU [16:10:45]CAPDU: 80 11 00 00 [16:10:45]Write to MH i2c: E2 08 00 4A 15 80 11 00 00 00 00 00 00 D9 [16:10:45]Write i2c OK [16:10:45]MH_I2C_Read... [16:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:45]Read from MH i2c: E2 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 17 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 17 00 4A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 26 [16:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:10:45]wFMCommunicate OK [16:10:45]requested_item fd.num is exist - process it [16:10:45]SAM_PROTO_GetFieldsCounters [16:10:45]wFMCommunicate request_size=4 [16:10:45]MH_SAM_APDU [16:10:45]CAPDU: 80 13 00 00 [16:10:45]Write to MH i2c: E2 08 00 4B 15 80 13 00 00 00 00 00 00 DC [16:10:45]Write i2c OK [16:10:45]MH_I2C_Read... [16:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:45]Read from MH i2c: E2 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 62 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 62 00 4B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EC 26 01 00 0E 04 04 00 AD 00 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 6B [16:10:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EC 26 01 00 0E 04 04 00 AD 00 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 [16:10:45]wFMCommunicate OK [16:10:45]SAM_PROTO_GetFieldsCounters done [16:10:45]requested_item shift.num is exist - process it [16:10:45]requested_item shift.opened is exist - process it [16:10:45]req_shift_opened [16:10:45]FM_GetShiftState [16:10:45]SAM_PROTO_GetShiftState [16:10:45]wFMCommunicate request_size=4 [16:10:45]MH_SAM_APDU [16:10:45]CAPDU: 80 13 01 00 [16:10:45]Write to MH i2c: E2 08 00 4C 15 80 13 01 00 00 00 00 00 DE [16:10:45]Write i2c OK [16:10:45]MH_I2C_Read... [16:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:45]Read from MH i2c: E2 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 0E 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: E2 0E 00 4C 15 00 09 00 01 99 41 18 67 00 00 00 00 90 00 43 [16:10:45]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:10:45]wFMCommunicate OK [16:10:45]SAM_PROTO_GetShiftState done [16:10:45]FM_GetShiftState done [16:10:45]req_shift_opened done [16:10:45]requested_item shift.open_date is exist - process it [16:10:45]req_shift_open_date [16:10:45]req_shift_open_date done [16:10:45]produce_requested_data done [16:10:45]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75500,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [16:10:45]process_action_free close_receipt [16:10:45]json_value_free [16:10:45]json_value_free done [16:10:45]process_json_proto returns [16:10:45]Send response to host [16:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75500,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [16:10:45]free response buf [16:10:45]execute_script done [16:10:45]execute_script returns [16:10:45]free content buf [16:10:45]Sock 8.Close socket [16:10:45]Sock 8.Thread stoped [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:48]accept exits with 9 [16:11:48]New connection [16:11:48]New thread 3066608996 created [16:11:48]Thread 3066465636 joined [16:11:48]Waiting for new connection... [16:11:48] Sock 9.Parse request [16:11:48]Sock 9.Check first char [16:11:48]Sock 9.First char is OK [16:11:48]request: POST /json_proto HTTP/1.0 [16:11:48]Method: POST [16:11:48]URL: /json_proto [16:11:48]Method is POST - this is cgi request [16:11:48]url: /json_proto [16:11:48]query_string will be loaded in cgi processing [16:11:48]execute_cgi json_proto POST (null) [16:11:48]execute_cgi path=json_proto method=POST [16:11:48]POST find Content-Length [16:11:48]Host: 172.17.44.196:8080 [16:11:48]Content-Length: 678 [16:11:48]Content-Type: application/json [16:11:48] [16:11:48]POST finish read [16:11:48]Found Content-Length = 678 [16:11:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:11:48]execute_script... [16:11: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)1965719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:11:48]POST & json_proto [16:11:48]process_json_proto [16:11:48]json parsed OK: [16:11:48]protocol is kg_v1.0 [16:11:48]action value=close_receipt [16:11:48]process_action close_receipt [16:11:48]cmd_close_receipt [16:11:48]MH_GetDate [16:11:48]Write to MH i2c: F0 00 00 4D 15 51 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: F0 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: F0 09 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: F0 09 00 4D 15 00 45 20 19 67 E7 19 F8 65 9C [16:11:48]GetLastDocTimeStamp 1729699842 [16:11:48]current date 1729699909 [16:11:48]FM_GetShiftState [16:11:48]SAM_PROTO_GetShiftState [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 13 01 00 [16:11:48]Write to MH i2c: E2 08 00 4E 15 80 13 01 00 00 00 00 00 E0 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 0E 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 0E 00 4E 15 00 09 00 01 99 41 18 67 00 00 00 00 90 00 45 [16:11:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:11:48]wFMCommunicate OK [16:11:48]SAM_PROTO_GetShiftState done [16:11:48]FM_GetShiftState done [16:11:48]opened in 1729642905 [16:11:48]opened+sec_in_day 1729729305 [16:11:48]quantity*price = 50041 [16:11:48]sum+1 = 50042 [16:11:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 234 23.10.2024 16:11 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75501 ФПД: 43334692028714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161150&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75501&fm=43334692028714&tin=02508201610067®Number=0000000000161154&sum=50000 [16:11:50]StoreToDocumentArchive [16:11:50]shift 173 fd 75501 [16:11:50]save to /storage/0173/doc_00075501 [16:11:50]save last doc name /storage/0173/doc_00075501 to /storage/kkm_last_doc_name [16:11:50]save OK [16:11:50]Clear old archive folders... [16:11:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:50]tlvbuf is 007F8900 [16:11:50]SAM_PROTO_ClearQueue [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 09 00 00 [16:11:50]Write to MH i2c: E2 08 00 5B 15 80 09 00 00 00 00 00 00 E2 [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [16:11:50]RAPDU: 90 00 [16:11:50]wFMCommunicate OK [16:11:50]SAM_PROTO_ClearQueue done [16:11:50]KKMCreateOFDPacket [16:11:50]OFDProtocolAddRootSTLVToBuf [16:11:50]FM_MakeSignedData [16:11:50]FM_MakeSignedData [16:11:50]SAM_PROTO_SignData [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 0D 01 02 [16:11:50]Write to MH i2c: E2 08 00 5C 15 80 0D 01 02 00 00 00 00 EA [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 5C 15 00 90 00 E5 [16:11:50]RAPDU: 90 00 [16:11:50]wFMCommunicate OK [16:11:50]wFMCommunicate request_size=255 [16:11:50]MH_SAM_APDU [16:11: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 EA 00 00 00 F4 03 04 00 46 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 26 01 00 35 04 06 00 27 [16:11:50]Write to MH i2c: E2 02 01 5D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 EA 00 00 00 F4 03 04 00 46 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 26 01 00 35 04 06 00 27 00 00 24 [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 5D 15 00 90 00 E6 [16:11:50]RAPDU: 90 00 [16:11:50]wFMCommunicate OK [16:11:50]wFMCommunicate request_size=10 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 0D 02 02 05 69 A4 EC C1 2A [16:11:50]Write to MH i2c: E2 0D 00 5E 15 80 0D 02 02 05 00 69 A4 EC C1 2A 00 00 DB [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 03 00 5E 15 00 90 00 E7 [16:11:50]RAPDU: 90 00 [16:11:50]wFMCommunicate OK [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 0D 03 02 [16:11:50]Write to MH i2c: E2 08 00 5F 15 80 0D 03 02 00 00 00 00 EF [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 0B 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 0B 00 5F 15 00 DA DD A6 BE D7 16 FF BA 90 00 B1 [16:11:50]RAPDU: DA DD A6 BE D7 16 FF BA 90 00 [16:11:50]wFMCommunicate OK [16:11:50]SAM_PROTO_SignData done [16:11:50]FM_MakeSignedData done [16:11:50]CreateOFDProtocolMessage [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 11 00 00 [16:11:50]Write to MH i2c: E2 08 00 60 15 80 11 00 00 00 00 00 00 EF [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 17 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 17 00 60 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3C [16:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:11:50]wFMCommunicate OK [16:11:50]CreateOFDProtocolMessage done [16:11:50]OFDSenderStorePacket 75501 [16:11:50]StoreOFDPacket docnum=75501 [16:11:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CB 78 07 01 CE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 EA 00 00 00 F4 03 04 00 46 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 26 01 00 35 04 06 00 27 69 A4 EC C1 2A DA DD A6 BE D7 16 FF BA [16:11:50]CheckFolder [16:11:50]dirname=/storage/ofd_packets [16:11:50]CheckFolder done [16:11:50]ProducePacketName [16:11:50]name=ofd_packets/00075501 [16:11:50]NVStorageSaveData ofd_packets/00075501 [16:11:50]File name is /storage/ofd_packets/00075501 [16:11:50]Write 301 bytes [16:11:50]NVStorageSaveData done [16:11:50]OFDSenderStorePacket done [16:11:50]KKMCreateOFDPacket done [16:11:50]NVStorageSaveData kkm_last_timestamp [16:11:50]File name is /storage/kkm_last_timestamp [16:11:50]Write 4 bytes [16:11:50]NVStorageSaveData done [16:11:50]ExternCall_PrintAddStr [16:11:50]wPrintStart [16:11:50]Write to MH i2c: 01 00 00 61 15 76 [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: 01 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: 01 07 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: 01 07 00 61 15 00 00 00 00 00 FF 0F 8B [16:11:50]RasterBufferAndPrint [16:11:50]line Счет N : (1)1965719 [16:11:50]line ИНН: 02508201610067 [16:11:50]line Контрольно-Кассовый Чек [16:11:50]line ПРОДАЖА [16:11:50]line ТРК (МРК, ГНК) : 33 [16:11:50]line Товар: 2710124130 [16:11:50]line Аи-92-К-5 [16:11:50]line 7.480 * 66.90 [16:11:50]line = 500.41 [16:11:50]line НДС 12% НСП 1% [16:11:50]line > о реализуемом товаре [16:11:50]line ОКРУГЛЕНИЕ: -0.41 [16:11:50]line ИТОГО: 500.00 [16:11:50]line Внесено: 500.00 [16:11:50]line СДАЧА: 0.00 [16:11:50]line НСП 1% : 4.43 [16:11:50]line НДС 12% : 53.14 [16:11:50]line Наличными: 500.00 [16:11:50]line Безнал.: 0.00 [16:11:50]line Место: АЗС № 133 "Партнер Нефть" [16:11:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:11:50]line СНО: Общий режим [16:11:50]line Чек 234 23.10.2024 16:11 [16:11:50]line Смена: 173 ФФД: 1.0 [16:11:50]line ЗНМ: 0300000020 [16:11:50]line РНМ: 0000000000161154 [16:11:50]line Версия ККМ: v1.0 [16:11:50]line ФМ: 0000000000963323 [16:11:50]line ФД: 75501 [16:11:50]line ФПД: 43334692028714 [16:11:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161150&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75501&fm=43334692028714&tin=02508201610067®Number=0000000000161154&sum=50000 [16:11:50]OFD Sender: Processing packet 75501 [packets to send 16, broken 15] [16:11:50]ProducePacketName [16:11:50]name=ofd_packets/00075501 [16:11:50]OFD Sender: To server: pG, [16:11:50]CommunicateWithHost lk.salyk.kg:30040 [16:11:50]ConnectInit lk.salyk.kg [16:11:50]written 0, free lines is 4095 [16:11:50]Connected sock=10 [16:11:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 CB 78 07 01 CE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 EA 00 00 00 F4 03 04 00 46 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 26 01 00 35 04 06 00 27 69 A4 EC C1 2A DA DD A6 BE D7 16 FF BA [16:11:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 4A D8 47 00 49 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 ED 26 01 00 F4 03 04 00 20 C9 18 67 B6 04 01 00 00 F7 C5 CA DE 55 1A 87 FD [16:11:51]CommunicateWithHost err = 0 [16:11:51]CheckOFDResponse [16:11:51]1017 (14) - 77093643461234 [16:11:51]1041 (16) - 0000000000963323 [16:11:51]1040 (4) - 75501 [16:11:51]1012 (4) - 23.10.2024 10:00 [16:11:51]1206 (1) - 0 [16:11:51]OFD Sender: Remove packet 75501 [16:11:51]ProducePacketName [16:11:51]name=ofd_packets/00075501 [16:11:51]NVStorageDeleteData [16:11:51]Write to MH i2c: 01 00 00 8B 15 A0 [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: 01 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: 01 07 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: 01 07 00 8B 15 00 00 00 00 00 A4 0C 57 [16:11:51]RasterBufferAndPrint [16:11:51]line [16:11:51]line [16:11:51]line [16:11:51]line [16:11:51]line [16:11:51]written 0, free lines is 3241 [16:11:51]MH_Cut [16:11:51]Write to MH i2c: D1 01 00 92 15 01 79 [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: D1 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: D1 01 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: D1 01 00 92 15 00 78 [16:11:51]Write to MH i2c: 01 00 00 93 15 A8 [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]OFD Sender: No OFD packet to send [16:11:52]*** Cut start [16:11:52]*** Partial cut [16:11:52]*** CUTSNS_PIN = 1 [16:11:52]*** CUTSNS_PIN = 0 [16:11:52]*** Brake cut motor [16:11:52]Read from MH i2c: 01 [16:11:52]MH_I2C_Read... [16:11:52]*** Stop cut motor [16:11:52]*** Cut end [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 93 15 00 00 00 00 00 FF 0F BD [16:11:52]process_action close_receipt done [16:11:52]requested_data is exist [16:11:52]produce_requested_data [16:11:52]requested_item fm.sn is exist - process it [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 94 15 80 11 00 00 00 00 00 00 23 [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 94 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 70 [16:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:11:52]wFMCommunicate OK [16:11:52]requested_item fd.num is exist - process it [16:11:52]SAM_PROTO_GetFieldsCounters [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 13 00 00 [16:11:52]Write to MH i2c: E2 08 00 95 15 80 13 00 00 00 00 00 00 26 [16:11:52]Write i2c OK [16:11:52]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 95 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 ED 26 01 00 0E 04 04 00 AD 00 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 B9 [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 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 ED 26 01 00 0E 04 04 00 AD 00 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 [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 96 15 80 13 01 00 00 00 00 00 28 [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 96 15 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8D [16:11:53]RAPDU: 09 00 01 99 41 18 67 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":"0000000000963323","fd.num":75501,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [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":"0000000000963323","fd.num":75501,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [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:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]accept exits with 8 [16:12:11]New connection [16:12:11]New thread 3066465636 created [16:12:11]Thread 3066608996 joined [16:12:11]Waiting for new connection... [16:12:11] Sock 8.Parse request [16:12:11]Sock 8.Check first char [16:12:11]Sock 8.First char is OK [16:12:11]request: POST /json_proto HTTP/1.0 [16:12:11]Method: POST [16:12:11]URL: /json_proto [16:12:11]Method is POST - this is cgi request [16:12:11]url: /json_proto [16:12:11]query_string will be loaded in cgi processing [16:12:11]execute_cgi json_proto POST (null) [16:12:11]execute_cgi path=json_proto method=POST [16:12:11]POST find Content-Length [16:12:11]Host: 172.17.44.196:8080 [16:12:11]Content-Length: 680 [16:12:11]Content-Type: application/json [16:12:11] [16:12:11]POST finish read [16:12:11]Found Content-Length = 680 [16:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:11]execute_script... [16:12:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:11]POST & json_proto [16:12:11]process_json_proto [16:12:11]json parsed OK: [16:12:11]protocol is kg_v1.0 [16:12:11]action value=close_receipt [16:12:11]process_action close_receipt [16:12:11]cmd_close_receipt [16:12:11]MH_GetDate [16:12:11]Write to MH i2c: F0 00 00 97 15 9B [16:12:11]Write i2c OK [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: F0 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: F0 09 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: F0 09 00 97 15 00 5C 20 19 67 E7 19 F8 65 FD [16:12:11]GetLastDocTimeStamp 1729699910 [16:12:11]current date 1729699932 [16:12:11]FM_GetShiftState [16:12:11]SAM_PROTO_GetShiftState [16:12:11]wFMCommunicate request_size=4 [16:12:11]MH_SAM_APDU [16:12:11]CAPDU: 80 13 01 00 [16:12:11]Write to MH i2c: E2 08 00 98 15 80 13 01 00 00 00 00 00 2A [16:12:11]Write i2c OK [16:12:11]MH_I2C_Read... [16:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:11]Read from MH i2c: E2 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 0E 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 0E 00 98 15 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8F [16:12:11]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:12:11]wFMCommunicate OK [16:12:11]SAM_PROTO_GetShiftState done [16:12:11]FM_GetShiftState done [16:12:11]opened in 1729642905 [16:12:11]opened+sec_in_day 1729729305 [16:12:11]quantity*price = 110032 [16:12:11]sum+1 = 110034 [16:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 235 23.10.2024 16:12 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75502 ФПД: 98904465049579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161212&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75502&fm=98904465049579&tin=02508201610067®Number=0000000000161154&sum=110000 [16:12:12]StoreToDocumentArchive [16:12:12]shift 173 fd 75502 [16:12:12]save to /storage/0173/doc_00075502 [16:12:12]save last doc name /storage/0173/doc_00075502 to /storage/kkm_last_doc_name [16:12:12]save OK [16:12:12]Clear old archive folders... [16:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:12:12]tlvbuf is 007F88A0 [16:12:12]SAM_PROTO_ClearQueue [16:12:12]wFMCommunicate request_size=4 [16:12:12]MH_SAM_APDU [16:12:12]CAPDU: 80 09 00 00 [16:12:12]Write to MH i2c: E2 08 00 A5 15 80 09 00 00 00 00 00 00 2C [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:12]Read from MH i2c: E2 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 03 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [16:12:12]RAPDU: 90 00 [16:12:12]wFMCommunicate OK [16:12:12]SAM_PROTO_ClearQueue done [16:12:12]KKMCreateOFDPacket [16:12:12]OFDProtocolAddRootSTLVToBuf [16:12:12]FM_MakeSignedData [16:12:12]FM_MakeSignedData [16:12:12]SAM_PROTO_SignData [16:12:12]wFMCommunicate request_size=4 [16:12:12]MH_SAM_APDU [16:12:12]CAPDU: 80 0D 01 02 [16:12:12]Write to MH i2c: E2 08 00 A6 15 80 0D 01 02 00 00 00 00 34 [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:12]Read from MH i2c: E2 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 03 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [16:12:12]RAPDU: 90 00 [16:12:12]wFMCommunicate OK [16:12:12]wFMCommunicate request_size=255 [16:12:12]MH_SAM_APDU [16:12:12]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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 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 5C 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 26 01 00 35 04 06 00 59 F3 FD 81 [16:12:12]Write to MH i2c: E2 02 01 A7 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 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 5C 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 26 01 00 35 04 06 00 59 F3 FD 81 00 00 56 [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:12]Read from MH i2c: E2 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 03 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 03 00 A7 15 00 90 00 30 [16:12:12]RAPDU: 90 00 [16:12:12]wFMCommunicate OK [16:12:12]wFMCommunicate request_size=7 [16:12:12]MH_SAM_APDU [16:12:12]CAPDU: 80 0D 02 02 02 87 EB [16:12:12]Write to MH i2c: E2 0A 00 A8 15 80 0D 02 02 02 00 87 EB 00 00 AD [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:12]Read from MH i2c: E2 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 03 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 03 00 A8 15 00 90 00 31 [16:12:12]RAPDU: 90 00 [16:12:12]wFMCommunicate OK [16:12:12]wFMCommunicate request_size=4 [16:12:12]MH_SAM_APDU [16:12:12]CAPDU: 80 0D 03 02 [16:12:12]Write to MH i2c: E2 08 00 A9 15 80 0D 03 02 00 00 00 00 39 [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:12]Read from MH i2c: E2 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 0B 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 0B 00 A9 15 00 30 7F 0D 7B 4D 02 E5 40 90 00 E5 [16:12:12]RAPDU: 30 7F 0D 7B 4D 02 E5 40 90 00 [16:12:12]wFMCommunicate OK [16:12:12]SAM_PROTO_SignData done [16:12:12]FM_MakeSignedData done [16:12:12]CreateOFDProtocolMessage [16:12:12]wFMCommunicate request_size=4 [16:12:12]MH_SAM_APDU [16:12:12]CAPDU: 80 11 00 00 [16:12:12]Write to MH i2c: E2 08 00 AA 15 80 11 00 00 00 00 00 00 39 [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:12]Read from MH i2c: E2 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 17 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 17 00 AA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 86 [16:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:12:12]wFMCommunicate OK [16:12:12]CreateOFDProtocolMessage done [16:12:12]OFDSenderStorePacket 75502 [16:12:12]StoreOFDPacket docnum=75502 [16:12:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 3A D6 04 01 D8 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 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 5C 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 26 01 00 35 04 06 00 59 F3 FD 81 87 EB 30 7F 0D 7B 4D 02 E5 40 [16:12:12]CheckFolder [16:12:12]dirname=/storage/ofd_packets [16:12:12]CheckFolder done [16:12:12]ProducePacketName [16:12:12]name=ofd_packets/00075502 [16:12:12]NVStorageSaveData ofd_packets/00075502 [16:12:12]File name is /storage/ofd_packets/00075502 [16:12:12]Write 298 bytes [16:12:12]NVStorageSaveData done [16:12:12]OFDSenderStorePacket done [16:12:12]KKMCreateOFDPacket done [16:12:12]NVStorageSaveData kkm_last_timestamp [16:12:12]File name is /storage/kkm_last_timestamp [16:12:12]Write 4 bytes [16:12:12]NVStorageSaveData done [16:12:12]ExternCall_PrintAddStr [16:12:12]wPrintStart [16:12:12]Write to MH i2c: 01 00 00 AB 15 C0 [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 07 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 FF 0F D5 [16:12:12]RasterBufferAndPrint [16:12:12]line Счет N : (1)1965720 [16:12:12]line ИНН: 02508201610067 [16:12:12]line Контрольно-Кассовый Чек [16:12:12]line ПРОДАЖА [16:12:12]line ТРК (МРК, ГНК) : 21 [16:12:12]line Товар: 2710194210 [16:12:12]line ДТ-К-5 [16:12:12]line 14.440 * 76.20 [16:12:12]line = 1100.33 [16:12:12]line НДС 12% НСП 1% [16:12:12]line > о реализуемом товаре [16:12:12]line ОКРУГЛЕНИЕ: -0.33 [16:12:12]line ИТОГО: 1100.00 [16:12:12]line Внесено: 1100.00 [16:12:12]line СДАЧА: 0.00 [16:12:12]line НСП 1% : 9.74 [16:12:12]line НДС 12% : 116.85 [16:12:12]line Наличными: 1100.00 [16:12:12]line Безнал.: 0.00 [16:12:12]line Место: АЗС № 133 "Партнер Нефть" [16:12:12]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:12:12]line СНО: Общий режим [16:12:12]line Чек 235 23.10.2024 16:12 [16:12:12]line Смена: 173 ФФД: 1.0 [16:12:12]line ЗНМ: 0300000020 [16:12:12]line РНМ: 0000000000161154 [16:12:12]line Версия ККМ: v1.0 [16:12:12]line ФМ: 0000000000963323 [16:12:12]line ФД: 75502 [16:12:12]line ФПД: 98904465049579 [16:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161212&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75502&fm=98904465049579&tin=02508201610067®Number=0000000000161154&sum=110000 [16:12:13]OFD Sender: Processing packet 75502 [packets to send 16, broken 15] [16:12:13]ProducePacketName [16:12:13]name=ofd_packets/00075502 [16:12:13]OFD Sender: To server: pG, [16:12:13]CommunicateWithHost lk.salyk.kg:30040 [16:12:13]ConnectInit lk.salyk.kg [16:12:13]written 0, free lines is 4095 [16:12:13]Connected sock=10 [16:12:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 3A D6 04 01 D8 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 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 5C 20 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 26 01 00 35 04 06 00 59 F3 FD 81 87 EB 30 7F 0D 7B 4D 02 E5 40 [16:12:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 54 D1 47 00 8A F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EE 26 01 00 F4 03 04 00 36 C9 18 67 B6 04 01 00 00 00 C4 26 00 6C 3E 5B BC [16:12:13]CommunicateWithHost err = 0 [16:12:13]CheckOFDResponse [16:12:13]1017 (14) - 77093643461234 [16:12:13]1041 (16) - 0000000000963323 [16:12:13]1040 (4) - 75502 [16:12:13]1012 (4) - 23.10.2024 10:00 [16:12:13]1206 (1) - 0 [16:12:13]OFD Sender: Remove packet 75502 [16:12:13]ProducePacketName [16:12:13]name=ofd_packets/00075502 [16:12:13]NVStorageDeleteData [16:12:13]Write to MH i2c: 01 00 00 D5 15 EA [16:12:13]Write i2c OK [16:12:13]MH_I2C_Read... [16:12:13]Read from MH i2c: 01 [16:12:13]MH_I2C_Read... [16:12:13]Read from MH i2c: 01 07 00 [16:12:13]MH_I2C_Read... [16:12:13]Read from MH i2c: 01 07 00 D5 15 00 00 00 00 00 A3 0C A0 [16:12:13]RasterBufferAndPrint [16:12:13]line [16:12:13]line [16:12:13]line [16:12:13]line [16:12:13]line [16:12:13]written 0, free lines is 3240 [16:12:13]MH_Cut [16:12:13]Write to MH i2c: D1 01 00 DC 15 01 C3 [16:12:13]Write i2c OK [16:12:13]MH_I2C_Read... [16:12:13]Read from MH i2c: D1 [16:12:13]MH_I2C_Read... [16:12:13]Read from MH i2c: D1 01 00 [16:12:13]MH_I2C_Read... [16:12:13]Read from MH i2c: D1 01 00 DC 15 00 C2 [16:12:13]Write to MH i2c: 01 00 00 DD 15 F2 [16:12:13]Write i2c OK [16:12:13]MH_I2C_Read... [16:12:14]OFD Sender: No OFD packet to send [16:12:14]*** Cut start [16:12:14]*** Partial cut [16:12:14]*** CUTSNS_PIN = 1 [16:12:14]*** CUTSNS_PIN = 0 [16:12:14]*** Brake cut motor [16:12:15]Read from MH i2c: 01 [16:12:15]MH_I2C_Read... [16:12:15]*** Stop cut motor [16:12:15]*** Cut end [16:12:15]Read from MH i2c: 01 07 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: 01 07 00 DD 15 00 00 00 00 00 FF 0F 07 [16:12:15]process_action close_receipt done [16:12:15]requested_data is exist [16:12:15]produce_requested_data [16:12:15]requested_item fm.sn is exist - process it [16:12:15]wFMCommunicate request_size=4 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 11 00 00 [16:12:15]Write to MH i2c: E2 08 00 DE 15 80 11 00 00 00 00 00 00 6D [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 17 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 17 00 DE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BA [16:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:12:15]wFMCommunicate OK [16:12:15]requested_item fd.num is exist - process it [16:12:15]SAM_PROTO_GetFieldsCounters [16:12:15]wFMCommunicate request_size=4 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 13 00 00 [16:12:15]Write to MH i2c: E2 08 00 DF 15 80 13 00 00 00 00 00 00 70 [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 62 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 62 00 DF 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EE 26 01 00 0E 04 04 00 AD 00 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 07 [16:12:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EE 26 01 00 0E 04 04 00 AD 00 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 [16:12:15]wFMCommunicate OK [16:12:15]SAM_PROTO_GetFieldsCounters done [16:12:15]requested_item shift.num is exist - process it [16:12:15]requested_item shift.opened is exist - process it [16:12:15]req_shift_opened [16:12:15]FM_GetShiftState [16:12:15]SAM_PROTO_GetShiftState [16:12:15]wFMCommunicate request_size=4 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 13 01 00 [16:12:15]Write to MH i2c: E2 08 00 E0 15 80 13 01 00 00 00 00 00 72 [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 0E 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 0E 00 E0 15 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D7 [16:12:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:12:15]wFMCommunicate OK [16:12:15]SAM_PROTO_GetShiftState done [16:12:15]FM_GetShiftState done [16:12:15]req_shift_opened done [16:12:15]requested_item shift.open_date is exist - process it [16:12:15]req_shift_open_date [16:12:15]req_shift_open_date done [16:12:15]produce_requested_data done [16:12:15]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75502,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [16:12:15]process_action_free close_receipt [16:12:15]json_value_free [16:12:15]json_value_free done [16:12:15]process_json_proto returns [16:12:15]Send response to host [16:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75502,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [16:12:15]free response buf [16:12:15]execute_script done [16:12:15]execute_script returns [16:12:15]free content buf [16:12:15]Sock 8.Close socket [16:12:15]Sock 8.Thread stoped [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:47]accept exits with 9 [16:19:47]New connection [16:19:47]New thread 3066608996 created [16:19:47]Thread 3066465636 joined [16:19:47]Waiting for new connection... [16:19:47] Sock 9.Parse request [16:19:47]Sock 9.Check first char [16:19:47]Sock 9.First char is OK [16:19:47]request: POST /json_proto HTTP/1.0 [16:19:47]Method: POST [16:19:47]URL: /json_proto [16:19:47]Method is POST - this is cgi request [16:19:47]url: /json_proto [16:19:47]query_string will be loaded in cgi processing [16:19:47]execute_cgi json_proto POST (null) [16:19:47]execute_cgi path=json_proto method=POST [16:19:47]POST find Content-Length [16:19:47]Host: 172.17.44.196:8080 [16:19:47]Content-Length: 646 [16:19:47]Content-Type: application/json [16:19:47] [16:19:47]POST finish read [16:19:47]Found Content-Length = 646 [16:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273271", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:47]execute_script... [16:19:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273271", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:47]POST & json_proto [16:19:47]process_json_proto [16:19:47]json parsed OK: [16:19:47]protocol is kg_v1.0 [16:19:47]action value=close_receipt [16:19:47]process_action close_receipt [16:19:47]cmd_close_receipt [16:19:47]MH_GetDate [16:19:47]Write to MH i2c: F0 00 00 E1 15 E5 [16:19:47]Write i2c OK [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: F0 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: F0 09 00 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: F0 09 00 E1 15 00 24 22 19 67 E7 19 F8 65 11 [16:19:47]GetLastDocTimeStamp 1729699932 [16:19:47]current date 1729700388 [16:19:47]FM_GetShiftState [16:19:47]SAM_PROTO_GetShiftState [16:19:47]wFMCommunicate request_size=4 [16:19:47]MH_SAM_APDU [16:19:47]CAPDU: 80 13 01 00 [16:19:47]Write to MH i2c: E2 08 00 E2 15 80 13 01 00 00 00 00 00 74 [16:19:47]Write i2c OK [16:19:47]MH_I2C_Read... [16:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:47]Read from MH i2c: E2 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 0E 00 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 0E 00 E2 15 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D9 [16:19:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:19:47]wFMCommunicate OK [16:19:47]SAM_PROTO_GetShiftState done [16:19:47]FM_GetShiftState done [16:19:47]opened in 1729642905 [16:19:47]opened+sec_in_day 1729729305 [16:19:47]quantity*price = 26000 [16:19:47]sum+1 = 26001 [16:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 236 23.10.2024 16:19 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75503 ФПД: 116423956747865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161949&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75503&fm=116423956747865&tin=02508201610067®Number=0000000000161154&sum=26000 0 [16:19:48]StoreToDocumentArchive [16:19:48]shift 173 fd 75503 [16:19:48]save to /storage/0173/doc_00075503 [16:19:48]save last doc name /storage/0173/doc_00075503 to /storage/kkm_last_doc_name [16:19:48]save OK [16:19:48]Clear old archive folders... [16:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=282 [16:19:48]tlvbuf is 007F8E10 [16:19:48]SAM_PROTO_ClearQueue [16:19:48]wFMCommunicate request_size=4 [16:19:48]MH_SAM_APDU [16:19:48]CAPDU: 80 09 00 00 [16:19:48]Write to MH i2c: E2 08 00 EF 15 80 09 00 00 00 00 00 00 76 [16:19:48]Write i2c OK [16:19:48]MH_I2C_Read... [16:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:48]Read from MH i2c: E2 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 03 00 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [16:19:48]RAPDU: 90 00 [16:19:48]wFMCommunicate OK [16:19:48]SAM_PROTO_ClearQueue done [16:19:48]KKMCreateOFDPacket [16:19:48]OFDProtocolAddRootSTLVToBuf [16:19:48]FM_MakeSignedData [16:19:48]FM_MakeSignedData [16:19:48]SAM_PROTO_SignData [16:19:48]wFMCommunicate request_size=4 [16:19:48]MH_SAM_APDU [16:19:48]CAPDU: 80 0D 01 02 [16:19:48]Write to MH i2c: E2 08 00 F0 15 80 0D 01 02 00 00 00 00 7E [16:19:48]Write i2c OK [16:19:48]MH_I2C_Read... [16:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 F0 15 00 90 00 79 [16:19:49]RAPDU: 90 00 [16:19:49]wFMCommunicate OK [16:19:49]wFMCommunicate request_size=255 [16:19:49]MH_SAM_APDU [16:19:49]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 25 22 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [16:19:49]Write to MH i2c: E2 02 01 F1 15 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 25 22 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 A0 [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 F1 15 00 90 00 7A [16:19:49]RAPDU: 90 00 [16:19:49]wFMCommunicate OK [16:19:49]wFMCommunicate request_size=41 [16:19:49]MH_SAM_APDU [16:19:49]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EF 26 01 00 35 04 06 00 69 E3 10 95 D6 59 [16:19:49]Write to MH i2c: E2 2C 00 F2 15 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EF 26 01 00 35 04 06 00 69 E3 10 95 D6 59 00 00 80 [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 F2 15 00 90 00 7B [16:19:49]RAPDU: 90 00 [16:19:49]wFMCommunicate OK [16:19:49]wFMCommunicate request_size=4 [16:19:49]MH_SAM_APDU [16:19:49]CAPDU: 80 0D 03 02 [16:19:49]Write to MH i2c: E2 08 00 F3 15 80 0D 03 02 00 00 00 00 83 [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]OFD Sender: No OFD packet to send [16:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 0B 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 0B 00 F3 15 00 62 1B ED F4 C0 93 65 3B 90 00 D5 [16:19:49]RAPDU: 62 1B ED F4 C0 93 65 3B 90 00 [16:19:49]wFMCommunicate OK [16:19:49]SAM_PROTO_SignData done [16:19:49]FM_MakeSignedData done [16:19:49]CreateOFDProtocolMessage [16:19:49]wFMCommunicate request_size=4 [16:19:49]MH_SAM_APDU [16:19:49]CAPDU: 80 11 00 00 [16:19:49]Write to MH i2c: E2 08 00 F4 15 80 11 00 00 00 00 00 00 83 [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 17 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 17 00 F4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D0 [16:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:19:49]wFMCommunicate OK [16:19:49]CreateOFDProtocolMessage done [16:19:49]OFDSenderStorePacket 75503 [16:19:49]StoreOFDPacket docnum=75503 [16:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 15 21 26 01 4D 14 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 25 22 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EF 26 01 00 35 04 06 00 69 E3 10 95 D6 59 62 1B ED F4 C0 93 65 3B [16:19:49]CheckFolder [16:19:49]dirname=/storage/ofd_packets [16:19:49]CheckFolder done [16:19:49]ProducePacketName [16:19:49]name=ofd_packets/00075503 [16:19:49]NVStorageSaveData ofd_packets/00075503 [16:19:49]File name is /storage/ofd_packets/00075503 [16:19:49]Write 332 bytes [16:19:49]NVStorageSaveData done [16:19:49]OFDSenderStorePacket done [16:19:49]KKMCreateOFDPacket done [16:19:49]NVStorageSaveData kkm_last_timestamp [16:19:49]File name is /storage/kkm_last_timestamp [16:19:49]Write 4 bytes [16:19:49]NVStorageSaveData done [16:19:49]ExternCall_PrintAddStr [16:19:49]wPrintStart [16:19:49]Write to MH i2c: 01 00 00 F5 15 0A [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: 01 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: 01 07 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: 01 07 00 F5 15 00 00 00 00 00 FF 0F 1F [16:19:49]RasterBufferAndPrint [16:19:49]line Счет N : (3)273271 [16:19:49]line ИНН: 02508201610067 [16:19:49]line Контрольно-Кассовый Чек [16:19:49]line ПРОДАЖА [16:19:49]line Товар: 2000036220012 [16:19:49]line Кофе Капучино XL(GABB TRADE) [16:19:49]line 2.000 * 130.00 [16:19:49]line = 260.00 [16:19:49]line НДС 12% НСП 1% [16:19:49]line > о реализуемом товаре [16:19:49]line ИТОГО: 260.00 [16:19:49]line НСП 1% : 2.30 [16:19:49]line НДС 12% : 27.61 [16:19:49]line Наличными: 260.00 [16:19:49]line Безнал.: 0.00 [16:19:49]line Место: АЗС № 133 "Партнер Нефть" [16:19:49]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:19:49]line СНО: Общий режим [16:19:49]line Чек 236 23.10.2024 16:19 [16:19:49]line Смена: 173 ФФД: 1.0 [16:19:49]line ЗНМ: 0300000020 [16:19:49]line РНМ: 0000000000161154 [16:19:49]line Версия ККМ: v1.0 [16:19:49]line ФМ: 0000000000963323 [16:19:49]line ФД: 75503 [16:19:49]line ФПД: 116423956747865 [16:19:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T161949&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75503&fm=116423956747865&tin=02508201610067®Number=0000000000161154&sum=26000 [16:19:49]line 0 [16:19:49]OFD Sender: Processing packet 75503 [packets to send 16, broken 15] [16:19:49]ProducePacketName [16:19:49]name=ofd_packets/00075503 [16:19:49]OFD Sender: To server: pG, [16:19:49]CommunicateWithHost lk.salyk.kg:30040 [16:19:49]ConnectInit lk.salyk.kg [16:19:49]written 0, free lines is 4095 [16:19:49]Connected sock=10 [16:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 15 21 26 01 4D 14 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 25 22 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 EF 26 01 00 35 04 06 00 69 E3 10 95 D6 59 62 1B ED F4 C0 93 65 3B [16:19:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 8F 0F 47 00 D2 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 39 36 33 33 32 33 10 04 04 00 EF 26 01 00 F4 03 04 00 FF CA 18 67 B6 04 01 00 00 0E 51 2E 87 D4 ED A3 40 [16:19:50]CommunicateWithHost err = 0 [16:19:50]CheckOFDResponse [16:19:50]1017 (14) - 77093643461234 [16:19:50]1041 (16) - 0000000000963323 [16:19:50]1040 (4) - 75503 [16:19:50]1012 (4) - 23.10.2024 10:07 [16:19:50]1206 (1) - 0 [16:19:50]OFD Sender: Remove packet 75503 [16:19:50]ProducePacketName [16:19:50]name=ofd_packets/00075503 [16:19:50]NVStorageDeleteData [16:19:50]Write to MH i2c: 01 00 00 1D 16 33 [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: 01 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: 01 07 00 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: 01 07 00 1D 16 00 00 00 00 00 C9 0C 0F [16:19:50]RasterBufferAndPrint [16:19:50]line [16:19:50]line [16:19:50]line [16:19:50]line [16:19:50]line [16:19:50]written 0, free lines is 3277 [16:19:50]MH_Cut [16:19:50]Write to MH i2c: D1 01 00 24 16 01 0C [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: D1 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: D1 01 00 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: D1 01 00 24 16 00 0B [16:19:50]Write to MH i2c: 01 00 00 25 16 3B [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]OFD Sender: No OFD packet to send [16:19:51]*** Cut start [16:19:51]*** Partial cut [16:19:51]*** CUTSNS_PIN = 1 [16:19:51]*** CUTSNS_PIN = 0 [16:19:51]*** Brake cut motor [16:19:51]Read from MH i2c: 01 [16:19:51]MH_I2C_Read... [16:19:51]*** Stop cut motor [16:19:51]*** Cut end [16:19:51]Read from MH i2c: 01 07 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: 01 07 00 25 16 00 00 00 00 00 FF 0F 50 [16:19:51]process_action close_receipt done [16:19:51]requested_data is exist [16:19:51]produce_requested_data [16:19:51]requested_item fm.sn is exist - process it [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 11 00 00 [16:19:51]Write to MH i2c: E2 08 00 26 16 80 11 00 00 00 00 00 00 B6 [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 17 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 17 00 26 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 03 [16:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:19:51]wFMCommunicate OK [16:19:51]requested_item fd.num is exist - process it [16:19:51]SAM_PROTO_GetFieldsCounters [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 13 00 00 [16:19:51]Write to MH i2c: E2 08 00 27 16 80 13 00 00 00 00 00 00 B9 [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 62 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 62 00 27 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EF 26 01 00 0E 04 04 00 AD 00 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 54 [16:19:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 EF 26 01 00 0E 04 04 00 AD 00 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 [16:19:51]wFMCommunicate OK [16:19:51]SAM_PROTO_GetFieldsCounters done [16:19:51]requested_item shift.num is exist - process it [16:19:51]requested_item shift.opened is exist - process it [16:19:51]req_shift_opened [16:19:51]FM_GetShiftState [16:19:51]SAM_PROTO_GetShiftState [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 13 01 00 [16:19:51]Write to MH i2c: E2 08 00 28 16 80 13 01 00 00 00 00 00 BB [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:52]Read from MH i2c: E2 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 0E 00 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 0E 00 28 16 00 09 00 01 99 41 18 67 00 00 00 00 90 00 20 [16:19:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:19:52]wFMCommunicate OK [16:19:52]SAM_PROTO_GetShiftState done [16:19:52]FM_GetShiftState done [16:19:52]req_shift_opened done [16:19:52]requested_item shift.open_date is exist - process it [16:19:52]req_shift_open_date [16:19:52]req_shift_open_date done [16:19:52]produce_requested_data done [16:19:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75503,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [16:19:52]process_action_free close_receipt [16:19:52]json_value_free [16:19:52]json_value_free done [16:19:52]process_json_proto returns [16:19:52]Send response to host [16:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75503,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [16:19:52]free response buf [16:19:52]execute_script done [16:19:52]execute_script returns [16:19:52]free content buf [16:19:52]Sock 9.Close socket [16:19:52]Sock 9.Thread stoped [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:26]accept exits with 8 [16:22:26]New connection [16:22:26]New thread 3066465636 created [16:22:26]Thread 3066608996 joined [16:22:26]Waiting for new connection... [16:22:26] Sock 8.Parse request [16:22:26]Sock 8.Check first char [16:22:26]Sock 8.First char is OK [16:22:26]request: POST /json_proto HTTP/1.0 [16:22:26]Method: POST [16:22:26]URL: /json_proto [16:22:26]Method is POST - this is cgi request [16:22:26]url: /json_proto [16:22:26]query_string will be loaded in cgi processing [16:22:26]execute_cgi json_proto POST (null) [16:22:26]execute_cgi path=json_proto method=POST [16:22:26]POST find Content-Length [16:22:26]Host: 172.17.44.196:8080 [16:22:26]Content-Length: 621 [16:22:26]Content-Type: application/json [16:22:26] [16:22:26]POST finish read [16:22:26]Found Content-Length = 621 [16:22:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273272", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:26]execute_script... [16:22:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273272", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:26]POST & json_proto [16:22:26]process_json_proto [16:22:26]json parsed OK: [16:22:26]protocol is kg_v1.0 [16:22:26]action value=close_receipt [16:22:26]process_action close_receipt [16:22:26]cmd_close_receipt [16:22:26]MH_GetDate [16:22:26]Write to MH i2c: F0 00 00 29 16 2E [16:22:26]Write i2c OK [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: F0 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: F0 09 00 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: F0 09 00 29 16 00 C4 22 19 67 E7 19 F8 65 FA [16:22:26]GetLastDocTimeStamp 1729700389 [16:22:26]current date 1729700548 [16:22:26]FM_GetShiftState [16:22:26]SAM_PROTO_GetShiftState [16:22:26]wFMCommunicate request_size=4 [16:22:26]MH_SAM_APDU [16:22:26]CAPDU: 80 13 01 00 [16:22:26]Write to MH i2c: E2 08 00 2A 16 80 13 01 00 00 00 00 00 BD [16:22:26]Write i2c OK [16:22:26]MH_I2C_Read... [16:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:26]Read from MH i2c: E2 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: E2 0E 00 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: E2 0E 00 2A 16 00 09 00 01 99 41 18 67 00 00 00 00 90 00 22 [16:22:26]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:22:26]wFMCommunicate OK [16:22:26]SAM_PROTO_GetShiftState done [16:22:26]FM_GetShiftState done [16:22:26]opened in 1729642905 [16:22:26]opened+sec_in_day 1729729305 [16:22:26]quantity*price = 14000 [16:22:26]sum+1 = 14001 [16:22:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 237 23.10.2024 16:22 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75504 ФПД: 243249433845980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162228&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75504&fm=243249433845980&tin=02508201610067®Number=0000000000161154&sum=14000 0 [16:22:28]StoreToDocumentArchive [16:22:28]shift 173 fd 75504 [16:22:28]save to /storage/0173/doc_00075504 [16:22:28]save last doc name /storage/0173/doc_00075504 to /storage/kkm_last_doc_name [16:22:28]save OK [16:22:28]Clear old archive folders... [16:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:22:28]tlvbuf is 0079AE00 [16:22:28]SAM_PROTO_ClearQueue [16:22:28]wFMCommunicate request_size=4 [16:22:28]MH_SAM_APDU [16:22:28]CAPDU: 80 09 00 00 [16:22:28]Write to MH i2c: E2 08 00 37 16 80 09 00 00 00 00 00 00 BF [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:28]Read from MH i2c: E2 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 03 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [16:22:28]RAPDU: 90 00 [16:22:28]wFMCommunicate OK [16:22:28]SAM_PROTO_ClearQueue done [16:22:28]KKMCreateOFDPacket [16:22:28]OFDProtocolAddRootSTLVToBuf [16:22:28]FM_MakeSignedData [16:22:28]FM_MakeSignedData [16:22:28]SAM_PROTO_SignData [16:22:28]wFMCommunicate request_size=4 [16:22:28]MH_SAM_APDU [16:22:28]CAPDU: 80 0D 01 02 [16:22:28]Write to MH i2c: E2 08 00 38 16 80 0D 01 02 00 00 00 00 C7 [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:28]Read from MH i2c: E2 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 03 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 03 00 38 16 00 90 00 C2 [16:22:28]RAPDU: 90 00 [16:22:28]wFMCommunicate OK [16:22:28]wFMCommunicate request_size=255 [16:22:28]MH_SAM_APDU [16:22:28]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 C4 22 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [16:22:28]Write to MH i2c: E2 02 01 39 16 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 C4 22 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 B5 [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:28]Read from MH i2c: E2 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 03 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 03 00 39 16 00 90 00 C3 [16:22:28]RAPDU: 90 00 [16:22:28]wFMCommunicate OK [16:22:28]wFMCommunicate request_size=32 [16:22:28]MH_SAM_APDU [16:22:28]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 26 01 00 35 04 06 00 DD 3B EC 18 A0 DC [16:22:28]Write to MH i2c: E2 23 00 3A 16 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 26 01 00 35 04 06 00 DD 3B EC 18 A0 DC 00 00 D0 [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:28]Read from MH i2c: E2 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 03 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 03 00 3A 16 00 90 00 C4 [16:22:28]RAPDU: 90 00 [16:22:28]wFMCommunicate OK [16:22:28]wFMCommunicate request_size=4 [16:22:28]MH_SAM_APDU [16:22:28]CAPDU: 80 0D 03 02 [16:22:28]Write to MH i2c: E2 08 00 3B 16 80 0D 03 02 00 00 00 00 CC [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:28]Read from MH i2c: E2 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 0B 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 0B 00 3B 16 00 64 11 DC 7B 55 4A 60 43 90 00 DB [16:22:28]RAPDU: 64 11 DC 7B 55 4A 60 43 90 00 [16:22:28]wFMCommunicate OK [16:22:28]SAM_PROTO_SignData done [16:22:28]FM_MakeSignedData done [16:22:28]CreateOFDProtocolMessage [16:22:28]wFMCommunicate request_size=4 [16:22:28]MH_SAM_APDU [16:22:28]CAPDU: 80 11 00 00 [16:22:28]Write to MH i2c: E2 08 00 3C 16 80 11 00 00 00 00 00 00 CC [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:28]Read from MH i2c: E2 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 17 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 17 00 3C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 19 [16:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:22:28]wFMCommunicate OK [16:22:28]CreateOFDProtocolMessage done [16:22:28]OFDSenderStorePacket 75504 [16:22:28]StoreOFDPacket docnum=75504 [16:22:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 AB 9D 1D 01 0E 90 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 C4 22 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 26 01 00 35 04 06 00 DD 3B EC 18 A0 DC 64 11 DC 7B 55 4A 60 43 [16:22:28]CheckFolder [16:22:28]dirname=/storage/ofd_packets [16:22:28]CheckFolder done [16:22:28]ProducePacketName [16:22:28]name=ofd_packets/00075504 [16:22:28]NVStorageSaveData ofd_packets/00075504 [16:22:28]File name is /storage/ofd_packets/00075504 [16:22:28]Write 323 bytes [16:22:28]NVStorageSaveData done [16:22:28]OFDSenderStorePacket done [16:22:28]KKMCreateOFDPacket done [16:22:28]NVStorageSaveData kkm_last_timestamp [16:22:28]File name is /storage/kkm_last_timestamp [16:22:28]Write 4 bytes [16:22:28]NVStorageSaveData done [16:22:28]ExternCall_PrintAddStr [16:22:28]wPrintStart [16:22:28]Write to MH i2c: 01 00 00 3D 16 53 [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: 01 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: 01 07 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: 01 07 00 3D 16 00 00 00 00 00 FF 0F 68 [16:22:28]RasterBufferAndPrint [16:22:28]line Счет N : (3)273272 [16:22:28]line ИНН: 02508201610067 [16:22:28]line Контрольно-Кассовый Чек [16:22:28]line ПРОДАЖА [16:22:28]line Товар: 48743570 [16:22:28]line Сигареты Winston XStyle Blue [16:22:28]line 1.000 * 140.00 [16:22:28]line = 140.00 [16:22:28]line НДС 12% НСП 1% [16:22:28]line > о реализуемом товаре [16:22:28]line ИТОГО: 140.00 [16:22:28]line НСП 1% : 1.24 [16:22:28]line НДС 12% : 14.87 [16:22:28]line Наличными: 140.00 [16:22:28]line Безнал.: 0.00 [16:22:28]line Место: АЗС № 133 "Партнер Нефть" [16:22:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:22:28]line СНО: Общий режим [16:22:28]line Чек 237 23.10.2024 16:22 [16:22:28]line Смена: 173 ФФД: 1.0 [16:22:28]line ЗНМ: 0300000020 [16:22:28]line РНМ: 0000000000161154 [16:22:28]line Версия ККМ: v1.0 [16:22:28]line ФМ: 0000000000963323 [16:22:28]line ФД: 75504 [16:22:28]line ФПД: 243249433845980 [16:22:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162228&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75504&fm=243249433845980&tin=02508201610067®Number=0000000000161154&sum=14000 [16:22:28]line 0 [16:22:28]OFD Sender: Processing packet 75504 [packets to send 16, broken 15] [16:22:28]ProducePacketName [16:22:28]name=ofd_packets/00075504 [16:22:28]OFD Sender: To server: pG, [16:22:28]CommunicateWithHost lk.salyk.kg:30040 [16:22:28]ConnectInit lk.salyk.kg [16:22:28]written 0, free lines is 4095 [16:22:29]Connected sock=10 [16:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 AB 9D 1D 01 0E 90 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 C4 22 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 26 01 00 35 04 06 00 DD 3B EC 18 A0 DC 64 11 DC 7B 55 4A 60 43 [16:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FF 67 47 00 14 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F0 26 01 00 F4 03 04 00 9E CB 18 67 B6 04 01 00 00 47 91 9A FD 3A 9E 71 2F [16:22:29]CommunicateWithHost err = 0 [16:22:29]CheckOFDResponse [16:22:29]1017 (14) - 77093643461234 [16:22:29]1041 (16) - 0000000000963323 [16:22:29]1040 (4) - 75504 [16:22:29]1012 (4) - 23.10.2024 10:10 [16:22:29]1206 (1) - 0 [16:22:29]OFD Sender: Remove packet 75504 [16:22:29]ProducePacketName [16:22:29]name=ofd_packets/00075504 [16:22:29]NVStorageDeleteData [16:22:29]Write to MH i2c: 01 00 00 64 16 7A [16:22:29]Write i2c OK [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: 01 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: 01 07 00 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: 01 07 00 64 16 00 00 00 00 00 D9 0C 66 [16:22:29]RasterBufferAndPrint [16:22:29]line [16:22:29]line [16:22:29]line [16:22:29]line [16:22:29]line [16:22:29]written 0, free lines is 3293 [16:22:29]MH_Cut [16:22:29]Write to MH i2c: D1 01 00 6B 16 01 53 [16:22:29]Write i2c OK [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: D1 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: D1 01 00 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: D1 01 00 6B 16 00 52 [16:22:29]Write to MH i2c: 01 00 00 6C 16 82 [16:22:29]Write i2c OK [16:22:29]MH_I2C_Read... [16:22:29]OFD Sender: No OFD packet to send [16:22:30]*** Cut start [16:22:30]*** Partial cut [16:22:30]*** CUTSNS_PIN = 1 [16:22:30]*** CUTSNS_PIN = 0 [16:22:30]*** Brake cut motor [16:22:30]Read from MH i2c: 01 [16:22:30]MH_I2C_Read... [16:22:30]*** Stop cut motor [16:22:30]*** Cut end [16:22:30]Read from MH i2c: 01 07 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: 01 07 00 6C 16 00 00 00 00 00 FF 0F 97 [16:22:30]process_action close_receipt done [16:22:30]requested_data is exist [16:22:30]produce_requested_data [16:22:30]requested_item fm.sn is exist - process it [16:22:30]wFMCommunicate request_size=4 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 11 00 00 [16:22:30]Write to MH i2c: E2 08 00 6D 16 80 11 00 00 00 00 00 00 FD [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 17 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 17 00 6D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 4A [16:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:22:30]wFMCommunicate OK [16:22:30]requested_item fd.num is exist - process it [16:22:30]SAM_PROTO_GetFieldsCounters [16:22:30]wFMCommunicate request_size=4 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 13 00 00 [16:22:30]Write to MH i2c: E2 08 00 6E 16 80 13 00 00 00 00 00 00 00 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 62 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 62 00 6E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F0 26 01 00 0E 04 04 00 AD 00 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 9F [16:22:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F0 26 01 00 0E 04 04 00 AD 00 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 [16:22:31]wFMCommunicate OK [16:22:31]SAM_PROTO_GetFieldsCounters done [16:22:31]requested_item shift.num is exist - process it [16:22:31]requested_item shift.opened is exist - process it [16:22:31]req_shift_opened [16:22:31]FM_GetShiftState [16:22:31]SAM_PROTO_GetShiftState [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 13 01 00 [16:22:31]Write to MH i2c: E2 08 00 6F 16 80 13 01 00 00 00 00 00 02 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 0E 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 0E 00 6F 16 00 09 00 01 99 41 18 67 00 00 00 00 90 00 67 [16:22:31]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:22:31]wFMCommunicate OK [16:22:31]SAM_PROTO_GetShiftState done [16:22:31]FM_GetShiftState done [16:22:31]req_shift_opened done [16:22:31]requested_item shift.open_date is exist - process it [16:22:31]req_shift_open_date [16:22:31]req_shift_open_date done [16:22:31]produce_requested_data done [16:22:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75504,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [16:22:31]process_action_free close_receipt [16:22:31]json_value_free [16:22:31]json_value_free done [16:22:31]process_json_proto returns [16:22:31]Send response to host [16:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75504,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [16:22:31]free response buf [16:22:31]execute_script done [16:22:31]execute_script returns [16:22:31]free content buf [16:22:31]Sock 8.Close socket [16:22:31]Sock 8.Thread stoped [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:50]accept exits with 9 [16:27:50]New connection [16:27:50]New thread 3066608996 created [16:27:50]Thread 3066465636 joined [16:27:50]Waiting for new connection... [16:27:50] Sock 9.Parse request [16:27:50]Sock 9.Check first char [16:27:50]Sock 9.First char is OK [16:27:50]request: POST /json_proto HTTP/1.0 [16:27:50]Method: POST [16:27:50]URL: /json_proto [16:27:50]Method is POST - this is cgi request [16:27:50]url: /json_proto [16:27:50]query_string will be loaded in cgi processing [16:27:50]execute_cgi json_proto POST (null) [16:27:50]execute_cgi path=json_proto method=POST [16:27:50]POST find Content-Length [16:27:50]Host: 172.17.44.196:8080 [16:27:50]Content-Length: 662 [16:27:50]Content-Type: application/json [16:27:50] [16:27:50]POST finish read [16:27:50]Found Content-Length = 662 [16:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273273", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:50]execute_script... [16:27:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273273", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:50]POST & json_proto [16:27:50]process_json_proto [16:27:50]json parsed OK: [16:27:50]protocol is kg_v1.0 [16:27:50]action value=close_receipt [16:27:50]process_action close_receipt [16:27:50]cmd_close_receipt [16:27:50]MH_GetDate [16:27:50]Write to MH i2c: F0 00 00 70 16 75 [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: F0 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: F0 09 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: F0 09 00 70 16 00 08 24 19 67 E7 19 F8 65 87 [16:27:50]GetLastDocTimeStamp 1729700548 [16:27:50]current date 1729700872 [16:27:50]FM_GetShiftState [16:27:50]SAM_PROTO_GetShiftState [16:27:50]wFMCommunicate request_size=4 [16:27:50]MH_SAM_APDU [16:27:50]CAPDU: 80 13 01 00 [16:27:50]Write to MH i2c: E2 08 00 71 16 80 13 01 00 00 00 00 00 04 [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 0E 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 0E 00 71 16 00 09 00 01 99 41 18 67 00 00 00 00 90 00 69 [16:27:50]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:27:50]wFMCommunicate OK [16:27:50]SAM_PROTO_GetShiftState done [16:27:50]FM_GetShiftState done [16:27:50]opened in 1729642905 [16:27:50]opened+sec_in_day 1729729305 [16:27:50]quantity*price = 6000 [16:27:50]sum+1 = 6001 [16:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 238 23.10.2024 16:27 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75505 ФПД: 7906037839545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162752&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75505&fm=7906037839545&tin=02508201610067®Number=0000000000161154&sum=6000 0 [16:27:51]StoreToDocumentArchive [16:27:51]shift 173 fd 75505 [16:27:51]save to /storage/0173/doc_00075505 [16:27:51]save last doc name /storage/0173/doc_00075505 to /storage/kkm_last_doc_name [16:27:51]save OK [16:27:51]Clear old archive folders... [16:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=281 [16:27:51]tlvbuf is 007F8FB0 [16:27:51]SAM_PROTO_ClearQueue [16:27:51]wFMCommunicate request_size=4 [16:27:51]MH_SAM_APDU [16:27:51]CAPDU: 80 09 00 00 [16:27:51]Write to MH i2c: E2 08 00 7E 16 80 09 00 00 00 00 00 00 06 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 03 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 03 00 7E 16 00 90 00 08 [16:27:52]RAPDU: 90 00 [16:27:52]wFMCommunicate OK [16:27:52]SAM_PROTO_ClearQueue done [16:27:52]KKMCreateOFDPacket [16:27:52]OFDProtocolAddRootSTLVToBuf [16:27:52]FM_MakeSignedData [16:27:52]FM_MakeSignedData [16:27:52]SAM_PROTO_SignData [16:27:52]wFMCommunicate request_size=4 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 0D 01 02 [16:27:52]Write to MH i2c: E2 08 00 7F 16 80 0D 01 02 00 00 00 00 0E [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 03 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 03 00 7F 16 00 90 00 09 [16:27:52]RAPDU: 90 00 [16:27:52]wFMCommunicate OK [16:27:52]wFMCommunicate request_size=255 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 08 24 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 [16:27:52]Write to MH i2c: E2 02 01 80 16 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 08 24 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 15 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 03 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 03 00 80 16 00 90 00 0A [16:27:52]RAPDU: 90 00 [16:27:52]wFMCommunicate OK [16:27:52]wFMCommunicate request_size=40 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 26 01 00 35 04 06 00 07 30 C4 93 B6 B9 [16:27:52]Write to MH i2c: E2 2B 00 81 16 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 26 01 00 35 04 06 00 07 30 C4 93 B6 B9 00 00 DD [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 03 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 03 00 81 16 00 90 00 0B [16:27:52]RAPDU: 90 00 [16:27:52]wFMCommunicate OK [16:27:52]wFMCommunicate request_size=4 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 0D 03 02 [16:27:52]Write to MH i2c: E2 08 00 82 16 80 0D 03 02 00 00 00 00 13 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 0B 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 0B 00 82 16 00 60 75 AD 4C FD 5E C8 C6 90 00 CB [16:27:52]RAPDU: 60 75 AD 4C FD 5E C8 C6 90 00 [16:27:52]wFMCommunicate OK [16:27:52]SAM_PROTO_SignData done [16:27:52]FM_MakeSignedData done [16:27:52]CreateOFDProtocolMessage [16:27:52]wFMCommunicate request_size=4 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 11 00 00 [16:27:52]Write to MH i2c: E2 08 00 83 16 80 11 00 00 00 00 00 00 13 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 17 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 17 00 83 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 60 [16:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:27:52]wFMCommunicate OK [16:27:52]CreateOFDProtocolMessage done [16:27:52]OFDSenderStorePacket 75505 [16:27:52]StoreOFDPacket docnum=75505 [16:27:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2D 01 00 00 DC 06 25 01 87 EC 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 08 24 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 26 01 00 35 04 06 00 07 30 C4 93 B6 B9 60 75 AD 4C FD 5E C8 C6 [16:27:52]CheckFolder [16:27:52]dirname=/storage/ofd_packets [16:27:52]CheckFolder done [16:27:52]ProducePacketName [16:27:52]name=ofd_packets/00075505 [16:27:52]NVStorageSaveData ofd_packets/00075505 [16:27:52]File name is /storage/ofd_packets/00075505 [16:27:52]Write 331 bytes [16:27:52]NVStorageSaveData done [16:27:52]OFDSenderStorePacket done [16:27:52]KKMCreateOFDPacket done [16:27:52]NVStorageSaveData kkm_last_timestamp [16:27:52]File name is /storage/kkm_last_timestamp [16:27:52]Write 4 bytes [16:27:52]NVStorageSaveData done [16:27:52]ExternCall_PrintAddStr [16:27:52]wPrintStart [16:27:52]Write to MH i2c: 01 00 00 84 16 9A [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 07 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 07 00 84 16 00 00 00 00 00 FF 0F AF [16:27:52]RasterBufferAndPrint [16:27:52]line Счет N : (3)273273 [16:27:52]line ИНН: 02508201610067 [16:27:52]line Контрольно-Кассовый Чек [16:27:52]line ПРОДАЖА [16:27:52]line Товар: 4011100977952 [16:27:52]line Шок Батончик Твикс 55г [16:27:52]line 1.000 * 60.00 [16:27:52]line = 60.00 [16:27:52]line НДС 12% НСП 1% [16:27:52]line > о реализуемом товаре [16:27:52]line ИТОГО: 60.00 [16:27:52]line НСП 1% : 0.53 [16:27:52]line НДС 12% : 6.37 [16:27:52]line Наличными: 60.00 [16:27:52]line Безнал.: 0.00 [16:27:52]line Место: АЗС № 133 "Партнер Нефть" [16:27:52]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:27:52]line СНО: Общий режим [16:27:52]line Чек 238 23.10.2024 16:27 [16:27:52]line Смена: 173 ФФД: 1.0 [16:27:52]line ЗНМ: 0300000020 [16:27:52]line РНМ: 0000000000161154 [16:27:52]line Версия ККМ: v1.0 [16:27:52]line ФМ: 0000000000963323 [16:27:52]line ФД: 75505 [16:27:52]line ФПД: 7906037839545 [16:27:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T162752&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75505&fm=7906037839545&tin=02508201610067®Number=0000000000161154&sum=6000 [16:27:52]OFD Sender: Processing packet 75505 [packets to send 16, broken 15] [16:27:52]ProducePacketName [16:27:52]name=ofd_packets/00075505 [16:27:52]OFD Sender: To server: pG, [16:27:52]CommunicateWithHost lk.salyk.kg:30040 [16:27:52]ConnectInit lk.salyk.kg [16:27:52]line 0 [16:27:52]written 0, free lines is 4095 [16:27:52]Connected sock=10 [16:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2D 01 00 00 DC 06 25 01 87 EC 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 08 24 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 26 01 00 35 04 06 00 07 30 C4 93 B6 B9 60 75 AD 4C FD 5E C8 C6 [16:27:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 1D DC 47 00 ED DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F1 26 01 00 F4 03 04 00 E2 CC 18 67 B6 04 01 00 00 6C B7 02 66 55 98 8F BE [16:27:53]CommunicateWithHost err = 0 [16:27:53]CheckOFDResponse [16:27:53]1017 (14) - 77093643461234 [16:27:53]1041 (16) - 0000000000963323 [16:27:53]1040 (4) - 75505 [16:27:53]1012 (4) - 23.10.2024 10:16 [16:27:53]1206 (1) - 0 [16:27:53]OFD Sender: Remove packet 75505 [16:27:53]ProducePacketName [16:27:53]name=ofd_packets/00075505 [16:27:53]NVStorageDeleteData [16:27:53]Write to MH i2c: 01 00 00 AB 16 C1 [16:27:53]Write i2c OK [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: 01 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: 01 07 00 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: 01 07 00 AB 16 00 00 00 00 00 D0 0C A4 [16:27:53]RasterBufferAndPrint [16:27:53]line [16:27:53]line [16:27:53]line [16:27:53]line [16:27:53]line [16:27:53]written 0, free lines is 3283 [16:27:53]MH_Cut [16:27:53]Write to MH i2c: D1 01 00 B2 16 01 9A [16:27:53]Write i2c OK [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: D1 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: D1 01 00 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: D1 01 00 B2 16 00 99 [16:27:53]Write to MH i2c: 01 00 00 B3 16 C9 [16:27:53]Write i2c OK [16:27:53]MH_I2C_Read... [16:27:53]OFD Sender: No OFD packet to send [16:27:54]*** Cut start [16:27:54]*** Partial cut [16:27:54]*** CUTSNS_PIN = 1 [16:27:54]*** CUTSNS_PIN = 0 [16:27:54]*** Brake cut motor [16:27:54]Read from MH i2c: 01 [16:27:54]MH_I2C_Read... [16:27:54]*** Stop cut motor [16:27:54]*** Cut end [16:27:54]Read from MH i2c: 01 07 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: 01 07 00 B3 16 00 00 00 00 00 FF 0F DE [16:27:54]process_action close_receipt done [16:27:54]requested_data is exist [16:27:54]produce_requested_data [16:27:54]requested_item fm.sn is exist - process it [16:27:54]wFMCommunicate request_size=4 [16:27:54]MH_SAM_APDU [16:27:54]CAPDU: 80 11 00 00 [16:27:54]Write to MH i2c: E2 08 00 B4 16 80 11 00 00 00 00 00 00 44 [16:27:54]Write i2c OK [16:27:54]MH_I2C_Read... [16:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:54]Read from MH i2c: E2 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 17 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 17 00 B4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 91 [16:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:27:54]wFMCommunicate OK [16:27:54]requested_item fd.num is exist - process it [16:27:54]SAM_PROTO_GetFieldsCounters [16:27:54]wFMCommunicate request_size=4 [16:27:54]MH_SAM_APDU [16:27:54]CAPDU: 80 13 00 00 [16:27:54]Write to MH i2c: E2 08 00 B5 16 80 13 00 00 00 00 00 00 47 [16:27:54]Write i2c OK [16:27:54]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 62 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 62 00 B5 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F1 26 01 00 0E 04 04 00 AD 00 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 EA [16:27:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F1 26 01 00 0E 04 04 00 AD 00 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 [16:27:55]wFMCommunicate OK [16:27:55]SAM_PROTO_GetFieldsCounters done [16:27:55]requested_item shift.num is exist - process it [16:27:55]requested_item shift.opened is exist - process it [16:27:55]req_shift_opened [16:27:55]FM_GetShiftState [16:27:55]SAM_PROTO_GetShiftState [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 13 01 00 [16:27:55]Write to MH i2c: E2 08 00 B6 16 80 13 01 00 00 00 00 00 49 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 0E 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 0E 00 B6 16 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AE [16:27:55]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:27:55]wFMCommunicate OK [16:27:55]SAM_PROTO_GetShiftState done [16:27:55]FM_GetShiftState done [16:27:55]req_shift_opened done [16:27:55]requested_item shift.open_date is exist - process it [16:27:55]req_shift_open_date [16:27:55]req_shift_open_date done [16:27:55]produce_requested_data done [16:27:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75505,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [16:27:55]process_action_free close_receipt [16:27:55]json_value_free [16:27:55]json_value_free done [16:27:55]process_json_proto returns [16:27:55]Send response to host [16:27:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75505,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [16:27:55]free response buf [16:27:55]execute_script done [16:27:55]execute_script returns [16:27:55]free content buf [16:27:55]Sock 9.Close socket [16:27:55]Sock 9.Thread stoped [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:35]accept exits with 8 [16:38:35]New connection [16:38:35]New thread 3066465636 created [16:38:35]Thread 3066608996 joined [16:38:35]Waiting for new connection... [16:38:35] Sock 8.Parse request [16:38:35]Sock 8.Check first char [16:38:35]Sock 8.First char is OK [16:38:35]request: POST /json_proto HTTP/1.0 [16:38:35]Method: POST [16:38:35]URL: /json_proto [16:38:35]Method is POST - this is cgi request [16:38:35]url: /json_proto [16:38:35]query_string will be loaded in cgi processing [16:38:35]execute_cgi json_proto POST (null) [16:38:35]execute_cgi path=json_proto method=POST [16:38:35]POST find Content-Length [16:38:35]Host: 172.17.44.196:8080 [16:38:35]Content-Length: 618 [16:38:35]Content-Type: application/json [16:38:35] [16:38:35]POST finish read [16:38:35]Found Content-Length = 618 [16:38:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273274", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:35]execute_script... [16:38:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273274", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:35]POST & json_proto [16:38:35]process_json_proto [16:38:35]json parsed OK: [16:38:35]protocol is kg_v1.0 [16:38:35]action value=close_receipt [16:38:35]process_action close_receipt [16:38:35]cmd_close_receipt [16:38:35]MH_GetDate [16:38:35]Write to MH i2c: F0 00 00 B7 16 BC [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: F0 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: F0 09 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: F0 09 00 B7 16 00 8D 26 19 67 E7 19 F8 65 55 [16:38:35]GetLastDocTimeStamp 1729700872 [16:38:35]current date 1729701517 [16:38:35]FM_GetShiftState [16:38:35]SAM_PROTO_GetShiftState [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 13 01 00 [16:38:35]Write to MH i2c: E2 08 00 B8 16 80 13 01 00 00 00 00 00 4B [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 0E 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 0E 00 B8 16 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B0 [16:38:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:38:35]wFMCommunicate OK [16:38:35]SAM_PROTO_GetShiftState done [16:38:35]FM_GetShiftState done [16:38:35]opened in 1729642905 [16:38:35]opened+sec_in_day 1729729305 [16:38:35]quantity*price = 12500 [16:38:35]sum+1 = 12501 [16:38:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 239 23.10.2024 16:38 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75506 ФПД: 59470234713586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163837&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75506&fm=59470234713586&tin=02508201610067®Number=0000000000161154&sum=12500 0 [16:38:37]StoreToDocumentArchive [16:38:37]shift 173 fd 75506 [16:38:37]save to /storage/0173/doc_00075506 [16:38:37]save last doc name /storage/0173/doc_00075506 to /storage/kkm_last_doc_name [16:38:37]save OK [16:38:37]Clear old archive folders... [16:38:37]ProcessDocumentItem done err = 0, tmpTLVsize=270 [16:38:37]tlvbuf is 0079B5C0 [16:38:37]SAM_PROTO_ClearQueue [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 09 00 00 [16:38:37]Write to MH i2c: E2 08 00 C5 16 80 09 00 00 00 00 00 00 4D [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 C5 16 00 90 00 4F [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]SAM_PROTO_ClearQueue done [16:38:37]KKMCreateOFDPacket [16:38:37]OFDProtocolAddRootSTLVToBuf [16:38:37]FM_MakeSignedData [16:38:37]FM_MakeSignedData [16:38:37]SAM_PROTO_SignData [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 01 02 [16:38:37]Write to MH i2c: E2 08 00 C6 16 80 0D 01 02 00 00 00 00 55 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 C6 16 00 90 00 50 [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]wFMCommunicate request_size=255 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 8D 26 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [16:38:37]Write to MH i2c: E2 02 01 C7 16 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 8D 26 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 01 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 C7 16 00 90 00 51 [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]wFMCommunicate request_size=29 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 F2 26 01 00 35 04 06 00 36 16 7E 36 FD F2 [16:38:37]Write to MH i2c: E2 20 00 C8 16 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 F2 26 01 00 35 04 06 00 36 16 7E 36 FD F2 00 00 21 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 C8 16 00 90 00 52 [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 03 02 [16:38:37]Write to MH i2c: E2 08 00 C9 16 80 0D 03 02 00 00 00 00 5A [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 0B 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 0B 00 C9 16 00 18 E7 59 3E 98 6A B5 0C 90 00 B4 [16:38:37]RAPDU: 18 E7 59 3E 98 6A B5 0C 90 00 [16:38:37]wFMCommunicate OK [16:38:37]SAM_PROTO_SignData done [16:38:37]FM_MakeSignedData done [16:38:37]CreateOFDProtocolMessage [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 11 00 00 [16:38:37]Write to MH i2c: E2 08 00 CA 16 80 11 00 00 00 00 00 00 5A [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 17 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 17 00 CA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A7 [16:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:38:37]wFMCommunicate OK [16:38:37]CreateOFDProtocolMessage done [16:38:37]OFDSenderStorePacket 75506 [16:38:37]StoreOFDPacket docnum=75506 [16:38:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 C7 2D 1A 01 CC 12 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 8D 26 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F2 26 01 00 35 04 06 00 36 16 7E 36 FD F2 18 E7 59 3E 98 6A B5 0C [16:38:37]CheckFolder [16:38:37]dirname=/storage/ofd_packets [16:38:37]CheckFolder done [16:38:37]ProducePacketName [16:38:37]name=ofd_packets/00075506 [16:38:37]NVStorageSaveData ofd_packets/00075506 [16:38:37]File name is /storage/ofd_packets/00075506 [16:38:37]Write 320 bytes [16:38:37]NVStorageSaveData done [16:38:37]OFDSenderStorePacket done [16:38:37]KKMCreateOFDPacket done [16:38:37]NVStorageSaveData kkm_last_timestamp [16:38:37]File name is /storage/kkm_last_timestamp [16:38:37]Write 4 bytes [16:38:37]NVStorageSaveData done [16:38:37]ExternCall_PrintAddStr [16:38:37]wPrintStart [16:38:37]Write to MH i2c: 01 00 00 CB 16 E1 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 07 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 07 00 CB 16 00 00 00 00 00 FF 0F F6 [16:38:37]RasterBufferAndPrint [16:38:37]line Счет N : (3)273274 [16:38:37]line ИНН: 02508201610067 [16:38:37]line Контрольно-Кассовый Чек [16:38:37]line ПРОДАЖА [16:38:37]line Товар: 48742191 [16:38:37]line Сигареты Bond Street Blue [16:38:37]line 1.000 * 125.00 [16:38:37]line = 125.00 [16:38:37]line НДС 12% НСП 1% [16:38:37]line > о реализуемом товаре [16:38:37]line ИТОГО: 125.00 [16:38:37]line НСП 1% : 1.11 [16:38:37]line НДС 12% : 13.27 [16:38:37]line Наличными: 125.00 [16:38:37]line Безнал.: 0.00 [16:38:37]line Место: АЗС № 133 "Партнер Нефть" [16:38:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [16:38:37]line СНО: Общий режим [16:38:37]line Чек 239 23.10.2024 16:38 [16:38:37]line Смена: 173 ФФД: 1.0 [16:38:37]line ЗНМ: 0300000020 [16:38:37]line РНМ: 0000000000161154 [16:38:37]line Версия ККМ: v1.0 [16:38:37]line ФМ: 0000000000963323 [16:38:37]line ФД: 75506 [16:38:37]line ФПД: 59470234713586 [16:38:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T163837&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75506&fm=59470234713586&tin=02508201610067®Number=0000000000161154&sum=12500 [16:38:37]line 0 [16:38:37]OFD Sender: Processing packet 75506 [packets to send 16, broken 15] [16:38:37]ProducePacketName [16:38:37]name=ofd_packets/00075506 [16:38:37]OFD Sender: To server: pG, [16:38:37]CommunicateWithHost lk.salyk.kg:30040 [16:38:37]ConnectInit lk.salyk.kg [16:38:37]written 0, free lines is 4095 [16:38:38]Connected sock=10 [16:38:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 C7 2D 1A 01 CC 12 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 8D 26 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F2 26 01 00 35 04 06 00 36 16 7E 36 FD F2 18 E7 59 3E 98 6A B5 0C [16:38:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 AE 4D 47 00 0C 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 39 36 33 33 32 33 10 04 04 00 F2 26 01 00 F4 03 04 00 67 CF 18 67 B6 04 01 00 00 16 43 3B 73 A6 68 D4 48 [16:38:38]CommunicateWithHost err = 0 [16:38:38]CheckOFDResponse [16:38:38]1017 (14) - 77093643461234 [16:38:38]1041 (16) - 0000000000963323 [16:38:38]1040 (4) - 75506 [16:38:38]1012 (4) - 23.10.2024 10:26 [16:38:38]1206 (1) - 0 [16:38:38]OFD Sender: Remove packet 75506 [16:38:38]ProducePacketName [16:38:38]name=ofd_packets/00075506 [16:38:38]NVStorageDeleteData [16:38:38]Write to MH i2c: 01 00 00 F2 16 08 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: 01 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: 01 07 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: 01 07 00 F2 16 00 00 00 00 00 D6 0C F1 [16:38:38]RasterBufferAndPrint [16:38:38]line [16:38:38]line [16:38:38]line [16:38:38]line [16:38:38]line [16:38:38]written 0, free lines is 3290 [16:38:38]MH_Cut [16:38:38]Write to MH i2c: D1 01 00 F9 16 01 E1 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: D1 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: D1 01 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: D1 01 00 F9 16 00 E0 [16:38:38]Write to MH i2c: 01 00 00 FA 16 10 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]OFD Sender: No OFD packet to send [16:38:39]*** Cut start [16:38:39]*** Partial cut [16:38:39]*** CUTSNS_PIN = 1 [16:38:39]*** CUTSNS_PIN = 0 [16:38:39]*** Brake cut motor [16:38:39]Read from MH i2c: 01 [16:38:39]MH_I2C_Read... [16:38:39]*** Stop cut motor [16:38:39]*** Cut end [16:38:39]Read from MH i2c: 01 07 00 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: 01 07 00 FA 16 00 00 00 00 00 FF 0F 25 [16:38:39]process_action close_receipt done [16:38:39]requested_data is exist [16:38:39]produce_requested_data [16:38:39]requested_item fm.sn is exist - process it [16:38:39]wFMCommunicate request_size=4 [16:38:39]MH_SAM_APDU [16:38:39]CAPDU: 80 11 00 00 [16:38:39]Write to MH i2c: E2 08 00 FB 16 80 11 00 00 00 00 00 00 8B [16:38:39]Write i2c OK [16:38:39]MH_I2C_Read... [16:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:39]Read from MH i2c: E2 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 17 00 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 17 00 FB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D8 [16:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [16:38:39]wFMCommunicate OK [16:38:39]requested_item fd.num is exist - process it [16:38:39]SAM_PROTO_GetFieldsCounters [16:38:39]wFMCommunicate request_size=4 [16:38:39]MH_SAM_APDU [16:38:39]CAPDU: 80 13 00 00 [16:38:39]Write to MH i2c: E2 08 00 FC 16 80 13 00 00 00 00 00 00 8E [16:38:39]Write i2c OK [16:38:39]MH_I2C_Read... [16:38:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:40]Read from MH i2c: E2 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 62 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 62 00 FC 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F2 26 01 00 0E 04 04 00 AD 00 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 35 [16:38:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F2 26 01 00 0E 04 04 00 AD 00 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 [16:38:40]wFMCommunicate OK [16:38:40]SAM_PROTO_GetFieldsCounters done [16:38:40]requested_item shift.num is exist - process it [16:38:40]requested_item shift.opened is exist - process it [16:38:40]req_shift_opened [16:38:40]FM_GetShiftState [16:38:40]SAM_PROTO_GetShiftState [16:38:40]wFMCommunicate request_size=4 [16:38:40]MH_SAM_APDU [16:38:40]CAPDU: 80 13 01 00 [16:38:40]Write to MH i2c: E2 08 00 FD 16 80 13 01 00 00 00 00 00 90 [16:38:40]Write i2c OK [16:38:40]MH_I2C_Read... [16:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:40]Read from MH i2c: E2 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 0E 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 0E 00 FD 16 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F5 [16:38:40]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [16:38:40]wFMCommunicate OK [16:38:40]SAM_PROTO_GetShiftState done [16:38:40]FM_GetShiftState done [16:38:40]req_shift_opened done [16:38:40]requested_item shift.open_date is exist - process it [16:38:40]req_shift_open_date [16:38:40]req_shift_open_date done [16:38:40]produce_requested_data done [16:38:40]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75506,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [16:38:40]process_action_free close_receipt [16:38:40]json_value_free [16:38:40]json_value_free done [16:38:40]process_json_proto returns [16:38:40]Send response to host [16:38:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75506,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [16:38:40]free response buf [16:38:40]execute_script done [16:38:40]execute_script returns [16:38:40]free content buf [16:38:40]Sock 8.Close socket [16:38:40]Sock 8.Thread stoped [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:23]accept exits with 9 [17:08:23]New connection [17:08:23]New thread 3066608996 created [17:08:23]Thread 3066465636 joined [17:08:23]Waiting for new connection... [17:08:23] Sock 9.Parse request [17:08:23]Sock 9.Check first char [17:08:23]Sock 9.First char is OK [17:08:23]request: POST /json_proto HTTP/1.0 [17:08:23]Method: POST [17:08:23]URL: /json_proto [17:08:23]Method is POST - this is cgi request [17:08:23]url: /json_proto [17:08:23]query_string will be loaded in cgi processing [17:08:23]execute_cgi json_proto POST (null) [17:08:23]execute_cgi path=json_proto method=POST [17:08:23]POST find Content-Length [17:08:23]Host: 172.17.44.196:8080 [17:08:23]Content-Length: 979 [17:08:23]Content-Type: application/json [17:08:23] [17:08:23]POST finish read [17:08:23]Found Content-Length = 979 [17:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965779", "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" : 75.20, "quantity" : 25.270, "sum" : 1900.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.27 \u0441\u043E\u043C", "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:23]execute_script... [17:08: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)1965779", "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" : 75.20, "quantity" : 25.270, "sum" : 1900.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 133\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.27 \u0441\u043E\u043C", "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:23]POST & json_proto [17:08:23]process_json_proto [17:08:23]json parsed OK: [17:08:23]protocol is kg_v1.0 [17:08:23]action value=close_receipt [17:08:23]process_action close_receipt [17:08:23]cmd_close_receipt [17:08:23]MH_GetDate [17:08:23]Write to MH i2c: F0 00 00 FE 16 03 [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: F0 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: F0 09 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: F0 09 00 FE 16 00 89 2D 19 67 E7 19 F8 65 9F [17:08:23]GetLastDocTimeStamp 1729701517 [17:08:23]current date 1729703305 [17:08:23]FM_GetShiftState [17:08:23]SAM_PROTO_GetShiftState [17:08:23]wFMCommunicate request_size=4 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 13 01 00 [17:08:23]Write to MH i2c: E2 08 00 FF 16 80 13 01 00 00 00 00 00 92 [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 0E 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 0E 00 FF 16 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F7 [17:08:23]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:08:23]wFMCommunicate OK [17:08:23]SAM_PROTO_GetShiftState done [17:08:23]FM_GetShiftState done [17:08:23]opened in 1729642905 [17:08:23]opened+sec_in_day 1729729305 [17:08:23]quantity*price = 190030 [17:08:23]sum+1 = 190031 [17:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.80 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 240 23.10.2024 17:08 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Дисконтная программа ДТ номер 133 сэкономлено 25.27 сом ФМ: 0000000000963323 ФД: 75507 ФПД: 150961382459333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170825&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75507&fm=150961382459333&tin=02508201610067®Number=0000000000161154&sum=190000 [17:08:25]StoreToDocumentArchive [17:08:25]shift 173 fd 75507 [17:08:25]save to /storage/0173/doc_00075507 [17:08:25]save last doc name /storage/0173/doc_00075507 to /storage/kkm_last_doc_name [17:08:25]save OK [17:08:25]Clear old archive folders... [17:08:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:08:25]tlvbuf is 0081C8C0 [17:08:25]SAM_PROTO_ClearQueue [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 09 00 00 [17:08:25]Write to MH i2c: E2 08 00 0C 17 80 09 00 00 00 00 00 00 95 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 03 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 03 00 0C 17 00 90 00 97 [17:08:25]RAPDU: 90 00 [17:08:25]wFMCommunicate OK [17:08:25]SAM_PROTO_ClearQueue done [17:08:25]KKMCreateOFDPacket [17:08:25]OFDProtocolAddRootSTLVToBuf [17:08:25]FM_MakeSignedData [17:08:25]FM_MakeSignedData [17:08:25]SAM_PROTO_SignData [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 0D 01 02 [17:08:25]Write to MH i2c: E2 08 00 0D 17 80 0D 01 02 00 00 00 00 9D [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 03 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 03 00 0D 17 00 90 00 98 [17:08:25]RAPDU: 90 00 [17:08:25]wFMCommunicate OK [17:08:25]wFMCommunicate request_size=255 [17:08:25]MH_SAM_APDU [17:08: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 B6 62 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4E E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 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 89 2D 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 26 01 00 35 04 06 00 89 4C 6F 93 [17:08:25]Write to MH i2c: E2 02 01 0E 17 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 B6 62 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4E E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 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 89 2D 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 26 01 00 35 04 06 00 89 4C 6F 93 00 00 66 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]OFD Sender: No OFD packet to send [17:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 03 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 03 00 0E 17 00 90 00 99 [17:08:25]RAPDU: 90 00 [17:08:25]wFMCommunicate OK [17:08:25]wFMCommunicate request_size=7 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 0D 02 02 02 87 C5 [17:08:25]Write to MH i2c: E2 0A 00 0F 17 80 0D 02 02 02 00 87 C5 00 00 F0 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 03 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 03 00 0F 17 00 90 00 9A [17:08:25]RAPDU: 90 00 [17:08:25]wFMCommunicate OK [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 0D 03 02 [17:08:25]Write to MH i2c: E2 08 00 10 17 80 0D 03 02 00 00 00 00 A2 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 0B 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 0B 00 10 17 00 3E B4 89 E4 C8 5C A8 D1 90 00 9F [17:08:25]RAPDU: 3E B4 89 E4 C8 5C A8 D1 90 00 [17:08:25]wFMCommunicate OK [17:08:25]SAM_PROTO_SignData done [17:08:25]FM_MakeSignedData done [17:08:25]CreateOFDProtocolMessage [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 11 00 00 [17:08:25]Write to MH i2c: E2 08 00 11 17 80 11 00 00 00 00 00 00 A2 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:25]Read from MH i2c: E2 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 17 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: E2 17 00 11 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EF [17:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:08:25]wFMCommunicate OK [17:08:25]CreateOFDProtocolMessage done [17:08:25]OFDSenderStorePacket 75507 [17:08:25]StoreOFDPacket docnum=75507 [17:08:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 86 22 04 01 4E B7 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 B6 62 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4E E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 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 89 2D 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 26 01 00 35 04 06 00 89 4C 6F 93 87 C5 3E B4 89 E4 C8 5C A8 D1 [17:08:25]CheckFolder [17:08:25]dirname=/storage/ofd_packets [17:08:25]CheckFolder done [17:08:25]ProducePacketName [17:08:25]name=ofd_packets/00075507 [17:08:25]NVStorageSaveData ofd_packets/00075507 [17:08:25]File name is /storage/ofd_packets/00075507 [17:08:25]Write 298 bytes [17:08:25]NVStorageSaveData done [17:08:25]OFDSenderStorePacket done [17:08:25]KKMCreateOFDPacket done [17:08:25]NVStorageSaveData kkm_last_timestamp [17:08:25]File name is /storage/kkm_last_timestamp [17:08:25]Write 4 bytes [17:08:25]NVStorageSaveData done [17:08:25]ExternCall_PrintAddStr [17:08:25]wPrintStart [17:08:25]Write to MH i2c: 01 00 00 12 17 29 [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: 01 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: 01 07 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: 01 07 00 12 17 00 00 00 00 00 FF 0F 3E [17:08:25]RasterBufferAndPrint [17:08:25]line Счет N : (1)1965779 [17:08:25]line ИНН: 02508201610067 [17:08:25]line Контрольно-Кассовый Чек [17:08:25]line ПРОДАЖА [17:08:25]line ТРК (МРК, ГНК) : 61 [17:08:25]line Товар: 2710194210 [17:08:25]line ДТ-К-5 [17:08:25]line 25.270 * 75.20 [17:08:25]line = 1900.30 [17:08:25]line НДС 12% НСП 1% [17:08:25]line > о реализуемом товаре [17:08:25]line ОКРУГЛЕНИЕ: -0.30 [17:08:25]line ИТОГО: 1900.00 [17:08:25]line Внесено: 1900.00 [17:08:25]line СДАЧА: 0.00 [17:08:25]line НСП 1% : 16.82 [17:08:25]line НДС 12% : 201.80 [17:08:25]line Наличными: 1900.00 [17:08:25]line Безнал.: 0.00 [17:08:25]line Место: АЗС № 133 "Партнер Нефть" [17:08:25]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:08:25]line СНО: Общий режим [17:08:25]line Чек 240 23.10.2024 17:08 [17:08:25]line Смена: 173 ФФД: 1.0 [17:08:25]line ЗНМ: 0300000020 [17:08:25]line РНМ: 0000000000161154 [17:08:25]line Версия ККМ: v1.0 [17:08:25]line [17:08:25]line Дисконтная программа [17:08:25]line ДТ [17:08:25]line номер 133 [17:08:25]line сэкономлено 25.27 сом [17:08:25]line ФМ: 0000000000963323 [17:08:25]line ФД: 75507 [17:08:25]line ФПД: 150961382459333 [17:08:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170825&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75507&fm=150961382459333&tin=02508201610067®Number=0000000000161154&sum=190000 [17:08:25]OFD Sender: Processing packet 75507 [packets to send 16, broken 15] [17:08:25]ProducePacketName [17:08:25]name=ofd_packets/00075507 [17:08:25]OFD Sender: To server: pG, [17:08:25]CommunicateWithHost lk.salyk.kg:30040 [17:08:25]ConnectInit lk.salyk.kg [17:08:25]written 0, free lines is 4095 [17:08:26]Connected sock=10 [17:08:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0C 01 00 00 86 22 04 01 4E B7 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 B6 62 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4E E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 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 89 2D 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F3 26 01 00 35 04 06 00 89 4C 6F 93 87 C5 3E B4 89 E4 C8 5C A8 D1 [17:08:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 59 F2 47 00 82 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 39 36 33 33 32 33 10 04 04 00 F3 26 01 00 F4 03 04 00 63 D6 18 67 B6 04 01 00 00 81 C2 44 3B 2F 23 5A F1 [17:08:26]CommunicateWithHost err = 0 [17:08:26]CheckOFDResponse [17:08:26]1017 (14) - 77093643461234 [17:08:26]1041 (16) - 0000000000963323 [17:08:26]1040 (4) - 75507 [17:08:26]1012 (4) - 23.10.2024 10:56 [17:08:26]1206 (1) - 0 [17:08:26]OFD Sender: Remove packet 75507 [17:08:26]ProducePacketName [17:08:26]name=ofd_packets/00075507 [17:08:26]NVStorageDeleteData [17:08:26]Write to MH i2c: 01 00 00 41 17 58 [17:08:26]Write i2c OK [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: 01 [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: 01 07 00 [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: 01 07 00 41 17 00 00 00 00 00 3D 0C A8 [17:08:26]RasterBufferAndPrint [17:08:26]line [17:08:26]line [17:08:26]line [17:08:26]line [17:08:26]line [17:08:26]written 0, free lines is 3137 [17:08:26]MH_Cut [17:08:26]Write to MH i2c: D1 01 00 48 17 01 31 [17:08:26]Write i2c OK [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: D1 [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: D1 01 00 [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: D1 01 00 48 17 00 30 [17:08:26]Write to MH i2c: 01 00 00 49 17 60 [17:08:26]Write i2c OK [17:08:26]MH_I2C_Read... [17:08:26]OFD Sender: No OFD packet to send [17:08:27]*** Cut start [17:08:27]*** Partial cut [17:08:27]*** CUTSNS_PIN = 1 [17:08:27]*** CUTSNS_PIN = 0 [17:08:27]*** Brake cut motor [17:08:28]Read from MH i2c: 01 [17:08:28]MH_I2C_Read... [17:08:28]*** Stop cut motor [17:08:28]*** Cut end [17:08:28]Read from MH i2c: 01 07 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: 01 07 00 49 17 00 00 00 00 00 FF 0F 75 [17:08:28]process_action close_receipt done [17:08:28]requested_data is exist [17:08:28]produce_requested_data [17:08:28]requested_item fm.sn is exist - process it [17:08:28]wFMCommunicate request_size=4 [17:08:28]MH_SAM_APDU [17:08:28]CAPDU: 80 11 00 00 [17:08:28]Write to MH i2c: E2 08 00 4A 17 80 11 00 00 00 00 00 00 DB [17:08:28]Write i2c OK [17:08:28]MH_I2C_Read... [17:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:28]Read from MH i2c: E2 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 17 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 17 00 4A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 28 [17:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:08:28]wFMCommunicate OK [17:08:28]requested_item fd.num is exist - process it [17:08:28]SAM_PROTO_GetFieldsCounters [17:08:28]wFMCommunicate request_size=4 [17:08:28]MH_SAM_APDU [17:08:28]CAPDU: 80 13 00 00 [17:08:28]Write to MH i2c: E2 08 00 4B 17 80 13 00 00 00 00 00 00 DE [17:08:28]Write i2c OK [17:08:28]MH_I2C_Read... [17:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:28]Read from MH i2c: E2 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 62 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 62 00 4B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F3 26 01 00 0E 04 04 00 AD 00 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 89 [17:08:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F3 26 01 00 0E 04 04 00 AD 00 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 [17:08:28]wFMCommunicate OK [17:08:28]SAM_PROTO_GetFieldsCounters done [17:08:28]requested_item shift.num is exist - process it [17:08:28]requested_item shift.opened is exist - process it [17:08:28]req_shift_opened [17:08:28]FM_GetShiftState [17:08:28]SAM_PROTO_GetShiftState [17:08:28]wFMCommunicate request_size=4 [17:08:28]MH_SAM_APDU [17:08:28]CAPDU: 80 13 01 00 [17:08:28]Write to MH i2c: E2 08 00 4C 17 80 13 01 00 00 00 00 00 E0 [17:08:28]Write i2c OK [17:08:28]MH_I2C_Read... [17:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:28]Read from MH i2c: E2 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 0E 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: E2 0E 00 4C 17 00 09 00 01 99 41 18 67 00 00 00 00 90 00 45 [17:08:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:08:28]wFMCommunicate OK [17:08:28]SAM_PROTO_GetShiftState done [17:08:28]FM_GetShiftState done [17:08:28]req_shift_opened done [17:08:28]requested_item shift.open_date is exist - process it [17:08:28]req_shift_open_date [17:08:28]req_shift_open_date done [17:08:28]produce_requested_data done [17:08:28]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75507,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:08:28]process_action_free close_receipt [17:08:28]json_value_free [17:08:28]json_value_free done [17:08:28]process_json_proto returns [17:08:28]Send response to host [17:08:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75507,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:08:28]free response buf [17:08:28]execute_script done [17:08:28]execute_script returns [17:08:28]free content buf [17:08:28]Sock 9.Close socket [17:08:28]Sock 9.Thread stoped [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]accept exits with 8 [17:11:46]New connection [17:11:46]New thread 3066465636 created [17:11:46]Thread 3066608996 joined [17:11:46]Waiting for new connection... [17:11:46] Sock 8.Parse request [17:11:46]Sock 8.Check first char [17:11:46]Sock 8.First char is OK [17:11:46]request: POST /json_proto HTTP/1.0 [17:11:46]Method: POST [17:11:46]URL: /json_proto [17:11:46]Method is POST - this is cgi request [17:11:46]url: /json_proto [17:11:46]query_string will be loaded in cgi processing [17:11:46]execute_cgi json_proto POST (null) [17:11:46]execute_cgi path=json_proto method=POST [17:11:46]POST find Content-Length [17:11:46]Host: 172.17.44.196:8080 [17:11:46]Content-Length: 1142 [17:11:46]Content-Type: application/json [17:11:46] [17:11:46]POST finish read [17:11:46]Found Content-Length = 1142 [17:11:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273275", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 3.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 248.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:46]execute_script... [17:11: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 : (3)273275", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 3.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 248.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:46]POST & json_proto [17:11:46]process_json_proto [17:11:46]json parsed OK: [17:11:46]protocol is kg_v1.0 [17:11:46]action value=close_receipt [17:11:46]process_action close_receipt [17:11:46]cmd_close_receipt [17:11:46]MH_GetDate [17:11:46]Write to MH i2c: F0 00 00 4D 17 53 [17:11:46]Write i2c OK [17:11:46]MH_I2C_Read... [17:11:46]Read from MH i2c: F0 [17:11:46]MH_I2C_Read... [17:11:46]Read from MH i2c: F0 09 00 [17:11:46]MH_I2C_Read... [17:11:46]Read from MH i2c: F0 09 00 4D 17 00 53 2E 19 67 E7 19 F8 65 BA [17:11:46]GetLastDocTimeStamp 1729703305 [17:11:46]current date 1729703507 [17:11:46]FM_GetShiftState [17:11:46]SAM_PROTO_GetShiftState [17:11:46]wFMCommunicate request_size=4 [17:11:46]MH_SAM_APDU [17:11:46]CAPDU: 80 13 01 00 [17:11:46]Write to MH i2c: E2 08 00 4E 17 80 13 01 00 00 00 00 00 E2 [17:11:46]Write i2c OK [17:11:46]MH_I2C_Read... [17:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:46]Read from MH i2c: E2 [17:11:46]MH_I2C_Read... [17:11:46]Read from MH i2c: E2 0E 00 [17:11:46]MH_I2C_Read... [17:11:46]Read from MH i2c: E2 0E 00 4E 17 00 09 00 01 99 41 18 67 00 00 00 00 90 00 47 [17:11:46]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:11:46]wFMCommunicate OK [17:11:46]SAM_PROTO_GetShiftState done [17:11:46]FM_GetShiftState done [17:11:46]opened in 1729642905 [17:11:46]opened+sec_in_day 1729729305 [17:11:46]quantity*price = 7500 [17:11:46]sum+1 = 7501 [17:11:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744683 Сигареты Winston XStyle Caster+ 1.000 * 143.00 = 143.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46231512 Mentos ПФ Виноград 6*100*2г 3.000 * 10.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 248.00 НСП 1% : 2.18 НДС 12% : 26.34 Наличными: 248.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 241 23.10.2024 17:11 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75508 ФПД: 154528840816010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171147&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75508&fm=154528840816010&tin=02508201610067®Number=0000000000161154&sum=24800 0 [17:11:47]StoreToDocumentArchive [17:11:47]shift 173 fd 75508 [17:11:47]save to /storage/0173/doc_00075508 [17:11:47]save last doc name /storage/0173/doc_00075508 to /storage/kkm_last_doc_name [17:11:47]save OK [17:11:47]Clear old archive folders... [17:11:47]ProcessDocumentItem done err = 0, tmpTLVsize=486 [17:11:47]tlvbuf is 007C4940 [17:11:47]SAM_PROTO_ClearQueue [17:11:47]wFMCommunicate request_size=4 [17:11:47]MH_SAM_APDU [17:11:47]CAPDU: 80 09 00 00 [17:11:47]Write to MH i2c: E2 08 00 5B 17 80 09 00 00 00 00 00 00 E4 [17:11:47]Write i2c OK [17:11:47]MH_I2C_Read... [17:11:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:47]Read from MH i2c: E2 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: E2 03 00 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: E2 03 00 5B 17 00 90 00 E6 [17:11:47]RAPDU: 90 00 [17:11:47]wFMCommunicate OK [17:11:47]SAM_PROTO_ClearQueue done [17:11:47]KKMCreateOFDPacket [17:11:47]OFDProtocolAddRootSTLVToBuf [17:11:47]FM_MakeSignedData [17:11:47]FM_MakeSignedData [17:11:47]SAM_PROTO_SignData [17:11:47]wFMCommunicate request_size=4 [17:11:47]MH_SAM_APDU [17:11:47]CAPDU: 80 0D 01 02 [17:11:47]Write to MH i2c: E2 08 00 5C 17 80 0D 01 02 00 00 00 00 EC [17:11:47]Write i2c OK [17:11:47]MH_I2C_Read... [17:11:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:47]Read from MH i2c: E2 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: E2 03 00 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: E2 03 00 5C 17 00 90 00 E7 [17:11:47]RAPDU: 90 00 [17:11:47]wFMCommunicate OK [17:11:47]wFMCommunicate request_size=255 [17:11:47]MH_SAM_APDU [17:11:47]CAPDU: 80 0D 02 02 FA 03 00 E6 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 [17:11:47]Write to MH i2c: E2 02 01 5D 17 80 0D 02 02 FA 00 03 00 E6 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 00 00 78 [17:11:47]Write i2c OK [17:11:47]MH_I2C_Read... [17:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:47]Read from MH i2c: E2 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: E2 03 00 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: E2 03 00 5D 17 00 90 00 E8 [17:11:47]RAPDU: 90 00 [17:11:47]wFMCommunicate OK [17:11:47]wFMCommunicate request_size=245 [17:11:47]MH_SAM_APDU [17:11:47]CAPDU: 80 0D 02 02 F0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 0A 00 00 00 00 07 04 06 00 E0 60 00 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 53 2E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F4 26 01 00 35 04 06 00 8C 8B 0C AA 15 8A [17:11:47]Write to MH i2c: E2 F8 00 5E 17 80 0D 02 02 F0 00 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 0A 00 00 00 00 07 04 06 00 E0 60 00 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 53 2E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F4 26 01 00 35 04 06 00 8C 8B 0C AA 15 8A 00 00 F9 [17:11:47]Write i2c OK [17:11:47]MH_I2C_Read... [17:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:48]Read from MH i2c: E2 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 5E 17 00 90 00 E9 [17:11:48]RAPDU: 90 00 [17:11:48]wFMCommunicate OK [17:11:48]wFMCommunicate request_size=4 [17:11:48]MH_SAM_APDU [17:11:48]CAPDU: 80 0D 03 02 [17:11:48]Write to MH i2c: E2 08 00 5F 17 80 0D 03 02 00 00 00 00 F1 [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:48]Read from MH i2c: E2 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 0B 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 0B 00 5F 17 00 6E E9 7A 94 20 84 7F ED 90 00 67 [17:11:48]RAPDU: 6E E9 7A 94 20 84 7F ED 90 00 [17:11:48]wFMCommunicate OK [17:11:48]SAM_PROTO_SignData done [17:11:48]FM_MakeSignedData done [17:11:48]CreateOFDProtocolMessage [17:11:48]wFMCommunicate request_size=4 [17:11:48]MH_SAM_APDU [17:11:48]CAPDU: 80 11 00 00 [17:11:48]Write to MH i2c: E2 08 00 60 17 80 11 00 00 00 00 00 00 F1 [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:48]Read from MH i2c: E2 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 17 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 17 00 60 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3E [17:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:11:48]wFMCommunicate OK [17:11:48]CreateOFDProtocolMessage done [17:11:48]OFDSenderStorePacket 75508 [17:11:48]StoreOFDPacket docnum=75508 [17:11:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 FA 01 00 00 19 D8 F2 01 E0 AA 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 0A 00 00 00 00 07 04 06 00 E0 60 00 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 53 2E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F4 26 01 00 35 04 06 00 8C 8B 0C AA 15 8A 6E E9 7A 94 20 84 7F ED [17:11:48]CheckFolder [17:11:48]dirname=/storage/ofd_packets [17:11:48]CheckFolder done [17:11:48]ProducePacketName [17:11:48]name=ofd_packets/00075508 [17:11:48]NVStorageSaveData ofd_packets/00075508 [17:11:48]File name is /storage/ofd_packets/00075508 [17:11:48]Write 536 bytes [17:11:48]NVStorageSaveData done [17:11:48]OFDSenderStorePacket done [17:11:48]KKMCreateOFDPacket done [17:11:48]NVStorageSaveData kkm_last_timestamp [17:11:48]File name is /storage/kkm_last_timestamp [17:11:48]Write 4 bytes [17:11:48]NVStorageSaveData done [17:11:48]ExternCall_PrintAddStr [17:11:48]wPrintStart [17:11:48]Write to MH i2c: 01 00 00 61 17 78 [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: 01 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: 01 07 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: 01 07 00 61 17 00 00 00 00 00 FF 0F 8D [17:11:48]RasterBufferAndPrint [17:11:48]line Счет N : (3)273275 [17:11:48]line ИНН: 02508201610067 [17:11:48]line Контрольно-Кассовый Чек [17:11:48]line ПРОДАЖА [17:11:48]line Товар: 54491472 [17:11:48]line Напиток Кока-Кола 0,5л [17:11:48]line 1.000 * 75.00 [17:11:48]line = 75.00 [17:11:48]line НДС 12% НСП 1% [17:11:48]line > о реализуемом товаре [17:11:48]line Товар: 48744683 [17:11:48]line Сигареты Winston XStyle Caster+ [17:11:48]line 1.000 * 143.00 [17:11:48]line = 143.00 [17:11:48]line НДС 12% НСП 1% [17:11:48]line > о реализуемом товаре [17:11:48]line Товар: 46231512 [17:11:48]line Mentos ПФ Виноград 6*100*2г [17:11:48]line 3.000 * 10.00 [17:11:48]line = 30.00 [17:11:48]line НДС 12% НСП 1% [17:11:48]line > о реализуемом товаре [17:11:48]line ИТОГО: 248.00 [17:11:48]line НСП 1% : 2.18 [17:11:48]line НДС 12% : 26.34 [17:11:48]line Наличными: 248.00 [17:11:48]line Безнал.: 0.00 [17:11:48]line Место: АЗС № 133 "Партнер Нефть" [17:11:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:11:48]line СНО: Общий режим [17:11:48]line Чек 241 23.10.2024 17:11 [17:11:48]line Смена: 173 ФФД: 1.0 [17:11:48]line ЗНМ: 0300000020 [17:11:48]line РНМ: 0000000000161154 [17:11:48]line Версия ККМ: v1.0 [17:11:48]line ФМ: 0000000000963323 [17:11:48]line ФД: 75508 [17:11:48]line ФПД: 154528840816010 [17:11:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171147&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75508&fm=154528840816010&tin=02508201610067®Number=0000000000161154&sum=24800 [17:11:48]OFD Sender: Processing packet 75508 [packets to send 16, broken 15] [17:11:48]ProducePacketName [17:11:48]name=ofd_packets/00075508 [17:11:48]OFD Sender: To server: pG, [17:11:48]CommunicateWithHost lk.salyk.kg:30040 [17:11:48]ConnectInit lk.salyk.kg [17:11:48]line 0 [17:11:48]written 0, free lines is 4095 [17:11:48]Connected sock=10 [17:11:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 FA 01 00 00 19 D8 F2 01 E0 AA 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 0A 00 00 00 00 07 04 06 00 E0 60 00 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 53 2E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F4 26 01 00 35 04 06 00 8C 8B 0C AA 15 8A 6E E9 7A 94 20 84 7F ED [17:11:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F2 17 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 39 36 33 33 32 33 10 04 04 00 F4 26 01 00 F4 03 04 00 2E D7 18 67 B6 04 01 00 00 26 8B 7F 1E 24 58 63 AF [17:11:49]CommunicateWithHost err = 0 [17:11:49]CheckOFDResponse [17:11:49]1017 (14) - 77093643461234 [17:11:49]1041 (16) - 0000000000963323 [17:11:49]1040 (4) - 75508 [17:11:49]1012 (4) - 23.10.2024 10:59 [17:11:49]1206 (1) - 0 [17:11:49]OFD Sender: Remove packet 75508 [17:11:49]ProducePacketName [17:11:49]name=ofd_packets/00075508 [17:11:49]NVStorageDeleteData [17:11:49]Write to MH i2c: 01 00 00 95 17 AC [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 07 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 07 00 95 17 00 00 00 00 00 0C 0C CB [17:11:49]RasterBufferAndPrint [17:11:49]line [17:11:49]line [17:11:49]line [17:11:49]line [17:11:49]line [17:11:49]written 0, free lines is 3090 [17:11:49]MH_Cut [17:11:49]Write to MH i2c: D1 01 00 9C 17 01 85 [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: D1 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: D1 01 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: D1 01 00 9C 17 00 84 [17:11:49]Write to MH i2c: 01 00 00 9D 17 B4 [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]OFD Sender: No OFD packet to send [17:11:50]*** Cut start [17:11:50]*** Partial cut [17:11:50]*** CUTSNS_PIN = 1 [17:11:50]*** CUTSNS_PIN = 0 [17:11:50]*** Brake cut motor [17:11:50]Read from MH i2c: 01 [17:11:50]MH_I2C_Read... [17:11:50]*** Stop cut motor [17:11:50]*** Cut end [17:11:50]Read from MH i2c: 01 07 00 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: 01 07 00 9D 17 00 00 00 00 00 FF 0F C9 [17:11:50]process_action close_receipt done [17:11:50]requested_data is exist [17:11:50]produce_requested_data [17:11:50]requested_item fm.sn is exist - process it [17:11:50]wFMCommunicate request_size=4 [17:11:50]MH_SAM_APDU [17:11:50]CAPDU: 80 11 00 00 [17:11:50]Write to MH i2c: E2 08 00 9E 17 80 11 00 00 00 00 00 00 2F [17:11:50]Write i2c OK [17:11:50]MH_I2C_Read... [17:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:50]Read from MH i2c: E2 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: E2 17 00 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: E2 17 00 9E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 7C [17:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:11:50]wFMCommunicate OK [17:11:50]requested_item fd.num is exist - process it [17:11:50]SAM_PROTO_GetFieldsCounters [17:11:50]wFMCommunicate request_size=4 [17:11:50]MH_SAM_APDU [17:11:50]CAPDU: 80 13 00 00 [17:11:50]Write to MH i2c: E2 08 00 9F 17 80 13 00 00 00 00 00 00 32 [17:11:50]Write i2c OK [17:11:50]MH_I2C_Read... [17:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:51]Read from MH i2c: E2 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 62 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 62 00 9F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F4 26 01 00 0E 04 04 00 AD 00 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 E1 [17:11:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F4 26 01 00 0E 04 04 00 AD 00 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 [17:11:51]wFMCommunicate OK [17:11:51]SAM_PROTO_GetFieldsCounters done [17:11:51]requested_item shift.num is exist - process it [17:11:51]requested_item shift.opened is exist - process it [17:11:51]req_shift_opened [17:11:51]FM_GetShiftState [17:11:51]SAM_PROTO_GetShiftState [17:11:51]wFMCommunicate request_size=4 [17:11:51]MH_SAM_APDU [17:11:51]CAPDU: 80 13 01 00 [17:11:51]Write to MH i2c: E2 08 00 A0 17 80 13 01 00 00 00 00 00 34 [17:11:51]Write i2c OK [17:11:51]MH_I2C_Read... [17:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:51]Read from MH i2c: E2 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 0E 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 0E 00 A0 17 00 09 00 01 99 41 18 67 00 00 00 00 90 00 99 [17:11:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:11:51]wFMCommunicate OK [17:11:51]SAM_PROTO_GetShiftState done [17:11:51]FM_GetShiftState done [17:11:51]req_shift_opened done [17:11:51]requested_item shift.open_date is exist - process it [17:11:51]req_shift_open_date [17:11:51]req_shift_open_date done [17:11:51]produce_requested_data done [17:11:51]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75508,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:11:51]process_action_free close_receipt [17:11:51]json_value_free [17:11:51]json_value_free done [17:11:51]process_json_proto returns [17:11:51]Send response to host [17:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75508,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:11:51]free response buf [17:11:51]execute_script done [17:11:51]execute_script returns [17:11:51]free content buf [17:11:51]Sock 8.Close socket [17:11:51]Sock 8.Thread stoped [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:25]accept exits with 9 [17:13:25]New connection [17:13:25]New thread 3066608996 created [17:13:25]Thread 3066465636 joined [17:13:25]Waiting for new connection... [17:13:25] Sock 9.Parse request [17:13:25]Sock 9.Check first char [17:13:25]Sock 9.First char is OK [17:13:25]request: POST /json_proto HTTP/1.0 [17:13:25]Method: POST [17:13:25]URL: /json_proto [17:13:25]Method is POST - this is cgi request [17:13:25]url: /json_proto [17:13:25]query_string will be loaded in cgi processing [17:13:25]execute_cgi json_proto POST (null) [17:13:25]execute_cgi path=json_proto method=POST [17:13:25]POST find Content-Length [17:13:25]Host: 172.17.44.196:8080 [17:13:25]Content-Length: 683 [17:13:25]Content-Type: application/json [17:13:25] [17:13:25]POST finish read [17:13:25]Found Content-Length = 683 [17:13:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:25]execute_script... [17:13: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)1965782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:25]POST & json_proto [17:13:25]process_json_proto [17:13:25]json parsed OK: [17:13:25]protocol is kg_v1.0 [17:13:25]action value=close_receipt [17:13:25]process_action close_receipt [17:13:25]cmd_close_receipt [17:13:25]MH_GetDate [17:13:25]Write to MH i2c: F0 00 00 A1 17 A7 [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: F0 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: F0 09 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: F0 09 00 A1 17 00 B6 2E 19 67 E7 19 F8 65 71 [17:13:25]GetLastDocTimeStamp 1729703507 [17:13:25]current date 1729703606 [17:13:25]FM_GetShiftState [17:13:25]SAM_PROTO_GetShiftState [17:13:25]wFMCommunicate request_size=4 [17:13:25]MH_SAM_APDU [17:13:25]CAPDU: 80 13 01 00 [17:13:25]Write to MH i2c: E2 08 00 A2 17 80 13 01 00 00 00 00 00 36 [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:25]Read from MH i2c: E2 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 0E 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 0E 00 A2 17 00 09 00 01 99 41 18 67 00 00 00 00 90 00 9B [17:13:25]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:13:25]wFMCommunicate OK [17:13:25]SAM_PROTO_GetShiftState done [17:13:25]FM_GetShiftState done [17:13:25]opened in 1729642905 [17:13:25]opened+sec_in_day 1729729305 [17:13:25]quantity*price = 100021 [17:13:25]sum+1 = 100023 [17:13:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 242 23.10.2024 17:13 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75509 ФПД: 211469536633041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171326&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75509&fm=211469536633041&tin=02508201610067®Number=0000000000161154&sum=100000 [17:13:26]StoreToDocumentArchive [17:13:26]shift 173 fd 75509 [17:13:26]save to /storage/0173/doc_00075509 [17:13:26]save last doc name /storage/0173/doc_00075509 to /storage/kkm_last_doc_name [17:13:26]save OK [17:13:26]Clear old archive folders... [17:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:26]tlvbuf is 0079B360 [17:13:26]SAM_PROTO_ClearQueue [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 09 00 00 [17:13:26]Write to MH i2c: E2 08 00 AF 17 80 09 00 00 00 00 00 00 38 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 AF 17 00 90 00 3A [17:13:26]RAPDU: 90 00 [17:13:26]wFMCommunicate OK [17:13:26]SAM_PROTO_ClearQueue done [17:13:26]KKMCreateOFDPacket [17:13:26]OFDProtocolAddRootSTLVToBuf [17:13:26]FM_MakeSignedData [17:13:26]FM_MakeSignedData [17:13:26]SAM_PROTO_SignData [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 0D 01 02 [17:13:26]Write to MH i2c: E2 08 00 B0 17 80 0D 01 02 00 00 00 00 40 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 B0 17 00 90 00 3B [17:13:26]RAPDU: 90 00 [17:13:26]wFMCommunicate OK [17:13:26]wFMCommunicate request_size=255 [17:13:26]MH_SAM_APDU [17:13: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B6 2E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 26 01 00 35 04 06 00 C0 [17:13:26]Write to MH i2c: E2 02 01 B1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B6 2E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 26 01 00 35 04 06 00 C0 00 00 BE [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 B1 17 00 90 00 3C [17:13:26]RAPDU: 90 00 [17:13:26]wFMCommunicate OK [17:13:26]wFMCommunicate request_size=10 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 0D 02 02 05 54 96 9C A0 D1 [17:13:26]Write to MH i2c: E2 0D 00 B2 17 80 0D 02 02 05 00 54 96 9C A0 D1 00 00 44 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 B2 17 00 90 00 3D [17:13:26]RAPDU: 90 00 [17:13:26]wFMCommunicate OK [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 0D 03 02 [17:13:26]Write to MH i2c: E2 08 00 B3 17 80 0D 03 02 00 00 00 00 45 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 0B 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 0B 00 B3 17 00 7B D2 6B 92 40 F9 6D 1B 90 00 51 [17:13:26]RAPDU: 7B D2 6B 92 40 F9 6D 1B 90 00 [17:13:26]wFMCommunicate OK [17:13:26]SAM_PROTO_SignData done [17:13:26]FM_MakeSignedData done [17:13:26]CreateOFDProtocolMessage [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 11 00 00 [17:13:26]Write to MH i2c: E2 08 00 B4 17 80 11 00 00 00 00 00 00 45 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 17 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 17 00 B4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 92 [17:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:13:26]wFMCommunicate OK [17:13:26]CreateOFDProtocolMessage done [17:13:26]OFDSenderStorePacket 75509 [17:13:26]StoreOFDPacket docnum=75509 [17:13:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 23 B7 07 01 50 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B6 2E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 26 01 00 35 04 06 00 C0 54 96 9C A0 D1 7B D2 6B 92 40 F9 6D 1B [17:13:26]CheckFolder [17:13:26]dirname=/storage/ofd_packets [17:13:26]CheckFolder done [17:13:26]ProducePacketName [17:13:26]name=ofd_packets/00075509 [17:13:26]NVStorageSaveData ofd_packets/00075509 [17:13:26]File name is /storage/ofd_packets/00075509 [17:13:26]Write 301 bytes [17:13:26]NVStorageSaveData done [17:13:26]OFDSenderStorePacket done [17:13:26]KKMCreateOFDPacket done [17:13:26]NVStorageSaveData kkm_last_timestamp [17:13:26]File name is /storage/kkm_last_timestamp [17:13:26]Write 4 bytes [17:13:26]NVStorageSaveData done [17:13:26]ExternCall_PrintAddStr [17:13:26]wPrintStart [17:13:26]Write to MH i2c: 01 00 00 B5 17 CC [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 07 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 07 00 B5 17 00 00 00 00 00 FF 0F E1 [17:13:26]RasterBufferAndPrint [17:13:26]line Счет N : (1)1965782 [17:13:26]line ИНН: 02508201610067 [17:13:26]line Контрольно-Кассовый Чек [17:13:26]line ПРОДАЖА [17:13:26]line ТРК (МРК, ГНК) : 34 [17:13:26]line Товар: 2710124500 [17:13:26]line Аи-95-К-5 [17:13:26]line 13.480 * 74.20 [17:13:26]line = 1000.22 [17:13:26]line НДС 12% НСП 1% [17:13:26]line > о реализуемом товаре [17:13:26]line ОКРУГЛЕНИЕ: -0.22 [17:13:26]line ИТОГО: 1000.00 [17:13:26]line Внесено: 1000.00 [17:13:26]line СДАЧА: 0.00 [17:13:26]line НСП 1% : 8.85 [17:13:26]line НДС 12% : 106.22 [17:13:26]line Наличными: 1000.00 [17:13:26]line Безнал.: 0.00 [17:13:26]line Место: АЗС № 133 "Партнер Нефть" [17:13:26]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:13:26]line СНО: Общий режим [17:13:26]line Чек 242 23.10.2024 17:13 [17:13:26]line Смена: 173 ФФД: 1.0 [17:13:26]line ЗНМ: 0300000020 [17:13:26]line РНМ: 0000000000161154 [17:13:26]line Версия ККМ: v1.0 [17:13:26]line ФМ: 0000000000963323 [17:13:26]line ФД: 75509 [17:13:26]line ФПД: 211469536633041 [17:13:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171326&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75509&fm=211469536633041&tin=02508201610067®Number=0000000000161154&sum=100000 [17:13:27]OFD Sender: Processing packet 75509 [packets to send 16, broken 15] [17:13:27]ProducePacketName [17:13:27]name=ofd_packets/00075509 [17:13:27]OFD Sender: To server: pG, [17:13:27]CommunicateWithHost lk.salyk.kg:30040 [17:13:27]ConnectInit lk.salyk.kg [17:13:27]written 0, free lines is 4095 [17:13:27]Connected sock=10 [17:13:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 23 B7 07 01 50 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B6 2E 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F5 26 01 00 35 04 06 00 C0 54 96 9C A0 D1 7B D2 6B 92 40 F9 6D 1B [17:13:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6E EB 47 00 92 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 39 36 33 33 32 33 10 04 04 00 F5 26 01 00 F4 03 04 00 90 D7 18 67 B6 04 01 00 00 4E F8 71 70 28 DF BD A1 [17:13:27]CommunicateWithHost err = 0 [17:13:27]CheckOFDResponse [17:13:27]1017 (14) - 77093643461234 [17:13:27]1041 (16) - 0000000000963323 [17:13:27]1040 (4) - 75509 [17:13:27]1012 (4) - 23.10.2024 11:01 [17:13:27]1206 (1) - 0 [17:13:27]OFD Sender: Remove packet 75509 [17:13:27]ProducePacketName [17:13:27]name=ofd_packets/00075509 [17:13:27]NVStorageDeleteData [17:13:27]Write to MH i2c: 01 00 00 DF 17 F6 [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: 01 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: 01 07 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: 01 07 00 DF 17 00 00 00 00 00 AF 0C B8 [17:13:27]RasterBufferAndPrint [17:13:27]line [17:13:27]line [17:13:27]line [17:13:27]line [17:13:27]line [17:13:27]written 0, free lines is 3250 [17:13:27]MH_Cut [17:13:27]Write to MH i2c: D1 01 00 E6 17 01 CF [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: D1 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: D1 01 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: D1 01 00 E6 17 00 CE [17:13:27]Write to MH i2c: 01 00 00 E7 17 FE [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:28]OFD Sender: No OFD packet to send [17:13:28]*** Cut start [17:13:28]*** Partial cut [17:13:28]*** CUTSNS_PIN = 1 [17:13:28]*** CUTSNS_PIN = 0 [17:13:28]*** Brake cut motor [17:13:29]Read from MH i2c: 01 [17:13:29]MH_I2C_Read... [17:13:29]*** Stop cut motor [17:13:29]*** Cut end [17:13:29]Read from MH i2c: 01 07 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: 01 07 00 E7 17 00 00 00 00 00 FF 0F 13 [17:13:29]process_action close_receipt done [17:13:29]requested_data is exist [17:13:29]produce_requested_data [17:13:29]requested_item fm.sn is exist - process it [17:13:29]wFMCommunicate request_size=4 [17:13:29]MH_SAM_APDU [17:13:29]CAPDU: 80 11 00 00 [17:13:29]Write to MH i2c: E2 08 00 E8 17 80 11 00 00 00 00 00 00 79 [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:29]Read from MH i2c: E2 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 17 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 17 00 E8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C6 [17:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:13:29]wFMCommunicate OK [17:13:29]requested_item fd.num is exist - process it [17:13:29]SAM_PROTO_GetFieldsCounters [17:13:29]wFMCommunicate request_size=4 [17:13:29]MH_SAM_APDU [17:13:29]CAPDU: 80 13 00 00 [17:13:29]Write to MH i2c: E2 08 00 E9 17 80 13 00 00 00 00 00 00 7C [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:29]Read from MH i2c: E2 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 62 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 62 00 E9 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F5 26 01 00 0E 04 04 00 AD 00 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 2F [17:13:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F5 26 01 00 0E 04 04 00 AD 00 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 [17:13:29]wFMCommunicate OK [17:13:29]SAM_PROTO_GetFieldsCounters done [17:13:29]requested_item shift.num is exist - process it [17:13:29]requested_item shift.opened is exist - process it [17:13:29]req_shift_opened [17:13:29]FM_GetShiftState [17:13:29]SAM_PROTO_GetShiftState [17:13:29]wFMCommunicate request_size=4 [17:13:29]MH_SAM_APDU [17:13:29]CAPDU: 80 13 01 00 [17:13:29]Write to MH i2c: E2 08 00 EA 17 80 13 01 00 00 00 00 00 7E [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:29]Read from MH i2c: E2 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 0E 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: E2 0E 00 EA 17 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E3 [17:13:29]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:13:29]wFMCommunicate OK [17:13:29]SAM_PROTO_GetShiftState done [17:13:29]FM_GetShiftState done [17:13:29]req_shift_opened done [17:13:29]requested_item shift.open_date is exist - process it [17:13:29]req_shift_open_date [17:13:29]req_shift_open_date done [17:13:29]produce_requested_data done [17:13:29]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75509,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:13:29]process_action_free close_receipt [17:13:29]json_value_free [17:13:29]json_value_free done [17:13:29]process_json_proto returns [17:13:29]Send response to host [17:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75509,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:13:29]free response buf [17:13:29]execute_script done [17:13:29]execute_script returns [17:13:29]free content buf [17:13:29]Sock 9.Close socket [17:13:29]Sock 9.Thread stoped [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:04]accept exits with 8 [17:17:04]New connection [17:17:04]New thread 3066465636 created [17:17:04]Thread 3066608996 joined [17:17:04]Waiting for new connection... [17:17:04] Sock 8.Parse request [17:17:04]Sock 8.Check first char [17:17:04]Sock 8.First char is OK [17:17:04]request: POST /json_proto HTTP/1.0 [17:17:04]Method: POST [17:17:04]URL: /json_proto [17:17:04]Method is POST - this is cgi request [17:17:04]url: /json_proto [17:17:04]query_string will be loaded in cgi processing [17:17:04]execute_cgi json_proto POST (null) [17:17:04]execute_cgi path=json_proto method=POST [17:17:04]POST find Content-Length [17:17:04]Host: 172.17.44.196:8080 [17:17:04]Content-Length: 909 [17:17:04]Content-Type: application/json [17:17:04] [17:17:04]POST finish read [17:17:04]Found Content-Length = 909 [17:17:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273276", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:04]execute_script... [17:17:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273276", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:04]POST & json_proto [17:17:04]process_json_proto [17:17:04]json parsed OK: [17:17:04]protocol is kg_v1.0 [17:17:04]action value=close_receipt [17:17:04]process_action close_receipt [17:17:04]cmd_close_receipt [17:17:04]MH_GetDate [17:17:04]Write to MH i2c: F0 00 00 EB 17 F1 [17:17:04]Write i2c OK [17:17:04]MH_I2C_Read... [17:17:04]Read from MH i2c: F0 [17:17:04]MH_I2C_Read... [17:17:04]Read from MH i2c: F0 09 00 [17:17:04]MH_I2C_Read... [17:17:04]Read from MH i2c: F0 09 00 EB 17 00 91 2F 19 67 E7 19 F8 65 97 [17:17:04]GetLastDocTimeStamp 1729703606 [17:17:04]current date 1729703825 [17:17:04]FM_GetShiftState [17:17:04]SAM_PROTO_GetShiftState [17:17:04]wFMCommunicate request_size=4 [17:17:04]MH_SAM_APDU [17:17:04]CAPDU: 80 13 01 00 [17:17:04]Write to MH i2c: E2 08 00 EC 17 80 13 01 00 00 00 00 00 80 [17:17:04]Write i2c OK [17:17:04]MH_I2C_Read... [17:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:04]Read from MH i2c: E2 [17:17:04]MH_I2C_Read... [17:17:04]Read from MH i2c: E2 0E 00 [17:17:04]MH_I2C_Read... [17:17:04]Read from MH i2c: E2 0E 00 EC 17 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E5 [17:17:04]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:17:04]wFMCommunicate OK [17:17:04]SAM_PROTO_GetShiftState done [17:17:04]FM_GetShiftState done [17:17:04]opened in 1729642905 [17:17:04]opened+sec_in_day 1729729305 [17:17:04]quantity*price = 11500 [17:17:04]sum+1 = 11501 [17:17:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46227737 Р/ж mentos pure fresh арбуз ролл 15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 164.00 НСП 1% : 1.45 НДС 12% : 17.41 Наличными: 164.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 243 23.10.2024 17:17 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75510 ФПД: 147507839733691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171705&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75510&fm=147507839733691&tin=02508201610067®Number=0000000000161154&sum=16400 0 [17:17:05]StoreToDocumentArchive [17:17:05]shift 173 fd 75510 [17:17:05]save to /storage/0173/doc_00075510 [17:17:05]save last doc name /storage/0173/doc_00075510 to /storage/kkm_last_doc_name [17:17:05]save OK [17:17:05]Clear old archive folders... [17:17:05]ProcessDocumentItem done err = 0, tmpTLVsize=397 [17:17:05]tlvbuf is B6E86A20 [17:17:05]SAM_PROTO_ClearQueue [17:17:05]wFMCommunicate request_size=4 [17:17:05]MH_SAM_APDU [17:17:05]CAPDU: 80 09 00 00 [17:17:05]Write to MH i2c: E2 08 00 F9 17 80 09 00 00 00 00 00 00 82 [17:17:05]Write i2c OK [17:17:05]MH_I2C_Read... [17:17:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:05]Read from MH i2c: E2 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 03 00 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 03 00 F9 17 00 90 00 84 [17:17:05]RAPDU: 90 00 [17:17:05]wFMCommunicate OK [17:17:05]SAM_PROTO_ClearQueue done [17:17:05]KKMCreateOFDPacket [17:17:05]OFDProtocolAddRootSTLVToBuf [17:17:05]FM_MakeSignedData [17:17:05]FM_MakeSignedData [17:17:05]SAM_PROTO_SignData [17:17:05]wFMCommunicate request_size=4 [17:17:05]MH_SAM_APDU [17:17:05]CAPDU: 80 0D 01 02 [17:17:05]Write to MH i2c: E2 08 00 FA 17 80 0D 01 02 00 00 00 00 8A [17:17:05]Write i2c OK [17:17:05]MH_I2C_Read... [17:17:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:05]Read from MH i2c: E2 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 03 00 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 03 00 FA 17 00 90 00 85 [17:17:05]RAPDU: 90 00 [17:17:05]wFMCommunicate OK [17:17:05]wFMCommunicate request_size=255 [17:17:05]MH_SAM_APDU [17:17:05]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 [17:17:05]Write to MH i2c: E2 02 01 FB 17 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 00 00 C1 [17:17:05]Write i2c OK [17:17:05]MH_I2C_Read... [17:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:05]Read from MH i2c: E2 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 03 00 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 03 00 FB 17 00 90 00 86 [17:17:05]RAPDU: 90 00 [17:17:05]wFMCommunicate OK [17:17:05]wFMCommunicate request_size=156 [17:17:05]MH_SAM_APDU [17:17:05]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 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 91 2F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 26 01 00 35 04 06 00 86 28 58 63 8F BB [17:17:05]Write to MH i2c: E2 9F 00 FC 17 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 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 91 2F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 26 01 00 35 04 06 00 86 28 58 63 8F BB 00 00 3B [17:17:05]Write i2c OK [17:17:05]MH_I2C_Read... [17:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:05]Read from MH i2c: E2 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 03 00 [17:17:05]MH_I2C_Read... [17:17:05]Read from MH i2c: E2 03 00 FC 17 00 90 00 87 [17:17:05]RAPDU: 90 00 [17:17:05]wFMCommunicate OK [17:17:05]wFMCommunicate request_size=4 [17:17:05]MH_SAM_APDU [17:17:05]CAPDU: 80 0D 03 02 [17:17:05]Write to MH i2c: E2 08 00 FD 17 80 0D 03 02 00 00 00 00 8F [17:17:05]Write i2c OK [17:17:05]MH_I2C_Read... [17:17:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:06]Read from MH i2c: E2 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: E2 0B 00 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: E2 0B 00 FD 17 00 AE 85 C5 A0 E7 E2 5D 20 90 00 6E [17:17:06]RAPDU: AE 85 C5 A0 E7 E2 5D 20 90 00 [17:17:06]wFMCommunicate OK [17:17:06]SAM_PROTO_SignData done [17:17:06]FM_MakeSignedData done [17:17:06]CreateOFDProtocolMessage [17:17:06]wFMCommunicate request_size=4 [17:17:06]MH_SAM_APDU [17:17:06]CAPDU: 80 11 00 00 [17:17:06]Write to MH i2c: E2 08 00 FE 17 80 11 00 00 00 00 00 00 8F [17:17:06]Write i2c OK [17:17:06]MH_I2C_Read... [17:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:06]Read from MH i2c: E2 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: E2 17 00 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: E2 17 00 FE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DC [17:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:17:06]wFMCommunicate OK [17:17:06]CreateOFDProtocolMessage done [17:17:06]OFDSenderStorePacket 75510 [17:17:06]StoreOFDPacket docnum=75510 [17:17:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A1 01 00 00 D4 D7 99 01 24 AE 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 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 91 2F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 26 01 00 35 04 06 00 86 28 58 63 8F BB AE 85 C5 A0 E7 E2 5D 20 [17:17:06]CheckFolder [17:17:06]dirname=/storage/ofd_packets [17:17:06]CheckFolder done [17:17:06]ProducePacketName [17:17:06]name=ofd_packets/00075510 [17:17:06]NVStorageSaveData ofd_packets/00075510 [17:17:06]File name is /storage/ofd_packets/00075510 [17:17:06]Write 447 bytes [17:17:06]NVStorageSaveData done [17:17:06]OFDSenderStorePacket done [17:17:06]KKMCreateOFDPacket done [17:17:06]NVStorageSaveData kkm_last_timestamp [17:17:06]File name is /storage/kkm_last_timestamp [17:17:06]Write 4 bytes [17:17:06]NVStorageSaveData done [17:17:06]ExternCall_PrintAddStr [17:17:06]wPrintStart [17:17:06]Write to MH i2c: 01 00 00 FF 17 16 [17:17:06]Write i2c OK [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: 01 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: 01 07 00 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: 01 07 00 FF 17 00 00 00 00 00 FF 0F 2B [17:17:06]RasterBufferAndPrint [17:17:06]line Счет N : (3)273276 [17:17:06]line ИНН: 02508201610067 [17:17:06]line Контрольно-Кассовый Чек [17:17:06]line ПРОДАЖА [17:17:06]line Товар: 2000036210013 [17:17:06]line Кофе Капучино (GABB TRADE) [17:17:06]line 1.000 * 115.00 [17:17:06]line = 115.00 [17:17:06]line НДС 12% НСП 1% [17:17:06]line > о реализуемом товаре [17:17:06]line Товар: 46227737 [17:17:06]line Р/ж mentos pure fresh арбуз ролл 15,5г [17:17:06]line 1.000 * 49.00 [17:17:06]line = 49.00 [17:17:06]line НДС 12% НСП 1% [17:17:06]line > о реализуемом товаре [17:17:06]line ИТОГО: 164.00 [17:17:06]line НСП 1% : 1.45 [17:17:06]line НДС 12% : 17.41 [17:17:06]line Наличными: 164.00 [17:17:06]line Безнал.: 0.00 [17:17:06]line Место: АЗС № 133 "Партнер Нефть" [17:17:06]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:17:06]line СНО: Общий режим [17:17:06]line Чек 243 23.10.2024 17:17 [17:17:06]line Смена: 173 ФФД: 1.0 [17:17:06]line ЗНМ: 0300000020 [17:17:06]line РНМ: 0000000000161154 [17:17:06]line Версия ККМ: v1.0 [17:17:06]line ФМ: 0000000000963323 [17:17:06]line ФД: 75510 [17:17:06]line ФПД: 147507839733691 [17:17:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171705&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75510&fm=147507839733691&tin=02508201610067®Number=0000000000161154&sum=16400 [17:17:06]line 0 [17:17:06]OFD Sender: Processing packet 75510 [packets to send 16, broken 15] [17:17:06]ProducePacketName [17:17:06]name=ofd_packets/00075510 [17:17:06]OFD Sender: To server: pG, [17:17:06]CommunicateWithHost lk.salyk.kg:30040 [17:17:06]ConnectInit lk.salyk.kg [17:17:06]written 0, free lines is 4095 [17:17:06]Connected sock=10 [17:17:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A1 01 00 00 D4 D7 99 01 24 AE 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 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 91 2F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F6 26 01 00 35 04 06 00 86 28 58 63 8F BB AE 85 C5 A0 E7 E2 5D 20 [17:17:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7E 70 47 00 C1 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 39 36 33 33 32 33 10 04 04 00 F6 26 01 00 F4 03 04 00 6C D8 18 67 B6 04 01 00 00 02 8B DF 0F 68 97 98 7D [17:17:06]CommunicateWithHost err = 0 [17:17:06]CheckOFDResponse [17:17:06]1017 (14) - 77093643461234 [17:17:06]1041 (16) - 0000000000963323 [17:17:06]1040 (4) - 75510 [17:17:06]1012 (4) - 23.10.2024 11:05 [17:17:06]1206 (1) - 0 [17:17:06]OFD Sender: Remove packet 75510 [17:17:06]ProducePacketName [17:17:06]name=ofd_packets/00075510 [17:17:06]NVStorageDeleteData [17:17:06]Write to MH i2c: 01 00 00 2D 18 45 [17:17:06]Write i2c OK [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: 01 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: 01 07 00 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: 01 07 00 2D 18 00 00 00 00 00 4D 0C A5 [17:17:06]RasterBufferAndPrint [17:17:06]line [17:17:06]line [17:17:06]line [17:17:06]line [17:17:06]line [17:17:06]written 0, free lines is 3153 [17:17:06]MH_Cut [17:17:06]Write to MH i2c: D1 01 00 34 18 01 1E [17:17:06]Write i2c OK [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: D1 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: D1 01 00 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: D1 01 00 34 18 00 1D [17:17:06]Write to MH i2c: 01 00 00 35 18 4D [17:17:06]Write i2c OK [17:17:06]MH_I2C_Read... [17:17:07]OFD Sender: No OFD packet to send [17:17:07]*** Cut start [17:17:07]*** Partial cut [17:17:07]*** CUTSNS_PIN = 1 [17:17:07]*** CUTSNS_PIN = 0 [17:17:08]*** Brake cut motor [17:17:08]Read from MH i2c: 01 [17:17:08]MH_I2C_Read... [17:17:08]*** Stop cut motor [17:17:08]*** Cut end [17:17:08]Read from MH i2c: 01 07 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: 01 07 00 35 18 00 00 00 00 00 FF 0F 62 [17:17:08]process_action close_receipt done [17:17:08]requested_data is exist [17:17:08]produce_requested_data [17:17:08]requested_item fm.sn is exist - process it [17:17:08]wFMCommunicate request_size=4 [17:17:08]MH_SAM_APDU [17:17:08]CAPDU: 80 11 00 00 [17:17:08]Write to MH i2c: E2 08 00 36 18 80 11 00 00 00 00 00 00 C8 [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:08]Read from MH i2c: E2 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 17 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 17 00 36 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 15 [17:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:17:08]wFMCommunicate OK [17:17:08]requested_item fd.num is exist - process it [17:17:08]SAM_PROTO_GetFieldsCounters [17:17:08]wFMCommunicate request_size=4 [17:17:08]MH_SAM_APDU [17:17:08]CAPDU: 80 13 00 00 [17:17:08]Write to MH i2c: E2 08 00 37 18 80 13 00 00 00 00 00 00 CB [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:08]Read from MH i2c: E2 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 62 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 62 00 37 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F6 26 01 00 0E 04 04 00 AD 00 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 82 [17:17:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F6 26 01 00 0E 04 04 00 AD 00 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 [17:17:08]wFMCommunicate OK [17:17:08]SAM_PROTO_GetFieldsCounters done [17:17:08]requested_item shift.num is exist - process it [17:17:08]requested_item shift.opened is exist - process it [17:17:08]req_shift_opened [17:17:08]FM_GetShiftState [17:17:08]SAM_PROTO_GetShiftState [17:17:08]wFMCommunicate request_size=4 [17:17:08]MH_SAM_APDU [17:17:08]CAPDU: 80 13 01 00 [17:17:08]Write to MH i2c: E2 08 00 38 18 80 13 01 00 00 00 00 00 CD [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:08]Read from MH i2c: E2 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 0E 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 0E 00 38 18 00 09 00 01 99 41 18 67 00 00 00 00 90 00 32 [17:17:08]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:17:08]wFMCommunicate OK [17:17:08]SAM_PROTO_GetShiftState done [17:17:08]FM_GetShiftState done [17:17:08]req_shift_opened done [17:17:08]requested_item shift.open_date is exist - process it [17:17:08]req_shift_open_date [17:17:08]req_shift_open_date done [17:17:08]produce_requested_data done [17:17:08]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75510,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:17:08]process_action_free close_receipt [17:17:08]json_value_free [17:17:08]json_value_free done [17:17:08]process_json_proto returns [17:17:08]Send response to host [17:17:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75510,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:17:08]free response buf [17:17:08]execute_script done [17:17:08]execute_script returns [17:17:08]free content buf [17:17:08]Sock 8.Close socket [17:17:08]Sock 8.Thread stoped [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:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:17:59]accept exits with 9 [17:17:59]New connection [17:17:59]New thread 3066608996 created [17:17:59]Thread 3066465636 joined [17:17:59]Waiting for new connection... [17:17:59] Sock 9.Parse request [17:17:59]Sock 9.Check first char [17:17:59]Sock 9.First char is OK [17:17:59]request: POST /json_proto HTTP/1.0 [17:17:59]Method: POST [17:17:59]URL: /json_proto [17:17:59]Method is POST - this is cgi request [17:17:59]url: /json_proto [17:17:59]query_string will be loaded in cgi processing [17:17:59]execute_cgi json_proto POST (null) [17:17:59]execute_cgi path=json_proto method=POST [17:17:59]POST find Content-Length [17:17:59]Host: 172.17.44.196:8080 [17:17:59]Content-Length: 570 [17:17:59]Content-Type: application/json [17:17:59] [17:17:59]POST finish read [17:17:59]Found Content-Length = 570 [17:17:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273277", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:59]execute_script... [17:17: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)273277", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:59]POST & json_proto [17:17:59]process_json_proto [17:17:59]json parsed OK: [17:17:59]protocol is kg_v1.0 [17:17:59]action value=close_receipt [17:17:59]process_action close_receipt [17:17:59]cmd_close_receipt [17:17:59]MH_GetDate [17:17:59]Write to MH i2c: F0 00 00 39 18 40 [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: F0 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: F0 09 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: F0 09 00 39 18 00 C9 2F 19 67 E7 19 F8 65 1E [17:17:59]GetLastDocTimeStamp 1729703825 [17:17:59]current date 1729703881 [17:17:59]FM_GetShiftState [17:17:59]SAM_PROTO_GetShiftState [17:17:59]wFMCommunicate request_size=4 [17:17:59]MH_SAM_APDU [17:17:59]CAPDU: 80 13 01 00 [17:17:59]Write to MH i2c: E2 08 00 3A 18 80 13 01 00 00 00 00 00 CF [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:59]Read from MH i2c: E2 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 0E 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 0E 00 3A 18 00 09 00 01 99 41 18 67 00 00 00 00 90 00 34 [17:17:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:17:59]wFMCommunicate OK [17:17:59]SAM_PROTO_GetShiftState done [17:17:59]FM_GetShiftState done [17:17:59]opened in 1729642905 [17:17:59]opened+sec_in_day 1729729305 [17:17:59]quantity*price = 13000 [17:17:59]sum+1 = 13001 [17:17:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 244 23.10.2024 17:18 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75511 ФПД: 215231060330111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171801&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75511&fm=215231060330111&tin=02508201610067®Number=0000000000161154&sum=13000 0 [17:18:00]StoreToDocumentArchive [17:18:00]shift 173 fd 75511 [17:18:00]save to /storage/0173/doc_00075511 [17:18:00]save last doc name /storage/0173/doc_00075511 to /storage/kkm_last_doc_name [17:18:00]save OK [17:18:00]Clear old archive folders... [17:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=254 [17:18:00]tlvbuf is 00783590 [17:18:00]SAM_PROTO_ClearQueue [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 09 00 00 [17:18:00]Write to MH i2c: E2 08 00 47 18 80 09 00 00 00 00 00 00 D1 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 47 18 00 90 00 D3 [17:18:00]RAPDU: 90 00 [17:18:00]wFMCommunicate OK [17:18:00]SAM_PROTO_ClearQueue done [17:18:00]KKMCreateOFDPacket [17:18:00]OFDProtocolAddRootSTLVToBuf [17:18:00]FM_MakeSignedData [17:18:00]FM_MakeSignedData [17:18:00]SAM_PROTO_SignData [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 0D 01 02 [17:18:00]Write to MH i2c: E2 08 00 48 18 80 0D 01 02 00 00 00 00 D9 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 48 18 00 90 00 D4 [17:18:00]RAPDU: 90 00 [17:18:00]wFMCommunicate OK [17:18:00]wFMCommunicate request_size=255 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 0D 02 02 FA 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 C9 2F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 26 01 00 35 04 [17:18:00]Write to MH i2c: E2 02 01 49 18 80 0D 02 02 FA 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 C9 2F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 26 01 00 35 04 00 00 07 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:01]Read from MH i2c: E2 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 03 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 03 00 49 18 00 90 00 D5 [17:18:01]RAPDU: 90 00 [17:18:01]wFMCommunicate OK [17:18:01]wFMCommunicate request_size=13 [17:18:01]MH_SAM_APDU [17:18:01]CAPDU: 80 0D 02 02 08 06 00 C3 C0 62 E5 46 7F [17:18:01]Write to MH i2c: E2 10 00 4A 18 80 0D 02 02 08 00 06 00 C3 C0 62 E5 46 7F 00 00 81 [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:01]Read from MH i2c: E2 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 03 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 03 00 4A 18 00 90 00 D6 [17:18:01]RAPDU: 90 00 [17:18:01]wFMCommunicate OK [17:18:01]wFMCommunicate request_size=4 [17:18:01]MH_SAM_APDU [17:18:01]CAPDU: 80 0D 03 02 [17:18:01]Write to MH i2c: E2 08 00 4B 18 80 0D 03 02 00 00 00 00 DE [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:01]Read from MH i2c: E2 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 0B 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 0B 00 4B 18 00 2D 3F 3F E0 E0 39 A9 D2 90 00 FE [17:18:01]RAPDU: 2D 3F 3F E0 E0 39 A9 D2 90 00 [17:18:01]wFMCommunicate OK [17:18:01]SAM_PROTO_SignData done [17:18:01]FM_MakeSignedData done [17:18:01]CreateOFDProtocolMessage [17:18:01]wFMCommunicate request_size=4 [17:18:01]MH_SAM_APDU [17:18:01]CAPDU: 80 11 00 00 [17:18:01]Write to MH i2c: E2 08 00 4C 18 80 11 00 00 00 00 00 00 DE [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:01]Read from MH i2c: E2 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 17 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: E2 17 00 4C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2B [17:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:18:01]wFMCommunicate OK [17:18:01]CreateOFDProtocolMessage done [17:18:01]OFDSenderStorePacket 75511 [17:18:01]StoreOFDPacket docnum=75511 [17:18:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 12 01 00 00 BF B8 0A 01 23 32 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 C9 2F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 26 01 00 35 04 06 00 C3 C0 62 E5 46 7F 2D 3F 3F E0 E0 39 A9 D2 [17:18:01]CheckFolder [17:18:01]dirname=/storage/ofd_packets [17:18:01]CheckFolder done [17:18:01]ProducePacketName [17:18:01]name=ofd_packets/00075511 [17:18:01]NVStorageSaveData ofd_packets/00075511 [17:18:01]File name is /storage/ofd_packets/00075511 [17:18:01]Write 304 bytes [17:18:01]NVStorageSaveData done [17:18:01]OFDSenderStorePacket done [17:18:01]KKMCreateOFDPacket done [17:18:01]NVStorageSaveData kkm_last_timestamp [17:18:01]File name is /storage/kkm_last_timestamp [17:18:01]Write 4 bytes [17:18:01]NVStorageSaveData done [17:18:01]ExternCall_PrintAddStr [17:18:01]wPrintStart [17:18:01]Write to MH i2c: 01 00 00 4D 18 65 [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: 01 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: 01 07 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: 01 07 00 4D 18 00 00 00 00 00 FF 0F 7A [17:18:01]RasterBufferAndPrint [17:18:01]line Счет N : (3)273277 [17:18:01]line ИНН: 02508201610067 [17:18:01]line Контрольно-Кассовый Чек [17:18:01]line ПРОДАЖА [17:18:01]line Товар: 48744546 [17:18:01]line LD Compact Silver [17:18:01]line 1.000 * 130.00 [17:18:01]line = 130.00 [17:18:01]line НДС 12% НСП 1% [17:18:01]line > о реализуемом товаре [17:18:01]line ИТОГО: 130.00 [17:18:01]line НСП 1% : 1.15 [17:18:01]line НДС 12% : 13.80 [17:18:01]line Наличными: 130.00 [17:18:01]line Безнал.: 0.00 [17:18:01]line Место: АЗС № 133 "Партнер Нефть" [17:18:01]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:18:01]line СНО: Общий режим [17:18:01]line Чек 244 23.10.2024 17:18 [17:18:01]line Смена: 173 ФФД: 1.0 [17:18:01]line ЗНМ: 0300000020 [17:18:01]line РНМ: 0000000000161154 [17:18:01]line Версия ККМ: v1.0 [17:18:01]line ФМ: 0000000000963323 [17:18:01]line ФД: 75511 [17:18:01]line ФПД: 215231060330111 [17:18:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T171801&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75511&fm=215231060330111&tin=02508201610067®Number=0000000000161154&sum=13000 [17:18:01]line 0 [17:18:01]OFD Sender: Processing packet 75511 [packets to send 16, broken 15] [17:18:01]ProducePacketName [17:18:01]name=ofd_packets/00075511 [17:18:01]OFD Sender: To server: pG, [17:18:01]CommunicateWithHost lk.salyk.kg:30040 [17:18:01]ConnectInit lk.salyk.kg [17:18:01]written 0, free lines is 4095 [17:18:01]Connected sock=10 [17:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 12 01 00 00 BF B8 0A 01 23 32 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 C9 2F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F7 26 01 00 35 04 06 00 C3 C0 62 E5 46 7F 2D 3F 3F E0 E0 39 A9 D2 [17:18:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7E EA 47 00 70 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 39 36 33 33 32 33 10 04 04 00 F7 26 01 00 F4 03 04 00 A3 D8 18 67 B6 04 01 00 00 DE 85 5F D3 15 9E F0 B4 [17:18:02]CommunicateWithHost err = 0 [17:18:02]CheckOFDResponse [17:18:02]1017 (14) - 77093643461234 [17:18:02]1041 (16) - 0000000000963323 [17:18:02]1040 (4) - 75511 [17:18:02]1012 (4) - 23.10.2024 11:06 [17:18:02]1206 (1) - 0 [17:18:02]OFD Sender: Remove packet 75511 [17:18:02]ProducePacketName [17:18:02]name=ofd_packets/00075511 [17:18:02]NVStorageDeleteData [17:18:02]Write to MH i2c: 01 00 00 74 18 8C [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 07 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 07 00 74 18 00 00 00 00 00 D0 0C 6F [17:18:02]RasterBufferAndPrint [17:18:02]line [17:18:02]line [17:18:02]line [17:18:02]line [17:18:02]line [17:18:02]written 0, free lines is 3284 [17:18:02]MH_Cut [17:18:02]Write to MH i2c: D1 01 00 7B 18 01 65 [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: D1 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: D1 01 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: D1 01 00 7B 18 00 64 [17:18:02]Write to MH i2c: 01 00 00 7C 18 94 [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]OFD Sender: No OFD packet to send [17:18:03]*** Cut start [17:18:03]*** Partial cut [17:18:03]*** CUTSNS_PIN = 1 [17:18:03]*** CUTSNS_PIN = 0 [17:18:03]*** Brake cut motor [17:18:03]Read from MH i2c: 01 [17:18:03]MH_I2C_Read... [17:18:03]*** Stop cut motor [17:18:03]*** Cut end [17:18:03]Read from MH i2c: 01 07 00 [17:18:03]MH_I2C_Read... [17:18:03]Read from MH i2c: 01 07 00 7C 18 00 00 00 00 00 FF 0F A9 [17:18:03]process_action close_receipt done [17:18:03]requested_data is exist [17:18:03]produce_requested_data [17:18:03]requested_item fm.sn is exist - process it [17:18:03]wFMCommunicate request_size=4 [17:18:03]MH_SAM_APDU [17:18:03]CAPDU: 80 11 00 00 [17:18:03]Write to MH i2c: E2 08 00 7D 18 80 11 00 00 00 00 00 00 0F [17:18:03]Write i2c OK [17:18:03]MH_I2C_Read... [17:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:03]Read from MH i2c: E2 [17:18:03]MH_I2C_Read... [17:18:03]Read from MH i2c: E2 17 00 [17:18:03]MH_I2C_Read... [17:18:03]Read from MH i2c: E2 17 00 7D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5C [17:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:18:03]wFMCommunicate OK [17:18:03]requested_item fd.num is exist - process it [17:18:03]SAM_PROTO_GetFieldsCounters [17:18:03]wFMCommunicate request_size=4 [17:18:03]MH_SAM_APDU [17:18:03]CAPDU: 80 13 00 00 [17:18:03]Write to MH i2c: E2 08 00 7E 18 80 13 00 00 00 00 00 00 12 [17:18:03]Write i2c OK [17:18:03]MH_I2C_Read... [17:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:03]Read from MH i2c: E2 [17:18:03]MH_I2C_Read... [17:18:03]Read from MH i2c: E2 62 00 [17:18:03]MH_I2C_Read... [17:18:03]Read from MH i2c: E2 62 00 7E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F7 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [17:18:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F7 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:03]wFMCommunicate OK [17:18:03]SAM_PROTO_GetFieldsCounters done [17:18:03]requested_item shift.num is exist - process it [17:18:03]requested_item shift.opened is exist - process it [17:18:03]req_shift_opened [17:18:03]FM_GetShiftState [17:18:03]SAM_PROTO_GetShiftState [17:18:03]wFMCommunicate request_size=4 [17:18:03]MH_SAM_APDU [17:18:03]CAPDU: 80 13 01 00 [17:18:03]Write to MH i2c: E2 08 00 7F 18 80 13 01 00 00 00 00 00 14 [17:18:03]Write i2c OK [17:18:03]MH_I2C_Read... [17:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:03]Read from MH i2c: E2 [17:18:03]MH_I2C_Read... [17:18:03]Read from MH i2c: E2 0E 00 [17:18:03]MH_I2C_Read... [17:18:03]Read from MH i2c: E2 0E 00 7F 18 00 09 00 01 99 41 18 67 00 00 00 00 90 00 79 [17:18:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:18:03]wFMCommunicate OK [17:18:03]SAM_PROTO_GetShiftState done [17:18:03]FM_GetShiftState done [17:18:03]req_shift_opened done [17:18:03]requested_item shift.open_date is exist - process it [17:18:03]req_shift_open_date [17:18:03]req_shift_open_date done [17:18:03]produce_requested_data done [17:18:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75511,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:18:03]process_action_free close_receipt [17:18:03]json_value_free [17:18:03]json_value_free done [17:18:03]process_json_proto returns [17:18:03]Send response to host [17:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75511,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:18:03]free response buf [17:18:03]execute_script done [17:18:03]execute_script returns [17:18:03]free content buf [17:18:03]Sock 9.Close socket [17:18:03]Sock 9.Thread stoped [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:41]accept exits with 8 [17:25:41]New connection [17:25:41]New thread 3066465636 created [17:25:41]Thread 3066608996 joined [17:25:41]Waiting for new connection... [17:25:41] Sock 8.Parse request [17:25:41]Sock 8.Check first char [17:25:41]Sock 8.First char is OK [17:25:41]request: POST /json_proto HTTP/1.0 [17:25:41]Method: POST [17:25:41]URL: /json_proto [17:25:41]Method is POST - this is cgi request [17:25:41]url: /json_proto [17:25:41]query_string will be loaded in cgi processing [17:25:41]execute_cgi json_proto POST (null) [17:25:41]execute_cgi path=json_proto method=POST [17:25:41]POST find Content-Length [17:25:41]Host: 172.17.44.196:8080 [17:25:41]Content-Length: 1399 [17:25:41]Content-Type: application/json [17:25:41] [17:25:41]POST finish read [17:25:41]Found Content-Length = 1399 [17:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273278", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.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: Mbank", "payments": [ { "type": 1, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:41]execute_script... [17:25:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273278", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.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: Mbank", "payments": [ { "type": 1, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:41]POST & json_proto [17:25:41]process_json_proto [17:25:41]json parsed OK: [17:25:41]protocol is kg_v1.0 [17:25:41]action value=close_receipt [17:25:41]process_action close_receipt [17:25:41]cmd_close_receipt [17:25:41]MH_GetDate [17:25:41]Write to MH i2c: F0 00 00 80 18 87 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: F0 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: F0 09 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: F0 09 00 80 18 00 96 31 19 67 E7 19 F8 65 34 [17:25:41]GetLastDocTimeStamp 1729703881 [17:25:41]current date 1729704342 [17:25:41]FM_GetShiftState [17:25:41]SAM_PROTO_GetShiftState [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 13 01 00 [17:25:41]Write to MH i2c: E2 08 00 81 18 80 13 01 00 00 00 00 00 16 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 0E 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 0E 00 81 18 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7B [17:25:41]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:25:41]wFMCommunicate OK [17:25:41]SAM_PROTO_GetShiftState done [17:25:41]FM_GetShiftState done [17:25:41]opened in 1729642905 [17:25:41]opened+sec_in_day 1729729305 [17:25:41]quantity*price = 6000 [17:25:41]sum+1 = 6001 [17:25:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032800010 Сочник DC творог 75 г 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003730039 Снек Возд пшеница Бадырак сладкая 30гр 1.000 * 20.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 0.00 Безнал.: 110.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 245 23.10.2024 17:25 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75512 ФПД: 140703013945367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172543&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75512&fm=140703013945367&tin=02508201610067®Number=0000000000161154&sum=11000 0 [17:25:42]StoreToDocumentArchive [17:25:42]shift 173 fd 75512 [17:25:42]save to /storage/0173/doc_00075512 [17:25:42]save last doc name /storage/0173/doc_00075512 to /storage/kkm_last_doc_name [17:25:42]save OK [17:25:42]Clear old archive folders... [17:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=526 [17:25:42]tlvbuf is 00810120 [17:25:42]SAM_PROTO_ClearQueue [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 09 00 00 [17:25:42]Write to MH i2c: E2 08 00 8E 18 80 09 00 00 00 00 00 00 18 [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 03 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 03 00 8E 18 00 90 00 1A [17:25:42]RAPDU: 90 00 [17:25:42]wFMCommunicate OK [17:25:42]SAM_PROTO_ClearQueue done [17:25:42]KKMCreateOFDPacket [17:25:42]OFDProtocolAddRootSTLVToBuf [17:25:42]FM_MakeSignedData [17:25:42]FM_MakeSignedData [17:25:42]SAM_PROTO_SignData [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 0D 01 02 [17:25:42]Write to MH i2c: E2 08 00 8F 18 80 0D 01 02 00 00 00 00 20 [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 03 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 03 00 8F 18 00 90 00 1B [17:25:42]RAPDU: 90 00 [17:25:42]wFMCommunicate OK [17:25:42]wFMCommunicate request_size=255 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 0D 02 02 FA 03 00 0E 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 [17:25:42]Write to MH i2c: E2 02 01 90 18 80 0D 02 02 FA 00 03 00 0E 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 00 00 35 [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]OFD Sender: No OFD packet to send [17:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 03 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 03 00 90 18 00 90 00 1C [17:25:43]RAPDU: 90 00 [17:25:43]wFMCommunicate OK [17:25:43]wFMCommunicate request_size=255 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 0D 02 02 FA A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 97 31 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 [17:25:43]Write to MH i2c: E2 02 01 91 18 80 0D 02 02 FA 00 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 97 31 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 00 00 46 [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 03 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 03 00 91 18 00 90 00 1D [17:25:43]RAPDU: 90 00 [17:25:43]wFMCommunicate OK [17:25:43]wFMCommunicate request_size=35 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 26 01 00 35 04 06 00 7F F7 F9 2A 40 17 [17:25:43]Write to MH i2c: E2 26 00 92 18 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 26 01 00 35 04 06 00 7F F7 F9 2A 40 17 00 00 20 [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 03 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 03 00 92 18 00 90 00 1E [17:25:43]RAPDU: 90 00 [17:25:43]wFMCommunicate OK [17:25:43]wFMCommunicate request_size=4 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 0D 03 02 [17:25:43]Write to MH i2c: E2 08 00 93 18 80 0D 03 02 00 00 00 00 26 [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 0B 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 0B 00 93 18 00 7F 57 EB A3 30 DD 79 6F 90 00 80 [17:25:43]RAPDU: 7F 57 EB A3 30 DD 79 6F 90 00 [17:25:43]wFMCommunicate OK [17:25:43]SAM_PROTO_SignData done [17:25:43]FM_MakeSignedData done [17:25:43]CreateOFDProtocolMessage [17:25:43]wFMCommunicate request_size=4 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 11 00 00 [17:25:43]Write to MH i2c: E2 08 00 94 18 80 11 00 00 00 00 00 00 26 [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 17 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 17 00 94 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 73 [17:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:25:43]wFMCommunicate OK [17:25:43]CreateOFDProtocolMessage done [17:25:43]OFDSenderStorePacket 75512 [17:25:43]StoreOFDPacket docnum=75512 [17:25:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 02 00 00 DB EF 1A 02 D5 D7 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 97 31 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 26 01 00 35 04 06 00 7F F7 F9 2A 40 17 7F 57 EB A3 30 DD 79 6F [17:25:43]CheckFolder [17:25:43]dirname=/storage/ofd_packets [17:25:43]CheckFolder done [17:25:43]ProducePacketName [17:25:43]name=ofd_packets/00075512 [17:25:43]NVStorageSaveData ofd_packets/00075512 [17:25:43]File name is /storage/ofd_packets/00075512 [17:25:43]Write 576 bytes [17:25:43]NVStorageSaveData done [17:25:43]OFDSenderStorePacket done [17:25:43]KKMCreateOFDPacket done [17:25:43]NVStorageSaveData kkm_last_timestamp [17:25:43]File name is /storage/kkm_last_timestamp [17:25:43]Write 4 bytes [17:25:43]NVStorageSaveData done [17:25:43]ExternCall_PrintAddStr [17:25:43]wPrintStart [17:25:43]Write to MH i2c: 01 00 00 95 18 AD [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: 01 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: 01 07 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: 01 07 00 95 18 00 00 00 00 00 FF 0F C2 [17:25:43]RasterBufferAndPrint [17:25:43]line Счет N : (3)273278 [17:25:43]line ИНН: 02508201610067 [17:25:43]line Контрольно-Кассовый Чек [17:25:43]line ПРОДАЖА [17:25:43]line Товар: 2000032780025 [17:25:43]line Сосиска в тесте DC 110г [17:25:43]line 1.000 * 60.00 [17:25:43]line = 60.00 [17:25:43]line НДС 12% НСП 1% [17:25:43]line > о реализуемом товаре [17:25:43]line Товар: 2000032800010 [17:25:43]line Сочник DC творог 75 г [17:25:43]line 1.000 * 30.00 [17:25:43]line = 30.00 [17:25:43]line НДС 12% НСП 1% [17:25:43]line > о реализуемом товаре [17:25:43]line Товар: 4700003730039 [17:25:43]line Снек Возд пшеница Бадырак сладкая 30гр [17:25:43]line 1.000 * 20.00 [17:25:43]line = 20.00 [17:25:43]line НДС 12% НСП 1% [17:25:43]line > о реализуемом товаре [17:25:43]line ИТОГО: 110.00 [17:25:43]line НСП 1% : 0.97 [17:25:43]line НДС 12% : 11.68 [17:25:43]line Наличными: 0.00 [17:25:43]line Безнал.: 110.00 [17:25:43]line Место: АЗС № 133 "Партнер Нефть" [17:25:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:25:43]line СНО: Общий режим [17:25:43]line Чек 245 23.10.2024 17:25 [17:25:43]line Смена: 173 ФФД: 1.0 [17:25:43]line ЗНМ: 0300000020 [17:25:43]line РНМ: 0000000000161154 [17:25:43]line Версия ККМ: v1.0 [17:25:43]line Платежная система: Mbank [17:25:43]line ФМ: 0000000000963323 [17:25:43]line ФД: 75512 [17:25:43]line ФПД: 140703013945367 [17:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172543&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75512&fm=140703013945367&tin=02508201610067®Number=0000000000161154&sum=11000 [17:25:43]line 0 [17:25:43]OFD Sender: Processing packet 75512 [packets to send 16, broken 15] [17:25:43]ProducePacketName [17:25:43]name=ofd_packets/00075512 [17:25:43]OFD Sender: To server: pG, [17:25:43]CommunicateWithHost lk.salyk.kg:30040 [17:25:43]ConnectInit lk.salyk.kg [17:25:43]written 0, free lines is 4095 [17:25:43]Connected sock=10 [17:25:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 02 00 00 DB EF 1A 02 D5 D7 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 97 31 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 26 01 00 35 04 06 00 7F F7 F9 2A 40 17 7F 57 EB A3 30 DD 79 6F [17:25:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A7 87 47 00 11 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F8 26 01 00 F4 03 04 00 71 DA 18 67 B6 04 01 00 00 CA F9 27 7F 88 D5 91 E3 [17:25:44]CommunicateWithHost err = 0 [17:25:44]CheckOFDResponse [17:25:44]1017 (14) - 77093643461234 [17:25:44]1041 (16) - 0000000000963323 [17:25:44]1040 (4) - 75512 [17:25:44]1012 (4) - 23.10.2024 11:13 [17:25:44]1206 (1) - 0 [17:25:44]OFD Sender: Remove packet 75512 [17:25:44]ProducePacketName [17:25:44]name=ofd_packets/00075512 [17:25:44]NVStorageDeleteData [17:25:44]Write to MH i2c: 01 00 00 CA 18 E2 [17:25:44]Write i2c OK [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: 01 [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: 01 07 00 [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: 01 07 00 CA 18 00 00 00 00 00 E4 0B D8 [17:25:44]RasterBufferAndPrint [17:25:44]line [17:25:44]line [17:25:44]line [17:25:44]line [17:25:44]line [17:25:44]written 0, free lines is 3049 [17:25:44]MH_Cut [17:25:44]Write to MH i2c: D1 01 00 D1 18 01 BB [17:25:44]Write i2c OK [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: D1 [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: D1 01 00 [17:25:44]MH_I2C_Read... [17:25:44]Read from MH i2c: D1 01 00 D1 18 00 BA [17:25:44]Write to MH i2c: 01 00 00 D2 18 EA [17:25:44]Write i2c OK [17:25:44]MH_I2C_Read... [17:25:44]OFD Sender: No OFD packet to send [17:25:45]*** Cut start [17:25:45]*** Partial cut [17:25:45]*** CUTSNS_PIN = 1 [17:25:45]*** CUTSNS_PIN = 0 [17:25:45]*** Brake cut motor [17:25:46]Read from MH i2c: 01 [17:25:46]MH_I2C_Read... [17:25:46]*** Stop cut motor [17:25:46]*** Cut end [17:25:46]Read from MH i2c: 01 07 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: 01 07 00 D2 18 00 00 00 00 00 FF 0F FF [17:25:46]process_action close_receipt done [17:25:46]requested_data is exist [17:25:46]produce_requested_data [17:25:46]requested_item fm.sn is exist - process it [17:25:46]wFMCommunicate request_size=4 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 11 00 00 [17:25:46]Write to MH i2c: E2 08 00 D3 18 80 11 00 00 00 00 00 00 65 [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 17 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 17 00 D3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B2 [17:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:25:46]wFMCommunicate OK [17:25:46]requested_item fd.num is exist - process it [17:25:46]SAM_PROTO_GetFieldsCounters [17:25:46]wFMCommunicate request_size=4 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 13 00 00 [17:25:46]Write to MH i2c: E2 08 00 D4 18 80 13 00 00 00 00 00 00 68 [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 62 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 62 00 D4 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F8 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [17:25:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F8 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:46]wFMCommunicate OK [17:25:46]SAM_PROTO_GetFieldsCounters done [17:25:46]requested_item shift.num is exist - process it [17:25:46]requested_item shift.opened is exist - process it [17:25:46]req_shift_opened [17:25:46]FM_GetShiftState [17:25:46]SAM_PROTO_GetShiftState [17:25:46]wFMCommunicate request_size=4 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 13 01 00 [17:25:46]Write to MH i2c: E2 08 00 D5 18 80 13 01 00 00 00 00 00 6A [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 0E 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 0E 00 D5 18 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CF [17:25:46]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:25:46]wFMCommunicate OK [17:25:46]SAM_PROTO_GetShiftState done [17:25:46]FM_GetShiftState done [17:25:46]req_shift_opened done [17:25:46]requested_item shift.open_date is exist - process it [17:25:46]req_shift_open_date [17:25:46]req_shift_open_date done [17:25:46]produce_requested_data done [17:25:46]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75512,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:25:46]process_action_free close_receipt [17:25:46]json_value_free [17:25:46]json_value_free done [17:25:46]process_json_proto returns [17:25:46]Send response to host [17:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75512,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:25:46]free response buf [17:25:46]execute_script done [17:25:46]execute_script returns [17:25:46]free content buf [17:25:46]Sock 8.Close socket [17:25:46]Sock 8.Thread stoped [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:30]accept exits with 9 [17:27:30]New connection [17:27:30]New thread 3066608996 created [17:27:30]Thread 3066465636 joined [17:27:30]Waiting for new connection... [17:27:30] Sock 9.Parse request [17:27:30]Sock 9.Check first char [17:27:30]Sock 9.First char is OK [17:27:30]request: POST /json_proto HTTP/1.0 [17:27:30]Method: POST [17:27:30]URL: /json_proto [17:27:30]Method is POST - this is cgi request [17:27:30]url: /json_proto [17:27:30]query_string will be loaded in cgi processing [17:27:30]execute_cgi json_proto POST (null) [17:27:30]execute_cgi path=json_proto method=POST [17:27:30]POST find Content-Length [17:27:30]Host: 172.17.44.196:8080 [17:27:30]Content-Length: 628 [17:27:30]Content-Type: application/json [17:27:30] [17:27:30]POST finish read [17:27:30]Found Content-Length = 628 [17:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273279", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:30]execute_script... [17:27:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273279", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:30]POST & json_proto [17:27:30]process_json_proto [17:27:30]json parsed OK: [17:27:30]protocol is kg_v1.0 [17:27:30]action value=close_receipt [17:27:30]process_action close_receipt [17:27:30]cmd_close_receipt [17:27:30]MH_GetDate [17:27:30]Write to MH i2c: F0 00 00 D6 18 DD [17:27:30]Write i2c OK [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: F0 [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: F0 09 00 [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: F0 09 00 D6 18 00 04 32 19 67 E7 19 F8 65 F9 [17:27:30]GetLastDocTimeStamp 1729704343 [17:27:30]current date 1729704452 [17:27:30]FM_GetShiftState [17:27:30]SAM_PROTO_GetShiftState [17:27:30]wFMCommunicate request_size=4 [17:27:30]MH_SAM_APDU [17:27:30]CAPDU: 80 13 01 00 [17:27:30]Write to MH i2c: E2 08 00 D7 18 80 13 01 00 00 00 00 00 6C [17:27:30]Write i2c OK [17:27:30]MH_I2C_Read... [17:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:30]Read from MH i2c: E2 [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: E2 0E 00 [17:27:30]MH_I2C_Read... [17:27:30]Read from MH i2c: E2 0E 00 D7 18 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D1 [17:27:30]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:27:30]wFMCommunicate OK [17:27:30]SAM_PROTO_GetShiftState done [17:27:30]FM_GetShiftState done [17:27:30]opened in 1729642905 [17:27:30]opened+sec_in_day 1729729305 [17:27:30]quantity*price = 13000 [17:27:30]sum+1 = 13001 [17:27:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 246 23.10.2024 17:27 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75513 ФПД: 72225099249785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172732&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75513&fm=72225099249785&tin=02508201610067®Number=0000000000161154&sum=13000 0 [17:27:31]StoreToDocumentArchive [17:27:31]shift 173 fd 75513 [17:27:31]save to /storage/0173/doc_00075513 [17:27:31]save last doc name /storage/0173/doc_00075513 to /storage/kkm_last_doc_name [17:27:31]save OK [17:27:31]Clear old archive folders... [17:27:31]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:27:31]tlvbuf is B6E6DE20 [17:27:31]SAM_PROTO_ClearQueue [17:27:31]wFMCommunicate request_size=4 [17:27:31]MH_SAM_APDU [17:27:31]CAPDU: 80 09 00 00 [17:27:31]Write to MH i2c: E2 08 00 E4 18 80 09 00 00 00 00 00 00 6E [17:27:31]Write i2c OK [17:27:31]MH_I2C_Read... [17:27:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 E4 18 00 90 00 70 [17:27:32]RAPDU: 90 00 [17:27:32]wFMCommunicate OK [17:27:32]SAM_PROTO_ClearQueue done [17:27:32]KKMCreateOFDPacket [17:27:32]OFDProtocolAddRootSTLVToBuf [17:27:32]FM_MakeSignedData [17:27:32]FM_MakeSignedData [17:27:32]SAM_PROTO_SignData [17:27:32]wFMCommunicate request_size=4 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 0D 01 02 [17:27:32]Write to MH i2c: E2 08 00 E5 18 80 0D 01 02 00 00 00 00 76 [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 E5 18 00 90 00 71 [17:27:32]RAPDU: 90 00 [17:27:32]wFMCommunicate OK [17:27:32]wFMCommunicate request_size=255 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 04 32 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 [17:27:32]Write to MH i2c: E2 02 01 E6 18 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 04 32 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 00 00 E3 [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 E6 18 00 90 00 72 [17:27:32]RAPDU: 90 00 [17:27:32]wFMCommunicate OK [17:27:32]wFMCommunicate request_size=35 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 26 01 00 35 04 06 00 41 B0 37 62 78 79 [17:27:32]Write to MH i2c: E2 26 00 E7 18 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 26 01 00 35 04 06 00 41 B0 37 62 78 79 00 00 01 [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 E7 18 00 90 00 73 [17:27:32]RAPDU: 90 00 [17:27:32]wFMCommunicate OK [17:27:32]wFMCommunicate request_size=4 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 0D 03 02 [17:27:32]Write to MH i2c: E2 08 00 E8 18 80 0D 03 02 00 00 00 00 7B [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 0B 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 0B 00 E8 18 00 19 3B F6 07 BA CC FB 97 90 00 E5 [17:27:32]RAPDU: 19 3B F6 07 BA CC FB 97 90 00 [17:27:32]wFMCommunicate OK [17:27:32]SAM_PROTO_SignData done [17:27:32]FM_MakeSignedData done [17:27:32]CreateOFDProtocolMessage [17:27:32]wFMCommunicate request_size=4 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 11 00 00 [17:27:32]Write to MH i2c: E2 08 00 E9 18 80 11 00 00 00 00 00 00 7B [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 17 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 17 00 E9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C8 [17:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:27:32]wFMCommunicate OK [17:27:32]CreateOFDProtocolMessage done [17:27:32]OFDSenderStorePacket 75513 [17:27:32]StoreOFDPacket docnum=75513 [17:27:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 11 4F 20 01 9D FA 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 04 32 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 26 01 00 35 04 06 00 41 B0 37 62 78 79 19 3B F6 07 BA CC FB 97 [17:27:32]CheckFolder [17:27:32]dirname=/storage/ofd_packets [17:27:32]CheckFolder done [17:27:32]ProducePacketName [17:27:32]name=ofd_packets/00075513 [17:27:32]NVStorageSaveData ofd_packets/00075513 [17:27:32]File name is /storage/ofd_packets/00075513 [17:27:32]Write 326 bytes [17:27:32]NVStorageSaveData done [17:27:32]OFDSenderStorePacket done [17:27:32]KKMCreateOFDPacket done [17:27:32]NVStorageSaveData kkm_last_timestamp [17:27:32]File name is /storage/kkm_last_timestamp [17:27:32]Write 4 bytes [17:27:32]NVStorageSaveData done [17:27:32]ExternCall_PrintAddStr [17:27:32]wPrintStart [17:27:32]Write to MH i2c: 01 00 00 EA 18 02 [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: 01 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: 01 07 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: 01 07 00 EA 18 00 00 00 00 00 FF 0F 17 [17:27:32]RasterBufferAndPrint [17:27:32]line Счет N : (3)273279 [17:27:32]line ИНН: 02508201610067 [17:27:32]line Контрольно-Кассовый Чек [17:27:32]line ПРОДАЖА [17:27:32]line Товар: 2000036230011 [17:27:32]line Кофе Латте XL(GABB TRADE) [17:27:32]line 1.000 * 130.00 [17:27:32]line = 130.00 [17:27:32]line НДС 12% НСП 1% [17:27:32]line > о реализуемом товаре [17:27:32]line ИТОГО: 130.00 [17:27:32]line НСП 1% : 1.15 [17:27:32]line НДС 12% : 13.80 [17:27:32]line Наличными: 130.00 [17:27:32]line Безнал.: 0.00 [17:27:32]line Место: АЗС № 133 "Партнер Нефть" [17:27:32]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:27:32]line СНО: Общий режим [17:27:32]line Чек 246 23.10.2024 17:27 [17:27:32]line Смена: 173 ФФД: 1.0 [17:27:32]line ЗНМ: 0300000020 [17:27:32]line РНМ: 0000000000161154 [17:27:32]line Версия ККМ: v1.0 [17:27:32]line ФМ: 0000000000963323 [17:27:32]line ФД: 75513 [17:27:32]line ФПД: 72225099249785 [17:27:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T172732&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75513&fm=72225099249785&tin=02508201610067®Number=0000000000161154&sum=13000 [17:27:32]line 0 [17:27:32]OFD Sender: Processing packet 75513 [packets to send 16, broken 15] [17:27:32]ProducePacketName [17:27:32]name=ofd_packets/00075513 [17:27:32]OFD Sender: To server: pG, [17:27:32]CommunicateWithHost lk.salyk.kg:30040 [17:27:32]ConnectInit lk.salyk.kg [17:27:32]written 0, free lines is 4095 [17:27:32]Connected sock=10 [17:27:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 28 01 00 00 11 4F 20 01 9D FA 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 04 32 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 26 01 00 35 04 06 00 41 B0 37 62 78 79 19 3B F6 07 BA CC FB 97 [17:27:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F7 66 47 00 59 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 F9 26 01 00 F4 03 04 00 DE DA 18 67 B6 04 01 00 00 54 45 D3 87 32 8B A2 4F [17:27:33]CommunicateWithHost err = 0 [17:27:33]CheckOFDResponse [17:27:33]1017 (14) - 77093643461234 [17:27:33]1041 (16) - 0000000000963323 [17:27:33]1040 (4) - 75513 [17:27:33]1012 (4) - 23.10.2024 11:15 [17:27:33]1206 (1) - 0 [17:27:33]OFD Sender: Remove packet 75513 [17:27:33]ProducePacketName [17:27:33]name=ofd_packets/00075513 [17:27:33]NVStorageDeleteData [17:27:33]Write to MH i2c: 01 00 00 11 19 2A [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 07 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 07 00 11 19 00 00 00 00 00 DC 0C 19 [17:27:33]RasterBufferAndPrint [17:27:33]line [17:27:33]line [17:27:33]line [17:27:33]line [17:27:33]line [17:27:33]written 0, free lines is 3295 [17:27:33]MH_Cut [17:27:33]Write to MH i2c: D1 01 00 18 19 01 03 [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: D1 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: D1 01 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: D1 01 00 18 19 00 02 [17:27:33]Write to MH i2c: 01 00 00 19 19 32 [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]OFD Sender: No OFD packet to send [17:27:34]*** Cut start [17:27:34]*** Partial cut [17:27:34]*** CUTSNS_PIN = 1 [17:27:34]*** CUTSNS_PIN = 0 [17:27:34]*** Brake cut motor [17:27:34]Read from MH i2c: 01 [17:27:34]MH_I2C_Read... [17:27:34]*** Stop cut motor [17:27:34]*** Cut end [17:27:34]Read from MH i2c: 01 07 00 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: 01 07 00 19 19 00 00 00 00 00 FF 0F 47 [17:27:34]process_action close_receipt done [17:27:34]requested_data is exist [17:27:34]produce_requested_data [17:27:34]requested_item fm.sn is exist - process it [17:27:34]wFMCommunicate request_size=4 [17:27:34]MH_SAM_APDU [17:27:34]CAPDU: 80 11 00 00 [17:27:34]Write to MH i2c: E2 08 00 1A 19 80 11 00 00 00 00 00 00 AD [17:27:34]Write i2c OK [17:27:34]MH_I2C_Read... [17:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:34]Read from MH i2c: E2 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: E2 17 00 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: E2 17 00 1A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FA [17:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:27:34]wFMCommunicate OK [17:27:34]requested_item fd.num is exist - process it [17:27:34]SAM_PROTO_GetFieldsCounters [17:27:34]wFMCommunicate request_size=4 [17:27:34]MH_SAM_APDU [17:27:34]CAPDU: 80 13 00 00 [17:27:34]Write to MH i2c: E2 08 00 1B 19 80 13 00 00 00 00 00 00 B0 [17:27:34]Write i2c OK [17:27:34]MH_I2C_Read... [17:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:34]Read from MH i2c: E2 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: E2 62 00 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: E2 62 00 1B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F9 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [17:27:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 F9 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:35]wFMCommunicate OK [17:27:35]SAM_PROTO_GetFieldsCounters done [17:27:35]requested_item shift.num is exist - process it [17:27:35]requested_item shift.opened is exist - process it [17:27:35]req_shift_opened [17:27:35]FM_GetShiftState [17:27:35]SAM_PROTO_GetShiftState [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 13 01 00 [17:27:35]Write to MH i2c: E2 08 00 1C 19 80 13 01 00 00 00 00 00 B2 [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 1C 19 00 09 00 01 99 41 18 67 00 00 00 00 90 00 17 [17:27:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:27:35]wFMCommunicate OK [17:27:35]SAM_PROTO_GetShiftState done [17:27:35]FM_GetShiftState done [17:27:35]req_shift_opened done [17:27:35]requested_item shift.open_date is exist - process it [17:27:35]req_shift_open_date [17:27:35]req_shift_open_date done [17:27:35]produce_requested_data done [17:27:35]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75513,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:27:35]process_action_free close_receipt [17:27:35]json_value_free [17:27:35]json_value_free done [17:27:35]process_json_proto returns [17:27:35]Send response to host [17:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75513,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:27:35]free response buf [17:27:35]execute_script done [17:27:35]execute_script returns [17:27:35]free content buf [17:27:35]Sock 9.Close socket [17:27:35]Sock 9.Thread stoped [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:38]accept exits with 8 [17:36:38]New connection [17:36:38]New thread 3066465636 created [17:36:38]Thread 3066608996 joined [17:36:38]Waiting for new connection... [17:36:38] Sock 8.Parse request [17:36:38]Sock 8.Check first char [17:36:38]Sock 8.First char is OK [17:36:38]request: POST /json_proto HTTP/1.0 [17:36:38]Method: POST [17:36:38]URL: /json_proto [17:36:38]Method is POST - this is cgi request [17:36:38]url: /json_proto [17:36:38]query_string will be loaded in cgi processing [17:36:38]execute_cgi json_proto POST (null) [17:36:38]execute_cgi path=json_proto method=POST [17:36:38]POST find Content-Length [17:36:38]Host: 172.17.44.196:8080 [17:36:38]Content-Length: 658 [17:36:38]Content-Type: application/json [17:36:38] [17:36:38]POST finish read [17:36:38]Found Content-Length = 658 [17:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273280", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:38]execute_script... [17:36: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 : (3)273280", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:38]POST & json_proto [17:36:38]process_json_proto [17:36:38]json parsed OK: [17:36:38]protocol is kg_v1.0 [17:36:38]action value=close_receipt [17:36:38]process_action close_receipt [17:36:38]cmd_close_receipt [17:36:38]MH_GetDate [17:36:38]Write to MH i2c: F0 00 00 1D 19 25 [17:36:38]Write i2c OK [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: F0 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: F0 09 00 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: F0 09 00 1D 19 00 28 34 19 67 E7 19 F8 65 67 [17:36:38]GetLastDocTimeStamp 1729704452 [17:36:38]current date 1729705000 [17:36:38]FM_GetShiftState [17:36:38]SAM_PROTO_GetShiftState [17:36:38]wFMCommunicate request_size=4 [17:36:38]MH_SAM_APDU [17:36:38]CAPDU: 80 13 01 00 [17:36:38]Write to MH i2c: E2 08 00 1E 19 80 13 01 00 00 00 00 00 B4 [17:36:38]Write i2c OK [17:36:38]MH_I2C_Read... [17:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:38]Read from MH i2c: E2 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 0E 00 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 0E 00 1E 19 00 09 00 01 99 41 18 67 00 00 00 00 90 00 19 [17:36:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:36:38]wFMCommunicate OK [17:36:38]SAM_PROTO_GetShiftState done [17:36:38]FM_GetShiftState done [17:36:38]opened in 1729642905 [17:36:38]opened+sec_in_day 1729729305 [17:36:38]quantity*price = 14100 [17:36:38]sum+1 = 14101 [17:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 247 23.10.2024 17:36 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75514 ФПД: 204950658504028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173640&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75514&fm=204950658504028&tin=02508201610067®Number=0000000000161154&sum=14100 0 [17:36:39]StoreToDocumentArchive [17:36:39]shift 173 fd 75514 [17:36:39]save to /storage/0173/doc_00075514 [17:36:39]save last doc name /storage/0173/doc_00075514 to /storage/kkm_last_doc_name [17:36:39]save OK [17:36:39]Clear old archive folders... [17:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=294 [17:36:39]tlvbuf is B6E6D8F0 [17:36:39]SAM_PROTO_ClearQueue [17:36:39]wFMCommunicate request_size=4 [17:36:39]MH_SAM_APDU [17:36:39]CAPDU: 80 09 00 00 [17:36:39]Write to MH i2c: E2 08 00 2B 19 80 09 00 00 00 00 00 00 B6 [17:36:39]Write i2c OK [17:36:39]MH_I2C_Read... [17:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:39]Read from MH i2c: E2 [17:36:39]MH_I2C_Read... [17:36:39]Read from MH i2c: E2 03 00 [17:36:39]MH_I2C_Read... [17:36:39]Read from MH i2c: E2 03 00 2B 19 00 90 00 B8 [17:36:39]RAPDU: 90 00 [17:36:39]wFMCommunicate OK [17:36:39]SAM_PROTO_ClearQueue done [17:36:39]KKMCreateOFDPacket [17:36:39]OFDProtocolAddRootSTLVToBuf [17:36:39]FM_MakeSignedData [17:36:39]FM_MakeSignedData [17:36:39]SAM_PROTO_SignData [17:36:39]wFMCommunicate request_size=4 [17:36:39]MH_SAM_APDU [17:36:39]CAPDU: 80 0D 01 02 [17:36:39]Write to MH i2c: E2 08 00 2C 19 80 0D 01 02 00 00 00 00 BE [17:36:39]Write i2c OK [17:36:39]MH_I2C_Read... [17:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:39]Read from MH i2c: E2 [17:36:39]MH_I2C_Read... [17:36:39]Read from MH i2c: E2 03 00 [17:36:39]MH_I2C_Read... [17:36:39]Read from MH i2c: E2 03 00 2C 19 00 90 00 B9 [17:36:39]RAPDU: 90 00 [17:36:39]wFMCommunicate OK [17:36:39]wFMCommunicate request_size=255 [17:36:39]MH_SAM_APDU [17:36:39]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 28 34 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:36:39]Write to MH i2c: E2 02 01 2D 19 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 28 34 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 E7 [17:36:39]Write i2c OK [17:36:39]MH_I2C_Read... [17:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:40]Read from MH i2c: E2 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: E2 03 00 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: E2 03 00 2D 19 00 90 00 BA [17:36:40]RAPDU: 90 00 [17:36:40]wFMCommunicate OK [17:36:40]wFMCommunicate request_size=53 [17:36:40]MH_SAM_APDU [17:36:40]CAPDU: 80 0D 02 02 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 26 01 00 35 04 06 00 BA 66 CB 32 55 5C [17:36:40]Write to MH i2c: E2 38 00 2E 19 80 0D 02 02 30 00 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 26 01 00 35 04 06 00 BA 66 CB 32 55 5C 00 00 98 [17:36:40]Write i2c OK [17:36:40]MH_I2C_Read... [17:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:40]Read from MH i2c: E2 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: E2 03 00 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [17:36:40]RAPDU: 90 00 [17:36:40]wFMCommunicate OK [17:36:40]wFMCommunicate request_size=4 [17:36:40]MH_SAM_APDU [17:36:40]CAPDU: 80 0D 03 02 [17:36:40]Write to MH i2c: E2 08 00 2F 19 80 0D 03 02 00 00 00 00 C3 [17:36:40]Write i2c OK [17:36:40]MH_I2C_Read... [17:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:40]Read from MH i2c: E2 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: E2 0B 00 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: E2 0B 00 2F 19 00 48 FD 1B 2E AD 65 B0 1E 90 00 32 [17:36:40]RAPDU: 48 FD 1B 2E AD 65 B0 1E 90 00 [17:36:40]wFMCommunicate OK [17:36:40]SAM_PROTO_SignData done [17:36:40]FM_MakeSignedData done [17:36:40]CreateOFDProtocolMessage [17:36:40]wFMCommunicate request_size=4 [17:36:40]MH_SAM_APDU [17:36:40]CAPDU: 80 11 00 00 [17:36:40]Write to MH i2c: E2 08 00 30 19 80 11 00 00 00 00 00 00 C3 [17:36:40]Write i2c OK [17:36:40]MH_I2C_Read... [17:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:40]Read from MH i2c: E2 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: E2 17 00 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: E2 17 00 30 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 10 [17:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:36:40]wFMCommunicate OK [17:36:40]CreateOFDProtocolMessage done [17:36:40]OFDSenderStorePacket 75514 [17:36:40]StoreOFDPacket docnum=75514 [17:36:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3A 01 00 00 9B 22 32 01 04 9F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 28 34 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 26 01 00 35 04 06 00 BA 66 CB 32 55 5C 48 FD 1B 2E AD 65 B0 1E [17:36:40]CheckFolder [17:36:40]dirname=/storage/ofd_packets [17:36:40]CheckFolder done [17:36:40]ProducePacketName [17:36:40]name=ofd_packets/00075514 [17:36:40]NVStorageSaveData ofd_packets/00075514 [17:36:40]File name is /storage/ofd_packets/00075514 [17:36:40]Write 344 bytes [17:36:40]NVStorageSaveData done [17:36:40]OFDSenderStorePacket done [17:36:40]KKMCreateOFDPacket done [17:36:40]NVStorageSaveData kkm_last_timestamp [17:36:40]File name is /storage/kkm_last_timestamp [17:36:40]Write 4 bytes [17:36:40]NVStorageSaveData done [17:36:40]ExternCall_PrintAddStr [17:36:40]wPrintStart [17:36:40]Write to MH i2c: 01 00 00 31 19 4A [17:36:40]Write i2c OK [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: 01 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: 01 07 00 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: 01 07 00 31 19 00 00 00 00 00 FF 0F 5F [17:36:40]RasterBufferAndPrint [17:36:40]line Счет N : (3)273280 [17:36:40]line ИНН: 02508201610067 [17:36:40]line Контрольно-Кассовый Чек [17:36:40]line ПРОДАЖА [17:36:40]line Товар: 4870216764968 [17:36:40]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [17:36:40]line 1.000 * 141.00 [17:36:40]line = 141.00 [17:36:40]line НДС 12% НСП 1% [17:36:40]line > о реализуемом товаре [17:36:40]line ИТОГО: 141.00 [17:36:40]line НСП 1% : 1.25 [17:36:40]line НДС 12% : 14.97 [17:36:40]line Наличными: 141.00 [17:36:40]line Безнал.: 0.00 [17:36:40]line Место: АЗС № 133 "Партнер Нефть" [17:36:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:36:40]line СНО: Общий режим [17:36:40]line Чек 247 23.10.2024 17:36 [17:36:40]line Смена: 173 ФФД: 1.0 [17:36:40]line ЗНМ: 0300000020 [17:36:40]line РНМ: 0000000000161154 [17:36:40]line Версия ККМ: v1.0 [17:36:40]line ФМ: 0000000000963323 [17:36:40]line ФД: 75514 [17:36:40]line ФПД: 204950658504028 [17:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173640&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75514&fm=204950658504028&tin=02508201610067®Number=0000000000161154&sum=14100 [17:36:40]line 0 [17:36:40]OFD Sender: Processing packet 75514 [packets to send 16, broken 15] [17:36:40]ProducePacketName [17:36:40]name=ofd_packets/00075514 [17:36:40]OFD Sender: To server: pG, [17:36:40]CommunicateWithHost lk.salyk.kg:30040 [17:36:40]ConnectInit lk.salyk.kg [17:36:40]written 0, free lines is 4095 [17:36:40]Connected sock=10 [17:36:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 3A 01 00 00 9B 22 32 01 04 9F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 28 34 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FA 26 01 00 35 04 06 00 BA 66 CB 32 55 5C 48 FD 1B 2E AD 65 B0 1E [17:36:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D9 F0 47 00 4A 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 39 36 33 33 32 33 10 04 04 00 FA 26 01 00 F4 03 04 00 02 DD 18 67 B6 04 01 00 00 E4 EC C2 A0 E3 6C E7 7C [17:36:41]CommunicateWithHost err = 0 [17:36:41]CheckOFDResponse [17:36:41]1017 (14) - 77093643461234 [17:36:41]1041 (16) - 0000000000963323 [17:36:41]1040 (4) - 75514 [17:36:41]1012 (4) - 23.10.2024 11:24 [17:36:41]1206 (1) - 0 [17:36:41]OFD Sender: Remove packet 75514 [17:36:41]ProducePacketName [17:36:41]name=ofd_packets/00075514 [17:36:41]NVStorageDeleteData [17:36:41]Write to MH i2c: 01 00 00 59 19 72 [17:36:41]Write i2c OK [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: 01 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: 01 07 00 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 C3 0C 48 [17:36:41]RasterBufferAndPrint [17:36:41]line [17:36:41]line [17:36:41]line [17:36:41]line [17:36:41]line [17:36:41]written 0, free lines is 3270 [17:36:41]MH_Cut [17:36:41]Write to MH i2c: D1 01 00 60 19 01 4B [17:36:41]Write i2c OK [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: D1 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: D1 01 00 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: D1 01 00 60 19 00 4A [17:36:41]Write to MH i2c: 01 00 00 61 19 7A [17:36:41]Write i2c OK [17:36:41]MH_I2C_Read... [17:36:41]OFD Sender: No OFD packet to send [17:36:42]*** Cut start [17:36:42]*** Partial cut [17:36:42]*** CUTSNS_PIN = 1 [17:36:42]*** CUTSNS_PIN = 0 [17:36:42]*** Brake cut motor [17:36:42]Read from MH i2c: 01 [17:36:42]MH_I2C_Read... [17:36:42]*** Stop cut motor [17:36:42]*** Cut end [17:36:42]Read from MH i2c: 01 07 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: 01 07 00 61 19 00 00 00 00 00 FF 0F 8F [17:36:42]process_action close_receipt done [17:36:42]requested_data is exist [17:36:42]produce_requested_data [17:36:42]requested_item fm.sn is exist - process it [17:36:42]wFMCommunicate request_size=4 [17:36:42]MH_SAM_APDU [17:36:42]CAPDU: 80 11 00 00 [17:36:42]Write to MH i2c: E2 08 00 62 19 80 11 00 00 00 00 00 00 F5 [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:42]Read from MH i2c: E2 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 17 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 17 00 62 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 42 [17:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:36:42]wFMCommunicate OK [17:36:42]requested_item fd.num is exist - process it [17:36:42]SAM_PROTO_GetFieldsCounters [17:36:42]wFMCommunicate request_size=4 [17:36:42]MH_SAM_APDU [17:36:42]CAPDU: 80 13 00 00 [17:36:42]Write to MH i2c: E2 08 00 63 19 80 13 00 00 00 00 00 00 F8 [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:42]Read from MH i2c: E2 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 62 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 62 00 63 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FA 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [17:36:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FA 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:42]wFMCommunicate OK [17:36:42]SAM_PROTO_GetFieldsCounters done [17:36:42]requested_item shift.num is exist - process it [17:36:42]requested_item shift.opened is exist - process it [17:36:42]req_shift_opened [17:36:42]FM_GetShiftState [17:36:42]SAM_PROTO_GetShiftState [17:36:42]wFMCommunicate request_size=4 [17:36:42]MH_SAM_APDU [17:36:42]CAPDU: 80 13 01 00 [17:36:42]Write to MH i2c: E2 08 00 64 19 80 13 01 00 00 00 00 00 FA [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:42]Read from MH i2c: E2 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 0E 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 0E 00 64 19 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5F [17:36:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:36:42]wFMCommunicate OK [17:36:42]SAM_PROTO_GetShiftState done [17:36:42]FM_GetShiftState done [17:36:42]req_shift_opened done [17:36:42]requested_item shift.open_date is exist - process it [17:36:42]req_shift_open_date [17:36:42]req_shift_open_date done [17:36:42]produce_requested_data done [17:36:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75514,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:36:42]process_action_free close_receipt [17:36:42]json_value_free [17:36:42]json_value_free done [17:36:42]process_json_proto returns [17:36:42]Send response to host [17:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75514,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:36:42]free response buf [17:36:42]execute_script done [17:36:42]execute_script returns [17:36:42]free content buf [17:36:42]Sock 8.Close socket [17:36:42]Sock 8.Thread stoped [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:19]accept exits with 9 [17:38:19]New connection [17:38:19]New thread 3066608996 created [17:38:19]Thread 3066465636 joined [17:38:19]Waiting for new connection... [17:38:19] Sock 9.Parse request [17:38:19]Sock 9.Check first char [17:38:19]Sock 9.First char is OK [17:38:19]request: POST /json_proto HTTP/1.0 [17:38:19]Method: POST [17:38:19]URL: /json_proto [17:38:19]Method is POST - this is cgi request [17:38:19]url: /json_proto [17:38:19]query_string will be loaded in cgi processing [17:38:19]execute_cgi json_proto POST (null) [17:38:19]execute_cgi path=json_proto method=POST [17:38:19]POST find Content-Length [17:38:19]Host: 172.17.44.196:8080 [17:38:19]Content-Length: 938 [17:38:19]Content-Type: application/json [17:38:19] [17:38:19]POST finish read [17:38:19]Found Content-Length = 938 [17:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273281", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 176.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:19]execute_script... [17:38:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273281", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 176.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:19]POST & json_proto [17:38:19]process_json_proto [17:38:19]json parsed OK: [17:38:19]protocol is kg_v1.0 [17:38:19]action value=close_receipt [17:38:19]process_action close_receipt [17:38:19]cmd_close_receipt [17:38:19]MH_GetDate [17:38:19]Write to MH i2c: F0 00 00 65 19 6D [17:38:19]Write i2c OK [17:38:19]MH_I2C_Read... [17:38:19]Read from MH i2c: F0 [17:38:19]MH_I2C_Read... [17:38:19]Read from MH i2c: F0 09 00 [17:38:19]MH_I2C_Read... [17:38:19]Read from MH i2c: F0 09 00 65 19 00 8D 34 19 67 E7 19 F8 65 14 [17:38:19]GetLastDocTimeStamp 1729705000 [17:38:19]current date 1729705101 [17:38:19]FM_GetShiftState [17:38:19]SAM_PROTO_GetShiftState [17:38:19]wFMCommunicate request_size=4 [17:38:19]MH_SAM_APDU [17:38:19]CAPDU: 80 13 01 00 [17:38:19]Write to MH i2c: E2 08 00 66 19 80 13 01 00 00 00 00 00 FC [17:38:19]Write i2c OK [17:38:19]MH_I2C_Read... [17:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:19]Read from MH i2c: E2 [17:38:19]MH_I2C_Read... [17:38:19]Read from MH i2c: E2 0E 00 [17:38:19]MH_I2C_Read... [17:38:19]Read from MH i2c: E2 0E 00 66 19 00 09 00 01 99 41 18 67 00 00 00 00 90 00 61 [17:38:19]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:38:19]wFMCommunicate OK [17:38:19]SAM_PROTO_GetShiftState done [17:38:19]FM_GetShiftState done [17:38:19]opened in 1729642905 [17:38:19]opened+sec_in_day 1729729305 [17:38:19]quantity*price = 6500 [17:38:19]sum+1 = 6501 [17:38:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 176.00 НСП 1% : 1.55 НДС 12% : 18.69 Наличными: 176.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 248 23.10.2024 17:38 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75515 ФПД: 14017880923103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173821&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75515&fm=14017880923103&tin=02508201610067®Number=0000000000161154&sum=17600 0 [17:38:20]StoreToDocumentArchive [17:38:20]shift 173 fd 75515 [17:38:20]save to /storage/0173/doc_00075515 [17:38:20]save last doc name /storage/0173/doc_00075515 to /storage/kkm_last_doc_name [17:38:20]save OK [17:38:20]Clear old archive folders... [17:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=394 [17:38:20]tlvbuf is 007BA4B0 [17:38:20]SAM_PROTO_ClearQueue [17:38:20]wFMCommunicate request_size=4 [17:38:20]MH_SAM_APDU [17:38:20]CAPDU: 80 09 00 00 [17:38:20]Write to MH i2c: E2 08 00 73 19 80 09 00 00 00 00 00 00 FE [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:21]Read from MH i2c: E2 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 73 19 00 90 00 00 [17:38:21]RAPDU: 90 00 [17:38:21]wFMCommunicate OK [17:38:21]SAM_PROTO_ClearQueue done [17:38:21]KKMCreateOFDPacket [17:38:21]OFDProtocolAddRootSTLVToBuf [17:38:21]FM_MakeSignedData [17:38:21]FM_MakeSignedData [17:38:21]SAM_PROTO_SignData [17:38:21]wFMCommunicate request_size=4 [17:38:21]MH_SAM_APDU [17:38:21]CAPDU: 80 0D 01 02 [17:38:21]Write to MH i2c: E2 08 00 74 19 80 0D 01 02 00 00 00 00 06 [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:21]Read from MH i2c: E2 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 74 19 00 90 00 01 [17:38:21]RAPDU: 90 00 [17:38:21]wFMCommunicate OK [17:38:21]wFMCommunicate request_size=255 [17:38:21]MH_SAM_APDU [17:38:21]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F [17:38:21]Write to MH i2c: E2 02 01 75 19 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 A1 [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:21]Read from MH i2c: E2 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 75 19 00 90 00 02 [17:38:21]RAPDU: 90 00 [17:38:21]wFMCommunicate OK [17:38:21]wFMCommunicate request_size=153 [17:38:21]MH_SAM_APDU [17:38:21]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 8D 34 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 26 01 00 35 04 06 00 0C BF CA D0 1B DF [17:38:21]Write to MH i2c: E2 9C 00 76 19 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 8D 34 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 26 01 00 35 04 06 00 0C BF CA D0 1B DF 00 00 A6 [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:21]Read from MH i2c: E2 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 03 00 76 19 00 90 00 03 [17:38:21]RAPDU: 90 00 [17:38:21]wFMCommunicate OK [17:38:21]wFMCommunicate request_size=4 [17:38:21]MH_SAM_APDU [17:38:21]CAPDU: 80 0D 03 02 [17:38:21]Write to MH i2c: E2 08 00 77 19 80 0D 03 02 00 00 00 00 0B [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:21]Read from MH i2c: E2 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 0B 00 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 0B 00 77 19 00 BF F7 FF 95 22 1B DD 24 90 00 94 [17:38:21]RAPDU: BF F7 FF 95 22 1B DD 24 90 00 [17:38:21]wFMCommunicate OK [17:38:21]SAM_PROTO_SignData done [17:38:21]FM_MakeSignedData done [17:38:21]CreateOFDProtocolMessage [17:38:21]wFMCommunicate request_size=4 [17:38:21]MH_SAM_APDU [17:38:21]CAPDU: 80 11 00 00 [17:38:21]Write to MH i2c: E2 08 00 78 19 80 11 00 00 00 00 00 00 0B [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:21]Read from MH i2c: E2 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 17 00 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: E2 17 00 78 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 58 [17:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:38:21]wFMCommunicate OK [17:38:21]CreateOFDProtocolMessage done [17:38:21]OFDSenderStorePacket 75515 [17:38:21]StoreOFDPacket docnum=75515 [17:38:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9E 01 00 00 08 85 96 01 DD 66 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 8D 34 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 26 01 00 35 04 06 00 0C BF CA D0 1B DF BF F7 FF 95 22 1B DD 24 [17:38:21]CheckFolder [17:38:21]dirname=/storage/ofd_packets [17:38:21]CheckFolder done [17:38:21]ProducePacketName [17:38:21]name=ofd_packets/00075515 [17:38:21]NVStorageSaveData ofd_packets/00075515 [17:38:21]File name is /storage/ofd_packets/00075515 [17:38:21]Write 444 bytes [17:38:21]NVStorageSaveData done [17:38:21]OFDSenderStorePacket done [17:38:21]KKMCreateOFDPacket done [17:38:21]NVStorageSaveData kkm_last_timestamp [17:38:21]File name is /storage/kkm_last_timestamp [17:38:21]Write 4 bytes [17:38:21]NVStorageSaveData done [17:38:21]ExternCall_PrintAddStr [17:38:21]wPrintStart [17:38:21]Write to MH i2c: 01 00 00 79 19 92 [17:38:21]OFD Sender: No OFD packet to send [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: 01 [17:38:21]MH_I2C_Read... [17:38:21]OFD Sender: Processing packet 75515 [packets to send 16, broken 15] [17:38:21]ProducePacketName [17:38:21]name=ofd_packets/00075515 [17:38:21]OFD Sender: To server: pG, [17:38:21]CommunicateWithHost lk.salyk.kg:30040 [17:38:21]ConnectInit lk.salyk.kg [17:38:21]Read from MH i2c: 01 07 00 [17:38:21]MH_I2C_Read... [17:38:21]Read from MH i2c: 01 07 00 79 19 00 00 00 00 00 FF 0F A7 [17:38:21]RasterBufferAndPrint [17:38:21]line Счет N : (3)273281 [17:38:21]line ИНН: 02508201610067 [17:38:21]line Контрольно-Кассовый Чек [17:38:21]line ПРОДАЖА [17:38:21]line Товар: 4600338000183 [17:38:21]line Сок Фруто НЯНЯ яблоко освет 0,2л [17:38:21]line 1.000 * 65.00 [17:38:21]line = 65.00 [17:38:21]line НДС 12% НСП 1% [17:38:21]line > о реализуемом товаре [17:38:21]line Товар: 4870001570071 [17:38:21]line Напиток Pepsi 1л [17:38:21]line 1.000 * 111.00 [17:38:21]line = 111.00 [17:38:21]line НДС 12% НСП 1% [17:38:21]line > о реализуемом товаре [17:38:21]line ИТОГО: 176.00 [17:38:21]line НСП 1% : 1.55 [17:38:21]line НДС 12% : 18.69 [17:38:21]line Наличными: 176.00 [17:38:21]line Безнал.: 0.00 [17:38:21]line Место: АЗС № 133 "Партнер Нефть" [17:38:21]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:38:21]line СНО: Общий режим [17:38:21]line Чек 248 23.10.2024 17:38 [17:38:21]line Смена: 173 ФФД: 1.0 [17:38:21]line ЗНМ: 0300000020 [17:38:21]line РНМ: 0000000000161154 [17:38:21]line Версия ККМ: v1.0 [17:38:21]line ФМ: 0000000000963323 [17:38:21]line ФД: 75515 [17:38:21]line ФПД: 14017880923103 [17:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173821&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75515&fm=14017880923103&tin=02508201610067®Number=0000000000161154&sum=17600 [17:38:21]line 0 [17:38:21]written 0, free lines is 4095 [17:38:22]Connected sock=10 [17:38:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9E 01 00 00 08 85 96 01 DD 66 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 8D 34 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FB 26 01 00 35 04 06 00 0C BF CA D0 1B DF BF F7 FF 95 22 1B DD 24 [17:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F7 D7 47 00 00 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 39 36 33 33 32 33 10 04 04 00 FB 26 01 00 F4 03 04 00 67 DD 18 67 B6 04 01 00 00 FC 49 C1 5A 1F 78 22 6C [17:38:22]CommunicateWithHost err = 0 [17:38:22]CheckOFDResponse [17:38:22]1017 (14) - 77093643461234 [17:38:22]1041 (16) - 0000000000963323 [17:38:22]1040 (4) - 75515 [17:38:22]1012 (4) - 23.10.2024 11:26 [17:38:22]1206 (1) - 0 [17:38:22]OFD Sender: Remove packet 75515 [17:38:22]ProducePacketName [17:38:22]name=ofd_packets/00075515 [17:38:22]NVStorageDeleteData [17:38:22]Write to MH i2c: 01 00 00 A7 19 C0 [17:38:22]Write i2c OK [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: 01 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: 01 07 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: 01 07 00 A7 19 00 00 00 00 00 4E 0C 21 [17:38:22]RasterBufferAndPrint [17:38:22]line [17:38:22]line [17:38:22]line [17:38:22]line [17:38:22]line [17:38:22]written 0, free lines is 3154 [17:38:22]MH_Cut [17:38:22]Write to MH i2c: D1 01 00 AE 19 01 99 [17:38:22]Write i2c OK [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: D1 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: D1 01 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: D1 01 00 AE 19 00 98 [17:38:22]Write to MH i2c: 01 00 00 AF 19 C8 [17:38:22]Write i2c OK [17:38:22]MH_I2C_Read... [17:38:22]OFD Sender: No OFD packet to send [17:38:23]*** Cut start [17:38:23]*** Partial cut [17:38:23]*** CUTSNS_PIN = 1 [17:38:23]*** CUTSNS_PIN = 0 [17:38:23]*** Brake cut motor [17:38:24]Read from MH i2c: 01 [17:38:24]MH_I2C_Read... [17:38:24]*** Stop cut motor [17:38:24]*** Cut end [17:38:24]Read from MH i2c: 01 07 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 07 00 AF 19 00 00 00 00 00 FF 0F DD [17:38:24]process_action close_receipt done [17:38:24]requested_data is exist [17:38:24]produce_requested_data [17:38:24]requested_item fm.sn is exist - process it [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 11 00 00 [17:38:24]Write to MH i2c: E2 08 00 B0 19 80 11 00 00 00 00 00 00 43 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 17 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 17 00 B0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 90 [17:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:38:24]wFMCommunicate OK [17:38:24]requested_item fd.num is exist - process it [17:38:24]SAM_PROTO_GetFieldsCounters [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 13 00 00 [17:38:24]Write to MH i2c: E2 08 00 B1 19 80 13 00 00 00 00 00 00 46 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 62 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 62 00 B1 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FB 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [17:38:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FB 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:24]wFMCommunicate OK [17:38:24]SAM_PROTO_GetFieldsCounters done [17:38:24]requested_item shift.num is exist - process it [17:38:24]requested_item shift.opened is exist - process it [17:38:24]req_shift_opened [17:38:24]FM_GetShiftState [17:38:24]SAM_PROTO_GetShiftState [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 13 01 00 [17:38:24]Write to MH i2c: E2 08 00 B2 19 80 13 01 00 00 00 00 00 48 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 0E 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 0E 00 B2 19 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AD [17:38:24]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:38:24]wFMCommunicate OK [17:38:24]SAM_PROTO_GetShiftState done [17:38:24]FM_GetShiftState done [17:38:24]req_shift_opened done [17:38:24]requested_item shift.open_date is exist - process it [17:38:24]req_shift_open_date [17:38:24]req_shift_open_date done [17:38:24]produce_requested_data done [17:38:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75515,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:38:24]process_action_free close_receipt [17:38:24]json_value_free [17:38:24]json_value_free done [17:38:24]process_json_proto returns [17:38:24]Send response to host [17:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75515,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:38:24]free response buf [17:38:24]execute_script done [17:38:24]execute_script returns [17:38:24]free content buf [17:38:24]Sock 9.Close socket [17:38:24]Sock 9.Thread stoped [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:21]accept exits with 8 [17:40:21]New connection [17:40:21]New thread 3066465636 created [17:40:21]Thread 3066608996 joined [17:40:21]Waiting for new connection... [17:40:21] Sock 8.Parse request [17:40:21]Sock 8.Check first char [17:40:21]Sock 8.First char is OK [17:40:21]request: POST /json_proto HTTP/1.0 [17:40:21]Method: POST [17:40:21]URL: /json_proto [17:40:21]Method is POST - this is cgi request [17:40:21]url: /json_proto [17:40:21]query_string will be loaded in cgi processing [17:40:21]execute_cgi json_proto POST (null) [17:40:21]execute_cgi path=json_proto method=POST [17:40:21]POST find Content-Length [17:40:21]Host: 172.17.44.196:8080 [17:40:21]Content-Length: 941 [17:40:21]Content-Type: application/json [17:40:21] [17:40:21]POST finish read [17:40:21]Found Content-Length = 941 [17:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273282", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:21]execute_script... [17:40: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 : (3)273282", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:21]POST & json_proto [17:40:21]process_json_proto [17:40:21]json parsed OK: [17:40:21]protocol is kg_v1.0 [17:40:21]action value=close_receipt [17:40:21]process_action close_receipt [17:40:21]cmd_close_receipt [17:40:21]MH_GetDate [17:40:21]Write to MH i2c: F0 00 00 B3 19 BB [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: F0 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: F0 09 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: F0 09 00 B3 19 00 07 35 19 67 E7 19 F8 65 DD [17:40:21]GetLastDocTimeStamp 1729705101 [17:40:21]current date 1729705223 [17:40:21]FM_GetShiftState [17:40:21]SAM_PROTO_GetShiftState [17:40:21]wFMCommunicate request_size=4 [17:40:21]MH_SAM_APDU [17:40:21]CAPDU: 80 13 01 00 [17:40:21]Write to MH i2c: E2 08 00 B4 19 80 13 01 00 00 00 00 00 4A [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:21]Read from MH i2c: E2 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 0E 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 0E 00 B4 19 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AF [17:40:21]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:40:21]wFMCommunicate OK [17:40:21]SAM_PROTO_GetShiftState done [17:40:21]FM_GetShiftState done [17:40:21]opened in 1729642905 [17:40:21]opened+sec_in_day 1729729305 [17:40:21]quantity*price = 14000 [17:40:21]sum+1 = 14001 [17:40:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600338000183 Сок Фруто НЯНЯ яблоко освет 0,2л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 249 23.10.2024 17:40 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75516 ФПД: 6437611230124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174023&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75516&fm=6437611230124&tin=02508201610067®Number=0000000000161154&sum=20500 0 [17:40:23]StoreToDocumentArchive [17:40:23]shift 173 fd 75516 [17:40:23]save to /storage/0173/doc_00075516 [17:40:23]save last doc name /storage/0173/doc_00075516 to /storage/kkm_last_doc_name [17:40:23]save OK [17:40:23]Clear old archive folders... [17:40:23]ProcessDocumentItem done err = 0, tmpTLVsize=397 [17:40:23]tlvbuf is 007C48E0 [17:40:23]SAM_PROTO_ClearQueue [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 09 00 00 [17:40:23]Write to MH i2c: E2 08 00 C1 19 80 09 00 00 00 00 00 00 4C [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 C1 19 00 90 00 4E [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]SAM_PROTO_ClearQueue done [17:40:23]KKMCreateOFDPacket [17:40:23]OFDProtocolAddRootSTLVToBuf [17:40:23]FM_MakeSignedData [17:40:23]FM_MakeSignedData [17:40:23]SAM_PROTO_SignData [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 0D 01 02 [17:40:23]Write to MH i2c: E2 08 00 C2 19 80 0D 01 02 00 00 00 00 54 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 C2 19 00 90 00 4F [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]wFMCommunicate request_size=255 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 [17:40:23]Write to MH i2c: E2 02 01 C3 19 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 00 00 B5 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 C3 19 00 90 00 50 [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]wFMCommunicate request_size=156 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 07 35 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 26 01 00 35 04 06 00 05 DA DF 87 D3 AC [17:40:23]Write to MH i2c: E2 9F 00 C4 19 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 07 35 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 26 01 00 35 04 06 00 05 DA DF 87 D3 AC 00 00 8C [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 03 00 C4 19 00 90 00 51 [17:40:23]RAPDU: 90 00 [17:40:23]wFMCommunicate OK [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 0D 03 02 [17:40:23]Write to MH i2c: E2 08 00 C5 19 80 0D 03 02 00 00 00 00 59 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 0B 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 0B 00 C5 19 00 F2 BB D6 84 ED 89 EC 99 90 00 5C [17:40:23]RAPDU: F2 BB D6 84 ED 89 EC 99 90 00 [17:40:23]wFMCommunicate OK [17:40:23]SAM_PROTO_SignData done [17:40:23]FM_MakeSignedData done [17:40:23]CreateOFDProtocolMessage [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 11 00 00 [17:40:23]Write to MH i2c: E2 08 00 C6 19 80 11 00 00 00 00 00 00 59 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 17 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 17 00 C6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A6 [17:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:40:23]wFMCommunicate OK [17:40:23]CreateOFDProtocolMessage done [17:40:23]OFDSenderStorePacket 75516 [17:40:23]StoreOFDPacket docnum=75516 [17:40:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A1 01 00 00 B8 77 99 01 9E F8 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 07 35 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 26 01 00 35 04 06 00 05 DA DF 87 D3 AC F2 BB D6 84 ED 89 EC 99 [17:40:23]CheckFolder [17:40:23]dirname=/storage/ofd_packets [17:40:23]CheckFolder done [17:40:23]ProducePacketName [17:40:23]name=ofd_packets/00075516 [17:40:23]NVStorageSaveData ofd_packets/00075516 [17:40:23]File name is /storage/ofd_packets/00075516 [17:40:23]Write 447 bytes [17:40:23]NVStorageSaveData done [17:40:23]OFDSenderStorePacket done [17:40:23]KKMCreateOFDPacket done [17:40:23]NVStorageSaveData kkm_last_timestamp [17:40:23]File name is /storage/kkm_last_timestamp [17:40:23]Write 4 bytes [17:40:23]NVStorageSaveData done [17:40:23]ExternCall_PrintAddStr [17:40:23]wPrintStart [17:40:23]Write to MH i2c: 01 00 00 C7 19 E0 [17:40:23]OFD Sender: Processing packet 75516 [packets to send 16, broken 15] [17:40:23]ProducePacketName [17:40:23]name=ofd_packets/00075516 [17:40:23]OFD Sender: To server: pG, [17:40:23]CommunicateWithHost lk.salyk.kg:30040 [17:40:23]ConnectInit lk.salyk.kg [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 07 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 07 00 C7 19 00 00 00 00 00 FF 0F F5 [17:40:23]RasterBufferAndPrint [17:40:23]line Счет N : (3)273282 [17:40:23]line ИНН: 02508201610067 [17:40:23]line Контрольно-Кассовый Чек [17:40:23]line ПРОДАЖА [17:40:23]line Товар: 47803008 [17:40:23]line Сигареты Winston XS Blue [17:40:23]line 1.000 * 140.00 [17:40:23]line = 140.00 [17:40:23]line НДС 12% НСП 1% [17:40:23]line > о реализуемом товаре [17:40:23]line Товар: 4600338000183 [17:40:23]line Сок Фруто НЯНЯ яблоко освет 0,2л [17:40:23]line 1.000 * 65.00 [17:40:23]line = 65.00 [17:40:23]line НДС 12% НСП 1% [17:40:23]line > о реализуемом товаре [17:40:23]line ИТОГО: 205.00 [17:40:23]line НСП 1% : 1.81 [17:40:23]line НДС 12% : 21.77 [17:40:23]line Наличными: 205.00 [17:40:23]line Безнал.: 0.00 [17:40:23]line Место: АЗС № 133 "Партнер Нефть" [17:40:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:40:23]line СНО: Общий режим [17:40:23]line Чек 249 23.10.2024 17:40 [17:40:23]line Смена: 173 ФФД: 1.0 [17:40:23]line ЗНМ: 0300000020 [17:40:23]line РНМ: 0000000000161154 [17:40:23]line Версия ККМ: v1.0 [17:40:23]line ФМ: 0000000000963323 [17:40:23]line ФД: 75516 [17:40:23]line ФПД: 6437611230124 [17:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174023&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75516&fm=6437611230124&tin=02508201610067®Number=0000000000161154&sum=20500 [17:40:23]line 0 [17:40:23]written 0, free lines is 4095 [17:40:24]Connected sock=10 [17:40:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A1 01 00 00 B8 77 99 01 9E F8 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 07 35 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 26 01 00 35 04 06 00 05 DA DF 87 D3 AC F2 BB D6 84 ED 89 EC 99 [17:40:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 EB C8 47 00 EB AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FC 26 01 00 F4 03 04 00 E1 DD 18 67 B6 04 01 00 00 81 C1 41 3E B5 FD 5D B5 [17:40:24]CommunicateWithHost err = 0 [17:40:24]CheckOFDResponse [17:40:24]1017 (14) - 77093643461234 [17:40:24]1041 (16) - 0000000000963323 [17:40:24]1040 (4) - 75516 [17:40:24]1012 (4) - 23.10.2024 11:28 [17:40:24]1206 (1) - 0 [17:40:24]OFD Sender: Remove packet 75516 [17:40:24]ProducePacketName [17:40:24]name=ofd_packets/00075516 [17:40:24]NVStorageDeleteData [17:40:24]Write to MH i2c: 01 00 00 F5 19 0E [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 F5 19 00 00 00 00 00 48 0C 69 [17:40:24]RasterBufferAndPrint [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]written 0, free lines is 3148 [17:40:24]MH_Cut [17:40:24]Write to MH i2c: D1 01 00 FC 19 01 E7 [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 01 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 01 00 FC 19 00 E6 [17:40:24]Write to MH i2c: 01 00 00 FD 19 16 [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]OFD Sender: No OFD packet to send [17:40:25]*** Cut start [17:40:25]*** Partial cut [17:40:25]*** CUTSNS_PIN = 1 [17:40:25]*** CUTSNS_PIN = 0 [17:40:25]*** Brake cut motor [17:40:26]Read from MH i2c: 01 [17:40:26]MH_I2C_Read... [17:40:26]*** Stop cut motor [17:40:26]*** Cut end [17:40:26]Read from MH i2c: 01 07 00 [17:40:26]MH_I2C_Read... [17:40:26]Read from MH i2c: 01 07 00 FD 19 00 00 00 00 00 FF 0F 2B [17:40:26]process_action close_receipt done [17:40:26]requested_data is exist [17:40:26]produce_requested_data [17:40:26]requested_item fm.sn is exist - process it [17:40:26]wFMCommunicate request_size=4 [17:40:26]MH_SAM_APDU [17:40:26]CAPDU: 80 11 00 00 [17:40:26]Write to MH i2c: E2 08 00 FE 19 80 11 00 00 00 00 00 00 91 [17:40:26]Write i2c OK [17:40:26]MH_I2C_Read... [17:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:26]Read from MH i2c: E2 [17:40:26]MH_I2C_Read... [17:40:26]Read from MH i2c: E2 17 00 [17:40:26]MH_I2C_Read... [17:40:26]Read from MH i2c: E2 17 00 FE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DE [17:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:40:26]wFMCommunicate OK [17:40:26]requested_item fd.num is exist - process it [17:40:26]SAM_PROTO_GetFieldsCounters [17:40:26]wFMCommunicate request_size=4 [17:40:26]MH_SAM_APDU [17:40:26]CAPDU: 80 13 00 00 [17:40:26]Write to MH i2c: E2 08 00 FF 19 80 13 00 00 00 00 00 00 94 [17:40:26]Write i2c OK [17:40:26]MH_I2C_Read... [17:40:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:26]Read from MH i2c: E2 [17:40:26]MH_I2C_Read... [17:40:26]Read from MH i2c: E2 62 00 [17:40:26]MH_I2C_Read... [17:40:26]Read from MH i2c: E2 62 00 FF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FC 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [17:40:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FC 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:26]wFMCommunicate OK [17:40:26]SAM_PROTO_GetFieldsCounters done [17:40:26]requested_item shift.num is exist - process it [17:40:26]requested_item shift.opened is exist - process it [17:40:26]req_shift_opened [17:40:26]FM_GetShiftState [17:40:26]SAM_PROTO_GetShiftState [17:40:26]wFMCommunicate request_size=4 [17:40:26]MH_SAM_APDU [17:40:26]CAPDU: 80 13 01 00 [17:40:26]Write to MH i2c: E2 08 00 00 1A 80 13 01 00 00 00 00 00 97 [17:40:26]Write i2c OK [17:40:26]MH_I2C_Read... [17:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:26]Read from MH i2c: E2 [17:40:26]MH_I2C_Read... [17:40:26]Read from MH i2c: E2 0E 00 [17:40:26]MH_I2C_Read... [17:40:26]Read from MH i2c: E2 0E 00 00 1A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FC [17:40:26]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:40:26]wFMCommunicate OK [17:40:26]SAM_PROTO_GetShiftState done [17:40:26]FM_GetShiftState done [17:40:26]req_shift_opened done [17:40:26]requested_item shift.open_date is exist - process it [17:40:26]req_shift_open_date [17:40:26]req_shift_open_date done [17:40:26]produce_requested_data done [17:40:26]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75516,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:40:26]process_action_free close_receipt [17:40:26]json_value_free [17:40:26]json_value_free done [17:40:26]process_json_proto returns [17:40:26]Send response to host [17:40:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75516,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:40:26]free response buf [17:40:26]execute_script done [17:40:26]execute_script returns [17:40:26]free content buf [17:40:26]Sock 8.Close socket [17:40:26]Sock 8.Thread stoped [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [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:58]accept exits with 9 [17:41:58]New connection [17:41:58]New thread 3066608996 created [17:41:58]Thread 3066465636 joined [17:41:58]Waiting for new connection... [17:41:58] Sock 9.Parse request [17:41:58]Sock 9.Check first char [17:41:58]Sock 9.First char is OK [17:41:58]request: POST /json_proto HTTP/1.0 [17:41:58]Method: POST [17:41:58]URL: /json_proto [17:41:58]Method is POST - this is cgi request [17:41:58]url: /json_proto [17:41:58]query_string will be loaded in cgi processing [17:41:58]execute_cgi json_proto POST (null) [17:41:58]execute_cgi path=json_proto method=POST [17:41:58]POST find Content-Length [17:41:58]Host: 172.17.44.196:8080 [17:41:58]Content-Length: 621 [17:41:58]Content-Type: application/json [17:41:58] [17:41:58]POST finish read [17:41:58]Found Content-Length = 621 [17:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273283", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:58]execute_script... [17:41:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273283", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:58]POST & json_proto [17:41:58]process_json_proto [17:41:58]json parsed OK: [17:41:58]protocol is kg_v1.0 [17:41:58]action value=close_receipt [17:41:58]process_action close_receipt [17:41:58]cmd_close_receipt [17:41:58]MH_GetDate [17:41:58]Write to MH i2c: F0 00 00 01 1A 0A [17:41:58]Write i2c OK [17:41:58]MH_I2C_Read... [17:41:58]Read from MH i2c: F0 [17:41:58]MH_I2C_Read... [17:41:58]Read from MH i2c: F0 09 00 [17:41:58]MH_I2C_Read... [17:41:58]Read from MH i2c: F0 09 00 01 1A 00 68 35 19 67 E7 19 F8 65 8D [17:41:58]GetLastDocTimeStamp 1729705223 [17:41:58]current date 1729705320 [17:41:58]FM_GetShiftState [17:41:58]SAM_PROTO_GetShiftState [17:41:58]wFMCommunicate request_size=4 [17:41:58]MH_SAM_APDU [17:41:58]CAPDU: 80 13 01 00 [17:41:58]Write to MH i2c: E2 08 00 02 1A 80 13 01 00 00 00 00 00 99 [17:41:58]Write i2c OK [17:41:58]MH_I2C_Read... [17:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:58]Read from MH i2c: E2 [17:41:58]MH_I2C_Read... [17:41:58]Read from MH i2c: E2 0E 00 [17:41:58]MH_I2C_Read... [17:41:58]Read from MH i2c: E2 0E 00 02 1A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FE [17:41:58]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:41:58]wFMCommunicate OK [17:41:58]SAM_PROTO_GetShiftState done [17:41:58]FM_GetShiftState done [17:41:58]opened in 1729642905 [17:41:58]opened+sec_in_day 1729729305 [17:41:58]quantity*price = 14000 [17:41:58]sum+1 = 14001 [17:41:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 250 23.10.2024 17:42 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75517 ФПД: 257544977486821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174200&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75517&fm=257544977486821&tin=02508201610067®Number=0000000000161154&sum=14000 0 [17:41:59]StoreToDocumentArchive [17:41:59]shift 173 fd 75517 [17:41:59]save to /storage/0173/doc_00075517 [17:41:59]save last doc name /storage/0173/doc_00075517 to /storage/kkm_last_doc_name [17:41:59]save OK [17:41:59]Clear old archive folders... [17:41:59]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:41:59]tlvbuf is 0081D4A0 [17:41:59]SAM_PROTO_ClearQueue [17:41:59]wFMCommunicate request_size=4 [17:41:59]MH_SAM_APDU [17:41:59]CAPDU: 80 09 00 00 [17:41:59]Write to MH i2c: E2 08 00 0F 1A 80 09 00 00 00 00 00 00 9B [17:41:59]Write i2c OK [17:41:59]MH_I2C_Read... [17:41:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:59]Read from MH i2c: E2 [17:41:59]MH_I2C_Read... [17:41:59]Read from MH i2c: E2 03 00 [17:41:59]MH_I2C_Read... [17:41:59]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [17:41:59]RAPDU: 90 00 [17:41:59]wFMCommunicate OK [17:41:59]SAM_PROTO_ClearQueue done [17:41:59]KKMCreateOFDPacket [17:41:59]OFDProtocolAddRootSTLVToBuf [17:41:59]FM_MakeSignedData [17:41:59]FM_MakeSignedData [17:41:59]SAM_PROTO_SignData [17:41:59]wFMCommunicate request_size=4 [17:41:59]MH_SAM_APDU [17:41:59]CAPDU: 80 0D 01 02 [17:41:59]Write to MH i2c: E2 08 00 10 1A 80 0D 01 02 00 00 00 00 A3 [17:41:59]Write i2c OK [17:41:59]MH_I2C_Read... [17:41:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:59]OFD Sender: No OFD packet to send [17:41:59]Read from MH i2c: E2 [17:41:59]MH_I2C_Read... [17:41:59]Read from MH i2c: E2 03 00 [17:41:59]MH_I2C_Read... [17:41:59]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [17:41:59]RAPDU: 90 00 [17:41:59]wFMCommunicate OK [17:41:59]wFMCommunicate request_size=255 [17:41:59]MH_SAM_APDU [17:41:59]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 68 35 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [17:41:59]Write to MH i2c: E2 02 01 11 1A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 68 35 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 55 [17:41:59]Write i2c OK [17:41:59]MH_I2C_Read... [17:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:00]Read from MH i2c: E2 [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: E2 03 00 [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [17:42:00]RAPDU: 90 00 [17:42:00]wFMCommunicate OK [17:42:00]wFMCommunicate request_size=32 [17:42:00]MH_SAM_APDU [17:42:00]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 26 01 00 35 04 06 00 EA 3C 5C E5 93 E5 [17:42:00]Write to MH i2c: E2 23 00 12 1A 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 26 01 00 35 04 06 00 EA 3C 5C E5 93 E5 00 00 00 [17:42:00]Write i2c OK [17:42:00]MH_I2C_Read... [17:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:00]Read from MH i2c: E2 [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: E2 03 00 [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [17:42:00]RAPDU: 90 00 [17:42:00]wFMCommunicate OK [17:42:00]wFMCommunicate request_size=4 [17:42:00]MH_SAM_APDU [17:42:00]CAPDU: 80 0D 03 02 [17:42:00]Write to MH i2c: E2 08 00 13 1A 80 0D 03 02 00 00 00 00 A8 [17:42:00]Write i2c OK [17:42:00]MH_I2C_Read... [17:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:00]Read from MH i2c: E2 [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: E2 0B 00 [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: E2 0B 00 13 1A 00 CE 53 70 03 09 6F F9 0D 90 00 BB [17:42:00]RAPDU: CE 53 70 03 09 6F F9 0D 90 00 [17:42:00]wFMCommunicate OK [17:42:00]SAM_PROTO_SignData done [17:42:00]FM_MakeSignedData done [17:42:00]CreateOFDProtocolMessage [17:42:00]wFMCommunicate request_size=4 [17:42:00]MH_SAM_APDU [17:42:00]CAPDU: 80 11 00 00 [17:42:00]Write to MH i2c: E2 08 00 14 1A 80 11 00 00 00 00 00 00 A8 [17:42:00]Write i2c OK [17:42:00]MH_I2C_Read... [17:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:00]Read from MH i2c: E2 [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: E2 17 00 [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: E2 17 00 14 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F5 [17:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:42:00]wFMCommunicate OK [17:42:00]CreateOFDProtocolMessage done [17:42:00]OFDSenderStorePacket 75517 [17:42:00]StoreOFDPacket docnum=75517 [17:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 4E D2 1D 01 12 C4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 68 35 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 26 01 00 35 04 06 00 EA 3C 5C E5 93 E5 CE 53 70 03 09 6F F9 0D [17:42:00]CheckFolder [17:42:00]dirname=/storage/ofd_packets [17:42:00]CheckFolder done [17:42:00]ProducePacketName [17:42:00]name=ofd_packets/00075517 [17:42:00]NVStorageSaveData ofd_packets/00075517 [17:42:00]File name is /storage/ofd_packets/00075517 [17:42:00]Write 323 bytes [17:42:00]NVStorageSaveData done [17:42:00]OFDSenderStorePacket done [17:42:00]KKMCreateOFDPacket done [17:42:00]NVStorageSaveData kkm_last_timestamp [17:42:00]File name is /storage/kkm_last_timestamp [17:42:00]Write 4 bytes [17:42:00]NVStorageSaveData done [17:42:00]ExternCall_PrintAddStr [17:42:00]wPrintStart [17:42:00]Write to MH i2c: 01 00 00 15 1A 2F [17:42:00]Write i2c OK [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: 01 [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: 01 07 00 [17:42:00]MH_I2C_Read... [17:42:00]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 FF 0F 44 [17:42:00]RasterBufferAndPrint [17:42:00]line Счет N : (3)273283 [17:42:00]line ИНН: 02508201610067 [17:42:00]line Контрольно-Кассовый Чек [17:42:00]line ПРОДАЖА [17:42:00]line Товар: 48743570 [17:42:00]line Сигареты Winston XStyle Blue [17:42:00]line 1.000 * 140.00 [17:42:00]line = 140.00 [17:42:00]line НДС 12% НСП 1% [17:42:00]line > о реализуемом товаре [17:42:00]line ИТОГО: 140.00 [17:42:00]line НСП 1% : 1.24 [17:42:00]line НДС 12% : 14.87 [17:42:00]line Наличными: 140.00 [17:42:00]line Безнал.: 0.00 [17:42:00]line Место: АЗС № 133 "Партнер Нефть" [17:42:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:42:00]line СНО: Общий режим [17:42:00]line Чек 250 23.10.2024 17:42 [17:42:00]line Смена: 173 ФФД: 1.0 [17:42:00]line ЗНМ: 0300000020 [17:42:00]line РНМ: 0000000000161154 [17:42:00]line Версия ККМ: v1.0 [17:42:00]line ФМ: 0000000000963323 [17:42:00]line ФД: 75517 [17:42:00]line ФПД: 257544977486821 [17:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174200&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75517&fm=257544977486821&tin=02508201610067®Number=0000000000161154&sum=14000 [17:42:00]line 0 [17:42:00]OFD Sender: Processing packet 75517 [packets to send 16, broken 15] [17:42:00]ProducePacketName [17:42:00]name=ofd_packets/00075517 [17:42:00]OFD Sender: To server: pG, [17:42:00]CommunicateWithHost lk.salyk.kg:30040 [17:42:00]ConnectInit lk.salyk.kg [17:42:00]written 0, free lines is 4095 [17:42:00]Connected sock=10 [17:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 4E D2 1D 01 12 C4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 68 35 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 26 01 00 35 04 06 00 EA 3C 5C E5 93 E5 CE 53 70 03 09 6F F9 0D [17:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0D 74 47 00 05 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FD 26 01 00 F4 03 04 00 42 DE 18 67 B6 04 01 00 00 9C C5 55 96 52 B1 DA 5E [17:42:01]CommunicateWithHost err = 0 [17:42:01]CheckOFDResponse [17:42:01]1017 (14) - 77093643461234 [17:42:01]1041 (16) - 0000000000963323 [17:42:01]1040 (4) - 75517 [17:42:01]1012 (4) - 23.10.2024 11:30 [17:42:01]1206 (1) - 0 [17:42:01]OFD Sender: Remove packet 75517 [17:42:01]ProducePacketName [17:42:01]name=ofd_packets/00075517 [17:42:01]NVStorageDeleteData [17:42:01]Write to MH i2c: 01 00 00 3C 1A 56 [17:42:01]Write i2c OK [17:42:01]MH_I2C_Read... [17:42:01]Read from MH i2c: 01 [17:42:01]MH_I2C_Read... [17:42:01]Read from MH i2c: 01 07 00 [17:42:01]MH_I2C_Read... [17:42:01]Read from MH i2c: 01 07 00 3C 1A 00 00 00 00 00 D9 0C 42 [17:42:01]RasterBufferAndPrint [17:42:01]line [17:42:01]line [17:42:01]line [17:42:01]line [17:42:01]line [17:42:01]written 0, free lines is 3294 [17:42:01]MH_Cut [17:42:01]Write to MH i2c: D1 01 00 43 1A 01 2F [17:42:01]Write i2c OK [17:42:01]MH_I2C_Read... [17:42:01]Read from MH i2c: D1 [17:42:01]MH_I2C_Read... [17:42:01]Read from MH i2c: D1 01 00 [17:42:01]MH_I2C_Read... [17:42:01]Read from MH i2c: D1 01 00 43 1A 00 2E [17:42:01]Write to MH i2c: 01 00 00 44 1A 5E [17:42:01]Write i2c OK [17:42:01]MH_I2C_Read... [17:42:01]OFD Sender: No OFD packet to send [17:42:02]*** Cut start [17:42:02]*** Partial cut [17:42:02]*** CUTSNS_PIN = 1 [17:42:02]*** CUTSNS_PIN = 0 [17:42:02]*** Brake cut motor [17:42:02]Read from MH i2c: 01 [17:42:02]MH_I2C_Read... [17:42:02]*** Stop cut motor [17:42:02]*** Cut end [17:42:02]Read from MH i2c: 01 07 00 [17:42:02]MH_I2C_Read... [17:42:02]Read from MH i2c: 01 07 00 44 1A 00 00 00 00 00 FF 0F 73 [17:42:02]process_action close_receipt done [17:42:02]requested_data is exist [17:42:02]produce_requested_data [17:42:02]requested_item fm.sn is exist - process it [17:42:02]wFMCommunicate request_size=4 [17:42:02]MH_SAM_APDU [17:42:02]CAPDU: 80 11 00 00 [17:42:02]Write to MH i2c: E2 08 00 45 1A 80 11 00 00 00 00 00 00 D9 [17:42:02]Write i2c OK [17:42:02]MH_I2C_Read... [17:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:02]Read from MH i2c: E2 [17:42:02]MH_I2C_Read... [17:42:02]Read from MH i2c: E2 17 00 [17:42:02]MH_I2C_Read... [17:42:02]Read from MH i2c: E2 17 00 45 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 26 [17:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:42:02]wFMCommunicate OK [17:42:02]requested_item fd.num is exist - process it [17:42:02]SAM_PROTO_GetFieldsCounters [17:42:02]wFMCommunicate request_size=4 [17:42:02]MH_SAM_APDU [17:42:02]CAPDU: 80 13 00 00 [17:42:02]Write to MH i2c: E2 08 00 46 1A 80 13 00 00 00 00 00 00 DC [17:42:02]Write i2c OK [17:42:02]MH_I2C_Read... [17:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:02]Read from MH i2c: E2 [17:42:02]MH_I2C_Read... [17:42:02]Read from MH i2c: E2 62 00 [17:42:02]MH_I2C_Read... [17:42:02]Read from MH i2c: E2 62 00 46 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FD 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [17:42:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FD 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:02]wFMCommunicate OK [17:42:02]SAM_PROTO_GetFieldsCounters done [17:42:02]requested_item shift.num is exist - process it [17:42:02]requested_item shift.opened is exist - process it [17:42:02]req_shift_opened [17:42:02]FM_GetShiftState [17:42:02]SAM_PROTO_GetShiftState [17:42:02]wFMCommunicate request_size=4 [17:42:02]MH_SAM_APDU [17:42:02]CAPDU: 80 13 01 00 [17:42:02]Write to MH i2c: E2 08 00 47 1A 80 13 01 00 00 00 00 00 DE [17:42:02]Write i2c OK [17:42:02]MH_I2C_Read... [17:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:02]Read from MH i2c: E2 [17:42:02]MH_I2C_Read... [17:42:02]Read from MH i2c: E2 0E 00 [17:42:02]MH_I2C_Read... [17:42:02]Read from MH i2c: E2 0E 00 47 1A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 43 [17:42:02]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:42:02]wFMCommunicate OK [17:42:02]SAM_PROTO_GetShiftState done [17:42:02]FM_GetShiftState done [17:42:02]req_shift_opened done [17:42:02]requested_item shift.open_date is exist - process it [17:42:02]req_shift_open_date [17:42:02]req_shift_open_date done [17:42:02]produce_requested_data done [17:42:02]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75517,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:42:02]process_action_free close_receipt [17:42:02]json_value_free [17:42:02]json_value_free done [17:42:02]process_json_proto returns [17:42:02]Send response to host [17:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75517,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:42:02]free response buf [17:42:02]execute_script done [17:42:02]execute_script returns [17:42:02]free content buf [17:42:02]Sock 9.Close socket [17:42:02]Sock 9.Thread stoped [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]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:42]accept exits with 8 [17:50:42]New connection [17:50:42]New thread 3066465636 created [17:50:42]Thread 3066608996 joined [17:50:42]Waiting for new connection... [17:50:42] Sock 8.Parse request [17:50:42]Sock 8.Check first char [17:50:42]Sock 8.First char is OK [17:50:42]request: POST /json_proto HTTP/1.0 [17:50:42]Method: POST [17:50:42]URL: /json_proto [17:50:42]Method is POST - this is cgi request [17:50:42]url: /json_proto [17:50:42]query_string will be loaded in cgi processing [17:50:42]execute_cgi json_proto POST (null) [17:50:42]execute_cgi path=json_proto method=POST [17:50:42]POST find Content-Length [17:50:42]Host: 172.17.44.196:8080 [17:50:42]Content-Length: 626 [17:50:42]Content-Type: application/json [17:50:42] [17:50:42]POST finish read [17:50:42]Found Content-Length = 626 [17:50:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273284", "tax_sys" : 0, "items" : [ { "code": "4650063115881", "name": "\u041C\u0430\u0441\u043B\u043E GPN Premium N 5W-40 API SN/CF 1\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 630.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:42]execute_script... [17:50:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273284", "tax_sys" : 0, "items" : [ { "code": "4650063115881", "name": "\u041C\u0430\u0441\u043B\u043E GPN Premium N 5W-40 API SN/CF 1\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 630.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:42]POST & json_proto [17:50:42]process_json_proto [17:50:42]json parsed OK: [17:50:42]protocol is kg_v1.0 [17:50:42]action value=close_receipt [17:50:42]process_action close_receipt [17:50:42]cmd_close_receipt [17:50:42]MH_GetDate [17:50:42]Write to MH i2c: F0 00 00 48 1A 51 [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: F0 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: F0 09 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: F0 09 00 48 1A 00 74 37 19 67 E7 19 F8 65 E2 [17:50:42]GetLastDocTimeStamp 1729705320 [17:50:42]current date 1729705844 [17:50:42]FM_GetShiftState [17:50:42]SAM_PROTO_GetShiftState [17:50:42]wFMCommunicate request_size=4 [17:50:42]MH_SAM_APDU [17:50:42]CAPDU: 80 13 01 00 [17:50:42]Write to MH i2c: E2 08 00 49 1A 80 13 01 00 00 00 00 00 E0 [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:42]Read from MH i2c: E2 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 0E 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 0E 00 49 1A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 45 [17:50:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:50:42]wFMCommunicate OK [17:50:42]SAM_PROTO_GetShiftState done [17:50:42]FM_GetShiftState done [17:50:42]opened in 1729642905 [17:50:42]opened+sec_in_day 1729729305 [17:50:42]quantity*price = 63000 [17:50:42]sum+1 = 63001 [17:50:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 630.00 НСП 1% : 5.57 НДС 12% : 66.90 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 251 23.10.2024 17:50 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75518 ФПД: 122813805932666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175044&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75518&fm=122813805932666&tin=02508201610067®Number=0000000000161154&sum=63000 0 [17:50:43]StoreToDocumentArchive [17:50:43]shift 173 fd 75518 [17:50:43]save to /storage/0173/doc_00075518 [17:50:43]save last doc name /storage/0173/doc_00075518 to /storage/kkm_last_doc_name [17:50:43]save OK [17:50:43]Clear old archive folders... [17:50:43]ProcessDocumentItem done err = 0, tmpTLVsize=286 [17:50:43]tlvbuf is 0080FE50 [17:50:43]SAM_PROTO_ClearQueue [17:50:43]wFMCommunicate request_size=4 [17:50:43]MH_SAM_APDU [17:50:43]CAPDU: 80 09 00 00 [17:50:43]Write to MH i2c: E2 08 00 56 1A 80 09 00 00 00 00 00 00 E2 [17:50:43]Write i2c OK [17:50:43]MH_I2C_Read... [17:50:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:43]Read from MH i2c: E2 [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: E2 03 00 [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: E2 03 00 56 1A 00 90 00 E4 [17:50:43]RAPDU: 90 00 [17:50:43]wFMCommunicate OK [17:50:43]SAM_PROTO_ClearQueue done [17:50:43]KKMCreateOFDPacket [17:50:43]OFDProtocolAddRootSTLVToBuf [17:50:43]FM_MakeSignedData [17:50:43]FM_MakeSignedData [17:50:43]SAM_PROTO_SignData [17:50:43]wFMCommunicate request_size=4 [17:50:43]MH_SAM_APDU [17:50:43]CAPDU: 80 0D 01 02 [17:50:43]Write to MH i2c: E2 08 00 57 1A 80 0D 01 02 00 00 00 00 EA [17:50:43]Write i2c OK [17:50:43]MH_I2C_Read... [17:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:44]Read from MH i2c: E2 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 03 00 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 03 00 57 1A 00 90 00 E5 [17:50:44]RAPDU: 90 00 [17:50:44]wFMCommunicate OK [17:50:44]wFMCommunicate request_size=255 [17:50:44]MH_SAM_APDU [17:50:44]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 35 38 38 31 06 04 2C 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 50 72 65 6D 69 75 6D 20 4E 20 35 57 2D 34 30 20 41 50 49 20 53 4E 2F 43 46 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 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 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 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 FB 00 00 00 F4 03 04 00 74 37 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 [17:50:44]Write to MH i2c: E2 02 01 58 1A 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 35 38 38 31 06 04 2C 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 50 72 65 6D 69 75 6D 20 4E 20 35 57 2D 34 30 20 41 50 49 20 53 4E 2F 43 46 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 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 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 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 FB 00 00 00 F4 03 04 00 74 37 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 00 00 3A [17:50:44]Write i2c OK [17:50:44]MH_I2C_Read... [17:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:44]Read from MH i2c: E2 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 03 00 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 03 00 58 1A 00 90 00 E6 [17:50:44]RAPDU: 90 00 [17:50:44]wFMCommunicate OK [17:50:44]wFMCommunicate request_size=45 [17:50:44]MH_SAM_APDU [17:50:44]CAPDU: 80 0D 02 02 28 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 26 01 00 35 04 06 00 6F B2 D1 46 B0 7A [17:50:44]Write to MH i2c: E2 30 00 59 1A 80 0D 02 02 28 00 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 26 01 00 35 04 06 00 6F B2 D1 46 B0 7A 00 00 C3 [17:50:44]Write i2c OK [17:50:44]MH_I2C_Read... [17:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:44]Read from MH i2c: E2 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 03 00 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [17:50:44]RAPDU: 90 00 [17:50:44]wFMCommunicate OK [17:50:44]wFMCommunicate request_size=4 [17:50:44]MH_SAM_APDU [17:50:44]CAPDU: 80 0D 03 02 [17:50:44]Write to MH i2c: E2 08 00 5A 1A 80 0D 03 02 00 00 00 00 EF [17:50:44]Write i2c OK [17:50:44]MH_I2C_Read... [17:50:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:44]Read from MH i2c: E2 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 0B 00 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 0B 00 5A 1A 00 C0 F3 D6 C0 0A 89 5E 41 90 00 6B [17:50:44]RAPDU: C0 F3 D6 C0 0A 89 5E 41 90 00 [17:50:44]wFMCommunicate OK [17:50:44]SAM_PROTO_SignData done [17:50:44]FM_MakeSignedData done [17:50:44]CreateOFDProtocolMessage [17:50:44]wFMCommunicate request_size=4 [17:50:44]MH_SAM_APDU [17:50:44]CAPDU: 80 11 00 00 [17:50:44]Write to MH i2c: E2 08 00 5B 1A 80 11 00 00 00 00 00 00 EF [17:50:44]Write i2c OK [17:50:44]MH_I2C_Read... [17:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:44]Read from MH i2c: E2 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 17 00 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: E2 17 00 5B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 3C [17:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:50:44]wFMCommunicate OK [17:50:44]CreateOFDProtocolMessage done [17:50:44]OFDSenderStorePacket 75518 [17:50:44]StoreOFDPacket docnum=75518 [17:50:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 32 01 00 00 9C 7D 2A 01 1B 33 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 35 38 38 31 06 04 2C 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 50 72 65 6D 69 75 6D 20 4E 20 35 57 2D 34 30 20 41 50 49 20 53 4E 2F 43 46 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 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 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 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 FB 00 00 00 F4 03 04 00 74 37 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 26 01 00 35 04 06 00 6F B2 D1 46 B0 7A C0 F3 D6 C0 0A 89 5E 41 [17:50:44]CheckFolder [17:50:44]dirname=/storage/ofd_packets [17:50:44]CheckFolder done [17:50:44]ProducePacketName [17:50:44]name=ofd_packets/00075518 [17:50:44]NVStorageSaveData ofd_packets/00075518 [17:50:44]File name is /storage/ofd_packets/00075518 [17:50:44]Write 336 bytes [17:50:44]NVStorageSaveData done [17:50:44]OFDSenderStorePacket done [17:50:44]KKMCreateOFDPacket done [17:50:44]NVStorageSaveData kkm_last_timestamp [17:50:44]File name is /storage/kkm_last_timestamp [17:50:44]Write 4 bytes [17:50:44]NVStorageSaveData done [17:50:44]ExternCall_PrintAddStr [17:50:44]wPrintStart [17:50:44]Write to MH i2c: 01 00 00 5C 1A 76 [17:50:44]Write i2c OK [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: 01 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: 01 07 00 [17:50:44]MH_I2C_Read... [17:50:44]Read from MH i2c: 01 07 00 5C 1A 00 00 00 00 00 FF 0F 8B [17:50:44]RasterBufferAndPrint [17:50:44]line Счет N : (3)273284 [17:50:44]line ИНН: 02508201610067 [17:50:44]line Контрольно-Кассовый Чек [17:50:44]line ПРОДАЖА [17:50:44]line Товар: 4650063115881 [17:50:44]line Масло GPN Premium N 5W-40 API SN/CF 1л [17:50:44]line 1.000 * 630.00 [17:50:44]line = 630.00 [17:50:44]line НДС 12% НСП 1% [17:50:44]line > о реализуемом товаре [17:50:44]line ИТОГО: 630.00 [17:50:44]line НСП 1% : 5.57 [17:50:44]line НДС 12% : 66.90 [17:50:44]line Наличными: 630.00 [17:50:44]line Безнал.: 0.00 [17:50:44]line Место: АЗС № 133 "Партнер Нефть" [17:50:44]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [17:50:44]line СНО: Общий режим [17:50:44]line Чек 251 23.10.2024 17:50 [17:50:44]line Смена: 173 ФФД: 1.0 [17:50:44]line ЗНМ: 0300000020 [17:50:44]line РНМ: 0000000000161154 [17:50:44]line Версия ККМ: v1.0 [17:50:44]line ФМ: 0000000000963323 [17:50:44]line ФД: 75518 [17:50:44]line ФПД: 122813805932666 [17:50:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175044&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75518&fm=122813805932666&tin=02508201610067®Number=0000000000161154&sum=63000 [17:50:44]line 0 [17:50:44]OFD Sender: Processing packet 75518 [packets to send 16, broken 15] [17:50:44]ProducePacketName [17:50:44]name=ofd_packets/00075518 [17:50:44]OFD Sender: To server: pG, [17:50:44]CommunicateWithHost lk.salyk.kg:30040 [17:50:44]ConnectInit lk.salyk.kg [17:50:44]written 0, free lines is 4095 [17:50:44]Connected sock=10 [17:50:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 32 01 00 00 9C 7D 2A 01 1B 33 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 35 38 38 31 06 04 2C 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 50 4E 20 50 72 65 6D 69 75 6D 20 4E 20 35 57 2D 34 30 20 41 50 49 20 53 4E 2F 43 46 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 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 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 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 FB 00 00 00 F4 03 04 00 74 37 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FE 26 01 00 35 04 06 00 6F B2 D1 46 B0 7A C0 F3 D6 C0 0A 89 5E 41 [17:50:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 57 77 47 00 E8 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 39 36 33 33 32 33 10 04 04 00 FE 26 01 00 F4 03 04 00 4E E0 18 67 B6 04 01 00 00 19 4B AD 11 FB F0 A6 68 [17:50:45]CommunicateWithHost err = 0 [17:50:45]CheckOFDResponse [17:50:45]1017 (14) - 77093643461234 [17:50:45]1041 (16) - 0000000000963323 [17:50:45]1040 (4) - 75518 [17:50:45]1012 (4) - 23.10.2024 11:38 [17:50:45]1206 (1) - 0 [17:50:45]OFD Sender: Remove packet 75518 [17:50:45]ProducePacketName [17:50:45]name=ofd_packets/00075518 [17:50:45]NVStorageDeleteData [17:50:45]Write to MH i2c: 01 00 00 84 1A 9E [17:50:45]Write i2c OK [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: 01 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: 01 07 00 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: 01 07 00 84 1A 00 00 00 00 00 C7 0C 78 [17:50:45]RasterBufferAndPrint [17:50:45]line [17:50:45]line [17:50:45]line [17:50:45]line [17:50:45]line [17:50:45]written 0, free lines is 3275 [17:50:45]MH_Cut [17:50:45]Write to MH i2c: D1 01 00 8B 1A 01 77 [17:50:45]Write i2c OK [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: D1 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: D1 01 00 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: D1 01 00 8B 1A 00 76 [17:50:45]Write to MH i2c: 01 00 00 8C 1A A6 [17:50:45]Write i2c OK [17:50:45]MH_I2C_Read... [17:50:45]OFD Sender: No OFD packet to send [17:50:46]*** Cut start [17:50:46]*** Partial cut [17:50:46]*** CUTSNS_PIN = 1 [17:50:46]*** CUTSNS_PIN = 0 [17:50:46]*** Brake cut motor [17:50:46]Read from MH i2c: 01 [17:50:46]MH_I2C_Read... [17:50:46]*** Stop cut motor [17:50:46]*** Cut end [17:50:46]Read from MH i2c: 01 07 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: 01 07 00 8C 1A 00 00 00 00 00 FF 0F BB [17:50:46]process_action close_receipt done [17:50:46]requested_data is exist [17:50:46]produce_requested_data [17:50:46]requested_item fm.sn is exist - process it [17:50:46]wFMCommunicate request_size=4 [17:50:46]MH_SAM_APDU [17:50:46]CAPDU: 80 11 00 00 [17:50:46]Write to MH i2c: E2 08 00 8D 1A 80 11 00 00 00 00 00 00 21 [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:46]Read from MH i2c: E2 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 17 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 17 00 8D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6E [17:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [17:50:46]wFMCommunicate OK [17:50:46]requested_item fd.num is exist - process it [17:50:46]SAM_PROTO_GetFieldsCounters [17:50:46]wFMCommunicate request_size=4 [17:50:46]MH_SAM_APDU [17:50:46]CAPDU: 80 13 00 00 [17:50:46]Write to MH i2c: E2 08 00 8E 1A 80 13 00 00 00 00 00 00 24 [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:47]Read from MH i2c: E2 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: E2 62 00 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: E2 62 00 8E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FE 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [17:50:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FE 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:47]wFMCommunicate OK [17:50:47]SAM_PROTO_GetFieldsCounters done [17:50:47]requested_item shift.num is exist - process it [17:50:47]requested_item shift.opened is exist - process it [17:50:47]req_shift_opened [17:50:47]FM_GetShiftState [17:50:47]SAM_PROTO_GetShiftState [17:50:47]wFMCommunicate request_size=4 [17:50:47]MH_SAM_APDU [17:50:47]CAPDU: 80 13 01 00 [17:50:47]Write to MH i2c: E2 08 00 8F 1A 80 13 01 00 00 00 00 00 26 [17:50:47]Write i2c OK [17:50:47]MH_I2C_Read... [17:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:47]Read from MH i2c: E2 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: E2 0E 00 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: E2 0E 00 8F 1A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8B [17:50:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [17:50:47]wFMCommunicate OK [17:50:47]SAM_PROTO_GetShiftState done [17:50:47]FM_GetShiftState done [17:50:47]req_shift_opened done [17:50:47]requested_item shift.open_date is exist - process it [17:50:47]req_shift_open_date [17:50:47]req_shift_open_date done [17:50:47]produce_requested_data done [17:50:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75518,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [17:50:47]process_action_free close_receipt [17:50:47]json_value_free [17:50:47]json_value_free done [17:50:47]process_json_proto returns [17:50:47]Send response to host [17:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75518,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [17:50:47]free response buf [17:50:47]execute_script done [17:50:47]execute_script returns [17:50:47]free content buf [17:50:47]Sock 8.Close socket [17:50:47]Sock 8.Thread stoped [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]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:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:34]accept exits with 9 [18:07:34]New connection [18:07:34]New thread 3066608996 created [18:07:34]Thread 3066465636 joined [18:07:34]Waiting for new connection... [18:07:34] Sock 9.Parse request [18:07:34]Sock 9.Check first char [18:07:34]Sock 9.First char is OK [18:07:34]request: POST /json_proto HTTP/1.0 [18:07:34]Method: POST [18:07:34]URL: /json_proto [18:07:34]Method is POST - this is cgi request [18:07:34]url: /json_proto [18:07:34]query_string will be loaded in cgi processing [18:07:34]execute_cgi json_proto POST (null) [18:07:34]execute_cgi path=json_proto method=POST [18:07:34]POST find Content-Length [18:07:34]Host: 172.17.44.196:8080 [18:07:34]Content-Length: 646 [18:07:34]Content-Type: application/json [18:07:34] [18:07:34]POST finish read [18:07:34]Found Content-Length = 646 [18:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273285", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:34]execute_script... [18:07:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273285", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:34]POST & json_proto [18:07:34]process_json_proto [18:07:34]json parsed OK: [18:07:34]protocol is kg_v1.0 [18:07:34]action value=close_receipt [18:07:34]process_action close_receipt [18:07:34]cmd_close_receipt [18:07:34]MH_GetDate [18:07:34]Write to MH i2c: F0 00 00 90 1A 99 [18:07:34]Write i2c OK [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: F0 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: F0 09 00 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: F0 09 00 90 1A 00 68 3B 19 67 E7 19 F8 65 22 [18:07:34]GetLastDocTimeStamp 1729705844 [18:07:34]current date 1729706856 [18:07:34]FM_GetShiftState [18:07:34]SAM_PROTO_GetShiftState [18:07:34]wFMCommunicate request_size=4 [18:07:34]MH_SAM_APDU [18:07:34]CAPDU: 80 13 01 00 [18:07:34]Write to MH i2c: E2 08 00 91 1A 80 13 01 00 00 00 00 00 28 [18:07:34]Write i2c OK [18:07:34]MH_I2C_Read... [18:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:34]Read from MH i2c: E2 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: E2 0E 00 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: E2 0E 00 91 1A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 8D [18:07:34]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:07:34]wFMCommunicate OK [18:07:34]SAM_PROTO_GetShiftState done [18:07:34]FM_GetShiftState done [18:07:34]opened in 1729642905 [18:07:34]opened+sec_in_day 1729729305 [18:07:34]quantity*price = 13000 [18:07:34]sum+1 = 13001 [18:07:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 252 23.10.2024 18:07 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75519 ФПД: 81948078348455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180736&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75519&fm=81948078348455&tin=02508201610067®Number=0000000000161154&sum=13000 0 [18:07:35]StoreToDocumentArchive [18:07:35]shift 173 fd 75519 [18:07:35]save to /storage/0173/doc_00075519 [18:07:35]save last doc name /storage/0173/doc_00075519 to /storage/kkm_last_doc_name [18:07:35]save OK [18:07:35]Clear old archive folders... [18:07:35]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:07:35]tlvbuf is 0079B240 [18:07:35]SAM_PROTO_ClearQueue [18:07:35]wFMCommunicate request_size=4 [18:07:35]MH_SAM_APDU [18:07:35]CAPDU: 80 09 00 00 [18:07:35]Write to MH i2c: E2 08 00 9E 1A 80 09 00 00 00 00 00 00 2A [18:07:35]Write i2c OK [18:07:35]MH_I2C_Read... [18:07:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:35]Read from MH i2c: E2 [18:07:35]MH_I2C_Read... [18:07:35]Read from MH i2c: E2 03 00 [18:07:35]MH_I2C_Read... [18:07:35]Read from MH i2c: E2 03 00 9E 1A 00 90 00 2C [18:07:35]RAPDU: 90 00 [18:07:35]wFMCommunicate OK [18:07:35]SAM_PROTO_ClearQueue done [18:07:35]KKMCreateOFDPacket [18:07:35]OFDProtocolAddRootSTLVToBuf [18:07:35]FM_MakeSignedData [18:07:35]FM_MakeSignedData [18:07:35]SAM_PROTO_SignData [18:07:35]wFMCommunicate request_size=4 [18:07:35]MH_SAM_APDU [18:07:35]CAPDU: 80 0D 01 02 [18:07:35]Write to MH i2c: E2 08 00 9F 1A 80 0D 01 02 00 00 00 00 32 [18:07:35]Write i2c OK [18:07:35]MH_I2C_Read... [18:07:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:35]Read from MH i2c: E2 [18:07:35]MH_I2C_Read... [18:07:35]Read from MH i2c: E2 03 00 [18:07:35]MH_I2C_Read... [18:07:35]Read from MH i2c: E2 03 00 9F 1A 00 90 00 2D [18:07:35]RAPDU: 90 00 [18:07:35]wFMCommunicate OK [18:07:35]wFMCommunicate request_size=255 [18:07:35]MH_SAM_APDU [18:07:35]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 68 3B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [18:07:35]Write to MH i2c: E2 02 01 A0 1A 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 68 3B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 06 [18:07:35]Write i2c OK [18:07:35]MH_I2C_Read... [18:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:36]Read from MH i2c: E2 [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: E2 03 00 [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: E2 03 00 A0 1A 00 90 00 2E [18:07:36]RAPDU: 90 00 [18:07:36]wFMCommunicate OK [18:07:36]wFMCommunicate request_size=41 [18:07:36]MH_SAM_APDU [18:07:36]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 26 01 00 35 04 06 00 4A 88 06 19 98 A7 [18:07:36]Write to MH i2c: E2 2C 00 A1 1A 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 26 01 00 35 04 06 00 4A 88 06 19 98 A7 00 00 54 [18:07:36]Write i2c OK [18:07:36]MH_I2C_Read... [18:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:36]Read from MH i2c: E2 [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: E2 03 00 [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: E2 03 00 A1 1A 00 90 00 2F [18:07:36]RAPDU: 90 00 [18:07:36]wFMCommunicate OK [18:07:36]wFMCommunicate request_size=4 [18:07:36]MH_SAM_APDU [18:07:36]CAPDU: 80 0D 03 02 [18:07:36]Write to MH i2c: E2 08 00 A2 1A 80 0D 03 02 00 00 00 00 37 [18:07:36]Write i2c OK [18:07:36]MH_I2C_Read... [18:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:36]Read from MH i2c: E2 [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: E2 0B 00 [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: E2 0B 00 A2 1A 00 4F 9F 17 BA 07 82 06 2C 90 00 B2 [18:07:36]RAPDU: 4F 9F 17 BA 07 82 06 2C 90 00 [18:07:36]wFMCommunicate OK [18:07:36]SAM_PROTO_SignData done [18:07:36]FM_MakeSignedData done [18:07:36]CreateOFDProtocolMessage [18:07:36]wFMCommunicate request_size=4 [18:07:36]MH_SAM_APDU [18:07:36]CAPDU: 80 11 00 00 [18:07:36]Write to MH i2c: E2 08 00 A3 1A 80 11 00 00 00 00 00 00 37 [18:07:36]Write i2c OK [18:07:36]MH_I2C_Read... [18:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:36]Read from MH i2c: E2 [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: E2 17 00 [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: E2 17 00 A3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 84 [18:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:07:36]wFMCommunicate OK [18:07:36]CreateOFDProtocolMessage done [18:07:36]OFDSenderStorePacket 75519 [18:07:36]StoreOFDPacket docnum=75519 [18:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 B1 D6 26 01 8D CC 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 68 3B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 26 01 00 35 04 06 00 4A 88 06 19 98 A7 4F 9F 17 BA 07 82 06 2C [18:07:36]CheckFolder [18:07:36]dirname=/storage/ofd_packets [18:07:36]CheckFolder done [18:07:36]ProducePacketName [18:07:36]name=ofd_packets/00075519 [18:07:36]NVStorageSaveData ofd_packets/00075519 [18:07:36]File name is /storage/ofd_packets/00075519 [18:07:36]Write 332 bytes [18:07:36]NVStorageSaveData done [18:07:36]OFDSenderStorePacket done [18:07:36]KKMCreateOFDPacket done [18:07:36]NVStorageSaveData kkm_last_timestamp [18:07:36]File name is /storage/kkm_last_timestamp [18:07:36]Write 4 bytes [18:07:36]NVStorageSaveData done [18:07:36]ExternCall_PrintAddStr [18:07:36]wPrintStart [18:07:36]Write to MH i2c: 01 00 00 A4 1A BE [18:07:36]Write i2c OK [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: 01 [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: 01 07 00 [18:07:36]MH_I2C_Read... [18:07:36]Read from MH i2c: 01 07 00 A4 1A 00 00 00 00 00 FF 0F D3 [18:07:36]RasterBufferAndPrint [18:07:36]line Счет N : (3)273285 [18:07:36]line ИНН: 02508201610067 [18:07:36]line Контрольно-Кассовый Чек [18:07:36]line ПРОДАЖА [18:07:36]line Товар: 2000036220012 [18:07:36]line Кофе Капучино XL(GABB TRADE) [18:07:36]line 1.000 * 130.00 [18:07:36]line = 130.00 [18:07:36]line НДС 12% НСП 1% [18:07:36]line > о реализуемом товаре [18:07:36]line ИТОГО: 130.00 [18:07:36]line НСП 1% : 1.15 [18:07:36]line НДС 12% : 13.80 [18:07:36]line Наличными: 130.00 [18:07:36]line Безнал.: 0.00 [18:07:36]line Место: АЗС № 133 "Партнер Нефть" [18:07:36]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:07:36]line СНО: Общий режим [18:07:36]line Чек 252 23.10.2024 18:07 [18:07:36]line Смена: 173 ФФД: 1.0 [18:07:36]line ЗНМ: 0300000020 [18:07:36]line РНМ: 0000000000161154 [18:07:36]line Версия ККМ: v1.0 [18:07:36]line ФМ: 0000000000963323 [18:07:36]line ФД: 75519 [18:07:36]line ФПД: 81948078348455 [18:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180736&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75519&fm=81948078348455&tin=02508201610067®Number=0000000000161154&sum=13000 [18:07:36]line 0 [18:07:36]OFD Sender: Processing packet 75519 [packets to send 16, broken 15] [18:07:36]ProducePacketName [18:07:36]name=ofd_packets/00075519 [18:07:36]OFD Sender: To server: pG, [18:07:36]CommunicateWithHost lk.salyk.kg:30040 [18:07:36]ConnectInit lk.salyk.kg [18:07:36]written 0, free lines is 4095 [18:07:36]Connected sock=10 [18:07:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 B1 D6 26 01 8D CC 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 68 3B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 26 01 00 35 04 06 00 4A 88 06 19 98 A7 4F 9F 17 BA 07 82 06 2C [18:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 09 10 47 00 78 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 FF 26 01 00 F4 03 04 00 42 E4 18 67 B6 04 01 00 00 AA 6C 4D 9D 81 46 21 F8 [18:07:37]CommunicateWithHost err = 0 [18:07:37]CheckOFDResponse [18:07:37]1017 (14) - 77093643461234 [18:07:37]1041 (16) - 0000000000963323 [18:07:37]1040 (4) - 75519 [18:07:37]1012 (4) - 23.10.2024 11:55 [18:07:37]1206 (1) - 0 [18:07:37]OFD Sender: Remove packet 75519 [18:07:37]ProducePacketName [18:07:37]name=ofd_packets/00075519 [18:07:37]NVStorageDeleteData [18:07:37]Write to MH i2c: 01 00 00 CC 1A E6 [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: 01 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: 01 07 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: 01 07 00 CC 1A 00 00 00 00 00 CB 0C C4 [18:07:37]RasterBufferAndPrint [18:07:37]line [18:07:37]line [18:07:37]line [18:07:37]line [18:07:37]line [18:07:37]written 0, free lines is 3278 [18:07:37]MH_Cut [18:07:37]Write to MH i2c: D1 01 00 D3 1A 01 BF [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: D1 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: D1 01 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: D1 01 00 D3 1A 00 BE [18:07:37]Write to MH i2c: 01 00 00 D4 1A EE [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]OFD Sender: No OFD packet to send [18:07:38]*** Cut start [18:07:38]*** Partial cut [18:07:38]*** CUTSNS_PIN = 1 [18:07:38]*** CUTSNS_PIN = 0 [18:07:38]*** Brake cut motor [18:07:38]Read from MH i2c: 01 [18:07:38]MH_I2C_Read... [18:07:38]*** Stop cut motor [18:07:38]*** Cut end [18:07:38]Read from MH i2c: 01 07 00 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: 01 07 00 D4 1A 00 00 00 00 00 FF 0F 03 [18:07:38]process_action close_receipt done [18:07:38]requested_data is exist [18:07:38]produce_requested_data [18:07:38]requested_item fm.sn is exist - process it [18:07:38]wFMCommunicate request_size=4 [18:07:38]MH_SAM_APDU [18:07:38]CAPDU: 80 11 00 00 [18:07:38]Write to MH i2c: E2 08 00 D5 1A 80 11 00 00 00 00 00 00 69 [18:07:38]Write i2c OK [18:07:38]MH_I2C_Read... [18:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:38]Read from MH i2c: E2 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 17 00 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 17 00 D5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B6 [18:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:07:38]wFMCommunicate OK [18:07:38]requested_item fd.num is exist - process it [18:07:38]SAM_PROTO_GetFieldsCounters [18:07:38]wFMCommunicate request_size=4 [18:07:38]MH_SAM_APDU [18:07:38]CAPDU: 80 13 00 00 [18:07:38]Write to MH i2c: E2 08 00 D6 1A 80 13 00 00 00 00 00 00 6C [18:07:38]Write i2c OK [18:07:38]MH_I2C_Read... [18:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:38]Read from MH i2c: E2 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 62 00 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 62 00 D6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FF 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [18:07:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 FF 26 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:38]wFMCommunicate OK [18:07:38]SAM_PROTO_GetFieldsCounters done [18:07:38]requested_item shift.num is exist - process it [18:07:38]requested_item shift.opened is exist - process it [18:07:38]req_shift_opened [18:07:38]FM_GetShiftState [18:07:38]SAM_PROTO_GetShiftState [18:07:38]wFMCommunicate request_size=4 [18:07:38]MH_SAM_APDU [18:07:38]CAPDU: 80 13 01 00 [18:07:38]Write to MH i2c: E2 08 00 D7 1A 80 13 01 00 00 00 00 00 6E [18:07:38]Write i2c OK [18:07:38]MH_I2C_Read... [18:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:38]Read from MH i2c: E2 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 0E 00 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 0E 00 D7 1A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D3 [18:07:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:07:38]wFMCommunicate OK [18:07:38]SAM_PROTO_GetShiftState done [18:07:38]FM_GetShiftState done [18:07:38]req_shift_opened done [18:07:38]requested_item shift.open_date is exist - process it [18:07:38]req_shift_open_date [18:07:38]req_shift_open_date done [18:07:38]produce_requested_data done [18:07:38]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75519,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [18:07:38]process_action_free close_receipt [18:07:38]json_value_free [18:07:38]json_value_free done [18:07:38]process_json_proto returns [18:07:38]Send response to host [18:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75519,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [18:07:38]free response buf [18:07:38]execute_script done [18:07:38]execute_script returns [18:07:38]free content buf [18:07:38]Sock 9.Close socket [18:07:38]Sock 9.Thread stoped [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: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:18]accept exits with 8 [18:12:18]New connection [18:12:18]New thread 3066465636 created [18:12:18]Thread 3066608996 joined [18:12:18]Waiting for new connection... [18:12:18] Sock 8.Parse request [18:12:18]Sock 8.Check first char [18:12:18]Sock 8.First char is OK [18:12:18]request: POST /json_proto HTTP/1.0 [18:12:18]Method: POST [18:12:18]URL: /json_proto [18:12:18]Method is POST - this is cgi request [18:12:18]url: /json_proto [18:12:18]query_string will be loaded in cgi processing [18:12:18]execute_cgi json_proto POST (null) [18:12:18]execute_cgi path=json_proto method=POST [18:12:18]POST find Content-Length [18:12:18]Host: 172.17.44.196:8080 [18:12:18]Content-Length: 621 [18:12:18]Content-Type: application/json [18:12:18] [18:12:18]POST finish read [18:12:18]Found Content-Length = 621 [18:12:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273286", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:18]execute_script... [18:12:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273286", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:18]POST & json_proto [18:12:18]process_json_proto [18:12:18]json parsed OK: [18:12:18]protocol is kg_v1.0 [18:12:18]action value=close_receipt [18:12:18]process_action close_receipt [18:12:18]cmd_close_receipt [18:12:18]MH_GetDate [18:12:18]Write to MH i2c: F0 00 00 D8 1A E1 [18:12:18]Write i2c OK [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: F0 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: F0 09 00 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: F0 09 00 D8 1A 00 84 3C 19 67 E7 19 F8 65 87 [18:12:18]GetLastDocTimeStamp 1729706856 [18:12:18]current date 1729707140 [18:12:18]FM_GetShiftState [18:12:18]SAM_PROTO_GetShiftState [18:12:18]wFMCommunicate request_size=4 [18:12:18]MH_SAM_APDU [18:12:18]CAPDU: 80 13 01 00 [18:12:18]Write to MH i2c: E2 08 00 D9 1A 80 13 01 00 00 00 00 00 70 [18:12:18]Write i2c OK [18:12:18]MH_I2C_Read... [18:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:18]Read from MH i2c: E2 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: E2 0E 00 [18:12:18]MH_I2C_Read... [18:12:18]Read from MH i2c: E2 0E 00 D9 1A 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D5 [18:12:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:12:18]wFMCommunicate OK [18:12:18]SAM_PROTO_GetShiftState done [18:12:18]FM_GetShiftState done [18:12:18]opened in 1729642905 [18:12:18]opened+sec_in_day 1729729305 [18:12:18]quantity*price = 14000 [18:12:18]sum+1 = 14001 [18:12:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 253 23.10.2024 18:12 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75520 ФПД: 167352369098729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181220&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75520&fm=167352369098729&tin=02508201610067®Number=0000000000161154&sum=14000 0 [18:12:19]StoreToDocumentArchive [18:12:19]shift 173 fd 75520 [18:12:19]save to /storage/0173/doc_00075520 [18:12:19]save last doc name /storage/0173/doc_00075520 to /storage/kkm_last_doc_name [18:12:19]save OK [18:12:19]Clear old archive folders... [18:12:19]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:12:19]tlvbuf is 0079AE50 [18:12:19]SAM_PROTO_ClearQueue [18:12:19]wFMCommunicate request_size=4 [18:12:19]MH_SAM_APDU [18:12:19]CAPDU: 80 09 00 00 [18:12:19]Write to MH i2c: E2 08 00 E6 1A 80 09 00 00 00 00 00 00 72 [18:12:19]Write i2c OK [18:12:19]MH_I2C_Read... [18:12:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:19]Read from MH i2c: E2 [18:12:19]MH_I2C_Read... [18:12:19]Read from MH i2c: E2 03 00 [18:12:19]MH_I2C_Read... [18:12:19]Read from MH i2c: E2 03 00 E6 1A 00 90 00 74 [18:12:19]RAPDU: 90 00 [18:12:19]wFMCommunicate OK [18:12:19]SAM_PROTO_ClearQueue done [18:12:19]KKMCreateOFDPacket [18:12:19]OFDProtocolAddRootSTLVToBuf [18:12:19]FM_MakeSignedData [18:12:19]FM_MakeSignedData [18:12:19]SAM_PROTO_SignData [18:12:19]wFMCommunicate request_size=4 [18:12:19]MH_SAM_APDU [18:12:19]CAPDU: 80 0D 01 02 [18:12:19]Write to MH i2c: E2 08 00 E7 1A 80 0D 01 02 00 00 00 00 7A [18:12:19]Write i2c OK [18:12:19]MH_I2C_Read... [18:12:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:19]Read from MH i2c: E2 [18:12:19]MH_I2C_Read... [18:12:19]Read from MH i2c: E2 03 00 [18:12:19]MH_I2C_Read... [18:12:19]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [18:12:19]RAPDU: 90 00 [18:12:19]wFMCommunicate OK [18:12:19]wFMCommunicate request_size=255 [18:12:19]MH_SAM_APDU [18:12:19]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 84 3C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [18:12:19]Write to MH i2c: E2 02 01 E8 1A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 84 3C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 52 [18:12:19]Write i2c OK [18:12:19]MH_I2C_Read... [18:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:20]Read from MH i2c: E2 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: E2 03 00 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: E2 03 00 E8 1A 00 90 00 76 [18:12:20]RAPDU: 90 00 [18:12:20]wFMCommunicate OK [18:12:20]wFMCommunicate request_size=32 [18:12:20]MH_SAM_APDU [18:12:20]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 00 27 01 00 35 04 06 00 98 34 C2 83 2F E9 [18:12:20]Write to MH i2c: E2 23 00 E9 1A 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 00 27 01 00 35 04 06 00 98 34 C2 83 2F E9 00 00 25 [18:12:20]Write i2c OK [18:12:20]MH_I2C_Read... [18:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:20]Read from MH i2c: E2 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: E2 03 00 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: E2 03 00 E9 1A 00 90 00 77 [18:12:20]RAPDU: 90 00 [18:12:20]wFMCommunicate OK [18:12:20]wFMCommunicate request_size=4 [18:12:20]MH_SAM_APDU [18:12:20]CAPDU: 80 0D 03 02 [18:12:20]Write to MH i2c: E2 08 00 EA 1A 80 0D 03 02 00 00 00 00 7F [18:12:20]Write i2c OK [18:12:20]MH_I2C_Read... [18:12:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:20]Read from MH i2c: E2 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: E2 0B 00 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: E2 0B 00 EA 1A 00 FE D5 DE 43 20 D9 C9 EC 90 00 22 [18:12:20]RAPDU: FE D5 DE 43 20 D9 C9 EC 90 00 [18:12:20]wFMCommunicate OK [18:12:20]SAM_PROTO_SignData done [18:12:20]FM_MakeSignedData done [18:12:20]CreateOFDProtocolMessage [18:12:20]wFMCommunicate request_size=4 [18:12:20]MH_SAM_APDU [18:12:20]CAPDU: 80 11 00 00 [18:12:20]Write to MH i2c: E2 08 00 EB 1A 80 11 00 00 00 00 00 00 7F [18:12:20]Write i2c OK [18:12:20]MH_I2C_Read... [18:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:20]Read from MH i2c: E2 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: E2 17 00 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: E2 17 00 EB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 CC [18:12:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:12:20]wFMCommunicate OK [18:12:20]CreateOFDProtocolMessage done [18:12:20]OFDSenderStorePacket 75520 [18:12:20]StoreOFDPacket docnum=75520 [18:12:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 A4 4A 1D 01 D2 D6 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 84 3C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 27 01 00 35 04 06 00 98 34 C2 83 2F E9 FE D5 DE 43 20 D9 C9 EC [18:12:20]CheckFolder [18:12:20]dirname=/storage/ofd_packets [18:12:20]CheckFolder done [18:12:20]ProducePacketName [18:12:20]name=ofd_packets/00075520 [18:12:20]NVStorageSaveData ofd_packets/00075520 [18:12:20]File name is /storage/ofd_packets/00075520 [18:12:20]Write 323 bytes [18:12:20]NVStorageSaveData done [18:12:20]OFDSenderStorePacket done [18:12:20]KKMCreateOFDPacket done [18:12:20]NVStorageSaveData kkm_last_timestamp [18:12:20]File name is /storage/kkm_last_timestamp [18:12:20]Write 4 bytes [18:12:20]NVStorageSaveData done [18:12:20]ExternCall_PrintAddStr [18:12:20]wPrintStart [18:12:20]Write to MH i2c: 01 00 00 EC 1A 06 [18:12:20]Write i2c OK [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: 01 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: 01 07 00 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: 01 07 00 EC 1A 00 00 00 00 00 FF 0F 1B [18:12:20]RasterBufferAndPrint [18:12:20]line Счет N : (3)273286 [18:12:20]line ИНН: 02508201610067 [18:12:20]line Контрольно-Кассовый Чек [18:12:20]line ПРОДАЖА [18:12:20]line Товар: 48743570 [18:12:20]line Сигареты Winston XStyle Blue [18:12:20]line 1.000 * 140.00 [18:12:20]line = 140.00 [18:12:20]line НДС 12% НСП 1% [18:12:20]line > о реализуемом товаре [18:12:20]line ИТОГО: 140.00 [18:12:20]line НСП 1% : 1.24 [18:12:20]line НДС 12% : 14.87 [18:12:20]line Наличными: 140.00 [18:12:20]line Безнал.: 0.00 [18:12:20]line Место: АЗС № 133 "Партнер Нефть" [18:12:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:12:20]line СНО: Общий режим [18:12:20]line Чек 253 23.10.2024 18:12 [18:12:20]line Смена: 173 ФФД: 1.0 [18:12:20]line ЗНМ: 0300000020 [18:12:20]line РНМ: 0000000000161154 [18:12:20]line Версия ККМ: v1.0 [18:12:20]line ФМ: 0000000000963323 [18:12:20]line ФД: 75520 [18:12:20]line ФПД: 167352369098729 [18:12:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181220&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75520&fm=167352369098729&tin=02508201610067®Number=0000000000161154&sum=14000 [18:12:20]line 0 [18:12:20]written 0, free lines is 4095 [18:12:20]OFD Sender: Processing packet 75520 [packets to send 16, broken 15] [18:12:20]ProducePacketName [18:12:20]name=ofd_packets/00075520 [18:12:20]OFD Sender: To server: pG, [18:12:20]CommunicateWithHost lk.salyk.kg:30040 [18:12:20]ConnectInit lk.salyk.kg [18:12:20]Connected sock=10 [18:12:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 A4 4A 1D 01 D2 D6 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 84 3C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 00 27 01 00 35 04 06 00 98 34 C2 83 2F E9 FE D5 DE 43 20 D9 C9 EC [18:12:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F4 12 47 00 4E 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 39 36 33 33 32 33 10 04 04 00 00 27 01 00 F4 03 04 00 5E E5 18 67 B6 04 01 00 00 47 55 71 30 7A 3D B3 03 [18:12:20]CommunicateWithHost err = 0 [18:12:20]CheckOFDResponse [18:12:20]1017 (14) - 77093643461234 [18:12:20]1041 (16) - 0000000000963323 [18:12:20]1040 (4) - 75520 [18:12:20]1012 (4) - 23.10.2024 12:00 [18:12:20]1206 (1) - 0 [18:12:20]OFD Sender: Remove packet 75520 [18:12:20]ProducePacketName [18:12:20]name=ofd_packets/00075520 [18:12:20]NVStorageDeleteData [18:12:20]Write to MH i2c: 01 00 00 13 1B 2E [18:12:20]Write i2c OK [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: 01 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: 01 07 00 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: 01 07 00 13 1B 00 00 00 00 00 E2 0C 23 [18:12:20]RasterBufferAndPrint [18:12:20]line [18:12:20]line [18:12:20]line [18:12:20]line [18:12:20]line [18:12:20]written 0, free lines is 3302 [18:12:20]MH_Cut [18:12:20]Write to MH i2c: D1 01 00 1A 1B 01 07 [18:12:20]Write i2c OK [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: D1 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: D1 01 00 [18:12:20]MH_I2C_Read... [18:12:20]Read from MH i2c: D1 01 00 1A 1B 00 06 [18:12:20]Write to MH i2c: 01 00 00 1B 1B 36 [18:12:20]Write i2c OK [18:12:20]MH_I2C_Read... [18:12:21]OFD Sender: No OFD packet to send [18:12:21]*** Cut start [18:12:21]*** Partial cut [18:12:21]*** CUTSNS_PIN = 1 [18:12:21]*** CUTSNS_PIN = 0 [18:12:21]*** Brake cut motor [18:12:22]Read from MH i2c: 01 [18:12:22]MH_I2C_Read... [18:12:22]*** Stop cut motor [18:12:22]*** Cut end [18:12:22]Read from MH i2c: 01 07 00 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: 01 07 00 1B 1B 00 00 00 00 00 FF 0F 4B [18:12:22]process_action close_receipt done [18:12:22]requested_data is exist [18:12:22]produce_requested_data [18:12:22]requested_item fm.sn is exist - process it [18:12:22]wFMCommunicate request_size=4 [18:12:22]MH_SAM_APDU [18:12:22]CAPDU: 80 11 00 00 [18:12:22]Write to MH i2c: E2 08 00 1C 1B 80 11 00 00 00 00 00 00 B1 [18:12:22]Write i2c OK [18:12:22]MH_I2C_Read... [18:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:22]Read from MH i2c: E2 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 17 00 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 17 00 1C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FE [18:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:12:22]wFMCommunicate OK [18:12:22]requested_item fd.num is exist - process it [18:12:22]SAM_PROTO_GetFieldsCounters [18:12:22]wFMCommunicate request_size=4 [18:12:22]MH_SAM_APDU [18:12:22]CAPDU: 80 13 00 00 [18:12:22]Write to MH i2c: E2 08 00 1D 1B 80 13 00 00 00 00 00 00 B4 [18:12:22]Write i2c OK [18:12:22]MH_I2C_Read... [18:12:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:22]Read from MH i2c: E2 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 62 00 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 62 00 1D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 00 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [18:12:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 00 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:22]wFMCommunicate OK [18:12:22]SAM_PROTO_GetFieldsCounters done [18:12:22]requested_item shift.num is exist - process it [18:12:22]requested_item shift.opened is exist - process it [18:12:22]req_shift_opened [18:12:22]FM_GetShiftState [18:12:22]SAM_PROTO_GetShiftState [18:12:22]wFMCommunicate request_size=4 [18:12:22]MH_SAM_APDU [18:12:22]CAPDU: 80 13 01 00 [18:12:22]Write to MH i2c: E2 08 00 1E 1B 80 13 01 00 00 00 00 00 B6 [18:12:22]Write i2c OK [18:12:22]MH_I2C_Read... [18:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:22]Read from MH i2c: E2 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 0E 00 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 0E 00 1E 1B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1B [18:12:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:12:22]wFMCommunicate OK [18:12:22]SAM_PROTO_GetShiftState done [18:12:22]FM_GetShiftState done [18:12:22]req_shift_opened done [18:12:22]requested_item shift.open_date is exist - process it [18:12:22]req_shift_open_date [18:12:22]req_shift_open_date done [18:12:22]produce_requested_data done [18:12:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75520,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [18:12:22]process_action_free close_receipt [18:12:22]json_value_free [18:12:22]json_value_free done [18:12:22]process_json_proto returns [18:12:22]Send response to host [18:12:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75520,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [18:12:22]free response buf [18:12:22]execute_script done [18:12:22]execute_script returns [18:12:22]free content buf [18:12:22]Sock 8.Close socket [18:12:22]Sock 8.Thread stoped [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:43]accept exits with 9 [18:12:43]New connection [18:12:43]New thread 3066608996 created [18:12:43]Thread 3066465636 joined [18:12:43]Waiting for new connection... [18:12:43] Sock 9.Parse request [18:12:43]Sock 9.Check first char [18:12:43]Sock 9.First char is OK [18:12:43]request: POST /json_proto HTTP/1.0 [18:12:43]Method: POST [18:12:43]URL: /json_proto [18:12:43]Method is POST - this is cgi request [18:12:43]url: /json_proto [18:12:43]query_string will be loaded in cgi processing [18:12:43]execute_cgi json_proto POST (null) [18:12:43]execute_cgi path=json_proto method=POST [18:12:43]POST find Content-Length [18:12:43]Host: 172.17.44.196:8080 [18:12:43]Content-Length: 621 [18:12:43]Content-Type: application/json [18:12:43] [18:12:43]POST finish read [18:12:43]Found Content-Length = 621 [18:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273287", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:43]execute_script... [18:12: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 : (3)273287", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:43]POST & json_proto [18:12:43]process_json_proto [18:12:43]json parsed OK: [18:12:43]protocol is kg_v1.0 [18:12:43]action value=close_receipt [18:12:43]process_action close_receipt [18:12:43]cmd_close_receipt [18:12:43]MH_GetDate [18:12:43]Write to MH i2c: F0 00 00 1F 1B 29 [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: F0 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: F0 09 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: F0 09 00 1F 1B 00 9D 3C 19 67 E7 19 F8 65 E8 [18:12:43]GetLastDocTimeStamp 1729707140 [18:12:43]current date 1729707165 [18:12:43]FM_GetShiftState [18:12:43]SAM_PROTO_GetShiftState [18:12:43]wFMCommunicate request_size=4 [18:12:43]MH_SAM_APDU [18:12:43]CAPDU: 80 13 01 00 [18:12:43]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:43]Read from MH i2c: E2 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 0E 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 0E 00 20 1B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 1D [18:12:43]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:12:43]wFMCommunicate OK [18:12:43]SAM_PROTO_GetShiftState done [18:12:43]FM_GetShiftState done [18:12:43]opened in 1729642905 [18:12:43]opened+sec_in_day 1729729305 [18:12:43]quantity*price = 14000 [18:12:43]sum+1 = 14001 [18:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 254 23.10.2024 18:12 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75521 ФПД: 184815538524245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181245&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75521&fm=184815538524245&tin=02508201610067®Number=0000000000161154&sum=14000 0 [18:12:44]StoreToDocumentArchive [18:12:44]shift 173 fd 75521 [18:12:44]save to /storage/0173/doc_00075521 [18:12:44]save last doc name /storage/0173/doc_00075521 to /storage/kkm_last_doc_name [18:12:44]save OK [18:12:44]Clear old archive folders... [18:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:12:44]tlvbuf is 00829370 [18:12:44]SAM_PROTO_ClearQueue [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 09 00 00 [18:12:44]Write to MH i2c: E2 08 00 2D 1B 80 09 00 00 00 00 00 00 BA [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 2D 1B 00 90 00 BC [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]SAM_PROTO_ClearQueue done [18:12:44]KKMCreateOFDPacket [18:12:44]OFDProtocolAddRootSTLVToBuf [18:12:44]FM_MakeSignedData [18:12:44]FM_MakeSignedData [18:12:44]SAM_PROTO_SignData [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 01 02 [18:12:44]Write to MH i2c: E2 08 00 2E 1B 80 0D 01 02 00 00 00 00 C2 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 2E 1B 00 90 00 BD [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]wFMCommunicate request_size=255 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9D 3C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [18:12:44]Write to MH i2c: E2 02 01 2F 1B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9D 3C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 B4 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 03 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [18:12:45]RAPDU: 90 00 [18:12:45]wFMCommunicate OK [18:12:45]wFMCommunicate request_size=32 [18:12:45]MH_SAM_APDU [18:12:45]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 01 27 01 00 35 04 06 00 A8 16 B8 85 D0 55 [18:12:45]Write to MH i2c: E2 23 00 30 1B 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 01 27 01 00 35 04 06 00 A8 16 B8 85 D0 55 00 00 65 [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 03 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [18:12:45]RAPDU: 90 00 [18:12:45]wFMCommunicate OK [18:12:45]wFMCommunicate request_size=4 [18:12:45]MH_SAM_APDU [18:12:45]CAPDU: 80 0D 03 02 [18:12:45]Write to MH i2c: E2 08 00 31 1B 80 0D 03 02 00 00 00 00 C7 [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 0B 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 0B 00 31 1B 00 CF 55 68 DE B5 CF F5 0D 90 00 B8 [18:12:45]RAPDU: CF 55 68 DE B5 CF F5 0D 90 00 [18:12:45]wFMCommunicate OK [18:12:45]SAM_PROTO_SignData done [18:12:45]FM_MakeSignedData done [18:12:45]CreateOFDProtocolMessage [18:12:45]wFMCommunicate request_size=4 [18:12:45]MH_SAM_APDU [18:12:45]CAPDU: 80 11 00 00 [18:12:45]Write to MH i2c: E2 08 00 32 1B 80 11 00 00 00 00 00 00 C7 [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 17 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 17 00 32 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 14 [18:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:12:45]wFMCommunicate OK [18:12:45]CreateOFDProtocolMessage done [18:12:45]OFDSenderStorePacket 75521 [18:12:45]StoreOFDPacket docnum=75521 [18:12:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 67 EC 1D 01 B9 DA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9D 3C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 27 01 00 35 04 06 00 A8 16 B8 85 D0 55 CF 55 68 DE B5 CF F5 0D [18:12:45]CheckFolder [18:12:45]dirname=/storage/ofd_packets [18:12:45]CheckFolder done [18:12:45]ProducePacketName [18:12:45]name=ofd_packets/00075521 [18:12:45]NVStorageSaveData ofd_packets/00075521 [18:12:45]File name is /storage/ofd_packets/00075521 [18:12:45]Write 323 bytes [18:12:45]NVStorageSaveData done [18:12:45]OFDSenderStorePacket done [18:12:45]KKMCreateOFDPacket done [18:12:45]NVStorageSaveData kkm_last_timestamp [18:12:45]File name is /storage/kkm_last_timestamp [18:12:45]Write 4 bytes [18:12:45]NVStorageSaveData done [18:12:45]ExternCall_PrintAddStr [18:12:45]wPrintStart [18:12:45]Write to MH i2c: 01 00 00 33 1B 4E [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 07 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 07 00 33 1B 00 00 00 00 00 FF 0F 63 [18:12:45]RasterBufferAndPrint [18:12:45]line Счет N : (3)273287 [18:12:45]line ИНН: 02508201610067 [18:12:45]line Контрольно-Кассовый Чек [18:12:45]line ПРОДАЖА [18:12:45]line Товар: 48743570 [18:12:45]line Сигареты Winston XStyle Blue [18:12:45]line 1.000 * 140.00 [18:12:45]line = 140.00 [18:12:45]line НДС 12% НСП 1% [18:12:45]line > о реализуемом товаре [18:12:45]line ИТОГО: 140.00 [18:12:45]line НСП 1% : 1.24 [18:12:45]line НДС 12% : 14.87 [18:12:45]line Наличными: 140.00 [18:12:45]line Безнал.: 0.00 [18:12:45]line Место: АЗС № 133 "Партнер Нефть" [18:12:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:12:45]line СНО: Общий режим [18:12:45]line Чек 254 23.10.2024 18:12 [18:12:45]line Смена: 173 ФФД: 1.0 [18:12:45]line ЗНМ: 0300000020 [18:12:45]line РНМ: 0000000000161154 [18:12:45]line Версия ККМ: v1.0 [18:12:45]line ФМ: 0000000000963323 [18:12:45]line ФД: 75521 [18:12:45]line ФПД: 184815538524245 [18:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181245&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75521&fm=184815538524245&tin=02508201610067®Number=0000000000161154&sum=14000 [18:12:45]line 0 [18:12:45]OFD Sender: Processing packet 75521 [packets to send 16, broken 15] [18:12:45]ProducePacketName [18:12:45]name=ofd_packets/00075521 [18:12:45]OFD Sender: To server: pG, [18:12:45]CommunicateWithHost lk.salyk.kg:30040 [18:12:45]ConnectInit lk.salyk.kg [18:12:45]written 0, free lines is 4095 [18:12:45]Connected sock=10 [18:12:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 67 EC 1D 01 B9 DA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9D 3C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 27 01 00 35 04 06 00 A8 16 B8 85 D0 55 CF 55 68 DE B5 CF F5 0D [18:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FA 15 47 00 A3 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 01 27 01 00 F4 03 04 00 77 E5 18 67 B6 04 01 00 00 85 5A B1 14 D3 66 49 20 [18:12:45]CommunicateWithHost err = 0 [18:12:45]CheckOFDResponse [18:12:45]1017 (14) - 77093643461234 [18:12:45]1041 (16) - 0000000000963323 [18:12:45]1040 (4) - 75521 [18:12:45]1012 (4) - 23.10.2024 12:00 [18:12:45]1206 (1) - 0 [18:12:45]OFD Sender: Remove packet 75521 [18:12:45]ProducePacketName [18:12:45]name=ofd_packets/00075521 [18:12:45]NVStorageDeleteData [18:12:46]Write to MH i2c: 01 00 00 5A 1B 75 [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: 01 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: 01 07 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: 01 07 00 5A 1B 00 00 00 00 00 D5 0C 5D [18:12:46]RasterBufferAndPrint [18:12:46]line [18:12:46]line [18:12:46]line [18:12:46]line [18:12:46]line [18:12:46]written 0, free lines is 3289 [18:12:46]MH_Cut [18:12:46]Write to MH i2c: D1 01 00 61 1B 01 4E [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: D1 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: D1 01 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: D1 01 00 61 1B 00 4D [18:12:46]Write to MH i2c: 01 00 00 62 1B 7D [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]OFD Sender: No OFD packet to send [18:12:46]*** Cut start [18:12:46]*** Partial cut [18:12:46]*** CUTSNS_PIN = 1 [18:12:46]*** CUTSNS_PIN = 0 [18:12:47]*** Brake cut motor [18:12:47]Read from MH i2c: 01 [18:12:47]MH_I2C_Read... [18:12:47]*** Stop cut motor [18:12:47]*** Cut end [18:12:47]Read from MH i2c: 01 07 00 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: 01 07 00 62 1B 00 00 00 00 00 FF 0F 92 [18:12:47]process_action close_receipt done [18:12:47]requested_data is exist [18:12:47]produce_requested_data [18:12:47]requested_item fm.sn is exist - process it [18:12:47]wFMCommunicate request_size=4 [18:12:47]MH_SAM_APDU [18:12:47]CAPDU: 80 11 00 00 [18:12:47]Write to MH i2c: E2 08 00 63 1B 80 11 00 00 00 00 00 00 F8 [18:12:47]Write i2c OK [18:12:47]MH_I2C_Read... [18:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:47]Read from MH i2c: E2 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 17 00 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 17 00 63 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 45 [18:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:12:47]wFMCommunicate OK [18:12:47]requested_item fd.num is exist - process it [18:12:47]SAM_PROTO_GetFieldsCounters [18:12:47]wFMCommunicate request_size=4 [18:12:47]MH_SAM_APDU [18:12:47]CAPDU: 80 13 00 00 [18:12:47]Write to MH i2c: E2 08 00 64 1B 80 13 00 00 00 00 00 00 FB [18:12:47]Write i2c OK [18:12:47]MH_I2C_Read... [18:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:47]Read from MH i2c: E2 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 62 00 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 62 00 64 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 01 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [18:12:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 01 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:47]wFMCommunicate OK [18:12:47]SAM_PROTO_GetFieldsCounters done [18:12:47]requested_item shift.num is exist - process it [18:12:47]requested_item shift.opened is exist - process it [18:12:47]req_shift_opened [18:12:47]FM_GetShiftState [18:12:47]SAM_PROTO_GetShiftState [18:12:47]wFMCommunicate request_size=4 [18:12:47]MH_SAM_APDU [18:12:47]CAPDU: 80 13 01 00 [18:12:47]Write to MH i2c: E2 08 00 65 1B 80 13 01 00 00 00 00 00 FD [18:12:47]Write i2c OK [18:12:47]MH_I2C_Read... [18:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:47]Read from MH i2c: E2 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 0E 00 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 0E 00 65 1B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 62 [18:12:47]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:12:47]wFMCommunicate OK [18:12:47]SAM_PROTO_GetShiftState done [18:12:47]FM_GetShiftState done [18:12:47]req_shift_opened done [18:12:47]requested_item shift.open_date is exist - process it [18:12:47]req_shift_open_date [18:12:47]req_shift_open_date done [18:12:47]produce_requested_data done [18:12:47]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75521,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [18:12:47]process_action_free close_receipt [18:12:47]json_value_free [18:12:47]json_value_free done [18:12:47]process_json_proto returns [18:12:47]Send response to host [18:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75521,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [18:12:47]free response buf [18:12:47]execute_script done [18:12:47]execute_script returns [18:12:47]free content buf [18:12:47]Sock 9.Close socket [18:12:47]Sock 9.Thread stoped [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]accept exits with 8 [18:23:51]New connection [18:23:51]New thread 3066465636 created [18:23:51]Thread 3066608996 joined [18:23:51]Waiting for new connection... [18:23:51] Sock 8.Parse request [18:23:51]Sock 8.Check first char [18:23:51]Sock 8.First char is OK [18:23:51]request: POST /json_proto HTTP/1.0 [18:23:51]Method: POST [18:23:51]URL: /json_proto [18:23:51]Method is POST - this is cgi request [18:23:51]url: /json_proto [18:23:51]query_string will be loaded in cgi processing [18:23:51]execute_cgi json_proto POST (null) [18:23:51]execute_cgi path=json_proto method=POST [18:23:51]POST find Content-Length [18:23:51]Host: 172.17.44.196:8080 [18:23:51]Content-Length: 773 [18:23:51]Content-Type: application/json [18:23:51] [18:23:51]POST finish read [18:23:51]Found Content-Length = 773 [18:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273288", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:51]execute_script... [18:23:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273288", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:51]POST & json_proto [18:23:51]process_json_proto [18:23:51]json parsed OK: [18:23:51]protocol is kg_v1.0 [18:23:51]action value=close_receipt [18:23:51]process_action close_receipt [18:23:51]cmd_close_receipt [18:23:51]MH_GetDate [18:23:51]Write to MH i2c: F0 00 00 66 1B 70 [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: F0 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: F0 09 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: F0 09 00 66 1B 00 39 3F 19 67 E7 19 F8 65 CE [18:23:51]GetLastDocTimeStamp 1729707165 [18:23:51]current date 1729707833 [18:23:51]FM_GetShiftState [18:23:51]SAM_PROTO_GetShiftState [18:23:51]wFMCommunicate request_size=4 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 13 01 00 [18:23:51]Write to MH i2c: E2 08 00 67 1B 80 13 01 00 00 00 00 00 FF [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 0E 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 0E 00 67 1B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 64 [18:23:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:23:51]wFMCommunicate OK [18:23:51]SAM_PROTO_GetShiftState done [18:23:51]FM_GetShiftState done [18:23:51]opened in 1729642905 [18:23:51]opened+sec_in_day 1729729305 [18:23:51]quantity*price = 13000 [18:23:51]sum+1 = 13001 [18:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 255 23.10.2024 18:23 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75522 ФПД: 123829215014226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182353&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75522&fm=123829215014226&tin=02508201610067®Number=0000000000161154&sum=13000 0 [18:23:52]StoreToDocumentArchive [18:23:52]shift 173 fd 75522 [18:23:52]save to /storage/0173/doc_00075522 [18:23:52]save last doc name /storage/0173/doc_00075522 to /storage/kkm_last_doc_name [18:23:52]save OK [18:23:52]Clear old archive folders... [18:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:23:52]tlvbuf is 0079B0F0 [18:23:52]SAM_PROTO_ClearQueue [18:23:52]wFMCommunicate request_size=4 [18:23:52]MH_SAM_APDU [18:23:52]CAPDU: 80 09 00 00 [18:23:52]Write to MH i2c: E2 08 00 74 1B 80 09 00 00 00 00 00 00 01 [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:52]Read from MH i2c: E2 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: E2 03 00 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: E2 03 00 74 1B 00 90 00 03 [18:23:52]RAPDU: 90 00 [18:23:52]wFMCommunicate OK [18:23:52]SAM_PROTO_ClearQueue done [18:23:52]KKMCreateOFDPacket [18:23:52]OFDProtocolAddRootSTLVToBuf [18:23:52]FM_MakeSignedData [18:23:52]FM_MakeSignedData [18:23:52]SAM_PROTO_SignData [18:23:52]wFMCommunicate request_size=4 [18:23:52]MH_SAM_APDU [18:23:52]CAPDU: 80 0D 01 02 [18:23:52]Write to MH i2c: E2 08 00 75 1B 80 0D 01 02 00 00 00 00 09 [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:52]Read from MH i2c: E2 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: E2 03 00 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [18:23:52]RAPDU: 90 00 [18:23:52]wFMCommunicate OK [18:23:52]wFMCommunicate request_size=255 [18:23:52]MH_SAM_APDU [18:23:52]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 39 3F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [18:23:52]Write to MH i2c: E2 02 01 76 1B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 39 3F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 B5 [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:53]Read from MH i2c: E2 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 03 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 03 00 76 1B 00 90 00 05 [18:23:53]RAPDU: 90 00 [18:23:53]wFMCommunicate OK [18:23:53]wFMCommunicate request_size=41 [18:23:53]MH_SAM_APDU [18:23:53]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 27 01 00 35 04 06 00 70 9F 3C 5F AD 52 [18:23:53]Write to MH i2c: E2 2C 00 77 1B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 27 01 00 35 04 06 00 70 9F 3C 5F AD 52 00 00 A8 [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:53]Read from MH i2c: E2 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 03 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 03 00 77 1B 00 90 00 06 [18:23:53]RAPDU: 90 00 [18:23:53]wFMCommunicate OK [18:23:53]wFMCommunicate request_size=4 [18:23:53]MH_SAM_APDU [18:23:53]CAPDU: 80 0D 03 02 [18:23:53]Write to MH i2c: E2 08 00 78 1B 80 0D 03 02 00 00 00 00 0E [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:53]Read from MH i2c: E2 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 0B 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 0B 00 78 1B 00 48 B4 8D FB 52 8D A4 BE 90 00 D4 [18:23:53]RAPDU: 48 B4 8D FB 52 8D A4 BE 90 00 [18:23:53]wFMCommunicate OK [18:23:53]SAM_PROTO_SignData done [18:23:53]FM_MakeSignedData done [18:23:53]CreateOFDProtocolMessage [18:23:53]wFMCommunicate request_size=4 [18:23:53]MH_SAM_APDU [18:23:53]CAPDU: 80 11 00 00 [18:23:53]Write to MH i2c: E2 08 00 79 1B 80 11 00 00 00 00 00 00 0E [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:53]Read from MH i2c: E2 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 17 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 17 00 79 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 5B [18:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:23:53]wFMCommunicate OK [18:23:53]CreateOFDProtocolMessage done [18:23:53]OFDSenderStorePacket 75522 [18:23:53]StoreOFDPacket docnum=75522 [18:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 A9 D0 26 01 CB 76 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 39 3F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 27 01 00 35 04 06 00 70 9F 3C 5F AD 52 48 B4 8D FB 52 8D A4 BE [18:23:53]CheckFolder [18:23:53]dirname=/storage/ofd_packets [18:23:53]CheckFolder done [18:23:53]ProducePacketName [18:23:53]name=ofd_packets/00075522 [18:23:53]NVStorageSaveData ofd_packets/00075522 [18:23:53]File name is /storage/ofd_packets/00075522 [18:23:53]Write 332 bytes [18:23:53]NVStorageSaveData done [18:23:53]OFDSenderStorePacket done [18:23:53]KKMCreateOFDPacket done [18:23:53]NVStorageSaveData kkm_last_timestamp [18:23:53]File name is /storage/kkm_last_timestamp [18:23:53]Write 4 bytes [18:23:53]NVStorageSaveData done [18:23:53]ExternCall_PrintAddStr [18:23:53]wPrintStart [18:23:53]Write to MH i2c: 01 00 00 7A 1B 95 [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: 01 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: 01 07 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: 01 07 00 7A 1B 00 00 00 00 00 FF 0F AA [18:23:53]RasterBufferAndPrint [18:23:53]line Счет N : (3)273288 [18:23:53]line ИНН: 02508201610067 [18:23:53]line Контрольно-Кассовый Чек [18:23:53]line ПРОДАЖА [18:23:53]line Товар: 2000036220012 [18:23:53]line Кофе Капучино XL(GABB TRADE) [18:23:53]line 1.000 * 130.00 [18:23:53]line = 130.00 [18:23:53]line НДС 12% НСП 1% [18:23:53]line > о реализуемом товаре [18:23:53]line ИТОГО: 130.00 [18:23:53]line НСП 1% : 1.15 [18:23:53]line НДС 12% : 13.80 [18:23:53]line Наличными: 0.00 [18:23:53]line Безнал.: 130.00 [18:23:53]line Место: АЗС № 133 "Партнер Нефть" [18:23:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:23:53]line СНО: Общий режим [18:23:53]line Чек 255 23.10.2024 18:23 [18:23:53]line Смена: 173 ФФД: 1.0 [18:23:53]line ЗНМ: 0300000020 [18:23:53]line РНМ: 0000000000161154 [18:23:53]line Версия ККМ: v1.0 [18:23:53]line Платежная система: Mbank [18:23:53]line ФМ: 0000000000963323 [18:23:53]line ФД: 75522 [18:23:53]line ФПД: 123829215014226 [18:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182353&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75522&fm=123829215014226&tin=02508201610067®Number=0000000000161154&sum=13000 [18:23:53]line 0 [18:23:53]OFD Sender: Processing packet 75522 [packets to send 16, broken 15] [18:23:53]ProducePacketName [18:23:53]name=ofd_packets/00075522 [18:23:53]OFD Sender: To server: pG, [18:23:53]CommunicateWithHost lk.salyk.kg:30040 [18:23:53]ConnectInit lk.salyk.kg [18:23:53]written 0, free lines is 4095 [18:23:53]Connected sock=9 [18:23:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 A9 D0 26 01 CB 76 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 39 3F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 27 01 00 35 04 06 00 70 9F 3C 5F AD 52 48 B4 8D FB 52 8D A4 BE [18:23:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 63 B0 47 00 74 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 02 27 01 00 F4 03 04 00 13 E8 18 67 B6 04 01 00 00 A2 34 99 04 E3 A6 FF B8 [18:23:54]CommunicateWithHost err = 0 [18:23:54]CheckOFDResponse [18:23:54]1017 (14) - 77093643461234 [18:23:54]1041 (16) - 0000000000963323 [18:23:54]1040 (4) - 75522 [18:23:54]1012 (4) - 23.10.2024 12:12 [18:23:54]1206 (1) - 0 [18:23:54]OFD Sender: Remove packet 75522 [18:23:54]ProducePacketName [18:23:54]name=ofd_packets/00075522 [18:23:54]NVStorageDeleteData [18:23:54]Write to MH i2c: 01 00 00 A3 1B BE [18:23:54]Write i2c OK [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: 01 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: 01 07 00 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: 01 07 00 A3 1B 00 00 00 00 00 BB 0C 8C [18:23:54]RasterBufferAndPrint [18:23:54]line [18:23:54]line [18:23:54]line [18:23:54]line [18:23:54]line [18:23:54]written 0, free lines is 3263 [18:23:54]MH_Cut [18:23:54]Write to MH i2c: D1 01 00 AA 1B 01 97 [18:23:54]Write i2c OK [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: D1 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: D1 01 00 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: D1 01 00 AA 1B 00 96 [18:23:54]Write to MH i2c: 01 00 00 AB 1B C6 [18:23:54]Write i2c OK [18:23:54]MH_I2C_Read... [18:23:54]OFD Sender: No OFD packet to send [18:23:55]*** Cut start [18:23:55]*** Partial cut [18:23:55]*** CUTSNS_PIN = 1 [18:23:55]*** CUTSNS_PIN = 0 [18:23:55]*** Brake cut motor [18:23:55]Read from MH i2c: 01 [18:23:55]MH_I2C_Read... [18:23:55]*** Stop cut motor [18:23:55]*** Cut end [18:23:55]Read from MH i2c: 01 07 00 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: 01 07 00 AB 1B 00 00 00 00 00 FF 0F DB [18:23:55]process_action close_receipt done [18:23:55]requested_data is exist [18:23:55]produce_requested_data [18:23:55]requested_item fm.sn is exist - process it [18:23:55]wFMCommunicate request_size=4 [18:23:55]MH_SAM_APDU [18:23:55]CAPDU: 80 11 00 00 [18:23:55]Write to MH i2c: E2 08 00 AC 1B 80 11 00 00 00 00 00 00 41 [18:23:55]Write i2c OK [18:23:55]MH_I2C_Read... [18:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:55]Read from MH i2c: E2 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: E2 17 00 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: E2 17 00 AC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8E [18:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:23:55]wFMCommunicate OK [18:23:55]requested_item fd.num is exist - process it [18:23:55]SAM_PROTO_GetFieldsCounters [18:23:55]wFMCommunicate request_size=4 [18:23:55]MH_SAM_APDU [18:23:55]CAPDU: 80 13 00 00 [18:23:55]Write to MH i2c: E2 08 00 AD 1B 80 13 00 00 00 00 00 00 44 [18:23:55]Write i2c OK [18:23:55]MH_I2C_Read... [18:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:55]Read from MH i2c: E2 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: E2 62 00 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: E2 62 00 AD 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 02 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [18:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 02 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:55]wFMCommunicate OK [18:23:55]SAM_PROTO_GetFieldsCounters done [18:23:55]requested_item shift.num is exist - process it [18:23:55]requested_item shift.opened is exist - process it [18:23:55]req_shift_opened [18:23:55]FM_GetShiftState [18:23:55]SAM_PROTO_GetShiftState [18:23:55]wFMCommunicate request_size=4 [18:23:55]MH_SAM_APDU [18:23:56]CAPDU: 80 13 01 00 [18:23:56]Write to MH i2c: E2 08 00 AE 1B 80 13 01 00 00 00 00 00 46 [18:23:56]Write i2c OK [18:23:56]MH_I2C_Read... [18:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:56]Read from MH i2c: E2 [18:23:56]MH_I2C_Read... [18:23:56]Read from MH i2c: E2 0E 00 [18:23:56]MH_I2C_Read... [18:23:56]Read from MH i2c: E2 0E 00 AE 1B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AB [18:23:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:23:56]wFMCommunicate OK [18:23:56]SAM_PROTO_GetShiftState done [18:23:56]FM_GetShiftState done [18:23:56]req_shift_opened done [18:23:56]requested_item shift.open_date is exist - process it [18:23:56]req_shift_open_date [18:23:56]req_shift_open_date done [18:23:56]produce_requested_data done [18:23:56]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75522,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [18:23:56]process_action_free close_receipt [18:23:56]json_value_free [18:23:56]json_value_free done [18:23:56]process_json_proto returns [18:23:56]Send response to host [18:23:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75522,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [18:23:56]free response buf [18:23:56]execute_script done [18:23:56]execute_script returns [18:23:56]free content buf [18:23:56]Sock 8.Close socket [18:23:56]Sock 8.Thread stoped [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:51]accept exits with 10 [18:26:51]New connection [18:26:51]New thread 3066608996 created [18:26:51]Thread 3066465636 joined [18:26:51]Waiting for new connection... [18:26:51] Sock 10.Parse request [18:26:51]Sock 10.Check first char [18:26:51]Sock 10.First char is OK [18:26:51]request: POST /json_proto HTTP/1.0 [18:26:51]Method: POST [18:26:51]URL: /json_proto [18:26:51]Method is POST - this is cgi request [18:26:51]url: /json_proto [18:26:51]query_string will be loaded in cgi processing [18:26:51]execute_cgi json_proto POST (null) [18:26:51]execute_cgi path=json_proto method=POST [18:26:51]POST find Content-Length [18:26:51]Host: 172.17.44.196:8080 [18:26:51]Content-Length: 1342 [18:26:51]Content-Type: application/json [18:26:51] [18:26:51]POST finish read [18:26:51]Found Content-Length = 1342 [18:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273289", "tax_sys" : 0, "items" : [ { "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 289.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:51]execute_script... [18:26:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273289", "tax_sys" : 0, "items" : [ { "code": "4660013331438", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041C\u043E\u0441\u043A\u043E\u0432\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 289.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:51]POST & json_proto [18:26:51]process_json_proto [18:26:51]json parsed OK: [18:26:51]protocol is kg_v1.0 [18:26:51]action value=close_receipt [18:26:51]process_action close_receipt [18:26:51]cmd_close_receipt [18:26:51]MH_GetDate [18:26:51]Write to MH i2c: F0 00 00 AF 1B B9 [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: F0 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: F0 09 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: F0 09 00 AF 1B 00 EC 3F 19 67 E7 19 F8 65 CA [18:26:51]GetLastDocTimeStamp 1729707833 [18:26:51]current date 1729708012 [18:26:51]FM_GetShiftState [18:26:51]SAM_PROTO_GetShiftState [18:26:51]wFMCommunicate request_size=4 [18:26:51]MH_SAM_APDU [18:26:51]CAPDU: 80 13 01 00 [18:26:51]Write to MH i2c: E2 08 00 B0 1B 80 13 01 00 00 00 00 00 48 [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:51]Read from MH i2c: E2 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 0E 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 0E 00 B0 1B 00 09 00 01 99 41 18 67 00 00 00 00 90 00 AD [18:26:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:26:51]wFMCommunicate OK [18:26:51]SAM_PROTO_GetShiftState done [18:26:51]FM_GetShiftState done [18:26:51]opened in 1729642905 [18:26:51]opened+sec_in_day 1729729305 [18:26:51]quantity*price = 19000 [18:26:51]sum+1 = 19001 [18:26:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660013331421 Эскимо Ленинградское 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 289.00 НСП 1% : 2.55 НДС 12% : 30.69 Наличными: 0.00 Безнал.: 289.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 256 23.10.2024 18:26 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75523 ФПД: 218594126540088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182653&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75523&fm=218594126540088&tin=02508201610067®Number=0000000000161154&sum=28900 0 [18:26:52]StoreToDocumentArchive [18:26:52]shift 173 fd 75523 [18:26:52]save to /storage/0173/doc_00075523 [18:26:52]save last doc name /storage/0173/doc_00075523 to /storage/kkm_last_doc_name [18:26:52]save OK [18:26:52]Clear old archive folders... [18:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=494 [18:26:52]tlvbuf is 0078EA80 [18:26:52]SAM_PROTO_ClearQueue [18:26:52]wFMCommunicate request_size=4 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 09 00 00 [18:26:52]Write to MH i2c: E2 08 00 BD 1B 80 09 00 00 00 00 00 00 4A [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 03 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 03 00 BD 1B 00 90 00 4C [18:26:52]RAPDU: 90 00 [18:26:52]wFMCommunicate OK [18:26:52]SAM_PROTO_ClearQueue done [18:26:52]KKMCreateOFDPacket [18:26:52]OFDProtocolAddRootSTLVToBuf [18:26:52]FM_MakeSignedData [18:26:52]FM_MakeSignedData [18:26:52]SAM_PROTO_SignData [18:26:52]wFMCommunicate request_size=4 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 0D 01 02 [18:26:52]Write to MH i2c: E2 08 00 BE 1B 80 0D 01 02 00 00 00 00 52 [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 03 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [18:26:52]RAPDU: 90 00 [18:26:52]wFMCommunicate OK [18:26:52]wFMCommunicate request_size=255 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 0D 02 02 FA 03 00 EE 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 [18:26:52]Write to MH i2c: E2 02 01 BF 1B 80 0D 02 02 FA 00 03 00 EE 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 00 00 C8 [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 03 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [18:26:52]RAPDU: 90 00 [18:26:52]wFMCommunicate OK [18:26:52]wFMCommunicate request_size=253 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 0D 02 02 F8 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 ED 3F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 27 01 00 35 04 06 00 C6 CF 69 43 2D 38 [18:26:52]Write to MH i2c: E2 00 01 C0 1B 80 0D 02 02 F8 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 ED 3F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 27 01 00 35 04 06 00 C6 CF 69 43 2D 38 00 00 FF [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:53]Read from MH i2c: E2 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: E2 03 00 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [18:26:53]RAPDU: 90 00 [18:26:53]wFMCommunicate OK [18:26:53]wFMCommunicate request_size=4 [18:26:53]MH_SAM_APDU [18:26:53]CAPDU: 80 0D 03 02 [18:26:53]Write to MH i2c: E2 08 00 C1 1B 80 0D 03 02 00 00 00 00 57 [18:26:53]Write i2c OK [18:26:53]MH_I2C_Read... [18:26:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:53]Read from MH i2c: E2 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: E2 0B 00 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: E2 0B 00 C1 1B 00 B9 9E 73 ED A2 2D D9 A0 90 00 57 [18:26:53]RAPDU: B9 9E 73 ED A2 2D D9 A0 90 00 [18:26:53]wFMCommunicate OK [18:26:53]SAM_PROTO_SignData done [18:26:53]FM_MakeSignedData done [18:26:53]CreateOFDProtocolMessage [18:26:53]wFMCommunicate request_size=4 [18:26:53]MH_SAM_APDU [18:26:53]CAPDU: 80 11 00 00 [18:26:53]Write to MH i2c: E2 08 00 C2 1B 80 11 00 00 00 00 00 00 57 [18:26:53]Write i2c OK [18:26:53]MH_I2C_Read... [18:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:53]Read from MH i2c: E2 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: E2 17 00 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: E2 17 00 C2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A4 [18:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:26:53]wFMCommunicate OK [18:26:53]CreateOFDProtocolMessage done [18:26:53]OFDSenderStorePacket 75523 [18:26:53]StoreOFDPacket docnum=75523 [18:26:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 02 02 00 00 7B 22 FA 01 53 FA 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 ED 3F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 27 01 00 35 04 06 00 C6 CF 69 43 2D 38 B9 9E 73 ED A2 2D D9 A0 [18:26:53]CheckFolder [18:26:53]dirname=/storage/ofd_packets [18:26:53]CheckFolder done [18:26:53]ProducePacketName [18:26:53]name=ofd_packets/00075523 [18:26:53]NVStorageSaveData ofd_packets/00075523 [18:26:53]File name is /storage/ofd_packets/00075523 [18:26:53]Write 544 bytes [18:26:53]NVStorageSaveData done [18:26:53]OFDSenderStorePacket done [18:26:53]KKMCreateOFDPacket done [18:26:53]NVStorageSaveData kkm_last_timestamp [18:26:53]File name is /storage/kkm_last_timestamp [18:26:53]Write 4 bytes [18:26:53]NVStorageSaveData done [18:26:53]ExternCall_PrintAddStr [18:26:53]wPrintStart [18:26:53]Write to MH i2c: 01 00 00 C3 1B DE [18:26:53]Write i2c OK [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: 01 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: 01 07 00 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 FF 0F F3 [18:26:53]RasterBufferAndPrint [18:26:53]line Счет N : (3)273289 [18:26:53]line ИНН: 02508201610067 [18:26:53]line Контрольно-Кассовый Чек [18:26:53]line ПРОДАЖА [18:26:53]line Товар: 4660013331438 [18:26:53]line Эскимо Московское [18:26:53]line 2.000 * 95.00 [18:26:53]line = 190.00 [18:26:53]line НДС 12% НСП 1% [18:26:53]line > о реализуемом товаре [18:26:53]line Товар: 4660013331421 [18:26:53]line Эскимо Ленинградское [18:26:53]line 1.000 * 95.00 [18:26:53]line = 95.00 [18:26:53]line НДС 12% НСП 1% [18:26:53]line > о реализуемом товаре [18:26:53]line Товар: 2000031750019 [18:26:53]line Пакет Партнер Нефть [18:26:53]line 1.000 * 4.00 [18:26:53]line = 4.00 [18:26:53]line НДС 12% НСП 1% [18:26:53]line > о реализуемом товаре [18:26:53]line ИТОГО: 289.00 [18:26:53]line НСП 1% : 2.55 [18:26:53]line НДС 12% : 30.69 [18:26:53]line Наличными: 0.00 [18:26:53]line Безнал.: 289.00 [18:26:53]line Место: АЗС № 133 "Партнер Нефть" [18:26:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:26:53]line СНО: Общий режим [18:26:53]line Чек 256 23.10.2024 18:26 [18:26:53]line Смена: 173 ФФД: 1.0 [18:26:53]line ЗНМ: 0300000020 [18:26:53]line РНМ: 0000000000161154 [18:26:53]line Версия ККМ: v1.0 [18:26:53]line Платежная система: Mbank [18:26:53]line ФМ: 0000000000963323 [18:26:53]line ФД: 75523 [18:26:53]line ФПД: 218594126540088 [18:26:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182653&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75523&fm=218594126540088&tin=02508201610067®Number=0000000000161154&sum=28900 [18:26:53]line 0 [18:26:53]written 0, free lines is 4095 [18:26:53]OFD Sender: Processing packet 75523 [packets to send 16, broken 15] [18:26:53]ProducePacketName [18:26:53]name=ofd_packets/00075523 [18:26:53]OFD Sender: To server: pG, [18:26:53]CommunicateWithHost lk.salyk.kg:30040 [18:26:53]ConnectInit lk.salyk.kg [18:26:53]Connected sock=9 [18:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 02 02 00 00 7B 22 FA 01 53 FA 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 33 38 06 04 21 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9C D0 BE D1 81 D0 BA D0 BE D0 B2 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 ED 3F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 27 01 00 35 04 06 00 C6 CF 69 43 2D 38 B9 9E 73 ED A2 2D D9 A0 [18:26:53]Write to MH i2c: 01 00 00 F7 1B 12 [18:26:53]Write i2c OK [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: 01 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: 01 07 00 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: 01 07 00 F7 1B 00 00 00 00 00 F6 0B 1A [18:26:53]RasterBufferAndPrint [18:26:53]line [18:26:53]line [18:26:53]line [18:26:53]line [18:26:53]line [18:26:53]written 0, free lines is 3066 [18:26:53]MH_Cut [18:26:53]Write to MH i2c: D1 01 00 FE 1B 01 EB [18:26:53]Write i2c OK [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: D1 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: D1 01 00 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: D1 01 00 FE 1B 00 EA [18:26:53]Write to MH i2c: 01 00 00 FF 1B 1A [18:26:53]Write i2c OK [18:26:53]MH_I2C_Read... [18:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D8 64 47 00 62 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 03 27 01 00 F4 03 04 00 C7 E8 18 67 B6 04 01 00 00 59 C1 8A 0F BA 70 CC 48 [18:26:53]CommunicateWithHost err = 0 [18:26:53]CheckOFDResponse [18:26:53]1017 (14) - 77093643461234 [18:26:53]1041 (16) - 0000000000963323 [18:26:53]1040 (4) - 75523 [18:26:53]1012 (4) - 23.10.2024 12:15 [18:26:53]1206 (1) - 0 [18:26:53]OFD Sender: Remove packet 75523 [18:26:53]ProducePacketName [18:26:53]name=ofd_packets/00075523 [18:26:53]NVStorageDeleteData [18:26:54]OFD Sender: No OFD packet to send [18:26:54]*** Cut start [18:26:54]*** Partial cut [18:26:54]*** CUTSNS_PIN = 1 [18:26:54]*** CUTSNS_PIN = 0 [18:26:55]*** Brake cut motor [18:26:55]Read from MH i2c: 01 [18:26:55]MH_I2C_Read... [18:26:55]*** Stop cut motor [18:26:55]*** Cut end [18:26:55]Read from MH i2c: 01 07 00 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: 01 07 00 FF 1B 00 00 00 00 00 FF 0F 2F [18:26:55]process_action close_receipt done [18:26:55]requested_data is exist [18:26:55]produce_requested_data [18:26:55]requested_item fm.sn is exist - process it [18:26:55]wFMCommunicate request_size=4 [18:26:55]MH_SAM_APDU [18:26:55]CAPDU: 80 11 00 00 [18:26:55]Write to MH i2c: E2 08 00 00 1C 80 11 00 00 00 00 00 00 96 [18:26:55]Write i2c OK [18:26:55]MH_I2C_Read... [18:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:55]Read from MH i2c: E2 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 17 00 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 17 00 00 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E3 [18:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:26:55]wFMCommunicate OK [18:26:55]requested_item fd.num is exist - process it [18:26:55]SAM_PROTO_GetFieldsCounters [18:26:55]wFMCommunicate request_size=4 [18:26:55]MH_SAM_APDU [18:26:55]CAPDU: 80 13 00 00 [18:26:55]Write to MH i2c: E2 08 00 01 1C 80 13 00 00 00 00 00 00 99 [18:26:55]Write i2c OK [18:26:55]MH_I2C_Read... [18:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:55]Read from MH i2c: E2 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 62 00 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 62 00 01 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 03 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [18:26:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 03 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:55]wFMCommunicate OK [18:26:55]SAM_PROTO_GetFieldsCounters done [18:26:55]requested_item shift.num is exist - process it [18:26:55]requested_item shift.opened is exist - process it [18:26:55]req_shift_opened [18:26:55]FM_GetShiftState [18:26:55]SAM_PROTO_GetShiftState [18:26:55]wFMCommunicate request_size=4 [18:26:55]MH_SAM_APDU [18:26:55]CAPDU: 80 13 01 00 [18:26:55]Write to MH i2c: E2 08 00 02 1C 80 13 01 00 00 00 00 00 9B [18:26:55]Write i2c OK [18:26:55]MH_I2C_Read... [18:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:55]Read from MH i2c: E2 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 0E 00 [18:26:55]MH_I2C_Read... [18:26:55]Read from MH i2c: E2 0E 00 02 1C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 00 [18:26:55]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:26:55]wFMCommunicate OK [18:26:55]SAM_PROTO_GetShiftState done [18:26:55]FM_GetShiftState done [18:26:55]req_shift_opened done [18:26:55]requested_item shift.open_date is exist - process it [18:26:55]req_shift_open_date [18:26:55]req_shift_open_date done [18:26:55]produce_requested_data done [18:26:55]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75523,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [18:26:55]process_action_free close_receipt [18:26:55]json_value_free [18:26:55]json_value_free done [18:26:55]process_json_proto returns [18:26:55]Send response to host [18:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75523,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [18:26:55]free response buf [18:26:55]execute_script done [18:26:55]execute_script returns [18:26:55]free content buf [18:26:55]Sock 10.Close socket [18:26:55]Sock 10.Thread stoped [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:08]accept exits with 8 [18:39:08]New connection [18:39:08]New thread 3066465636 created [18:39:08]Thread 3066608996 joined [18:39:08]Waiting for new connection... [18:39:08] Sock 8.Parse request [18:39:08]Sock 8.Check first char [18:39:08]Sock 8.First char is OK [18:39:08]request: POST /json_proto HTTP/1.0 [18:39:08]Method: POST [18:39:08]URL: /json_proto [18:39:08]Method is POST - this is cgi request [18:39:08]url: /json_proto [18:39:08]query_string will be loaded in cgi processing [18:39:08]execute_cgi json_proto POST (null) [18:39:08]execute_cgi path=json_proto method=POST [18:39:08]POST find Content-Length [18:39:08]Host: 172.17.44.196:8080 [18:39:08]Content-Length: 801 [18:39:08]Content-Type: application/json [18:39:08] [18:39:08]POST finish read [18:39:08]Found Content-Length = 801 [18:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1965853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194354", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:08]execute_script... [18: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)1965853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194354", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:08]POST & json_proto [18:39:08]process_json_proto [18:39:08]json parsed OK: [18:39:08]protocol is kg_v1.0 [18:39:08]action value=close_receipt [18:39:08]process_action close_receipt [18:39:08]cmd_close_receipt [18:39:08]MH_GetDate [18:39:08]Write to MH i2c: F0 00 00 03 1C 0E [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: F0 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: F0 09 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: F0 09 00 03 1C 00 CD 42 19 67 E7 19 F8 65 03 [18:39:08]GetLastDocTimeStamp 1729708013 [18:39:08]current date 1729708749 [18:39:08]FM_GetShiftState [18:39:08]SAM_PROTO_GetShiftState [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 13 01 00 [18:39:08]Write to MH i2c: E2 08 00 04 1C 80 13 01 00 00 00 00 00 9D [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 0E 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 0E 00 04 1C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 02 [18:39:08]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:39:08]wFMCommunicate OK [18:39:08]SAM_PROTO_GetShiftState done [18:39:08]FM_GetShiftState done [18:39:08]opened in 1729642905 [18:39:08]opened+sec_in_day 1729729305 [18:39:08]quantity*price = 0 [18:39:08]sum+1 = 1 [18:39:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 257 23.10.2024 18:39 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Талоны: Топливные Талоны 4194354 ФМ: 0000000000963323 ФД: 75524 ФПД: 19942101474418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183909&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75524&fm=19942101474418&tin=02508201610067®Number=0000000000161154&sum=0 [18:39:09]StoreToDocumentArchive [18:39:09]shift 173 fd 75524 [18:39:09]save to /storage/0173/doc_00075524 [18:39:09]save last doc name /storage/0173/doc_00075524 to /storage/kkm_last_doc_name [18:39:09]save OK [18:39:09]Clear old archive folders... [18:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:09]tlvbuf is 0079AEF0 [18:39:09]SAM_PROTO_ClearQueue [18:39:09]wFMCommunicate request_size=4 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 09 00 00 [18:39:09]Write to MH i2c: E2 08 00 11 1C 80 09 00 00 00 00 00 00 9F [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 11 1C 00 90 00 A1 [18:39:09]RAPDU: 90 00 [18:39:09]wFMCommunicate OK [18:39:09]SAM_PROTO_ClearQueue done [18:39:09]KKMCreateOFDPacket [18:39:09]OFDProtocolAddRootSTLVToBuf [18:39:09]FM_MakeSignedData [18:39:09]FM_MakeSignedData [18:39:09]SAM_PROTO_SignData [18:39:09]wFMCommunicate request_size=4 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 0D 01 02 [18:39:09]Write to MH i2c: E2 08 00 12 1C 80 0D 01 02 00 00 00 00 A7 [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 12 1C 00 90 00 A2 [18:39:09]RAPDU: 90 00 [18:39:09]wFMCommunicate OK [18:39:09]wFMCommunicate request_size=255 [18:39:09]MH_SAM_APDU [18:39: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 CD 42 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 27 01 00 35 04 06 00 12 [18:39:09]Write to MH i2c: E2 02 01 13 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 CD 42 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 27 01 00 35 04 06 00 12 00 00 57 [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 13 1C 00 90 00 A3 [18:39:09]RAPDU: 90 00 [18:39:09]wFMCommunicate OK [18:39:09]wFMCommunicate request_size=10 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 0D 02 02 05 23 21 DF DC 72 [18:39:09]Write to MH i2c: E2 0D 00 14 1C 80 0D 02 02 05 00 23 21 DF DC 72 00 00 25 [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 03 00 14 1C 00 90 00 A4 [18:39:09]RAPDU: 90 00 [18:39:09]wFMCommunicate OK [18:39:09]wFMCommunicate request_size=4 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 0D 03 02 [18:39:09]Write to MH i2c: E2 08 00 15 1C 80 0D 03 02 00 00 00 00 AC [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 0B 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 0B 00 15 1C 00 C3 35 E6 0F DD D9 0C 12 90 00 6E [18:39:09]RAPDU: C3 35 E6 0F DD D9 0C 12 90 00 [18:39:09]wFMCommunicate OK [18:39:09]SAM_PROTO_SignData done [18:39:09]FM_MakeSignedData done [18:39:09]CreateOFDProtocolMessage [18:39:09]wFMCommunicate request_size=4 [18:39:09]MH_SAM_APDU [18:39:09]CAPDU: 80 11 00 00 [18:39:09]Write to MH i2c: E2 08 00 16 1C 80 11 00 00 00 00 00 00 AC [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:09]Read from MH i2c: E2 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 17 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: E2 17 00 16 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F9 [18:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:39:09]wFMCommunicate OK [18:39:09]CreateOFDProtocolMessage done [18:39:09]OFDSenderStorePacket 75524 [18:39:09]StoreOFDPacket docnum=75524 [18:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 03 8A 07 01 02 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 CD 42 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 27 01 00 35 04 06 00 12 23 21 DF DC 72 C3 35 E6 0F DD D9 0C 12 [18:39:09]CheckFolder [18:39:09]dirname=/storage/ofd_packets [18:39:09]CheckFolder done [18:39:09]ProducePacketName [18:39:09]name=ofd_packets/00075524 [18:39:09]NVStorageSaveData ofd_packets/00075524 [18:39:09]File name is /storage/ofd_packets/00075524 [18:39:09]Write 301 bytes [18:39:09]NVStorageSaveData done [18:39:09]OFDSenderStorePacket done [18:39:09]KKMCreateOFDPacket done [18:39:09]NVStorageSaveData kkm_last_timestamp [18:39:09]File name is /storage/kkm_last_timestamp [18:39:09]Write 4 bytes [18:39:09]NVStorageSaveData done [18:39:09]ExternCall_PrintAddStr [18:39:09]wPrintStart [18:39:09]Write to MH i2c: 01 00 00 17 1C 33 [18:39:09]OFD Sender: Processing packet 75524 [packets to send 16, broken 15] [18:39:09]ProducePacketName [18:39:09]name=ofd_packets/00075524 [18:39:09]OFD Sender: To server: pG, [18:39:09]CommunicateWithHost lk.salyk.kg:30040 [18:39:09]ConnectInit lk.salyk.kg [18:39:09]Write i2c OK [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: 01 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: 01 07 00 [18:39:09]MH_I2C_Read... [18:39:09]Read from MH i2c: 01 07 00 17 1C 00 00 00 00 00 FF 0F 48 [18:39:09]RasterBufferAndPrint [18:39:09]line Счет N : (1)1965853 [18:39:09]line ИНН: 02508201610067 [18:39:09]line Контрольно-Кассовый Чек [18:39:09]line ПРОДАЖА [18:39:09]line ТРК (МРК, ГНК) : 53 [18:39:09]line Товар: 2710124130 [18:39:09]line Аи-92-К-5 [18:39:09]line 10.000 * 0.00 [18:39:09]line = 0.00 [18:39:09]line НДС 12% НСП 1% [18:39:09]line > о реализуемом товаре [18:39:09]line ИТОГО: 0.00 [18:39:09]line НСП 1% : 0.00 [18:39:09]line НДС 12% : 0.00 [18:39:09]line Наличными: 0.00 [18:39:09]line Безнал.: 0.00 [18:39:09]line Место: АЗС № 133 "Партнер Нефть" [18:39:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:39:09]line СНО: Общий режим [18:39:09]line Чек 257 23.10.2024 18:39 [18:39:09]line Смена: 173 ФФД: 1.0 [18:39:09]line ЗНМ: 0300000020 [18:39:09]line РНМ: 0000000000161154 [18:39:09]line Версия ККМ: v1.0 [18:39:09]line Талоны: Топливные Талоны [18:39:09]line 4194354 [18:39:09]line ФМ: 0000000000963323 [18:39:09]line ФД: 75524 [18:39:09]line ФПД: 19942101474418 [18:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T183909&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75524&fm=19942101474418&tin=02508201610067®Number=0000000000161154&sum=0 [18:39:10]Connected sock=10 [18:39:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0F 01 00 00 03 8A 07 01 02 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 CD 42 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 04 27 01 00 35 04 06 00 12 23 21 DF DC 72 C3 35 E6 0F DD D9 0C 12 [18:39:10]written 0, free lines is 4095 [18:39:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 20 33 47 00 33 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 39 36 33 33 32 33 10 04 04 00 04 27 01 00 F4 03 04 00 A7 EB 18 67 B6 04 01 00 00 DE FA 7F 8C CE 28 3A 9A [18:39:10]CommunicateWithHost err = 0 [18:39:10]CheckOFDResponse [18:39:10]1017 (14) - 77093643461234 [18:39:10]1041 (16) - 0000000000963323 [18:39:10]1040 (4) - 75524 [18:39:10]1012 (4) - 23.10.2024 12:27 [18:39:10]1206 (1) - 0 [18:39:10]OFD Sender: Remove packet 75524 [18:39:10]ProducePacketName [18:39:10]name=ofd_packets/00075524 [18:39:10]NVStorageDeleteData [18:39:10]Write to MH i2c: 01 00 00 40 1C 5C [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 07 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: 01 07 00 40 1C 00 00 00 00 00 B9 0C 28 [18:39:10]RasterBufferAndPrint [18:39:10]line [18:39:10]line [18:39:10]line [18:39:10]line [18:39:10]line [18:39:10]written 0, free lines is 3261 [18:39:10]MH_Cut [18:39:10]Write to MH i2c: D1 01 00 47 1C 01 35 [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: D1 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: D1 01 00 [18:39:10]MH_I2C_Read... [18:39:10]Read from MH i2c: D1 01 00 47 1C 00 34 [18:39:10]Write to MH i2c: 01 00 00 48 1C 64 [18:39:10]Write i2c OK [18:39:10]MH_I2C_Read... [18:39:10]OFD Sender: No OFD packet to send [18:39:11]*** Cut start [18:39:11]*** Partial cut [18:39:11]*** CUTSNS_PIN = 1 [18:39:11]*** CUTSNS_PIN = 0 [18:39:11]*** Brake cut motor [18:39:12]Read from MH i2c: 01 [18:39:12]MH_I2C_Read... [18:39:12]*** Stop cut motor [18:39:12]*** Cut end [18:39:12]Read from MH i2c: 01 07 00 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: 01 07 00 48 1C 00 00 00 00 00 FF 0F 79 [18:39:12]process_action close_receipt done [18:39:12]requested_data is exist [18:39:12]produce_requested_data [18:39:12]requested_item fm.sn is exist - process it [18:39:12]wFMCommunicate request_size=4 [18:39:12]MH_SAM_APDU [18:39:12]CAPDU: 80 11 00 00 [18:39:12]Write to MH i2c: E2 08 00 49 1C 80 11 00 00 00 00 00 00 DF [18:39:12]Write i2c OK [18:39:12]MH_I2C_Read... [18:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:12]Read from MH i2c: E2 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 17 00 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 17 00 49 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2C [18:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:39:12]wFMCommunicate OK [18:39:12]requested_item fd.num is exist - process it [18:39:12]SAM_PROTO_GetFieldsCounters [18:39:12]wFMCommunicate request_size=4 [18:39:12]MH_SAM_APDU [18:39:12]CAPDU: 80 13 00 00 [18:39:12]Write to MH i2c: E2 08 00 4A 1C 80 13 00 00 00 00 00 00 E2 [18:39:12]Write i2c OK [18:39:12]MH_I2C_Read... [18:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:12]Read from MH i2c: E2 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 62 00 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 62 00 4A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 04 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [18:39:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 04 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:12]wFMCommunicate OK [18:39:12]SAM_PROTO_GetFieldsCounters done [18:39:12]requested_item shift.num is exist - process it [18:39:12]requested_item shift.opened is exist - process it [18:39:12]req_shift_opened [18:39:12]FM_GetShiftState [18:39:12]SAM_PROTO_GetShiftState [18:39:12]wFMCommunicate request_size=4 [18:39:12]MH_SAM_APDU [18:39:12]CAPDU: 80 13 01 00 [18:39:12]Write to MH i2c: E2 08 00 4B 1C 80 13 01 00 00 00 00 00 E4 [18:39:12]Write i2c OK [18:39:12]MH_I2C_Read... [18:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:12]Read from MH i2c: E2 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 0E 00 [18:39:12]MH_I2C_Read... [18:39:12]Read from MH i2c: E2 0E 00 4B 1C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 49 [18:39:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:39:12]wFMCommunicate OK [18:39:12]SAM_PROTO_GetShiftState done [18:39:12]FM_GetShiftState done [18:39:12]req_shift_opened done [18:39:12]requested_item shift.open_date is exist - process it [18:39:12]req_shift_open_date [18:39:12]req_shift_open_date done [18:39:12]produce_requested_data done [18:39:12]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75524,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [18:39:12]process_action_free close_receipt [18:39:12]json_value_free [18:39:12]json_value_free done [18:39:12]process_json_proto returns [18:39:12]Send response to host [18:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75524,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [18:39:12]free response buf [18:39:12]execute_script done [18:39:12]execute_script returns [18:39:12]free content buf [18:39:12]Sock 8.Close socket [18:39:12]Sock 8.Thread stoped [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:46]accept exits with 9 [18:41:46]New connection [18:41:46]New thread 3066608996 created [18:41:46]Thread 3066465636 joined [18:41:46]Waiting for new connection... [18:41:46] Sock 9.Parse request [18:41:46]Sock 9.Check first char [18:41:46]Sock 9.First char is OK [18:41:46]request: POST /json_proto HTTP/1.0 [18:41:46]Method: POST [18:41:46]URL: /json_proto [18:41:46]Method is POST - this is cgi request [18:41:46]url: /json_proto [18:41:46]query_string will be loaded in cgi processing [18:41:46]execute_cgi json_proto POST (null) [18:41:46]execute_cgi path=json_proto method=POST [18:41:46]POST find Content-Length [18:41:46]Host: 172.17.44.196:8080 [18:41:46]Content-Length: 621 [18:41:46]Content-Type: application/json [18:41:46] [18:41:46]POST finish read [18:41:46]Found Content-Length = 621 [18:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273290", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:46]execute_script... [18:41: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 : (3)273290", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:46]POST & json_proto [18:41:46]process_json_proto [18:41:46]json parsed OK: [18:41:46]protocol is kg_v1.0 [18:41:46]action value=close_receipt [18:41:46]process_action close_receipt [18:41:46]cmd_close_receipt [18:41:46]MH_GetDate [18:41:46]Write to MH i2c: F0 00 00 4C 1C 57 [18:41:46]Write i2c OK [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: F0 [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: F0 09 00 [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: F0 09 00 4C 1C 00 6C 43 19 67 E7 19 F8 65 EC [18:41:46]GetLastDocTimeStamp 1729708749 [18:41:46]current date 1729708908 [18:41:46]FM_GetShiftState [18:41:46]SAM_PROTO_GetShiftState [18:41:46]wFMCommunicate request_size=4 [18:41:46]MH_SAM_APDU [18:41:46]CAPDU: 80 13 01 00 [18:41:46]Write to MH i2c: E2 08 00 4D 1C 80 13 01 00 00 00 00 00 E6 [18:41:46]Write i2c OK [18:41:46]MH_I2C_Read... [18:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:46]Read from MH i2c: E2 [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: E2 0E 00 [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: E2 0E 00 4D 1C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 4B [18:41:46]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:41:46]wFMCommunicate OK [18:41:46]SAM_PROTO_GetShiftState done [18:41:46]FM_GetShiftState done [18:41:46]opened in 1729642905 [18:41:46]opened+sec_in_day 1729729305 [18:41:46]quantity*price = 14000 [18:41:46]sum+1 = 14001 [18:41:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 258 23.10.2024 18:41 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75525 ФПД: 24376503803050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184148&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75525&fm=24376503803050&tin=02508201610067®Number=0000000000161154&sum=14000 0 [18:41:47]StoreToDocumentArchive [18:41:47]shift 173 fd 75525 [18:41:47]save to /storage/0173/doc_00075525 [18:41:47]save last doc name /storage/0173/doc_00075525 to /storage/kkm_last_doc_name [18:41:47]save OK [18:41:47]Clear old archive folders... [18:41:47]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:41:47]tlvbuf is 00828CD0 [18:41:47]SAM_PROTO_ClearQueue [18:41:47]wFMCommunicate request_size=4 [18:41:47]MH_SAM_APDU [18:41:47]CAPDU: 80 09 00 00 [18:41:47]Write to MH i2c: E2 08 00 5A 1C 80 09 00 00 00 00 00 00 E8 [18:41:47]Write i2c OK [18:41:47]MH_I2C_Read... [18:41:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:47]Read from MH i2c: E2 [18:41:47]MH_I2C_Read... [18:41:47]Read from MH i2c: E2 03 00 [18:41:47]MH_I2C_Read... [18:41:47]Read from MH i2c: E2 03 00 5A 1C 00 90 00 EA [18:41:47]RAPDU: 90 00 [18:41:47]wFMCommunicate OK [18:41:47]SAM_PROTO_ClearQueue done [18:41:47]KKMCreateOFDPacket [18:41:47]OFDProtocolAddRootSTLVToBuf [18:41:47]FM_MakeSignedData [18:41:47]FM_MakeSignedData [18:41:47]SAM_PROTO_SignData [18:41:47]wFMCommunicate request_size=4 [18:41:47]MH_SAM_APDU [18:41:47]CAPDU: 80 0D 01 02 [18:41:47]Write to MH i2c: E2 08 00 5B 1C 80 0D 01 02 00 00 00 00 F0 [18:41:47]Write i2c OK [18:41:47]MH_I2C_Read... [18:41:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:47]Read from MH i2c: E2 [18:41:47]MH_I2C_Read... [18:41:47]Read from MH i2c: E2 03 00 [18:41:47]MH_I2C_Read... [18:41:47]Read from MH i2c: E2 03 00 5B 1C 00 90 00 EB [18:41:47]RAPDU: 90 00 [18:41:47]wFMCommunicate OK [18:41:47]wFMCommunicate request_size=255 [18:41:47]MH_SAM_APDU [18:41:47]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 6C 43 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [18:41:47]Write to MH i2c: E2 02 01 5C 1C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 6C 43 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 A9 [18:41:47]Write i2c OK [18:41:47]MH_I2C_Read... [18:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:48]Read from MH i2c: E2 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 03 00 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 03 00 5C 1C 00 90 00 EC [18:41:48]RAPDU: 90 00 [18:41:48]wFMCommunicate OK [18:41:48]wFMCommunicate request_size=32 [18:41:48]MH_SAM_APDU [18:41:48]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 05 27 01 00 35 04 06 00 16 2B 98 D9 9C AA [18:41:48]Write to MH i2c: E2 23 00 5D 1C 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 05 27 01 00 35 04 06 00 16 2B 98 D9 9C AA 00 00 6F [18:41:48]Write i2c OK [18:41:48]MH_I2C_Read... [18:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:48]Read from MH i2c: E2 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 03 00 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 03 00 5D 1C 00 90 00 ED [18:41:48]RAPDU: 90 00 [18:41:48]wFMCommunicate OK [18:41:48]wFMCommunicate request_size=4 [18:41:48]MH_SAM_APDU [18:41:48]CAPDU: 80 0D 03 02 [18:41:48]Write to MH i2c: E2 08 00 5E 1C 80 0D 03 02 00 00 00 00 F5 [18:41:48]Write i2c OK [18:41:48]MH_I2C_Read... [18:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:48]Read from MH i2c: E2 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 0B 00 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 0B 00 5E 1C 00 9E 67 5C 94 49 75 DD B9 90 00 3F [18:41:48]RAPDU: 9E 67 5C 94 49 75 DD B9 90 00 [18:41:48]wFMCommunicate OK [18:41:48]SAM_PROTO_SignData done [18:41:48]FM_MakeSignedData done [18:41:48]CreateOFDProtocolMessage [18:41:48]wFMCommunicate request_size=4 [18:41:48]MH_SAM_APDU [18:41:48]CAPDU: 80 11 00 00 [18:41:48]Write to MH i2c: E2 08 00 5F 1C 80 11 00 00 00 00 00 00 F5 [18:41:48]Write i2c OK [18:41:48]MH_I2C_Read... [18:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:48]Read from MH i2c: E2 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 17 00 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 17 00 5F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 42 [18:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:41:48]wFMCommunicate OK [18:41:48]CreateOFDProtocolMessage done [18:41:48]OFDSenderStorePacket 75525 [18:41:48]StoreOFDPacket docnum=75525 [18:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 69 1B 1D 01 63 8E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 6C 43 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 05 27 01 00 35 04 06 00 16 2B 98 D9 9C AA 9E 67 5C 94 49 75 DD B9 [18:41:48]CheckFolder [18:41:48]dirname=/storage/ofd_packets [18:41:48]CheckFolder done [18:41:48]ProducePacketName [18:41:48]name=ofd_packets/00075525 [18:41:48]NVStorageSaveData ofd_packets/00075525 [18:41:48]File name is /storage/ofd_packets/00075525 [18:41:48]Write 323 bytes [18:41:48]NVStorageSaveData done [18:41:48]OFDSenderStorePacket done [18:41:48]KKMCreateOFDPacket done [18:41:48]NVStorageSaveData kkm_last_timestamp [18:41:48]File name is /storage/kkm_last_timestamp [18:41:48]Write 4 bytes [18:41:48]NVStorageSaveData done [18:41:48]ExternCall_PrintAddStr [18:41:48]wPrintStart [18:41:48]Write to MH i2c: 01 00 00 60 1C 7C [18:41:48]Write i2c OK [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: 01 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: 01 07 00 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: 01 07 00 60 1C 00 00 00 00 00 FF 0F 91 [18:41:48]RasterBufferAndPrint [18:41:48]line Счет N : (3)273290 [18:41:48]line ИНН: 02508201610067 [18:41:48]line Контрольно-Кассовый Чек [18:41:48]line ПРОДАЖА [18:41:48]line Товар: 48747059 [18:41:48]line Сигареты Winston Legend Blue [18:41:48]line 1.000 * 140.00 [18:41:48]line = 140.00 [18:41:48]line НДС 12% НСП 1% [18:41:48]line > о реализуемом товаре [18:41:48]line ИТОГО: 140.00 [18:41:48]line НСП 1% : 1.24 [18:41:48]line НДС 12% : 14.87 [18:41:48]line Наличными: 140.00 [18:41:48]line Безнал.: 0.00 [18:41:48]line Место: АЗС № 133 "Партнер Нефть" [18:41:48]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:41:48]line СНО: Общий режим [18:41:48]line Чек 258 23.10.2024 18:41 [18:41:48]line Смена: 173 ФФД: 1.0 [18:41:48]line ЗНМ: 0300000020 [18:41:48]line РНМ: 0000000000161154 [18:41:48]line Версия ККМ: v1.0 [18:41:48]line ФМ: 0000000000963323 [18:41:48]line ФД: 75525 [18:41:48]line ФПД: 24376503803050 [18:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184148&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75525&fm=24376503803050&tin=02508201610067®Number=0000000000161154&sum=14000 [18:41:48]OFD Sender: Processing packet 75525 [packets to send 16, broken 15] [18:41:48]ProducePacketName [18:41:48]name=ofd_packets/00075525 [18:41:48]OFD Sender: To server: pG, [18:41:48]CommunicateWithHost lk.salyk.kg:30040 [18:41:48]ConnectInit lk.salyk.kg [18:41:48]line 0 [18:41:48]written 0, free lines is 4095 [18:41:48]Connected sock=10 [18:41:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 69 1B 1D 01 63 8E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 6C 43 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 05 27 01 00 35 04 06 00 16 2B 98 D9 9C AA 9E 67 5C 94 49 75 DD B9 [18:41:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A1 81 47 00 D4 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 05 27 01 00 F4 03 04 00 46 EC 18 67 B6 04 01 00 00 58 80 92 04 CD E1 A4 A4 [18:41:48]CommunicateWithHost err = 0 [18:41:48]CheckOFDResponse [18:41:48]1017 (14) - 77093643461234 [18:41:48]1041 (16) - 0000000000963323 [18:41:48]1040 (4) - 75525 [18:41:48]1012 (4) - 23.10.2024 12:29 [18:41:48]1206 (1) - 0 [18:41:48]OFD Sender: Remove packet 75525 [18:41:48]ProducePacketName [18:41:48]name=ofd_packets/00075525 [18:41:48]NVStorageDeleteData [18:41:49]Write to MH i2c: 01 00 00 88 1C A4 [18:41:49]Write i2c OK [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: 01 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: 01 07 00 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: 01 07 00 88 1C 00 00 00 00 00 C5 0C 7C [18:41:49]RasterBufferAndPrint [18:41:49]line [18:41:49]line [18:41:49]line [18:41:49]line [18:41:49]line [18:41:49]written 0, free lines is 3274 [18:41:49]MH_Cut [18:41:49]Write to MH i2c: D1 01 00 8F 1C 01 7D [18:41:49]Write i2c OK [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: D1 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: D1 01 00 [18:41:49]MH_I2C_Read... [18:41:49]Read from MH i2c: D1 01 00 8F 1C 00 7C [18:41:49]Write to MH i2c: 01 00 00 90 1C AC [18:41:49]Write i2c OK [18:41:49]MH_I2C_Read... [18:41:49]OFD Sender: No OFD packet to send [18:41:49]*** Cut start [18:41:49]*** Partial cut [18:41:49]*** CUTSNS_PIN = 1 [18:41:49]*** CUTSNS_PIN = 0 [18:41:50]*** Brake cut motor [18:41:50]Read from MH i2c: 01 [18:41:50]MH_I2C_Read... [18:41:50]*** Stop cut motor [18:41:50]*** Cut end [18:41:50]Read from MH i2c: 01 07 00 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: 01 07 00 90 1C 00 00 00 00 00 FF 0F C1 [18:41:50]process_action close_receipt done [18:41:50]requested_data is exist [18:41:50]produce_requested_data [18:41:50]requested_item fm.sn is exist - process it [18:41:50]wFMCommunicate request_size=4 [18:41:50]MH_SAM_APDU [18:41:50]CAPDU: 80 11 00 00 [18:41:50]Write to MH i2c: E2 08 00 91 1C 80 11 00 00 00 00 00 00 27 [18:41:50]Write i2c OK [18:41:50]MH_I2C_Read... [18:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:50]Read from MH i2c: E2 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: E2 17 00 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: E2 17 00 91 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 74 [18:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:41:50]wFMCommunicate OK [18:41:50]requested_item fd.num is exist - process it [18:41:50]SAM_PROTO_GetFieldsCounters [18:41:50]wFMCommunicate request_size=4 [18:41:50]MH_SAM_APDU [18:41:50]CAPDU: 80 13 00 00 [18:41:50]Write to MH i2c: E2 08 00 92 1C 80 13 00 00 00 00 00 00 2A [18:41:50]Write i2c OK [18:41:50]MH_I2C_Read... [18:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:50]Read from MH i2c: E2 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: E2 62 00 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: E2 62 00 92 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 05 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [18:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 05 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:50]wFMCommunicate OK [18:41:50]SAM_PROTO_GetFieldsCounters done [18:41:50]requested_item shift.num is exist - process it [18:41:50]requested_item shift.opened is exist - process it [18:41:50]req_shift_opened [18:41:50]FM_GetShiftState [18:41:50]SAM_PROTO_GetShiftState [18:41:50]wFMCommunicate request_size=4 [18:41:50]MH_SAM_APDU [18:41:50]CAPDU: 80 13 01 00 [18:41:50]Write to MH i2c: E2 08 00 93 1C 80 13 01 00 00 00 00 00 2C [18:41:50]Write i2c OK [18:41:50]MH_I2C_Read... [18:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:50]Read from MH i2c: E2 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: E2 0E 00 [18:41:50]MH_I2C_Read... [18:41:50]Read from MH i2c: E2 0E 00 93 1C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 91 [18:41:50]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:41:50]wFMCommunicate OK [18:41:50]SAM_PROTO_GetShiftState done [18:41:50]FM_GetShiftState done [18:41:50]req_shift_opened done [18:41:50]requested_item shift.open_date is exist - process it [18:41:50]req_shift_open_date [18:41:50]req_shift_open_date done [18:41:50]produce_requested_data done [18:41:50]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75525,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [18:41:50]process_action_free close_receipt [18:41:50]json_value_free [18:41:50]json_value_free done [18:41:50]process_json_proto returns [18:41:50]Send response to host [18:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75525,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [18:41:50]free response buf [18:41:50]execute_script done [18:41:50]execute_script returns [18:41:50]free content buf [18:41:50]Sock 9.Close socket [18:41:50]Sock 9.Thread stoped [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:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:49]accept exits with 8 [18:42:49]New connection [18:42:49]New thread 3066465636 created [18:42:49]Thread 3066608996 joined [18:42:49]Waiting for new connection... [18:42:49] Sock 8.Parse request [18:42:49]Sock 8.Check first char [18:42:49]Sock 8.First char is OK [18:42:49]request: POST /json_proto HTTP/1.0 [18:42:49]Method: POST [18:42:49]URL: /json_proto [18:42:49]Method is POST - this is cgi request [18:42:49]url: /json_proto [18:42:49]query_string will be loaded in cgi processing [18:42:49]execute_cgi json_proto POST (null) [18:42:49]execute_cgi path=json_proto method=POST [18:42:49]POST find Content-Length [18:42:49]Host: 172.17.44.196:8080 [18:42:49]Content-Length: 670 [18:42:49]Content-Type: application/json [18:42:49] [18:42:49]POST finish read [18:42:49]Found Content-Length = 670 [18:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273291", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:49]execute_script... [18:42:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273291", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:49]POST & json_proto [18:42:49]process_json_proto [18:42:49]json parsed OK: [18:42:49]protocol is kg_v1.0 [18:42:49]action value=close_receipt [18:42:49]process_action close_receipt [18:42:49]cmd_close_receipt [18:42:49]MH_GetDate [18:42:49]Write to MH i2c: F0 00 00 94 1C 9F [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: F0 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: F0 09 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: F0 09 00 94 1C 00 AB 43 19 67 E7 19 F8 65 73 [18:42:49]GetLastDocTimeStamp 1729708908 [18:42:49]current date 1729708971 [18:42:49]FM_GetShiftState [18:42:49]SAM_PROTO_GetShiftState [18:42:49]wFMCommunicate request_size=4 [18:42:49]MH_SAM_APDU [18:42:49]CAPDU: 80 13 01 00 [18:42:49]Write to MH i2c: E2 08 00 95 1C 80 13 01 00 00 00 00 00 2E [18:42:49]Write i2c OK [18:42:49]MH_I2C_Read... [18:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:49]Read from MH i2c: E2 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 0E 00 [18:42:49]MH_I2C_Read... [18:42:49]Read from MH i2c: E2 0E 00 95 1C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 93 [18:42:49]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:42:49]wFMCommunicate OK [18:42:49]SAM_PROTO_GetShiftState done [18:42:49]FM_GetShiftState done [18:42:49]opened in 1729642905 [18:42:49]opened+sec_in_day 1729729305 [18:42:49]quantity*price = 11800 [18:42:49]sum+1 = 11801 [18:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 118.00 НСП 1% : 1.04 НДС 12% : 12.53 Наличными: 118.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 259 23.10.2024 18:42 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75526 ФПД: 276876406540894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184251&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75526&fm=276876406540894&tin=02508201610067®Number=0000000000161154&sum=11800 0 [18:42:50]StoreToDocumentArchive [18:42:50]shift 173 fd 75526 [18:42:50]save to /storage/0173/doc_00075526 [18:42:50]save last doc name /storage/0173/doc_00075526 to /storage/kkm_last_doc_name [18:42:50]save OK [18:42:50]Clear old archive folders... [18:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=283 [18:42:50]tlvbuf is B6E54CF0 [18:42:50]SAM_PROTO_ClearQueue [18:42:50]wFMCommunicate request_size=4 [18:42:50]MH_SAM_APDU [18:42:50]CAPDU: 80 09 00 00 [18:42:50]Write to MH i2c: E2 08 00 A2 1C 80 09 00 00 00 00 00 00 30 [18:42:50]Write i2c OK [18:42:50]MH_I2C_Read... [18:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:50]Read from MH i2c: E2 [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: E2 03 00 [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [18:42:50]RAPDU: 90 00 [18:42:50]wFMCommunicate OK [18:42:50]SAM_PROTO_ClearQueue done [18:42:50]KKMCreateOFDPacket [18:42:50]OFDProtocolAddRootSTLVToBuf [18:42:50]FM_MakeSignedData [18:42:50]FM_MakeSignedData [18:42:50]SAM_PROTO_SignData [18:42:50]wFMCommunicate request_size=4 [18:42:50]MH_SAM_APDU [18:42:50]CAPDU: 80 0D 01 02 [18:42:50]Write to MH i2c: E2 08 00 A3 1C 80 0D 01 02 00 00 00 00 38 [18:42:50]Write i2c OK [18:42:50]MH_I2C_Read... [18:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:50]Read from MH i2c: E2 [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: E2 03 00 [18:42:50]MH_I2C_Read... [18:42:50]Read from MH i2c: E2 03 00 A3 1C 00 90 00 33 [18:42:50]RAPDU: 90 00 [18:42:50]wFMCommunicate OK [18:42:50]wFMCommunicate request_size=255 [18:42:50]MH_SAM_APDU [18:42:50]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 AB 43 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 [18:42:50]Write to MH i2c: E2 02 01 A4 1C 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 AB 43 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 00 00 AC [18:42:50]Write i2c OK [18:42:50]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 A4 1C 00 90 00 34 [18:42:51]RAPDU: 90 00 [18:42:51]wFMCommunicate OK [18:42:51]wFMCommunicate request_size=42 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 06 27 01 00 35 04 06 00 FB D1 4F DB CA 5E [18:42:51]Write to MH i2c: E2 2D 00 A5 1C 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 06 27 01 00 35 04 06 00 FB D1 4F DB CA 5E 00 00 56 [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 03 00 A5 1C 00 90 00 35 [18:42:51]RAPDU: 90 00 [18:42:51]wFMCommunicate OK [18:42:51]wFMCommunicate request_size=4 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 0D 03 02 [18:42:51]Write to MH i2c: E2 08 00 A6 1C 80 0D 03 02 00 00 00 00 3D [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 0B 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 0B 00 A6 1C 00 E3 42 C3 33 69 C7 5B 61 90 00 45 [18:42:51]RAPDU: E3 42 C3 33 69 C7 5B 61 90 00 [18:42:51]wFMCommunicate OK [18:42:51]SAM_PROTO_SignData done [18:42:51]FM_MakeSignedData done [18:42:51]CreateOFDProtocolMessage [18:42:51]wFMCommunicate request_size=4 [18:42:51]MH_SAM_APDU [18:42:51]CAPDU: 80 11 00 00 [18:42:51]Write to MH i2c: E2 08 00 A7 1C 80 11 00 00 00 00 00 00 3D [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:51]Read from MH i2c: E2 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 17 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: E2 17 00 A7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [18:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:42:51]wFMCommunicate OK [18:42:51]CreateOFDProtocolMessage done [18:42:51]OFDSenderStorePacket 75526 [18:42:51]StoreOFDPacket docnum=75526 [18:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2F 01 00 00 41 36 27 01 77 F1 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 AB 43 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 06 27 01 00 35 04 06 00 FB D1 4F DB CA 5E E3 42 C3 33 69 C7 5B 61 [18:42:51]CheckFolder [18:42:51]dirname=/storage/ofd_packets [18:42:51]CheckFolder done [18:42:51]ProducePacketName [18:42:51]name=ofd_packets/00075526 [18:42:51]NVStorageSaveData ofd_packets/00075526 [18:42:51]File name is /storage/ofd_packets/00075526 [18:42:51]Write 333 bytes [18:42:51]NVStorageSaveData done [18:42:51]OFDSenderStorePacket done [18:42:51]KKMCreateOFDPacket done [18:42:51]NVStorageSaveData kkm_last_timestamp [18:42:51]File name is /storage/kkm_last_timestamp [18:42:51]Write 4 bytes [18:42:51]NVStorageSaveData done [18:42:51]ExternCall_PrintAddStr [18:42:51]wPrintStart [18:42:51]Write to MH i2c: 01 00 00 A8 1C C4 [18:42:51]Write i2c OK [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: 01 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: 01 07 00 [18:42:51]MH_I2C_Read... [18:42:51]Read from MH i2c: 01 07 00 A8 1C 00 00 00 00 00 FF 0F D9 [18:42:51]RasterBufferAndPrint [18:42:51]line Счет N : (3)273291 [18:42:51]line ИНН: 02508201610067 [18:42:51]line Контрольно-Кассовый Чек [18:42:51]line ПРОДАЖА [18:42:51]line Товар: 4011100977624 [18:42:51]line Шок Батончик Баунти 55г [18:42:51]line 2.000 * 59.00 [18:42:51]line = 118.00 [18:42:51]line НДС 12% НСП 1% [18:42:51]line > о реализуемом товаре [18:42:51]line ИТОГО: 118.00 [18:42:51]line НСП 1% : 1.04 [18:42:51]line НДС 12% : 12.53 [18:42:51]line Наличными: 118.00 [18:42:51]line Безнал.: 0.00 [18:42:51]line Место: АЗС № 133 "Партнер Нефть" [18:42:51]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:42:51]line СНО: Общий режим [18:42:51]line Чек 259 23.10.2024 18:42 [18:42:51]line Смена: 173 ФФД: 1.0 [18:42:51]line ЗНМ: 0300000020 [18:42:51]line РНМ: 0000000000161154 [18:42:51]line Версия ККМ: v1.0 [18:42:51]line ФМ: 0000000000963323 [18:42:51]line ФД: 75526 [18:42:51]line ФПД: 276876406540894 [18:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184251&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75526&fm=276876406540894&tin=02508201610067®Number=0000000000161154&sum=11800 [18:42:51]line 0 [18:42:51]OFD Sender: Processing packet 75526 [packets to send 16, broken 15] [18:42:51]ProducePacketName [18:42:51]name=ofd_packets/00075526 [18:42:51]OFD Sender: To server: pG, [18:42:51]CommunicateWithHost lk.salyk.kg:30040 [18:42:51]ConnectInit lk.salyk.kg [18:42:51]written 0, free lines is 4095 [18:42:51]Connected sock=9 [18:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2F 01 00 00 41 36 27 01 77 F1 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 AB 43 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 06 27 01 00 35 04 06 00 FB D1 4F DB CA 5E E3 42 C3 33 69 C7 5B 61 [18:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0F C7 47 00 7A 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 39 36 33 33 32 33 10 04 04 00 06 27 01 00 F4 03 04 00 85 EC 18 67 B6 04 01 00 00 47 8F 8B A6 95 58 8D CC [18:42:52]CommunicateWithHost err = 0 [18:42:52]CheckOFDResponse [18:42:52]1017 (14) - 77093643461234 [18:42:52]1041 (16) - 0000000000963323 [18:42:52]1040 (4) - 75526 [18:42:52]1012 (4) - 23.10.2024 12:31 [18:42:52]1206 (1) - 0 [18:42:52]OFD Sender: Remove packet 75526 [18:42:52]ProducePacketName [18:42:52]name=ofd_packets/00075526 [18:42:52]NVStorageDeleteData [18:42:52]Write to MH i2c: 01 00 00 CF 1C EB [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 07 00 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 07 00 CF 1C 00 00 00 00 00 D8 0C D6 [18:42:52]RasterBufferAndPrint [18:42:52]line [18:42:52]line [18:42:52]line [18:42:52]line [18:42:52]line [18:42:52]written 0, free lines is 3293 [18:42:52]MH_Cut [18:42:52]Write to MH i2c: D1 01 00 D6 1C 01 C4 [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: D1 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: D1 01 00 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: D1 01 00 D6 1C 00 C3 [18:42:52]Write to MH i2c: 01 00 00 D7 1C F3 [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]OFD Sender: No OFD packet to send [18:42:52]*** Cut start [18:42:52]*** Partial cut [18:42:52]*** CUTSNS_PIN = 1 [18:42:52]*** CUTSNS_PIN = 0 [18:42:53]*** Brake cut motor [18:42:53]Read from MH i2c: 01 [18:42:53]MH_I2C_Read... [18:42:53]*** Stop cut motor [18:42:53]*** Cut end [18:42:53]Read from MH i2c: 01 07 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: 01 07 00 D7 1C 00 00 00 00 00 FF 0F 08 [18:42:53]process_action close_receipt done [18:42:53]requested_data is exist [18:42:53]produce_requested_data [18:42:53]requested_item fm.sn is exist - process it [18:42:53]wFMCommunicate request_size=4 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 11 00 00 [18:42:53]Write to MH i2c: E2 08 00 D8 1C 80 11 00 00 00 00 00 00 6E [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 17 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 17 00 D8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BB [18:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:42:53]wFMCommunicate OK [18:42:53]requested_item fd.num is exist - process it [18:42:53]SAM_PROTO_GetFieldsCounters [18:42:53]wFMCommunicate request_size=4 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 13 00 00 [18:42:53]Write to MH i2c: E2 08 00 D9 1C 80 13 00 00 00 00 00 00 71 [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 62 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 62 00 D9 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 06 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [18:42:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 06 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:53]wFMCommunicate OK [18:42:53]SAM_PROTO_GetFieldsCounters done [18:42:53]requested_item shift.num is exist - process it [18:42:53]requested_item shift.opened is exist - process it [18:42:53]req_shift_opened [18:42:53]FM_GetShiftState [18:42:53]SAM_PROTO_GetShiftState [18:42:53]wFMCommunicate request_size=4 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 13 01 00 [18:42:53]Write to MH i2c: E2 08 00 DA 1C 80 13 01 00 00 00 00 00 73 [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 0E 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 0E 00 DA 1C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 D8 [18:42:53]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:42:53]wFMCommunicate OK [18:42:53]SAM_PROTO_GetShiftState done [18:42:53]FM_GetShiftState done [18:42:53]req_shift_opened done [18:42:53]requested_item shift.open_date is exist - process it [18:42:53]req_shift_open_date [18:42:53]req_shift_open_date done [18:42:53]produce_requested_data done [18:42:53]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75526,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [18:42:53]process_action_free close_receipt [18:42:53]json_value_free [18:42:53]json_value_free done [18:42:53]process_json_proto returns [18:42:53]Send response to host [18:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75526,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [18:42:53]free response buf [18:42:53]execute_script done [18:42:53]execute_script returns [18:42:53]free content buf [18:42:53]Sock 8.Close socket [18:42:53]Sock 8.Thread stoped [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:30]accept exits with 10 [18:46:30]New connection [18:46:30]New thread 3066608996 created [18:46:30]Thread 3066465636 joined [18:46:30]Waiting for new connection... [18:46:30] Sock 10.Parse request [18:46:30]Sock 10.Check first char [18:46:30]Sock 10.First char is OK [18:46:30]request: POST /json_proto HTTP/1.0 [18:46:30]Method: POST [18:46:30]URL: /json_proto [18:46:30]Method is POST - this is cgi request [18:46:30]url: /json_proto [18:46:30]query_string will be loaded in cgi processing [18:46:30]execute_cgi json_proto POST (null) [18:46:30]execute_cgi path=json_proto method=POST [18:46:30]POST find Content-Length [18:46:30]Host: 172.17.44.196:8080 [18:46:30]Content-Length: 4134 [18:46:30]Content-Type: application/json [18:46:30] [18:46:30]POST finish read [18:46:30]Found Content-Length = 4134 [18:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273292", "tax_sys" : 0, "items" : [ { "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329016699", "name": "\u0428\u043E\u043A.\u043C\u043E\u043B.OZera Extra milk 90\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077626227", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B. \u043F\u043E\u0440\u0438\u0441 \u0420\u043E\u0448\u0435\u043D 80 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606003759", "name": "\u041C\u0430\u0440-\u0434 Fruit-tella \u0437\u0432\u0435\u0440\u0438 mix 30*70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216097162", "name": "\u041C\u0430\u0440\u0448\u043C\u0435\u043B\u043B\u043E\u0443 HARIBO Party 70\u0433\u0440 (24)", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203223", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles 2\u04321", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1308.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:30]execute_script... [18:46:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273292", "tax_sys" : 0, "items" : [ { "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329016699", "name": "\u0428\u043E\u043A.\u043C\u043E\u043B.OZera Extra milk 90\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077626227", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B. \u043F\u043E\u0440\u0438\u0441 \u0420\u043E\u0448\u0435\u043D 80 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606003759", "name": "\u041C\u0430\u0440-\u0434 Fruit-tella \u0437\u0432\u0435\u0440\u0438 mix 30*70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216097162", "name": "\u041C\u0430\u0440\u0448\u043C\u0435\u043B\u043B\u043E\u0443 HARIBO Party 70\u0433\u0440 (24)", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203223", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles 2\u04321", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1308.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:30]POST & json_proto [18:46:30]process_json_proto [18:46:30]json parsed OK: [18:46:30]protocol is kg_v1.0 [18:46:30]action value=close_receipt [18:46:30]process_action close_receipt [18:46:30]cmd_close_receipt [18:46:30]MH_GetDate [18:46:30]Write to MH i2c: F0 00 00 DB 1C E6 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: F0 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: F0 09 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: F0 09 00 DB 1C 00 88 44 19 67 E7 19 F8 65 98 [18:46:30]GetLastDocTimeStamp 1729708971 [18:46:30]current date 1729709192 [18:46:30]FM_GetShiftState [18:46:30]SAM_PROTO_GetShiftState [18:46:30]wFMCommunicate request_size=4 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 13 01 00 [18:46:30]Write to MH i2c: E2 08 00 DC 1C 80 13 01 00 00 00 00 00 75 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 0E 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 0E 00 DC 1C 00 09 00 01 99 41 18 67 00 00 00 00 90 00 DA [18:46:30]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:46:30]wFMCommunicate OK [18:46:30]SAM_PROTO_GetShiftState done [18:46:30]FM_GetShiftState done [18:46:30]opened in 1729642905 [18:46:30]opened+sec_in_day 1729729305 [18:46:30]quantity*price = 9000 [18:46:30]sum+1 = 9001 [18:46:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000002952 Холодный чай Fuse персик 0,33 ж/б 2.000 * 90.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000176431 Сок Piko Pulpy апельсин ПЭТ 0,5л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112002768 Печенье Biskrem 100г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 56.00 = 56.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4690329016699 Шок.мол.OZera Extra milk 90г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077626227 Шоколад мол. порис Рошен 80 гр 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602606003759 Мар-д Fruit-tella звери mix 30*70г 1.000 * 103.00 = 103.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 8691216097162 Маршмеллоу HARIBO Party 70гр (24) 1.000 * 86.00 = 86.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700041420152 Салфетки влажн BEST GOLD 20шт 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 2.000 * 55.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42203223 Драже Skittles 2в1 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1308.00 НСП 1% : 11.56 НДС 12% : 138.88 Наличными: 1308.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 260 23.10.2024 18:46 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75527 ФПД: 32428881377977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184632&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75527&fm=32428881377977&tin=02508201610067®Number=0000000000161154&sum=130800 0 [18:46:32]StoreToDocumentArchive [18:46:32]shift 173 fd 75527 [18:46:32]save to /storage/0173/doc_00075527 [18:46:32]save last doc name /storage/0173/doc_00075527 to /storage/kkm_last_doc_name [18:46:32]save OK [18:46:32]Clear old archive folders... [18:46:32]ProcessDocumentItem done err = 0, tmpTLVsize=1756 [18:46:32]tlvbuf is 007E93D0 [18:46:32]SAM_PROTO_ClearQueue [18:46:32]wFMCommunicate request_size=4 [18:46:32]MH_SAM_APDU [18:46:32]CAPDU: 80 09 00 00 [18:46:32]Write to MH i2c: E2 08 00 E9 1C 80 09 00 00 00 00 00 00 77 [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:32]Read from MH i2c: E2 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 03 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 03 00 E9 1C 00 90 00 79 [18:46:32]RAPDU: 90 00 [18:46:32]wFMCommunicate OK [18:46:32]SAM_PROTO_ClearQueue done [18:46:32]KKMCreateOFDPacket [18:46:32]OFDProtocolAddRootSTLVToBuf [18:46:32]FM_MakeSignedData [18:46:32]FM_MakeSignedData [18:46:32]SAM_PROTO_SignData [18:46:32]wFMCommunicate request_size=4 [18:46:32]MH_SAM_APDU [18:46:32]CAPDU: 80 0D 01 02 [18:46:32]Write to MH i2c: E2 08 00 EA 1C 80 0D 01 02 00 00 00 00 7F [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:32]Read from MH i2c: E2 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 03 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 03 00 EA 1C 00 90 00 7A [18:46:32]RAPDU: 90 00 [18:46:32]wFMCommunicate OK [18:46:32]wFMCommunicate request_size=255 [18:46:32]MH_SAM_APDU [18:46:32]CAPDU: 80 0D 02 02 FA 03 00 DC 06 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [18:46:33]Write to MH i2c: E2 02 01 EB 1C 80 0D 02 02 FA 00 03 00 DC 06 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 F0 [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [18:46:33]RAPDU: 90 00 [18:46:33]wFMCommunicate OK [18:46:33]wFMCommunicate request_size=255 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 0D 02 02 FA 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A [18:46:33]Write to MH i2c: E2 02 01 EC 1C 80 0D 02 02 FA 00 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 00 00 DA [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [18:46:33]RAPDU: 90 00 [18:46:33]wFMCommunicate OK [18:46:33]wFMCommunicate request_size=255 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 0D 02 02 FA 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD [18:46:33]Write to MH i2c: E2 02 01 ED 1C 80 0D 02 02 FA 00 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD 00 00 27 [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [18:46:34]RAPDU: 90 00 [18:46:34]wFMCommunicate OK [18:46:34]wFMCommunicate request_size=255 [18:46:34]MH_SAM_APDU [18:46:34]CAPDU: 80 0D 02 02 FA D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 [18:46:34]Write to MH i2c: E2 02 01 EE 1C 80 0D 02 02 FA 00 D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 00 00 3E [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 EE 1C 00 90 00 7E [18:46:34]RAPDU: 90 00 [18:46:34]wFMCommunicate OK [18:46:34]wFMCommunicate request_size=255 [18:46:34]MH_SAM_APDU [18:46:34]CAPDU: 80 0D 02 02 FA B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 35 39 06 04 2C 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 B2 D0 B5 D1 80 D0 B8 20 6D 69 78 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 [18:46:34]Write to MH i2c: E2 02 01 EF 1C 80 0D 02 02 FA 00 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 35 39 06 04 2C 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 B2 D0 B5 D1 80 D0 B8 20 6D 69 78 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 00 00 56 [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 EF 1C 00 90 00 7F [18:46:34]RAPDU: 90 00 [18:46:34]wFMCommunicate OK [18:46:34]wFMCommunicate request_size=255 [18:46:34]MH_SAM_APDU [18:46:34]CAPDU: 80 0D 02 02 FA 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [18:46:34]Write to MH i2c: E2 02 01 F0 1C 80 0D 02 02 FA 00 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 A6 [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 03 00 F0 1C 00 90 00 80 [18:46:34]RAPDU: 90 00 [18:46:34]wFMCommunicate OK [18:46:34]wFMCommunicate request_size=255 [18:46:34]MH_SAM_APDU [18:46:34]CAPDU: 80 0D 02 02 FA 04 01 00 01 23 04 57 00 8A 04 08 00 34 32 32 30 33 32 32 33 06 04 18 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 32 D0 B2 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 36 00 00 00 00 07 04 06 00 F0 FE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 88 44 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 07 27 01 00 [18:46:34]Write to MH i2c: E2 02 01 F1 1C 80 0D 02 02 FA 00 04 01 00 01 23 04 57 00 8A 04 08 00 34 32 32 30 33 32 32 33 06 04 18 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 32 D0 B2 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 36 00 00 00 00 07 04 06 00 F0 FE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 88 44 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 07 27 01 00 00 00 19 [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:35]Read from MH i2c: E2 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 03 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 03 00 F1 1C 00 90 00 81 [18:46:35]RAPDU: 90 00 [18:46:35]wFMCommunicate OK [18:46:35]wFMCommunicate request_size=15 [18:46:35]MH_SAM_APDU [18:46:35]CAPDU: 80 0D 02 02 0A 35 04 06 00 1D 7E 6F F4 7A B9 [18:46:35]Write to MH i2c: E2 12 00 F2 1C 80 0D 02 02 0A 00 35 04 06 00 1D 7E 6F F4 7A B9 00 00 0C [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:35]Read from MH i2c: E2 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 03 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 03 00 F2 1C 00 90 00 82 [18:46:35]RAPDU: 90 00 [18:46:35]wFMCommunicate OK [18:46:35]wFMCommunicate request_size=4 [18:46:35]MH_SAM_APDU [18:46:35]CAPDU: 80 0D 03 02 [18:46:35]Write to MH i2c: E2 08 00 F3 1C 80 0D 03 02 00 00 00 00 8A [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:35]Read from MH i2c: E2 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 0B 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 0B 00 F3 1C 00 ED 2D 37 C4 D2 A7 46 39 90 00 98 [18:46:35]RAPDU: ED 2D 37 C4 D2 A7 46 39 90 00 [18:46:35]wFMCommunicate OK [18:46:35]SAM_PROTO_SignData done [18:46:35]FM_MakeSignedData done [18:46:35]CreateOFDProtocolMessage [18:46:35]wFMCommunicate request_size=4 [18:46:35]MH_SAM_APDU [18:46:35]CAPDU: 80 11 00 00 [18:46:35]Write to MH i2c: E2 08 00 F4 1C 80 11 00 00 00 00 00 00 8A [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:35]Read from MH i2c: E2 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 17 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 17 00 F4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D7 [18:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:46:35]wFMCommunicate OK [18:46:35]CreateOFDProtocolMessage done [18:46:35]OFDSenderStorePacket 75527 [18:46:35]StoreOFDPacket docnum=75527 [18:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F0 06 00 00 9E 89 E8 06 8C 0C 5A 03 01 00 03 00 DC 06 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 35 39 06 04 2C 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 B2 D0 B5 D1 80 D0 B8 20 6D 69 78 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 32 32 30 33 32 32 33 06 04 18 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 32 D0 B2 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 04 00 [18:46:35]CheckFolder [18:46:35]dirname=/storage/ofd_packets [18:46:35]CheckFolder done [18:46:35]ProducePacketName [18:46:35]name=ofd_packets/00075527 [18:46:35]NVStorageSaveData ofd_packets/00075527 [18:46:35]File name is /storage/ofd_packets/00075527 [18:46:35]Write 1806 bytes [18:46:35]NVStorageSaveData done [18:46:35]OFDSenderStorePacket done [18:46:35]KKMCreateOFDPacket done [18:46:35]NVStorageSaveData kkm_last_timestamp [18:46:35]File name is /storage/kkm_last_timestamp [18:46:35]Write 4 bytes [18:46:35]NVStorageSaveData done [18:46:35]ExternCall_PrintAddStr [18:46:35]wPrintStart [18:46:35]Write to MH i2c: 01 00 00 F5 1C 11 [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: 01 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: 01 07 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: 01 07 00 F5 1C 00 00 00 00 00 FF 0F 26 [18:46:35]RasterBufferAndPrint [18:46:35]line Счет N : (3)273292 [18:46:35]line ИНН: 02508201610067 [18:46:35]line Контрольно-Кассовый Чек [18:46:35]line ПРОДАЖА [18:46:35]line Товар: 4870235681086 [18:46:35]line Grizzly волнистые Сыр с халапеньо 55 гр [18:46:35]line 1.000 * 90.00 [18:46:35]line = 90.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 2000031750019 [18:46:35]line Пакет Партнер Нефть [18:46:35]line 1.000 * 4.00 [18:46:35]line = 4.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 5449000002952 [18:46:35]line Холодный чай Fuse персик 0,33 ж/б [18:46:35]line 2.000 * 90.00 [18:46:35]line = 180.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 5449000176431 [18:46:35]line Сок Piko Pulpy апельсин ПЭТ 0,5л [18:46:35]line 2.000 * 95.00 [18:46:35]line = 190.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 4011100977624 [18:46:35]line Шок Батончик Баунти 55г [18:46:35]line 1.000 * 59.00 [18:46:35]line = 59.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 4870112002768 [18:46:35]line Печенье Biskrem 100г [18:46:35]line 1.000 * 70.00 [18:46:35]line = 70.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 4607065001445 [18:46:35]line Шок батончик Snickers 50,5г [18:46:35]line 1.000 * 56.00 [18:46:35]line = 56.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 4690329016699 [18:46:35]line Шок.мол.OZera Extra milk 90г [18:46:35]line 1.000 * 130.00 [18:46:35]line = 130.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 4823077626227 [18:46:35]line Шоколад мол. порис Рошен 80 гр [18:46:35]line 1.000 * 130.00 [18:46:35]line = 130.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 4602606003759 [18:46:35]line Мар-д Fruit-tella звери mix 30*70г [18:46:35]line 1.000 * 103.00 [18:46:35]line = 103.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 8691216097162 [18:46:35]line Маршмеллоу HARIBO Party 70гр (24) [18:46:35]line 1.000 * 86.00 [18:46:35]line = 86.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 4700041420152 [18:46:35]line Салфетки влажн BEST GOLD 20шт [18:46:35]line 1.000 * 40.00 [18:46:35]line = 40.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 4870112003925 [18:46:35]line Конд ULKER-Albeni 40gr (6*24) [18:46:35]line 2.000 * 55.00 [18:46:35]line = 110.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line Товар: 42203223 [18:46:35]line Драже Skittles 2в1 [18:46:35]line 1.000 * 60.00 [18:46:35]line = 60.00 [18:46:35]line НДС 12% НСП 1% [18:46:35]line > о реализуемом товаре [18:46:35]line ИТОГО: 1308.00 [18:46:35]line НСП 1% : 11.56 [18:46:35]line НДС 12% : 138.88 [18:46:35]line Наличными: 1308.00 [18:46:35]line Безнал.: 0.00 [18:46:35]line Место: АЗС № 133 "Партнер Нефть" [18:46:35]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:46:35]line СНО: Общий режим [18:46:36]line Чек 260 23.10.2024 18:46 [18:46:36]line Смена: 173 ФФД: 1.0 [18:46:36]line ЗНМ: 0300000020 [18:46:36]line РНМ: 0000000000161154 [18:46:36]line Версия ККМ: v1.0 [18:46:36]line ФМ: 0000000000963323 [18:46:36]line ФД: 75527 [18:46:36]line ФПД: 32428881377977 [18:46:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184632&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75527&fm=32428881377977&tin=02508201610067®Number=0000000000161154&sum=130800 [18:46:36]line 0 [18:46:36]OFD Sender: Processing packet 75527 [packets to send 16, broken 15] [18:46:36]ProducePacketName [18:46:36]name=ofd_packets/00075527 [18:46:36]OFD Sender: To server: pG, [18:46:36]CommunicateWithHost lk.salyk.kg:30040 [18:46:36]ConnectInit lk.salyk.kg [18:46:36]written 0, free lines is 4095 [18:46:36]Connected sock=9 [18:46:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F0 06 00 00 9E 89 E8 06 8C 0C 5A 03 01 00 03 00 DC 06 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 35 39 06 04 2C 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 B2 D0 B5 D1 80 D0 B8 20 6D 69 78 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 32 32 30 33 32 32 33 06 04 18 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 32 D0 B2 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 36 00 00 00 00 07 04 06 00 F0 FE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 88 44 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 07 27 01 00 35 04 06 00 1D 7E 6F F4 7A B9 ED 2D 37 C4 D2 A7 46 39 [18:46:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 27 E5 47 00 22 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 07 27 01 00 F4 03 04 00 66 ED 18 67 B6 04 01 00 00 8E 2D 89 BA AF C3 01 93 [18:46:37]CommunicateWithHost err = 0 [18:46:37]CheckOFDResponse [18:46:37]1017 (14) - 77093643461234 [18:46:37]1041 (16) - 0000000000963323 [18:46:37]1040 (4) - 75527 [18:46:37]1012 (4) - 23.10.2024 12:34 [18:46:37]1206 (1) - 0 [18:46:37]OFD Sender: Remove packet 75527 [18:46:37]ProducePacketName [18:46:37]name=ofd_packets/00075527 [18:46:37]NVStorageDeleteData [18:46:37]int [18:46:37]Write to MH i2c: 01 00 00 62 1D 7F [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:37]Write i2c OK [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: DD [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: DD [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: DD 05 00 [18:46:37]MH_I2C_Read... [18:46:37]Read from MH i2c: DD 05 00 [18:46:37]answer for other command [DD] [18:46:37]MH Int Process stopped [18:46:37]Read from MH i2c: DD 05 00 62 1D 00 1E 00 ED 07 72 [18:46:37]answer with wrong packet_num 1D62 - expected 1D63 [18:46:37]process_action_free close_receipt [18:46:37]json_value_free [18:46:37]json_value_free done [18:46:37]process_json_proto returns [18:46:37]Send response to host [18:46:37]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [18:46:37]free response buf [18:46:37]execute_script done [18:46:37]execute_script returns [18:46:37]free content buf [18:46:37]Sock 10.Close socket [18:46:37]Sock 10.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:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [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]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 [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]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:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:58:59]accept exits with 8 [18:58:59]New connection [18:58:59]New thread 3066465636 created [18:58:59]Thread 3066608996 joined [18:58:59]Waiting for new connection... [18:58:59] Sock 8.Parse request [18:58:59]Sock 8.Check first char [18:58:59]Sock 8.First char is OK [18:58:59]request: POST /json_proto HTTP/1.0 [18:58:59]Method: POST [18:58:59]URL: /json_proto [18:58:59]Method is POST - this is cgi request [18:58:59]url: /json_proto [18:58:59]query_string will be loaded in cgi processing [18:58:59]execute_cgi json_proto POST (null) [18:58:59]execute_cgi path=json_proto method=POST [18:58:59]POST find Content-Length [18:58:59]Host: 172.17.44.196:8080 [18:58:59]Content-Length: 215 [18:58:59]Content-Type: application/json [18:58:59] [18:58:59]POST finish read [18:58:59]Found Content-Length = 215 [18:58:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:59]execute_script... [18:58:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:59]POST & json_proto [18:58:59]process_json_proto [18:58:59]json parsed OK: [18:58:59]protocol is kg_v1.0 [18:58:59]action value=get_value [18:58:59]process_action get_value [18:58:59]cmd_get_value [18:58:59]process_action get_value done [18:58:59]requested_data is exist [18:58:59]produce_requested_data [18:58:59]requested_item kkm.sn is exist - process it [18:58:59]requested_item kkm.ver is exist - process it [18:58:59]requested_item fm.sn is exist - process it [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 11 00 00 [18:58:59]Write to MH i2c: E2 08 00 64 1D 80 11 00 00 00 00 00 00 FB [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 17 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 17 00 64 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 48 [18:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:58:59]wFMCommunicate OK [18:58:59]requested_item fd.num is exist - process it [18:58:59]SAM_PROTO_GetFieldsCounters [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 13 00 00 [18:58:59]Write to MH i2c: E2 08 00 65 1D 80 13 00 00 00 00 00 00 FE [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 62 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 62 00 65 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 07 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [18:58:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 07 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:59]wFMCommunicate OK [18:58:59]SAM_PROTO_GetFieldsCounters done [18:58:59]requested_item shift.num is exist - process it [18:58:59]requested_item shift.opened is exist - process it [18:58:59]req_shift_opened [18:58:59]FM_GetShiftState [18:58:59]SAM_PROTO_GetShiftState [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 13 01 00 [18:58:59]Write to MH i2c: E2 08 00 66 1D 80 13 01 00 00 00 00 00 00 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 0E 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 0E 00 66 1D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 65 [18:58:59]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:58:59]wFMCommunicate OK [18:58:59]SAM_PROTO_GetShiftState done [18:58:59]FM_GetShiftState done [18:58:59]req_shift_opened done [18:58:59]requested_item shift.open_date is exist - process it [18:58:59]req_shift_open_date [18:58:59]req_shift_open_date done [18:58:59]produce_requested_data done [18:58:59]produce_requested_data return {"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":75527,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [18:58:59]process_action_free get_value [18:58:59]json_value_free [18:58:59]json_value_free done [18:58:59]process_json_proto returns [18:58:59]Send response to host [18:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000020","kkm.ver":"v1.0","fm.sn":"0000000000963323","fd.num":75527,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [18:58:59]free response buf [18:58:59]execute_script done [18:58:59]execute_script returns [18:58:59]free content buf [18:58:59]Sock 8.Close socket [18:58:59]Sock 8.Thread stoped [18:58:59]accept exits with 5 [18:58:59]New connection [18:58:59]New thread 3066608996 created [18:58:59]Thread 3066465636 joined [18:58:59]Waiting for new connection... [18:58:59] Sock 5.Parse request [18:58:59]Sock 5.Check first char [18:58:59]Sock 5.First char is OK [18:58:59]request: POST /json_proto HTTP/1.0 [18:58:59]Method: POST [18:58:59]URL: /json_proto [18:58:59]Method is POST - this is cgi request [18:58:59]url: /json_proto [18:58:59]query_string will be loaded in cgi processing [18:58:59]execute_cgi json_proto POST (null) [18:58:59]execute_cgi path=json_proto method=POST [18:58:59]POST find Content-Length [18:58:59]Host: 172.17.44.196:8080 [18:58:59]Content-Length: 331 [18:58:59]Content-Type: application/json [18:58:59] [18:58:59]POST finish read [18:58:59]Found Content-Length = 331 [18:58:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:58:59]execute_script... [18:58:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:58:59]POST & json_proto [18:58:59]process_json_proto [18:58:59]json parsed OK: [18:58:59]protocol is kg_v1.0 [18:58:59]action value=get_value [18:58:59]process_action get_value [18:58:59]cmd_get_value [18:58:59]process_action get_value done [18:58:59]requested_data is exist [18:58:59]produce_requested_data [18:58:59]requested_item fm.sale.total is exist - process it [18:58:59]SAM_PROTO_GetFMData [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 13 03 00 [18:58:59]Write to MH i2c: E2 08 00 67 1D 80 13 03 00 00 00 00 00 03 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:59:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:59:00]Read from MH i2c: E2 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 FD 00 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 FD 00 67 1D 00 C6 04 85 04 C2 04 6E 04 04 00 AD 25 01 00 69 04 A3 00 6F 04 04 00 BD 24 01 00 B1 04 05 00 78 E2 C7 31 01 70 04 05 00 4A D6 20 01 01 72 04 04 00 2E 0C A7 30 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 1C 13 7B 20 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 8E DD B4 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 34 [18:59:00]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 AD 25 01 00 69 04 A3 00 6F 04 04 00 BD 24 01 00 B1 04 05 00 78 E2 C7 31 01 70 04 05 00 4A D6 20 01 01 72 04 04 00 2E 0C A7 30 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 1C 13 7B 20 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 8E DD B4 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 9D 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6C 83 2F 04 70 04 04 00 C4 21 2F 04 72 04 02 00 A8 61 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 5E CC 71 EF 03 90 00 [18:59:00]wFMCommunicate OK [18:59:00]wFMCommunicate request_size=4 [18:59:00]MH_SAM_APDU [18:59:00]CAPDU: 80 17 00 00 [18:59:00]Write to MH i2c: E2 08 00 68 1D 80 17 00 00 00 00 00 00 05 [18:59:00]Write i2c OK [18:59:00]MH_I2C_Read... [18:59:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:00]Read from MH i2c: E2 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 FD 00 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 FD 00 68 1D 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [18:59:00]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 7B 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:59:00]wFMCommunicate OK [18:59:00]wFMCommunicate request_size=4 [18:59:00]MH_SAM_APDU [18:59:00]CAPDU: 80 17 00 00 [18:59:00]Write to MH i2c: E2 08 00 69 1D 80 17 00 00 00 00 00 00 06 [18:59:00]Write i2c OK [18:59:00]MH_I2C_Read... [18:59:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:00]Read from MH i2c: E2 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 FD 00 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 FD 00 69 1D 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2D [18:59:00]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:59:00]wFMCommunicate OK [18:59:00]wFMCommunicate request_size=4 [18:59:00]MH_SAM_APDU [18:59:00]CAPDU: 80 17 00 00 [18:59:00]Write to MH i2c: E2 08 00 6A 1D 80 17 00 00 00 00 00 00 07 [18:59:00]Write i2c OK [18:59:00]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 FD 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 FD 00 6A 1D 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [18:59:01]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:59:01]wFMCommunicate OK [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 17 00 00 [18:59:01]Write to MH i2c: E2 08 00 6B 1D 80 17 00 00 00 00 00 00 08 [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 E3 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 E3 00 6B 1D 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E7 [18:59:01]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:01]wFMCommunicate OK [18:59:01]SAM_PROTO_GetFMData done [18:59:01]requested_item fm.sale_refund.total is exist - process it [18:59:01]requested_item fm.buy.total is exist - process it [18:59:01]requested_item shift.sale.total is exist - process it [18:59:01]SAM_PROTO_GetShiftData [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 13 02 00 [18:59:01]Write to MH i2c: E2 08 00 6C 1D 80 13 02 00 00 00 00 00 07 [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 FD 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 FD 00 6C 1D 00 AF 04 AA 04 AB 04 6E 04 04 00 04 01 00 00 69 04 9C 00 6F 04 04 00 04 01 00 00 B1 04 03 00 E1 D4 EA 70 04 03 00 50 6D CE 72 04 03 00 91 67 1C 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 84 F1 18 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 1D 14 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 DF [18:59:01]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 04 01 00 00 69 04 9C 00 6F 04 04 00 04 01 00 00 B1 04 03 00 E1 D4 EA 70 04 03 00 50 6D CE 72 04 03 00 91 67 1C 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 84 F1 18 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 1D 14 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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:59:01]wFMCommunicate OK [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 17 00 00 [18:59:01]Write to MH i2c: E2 08 00 6D 1D 80 17 00 00 00 00 00 00 0A [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:02]Read from MH i2c: E2 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 FD 00 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 FD 00 6D 1D 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 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 90 00 23 [18:59:02]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 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 90 00 [18:59:02]wFMCommunicate OK [18:59:02]wFMCommunicate request_size=4 [18:59:02]MH_SAM_APDU [18:59:02]CAPDU: 80 17 00 00 [18:59:02]Write to MH i2c: E2 08 00 6E 1D 80 17 00 00 00 00 00 00 0B [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:02]Read from MH i2c: E2 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 FD 00 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 FD 00 6E 1D 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BF [18:59:02]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:59:02]wFMCommunicate OK [18:59:02]wFMCommunicate request_size=4 [18:59:02]MH_SAM_APDU [18:59:02]CAPDU: 80 17 00 00 [18:59:02]Write to MH i2c: E2 08 00 6F 1D 80 17 00 00 00 00 00 00 0C [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:59:02]Read from MH i2c: E2 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 FD 00 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 FD 00 6F 1D 00 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 90 00 8A [18:59:02]RAPDU: 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 90 00 [18:59:02]wFMCommunicate OK [18:59:02]wFMCommunicate request_size=4 [18:59:02]MH_SAM_APDU [18:59:02]CAPDU: 80 17 00 00 [18:59:02]Write to MH i2c: E2 08 00 70 1D 80 17 00 00 00 00 00 00 0D [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 CC 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 CC 00 70 1D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EE [18:59:03]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:03]wFMCommunicate OK [18:59:03]SAM_PROTO_GetShiftData done [18:59:03]requested_item shift.sale.total_cash is exist - process it [18:59:03]requested_item shift.sale_refund.total is exist - process it [18:59:03]requested_item shift.sale_refund.total_cash is exist - process it [18:59:03]requested_item shift.buy.total is exist - process it [18:59:03]requested_item shift.buy.total_cash is exist - process it [18:59:03]produce_requested_data done [18:59:03]produce_requested_data return {"fm.sale.total":51301505.20,"fm.sale_refund.total":702227.00,"fm.buy.total":0.00,"shift.sale.total":153899.21,"shift.sale.total_cash":135284.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} [18:59:03]process_action_free get_value [18:59:03]json_value_free [18:59:03]json_value_free done [18:59:03]process_json_proto returns [18:59:03]Send response to host [18:59:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":51301505.20,"fm.sale_refund.total":702227.00,"fm.buy.total":0.00,"shift.sale.total":153899.21,"shift.sale.total_cash":135284.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}}} [18:59:03]free response buf [18:59:03]execute_script done [18:59:03]execute_script returns [18:59:03]free content buf [18:59:03]Sock 5.Close socket [18:59:03]Sock 5.Thread stoped [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:08]accept exits with 6 [18:59:08]New connection [18:59:08]New thread 3066465636 created [18:59:08]Thread 3066608996 joined [18:59:08]Waiting for new connection... [18:59:08] Sock 6.Parse request [18:59:08]Sock 6.Check first char [18:59:08]Sock 6.First char is OK [18:59:08]request: POST /json_proto HTTP/1.0 [18:59:08]Method: POST [18:59:08]URL: /json_proto [18:59:08]Method is POST - this is cgi request [18:59:08]url: /json_proto [18:59:08]query_string will be loaded in cgi processing [18:59:08]execute_cgi json_proto POST (null) [18:59:08]execute_cgi path=json_proto method=POST [18:59:08]POST find Content-Length [18:59:08]Host: 172.17.44.196:8080 [18:59:08]Content-Length: 633 [18:59:08]Content-Type: application/json [18:59:08] [18:59:08]POST finish read [18:59:08]Found Content-Length = 633 [18:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273293", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:08]execute_script... [18:59:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273293", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:08]POST & json_proto [18:59:08]process_json_proto [18:59:08]json parsed OK: [18:59:08]protocol is kg_v1.0 [18:59:08]action value=close_receipt [18:59:08]process_action close_receipt [18:59:08]cmd_close_receipt [18:59:08]MH_GetDate [18:59:08]Write to MH i2c: F0 00 00 71 1D 7D [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: F0 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: F0 09 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: F0 09 00 71 1D 00 7E 47 19 67 E7 19 F8 65 28 [18:59:08]GetLastDocTimeStamp 1729709192 [18:59:08]current date 1729709950 [18:59:08]FM_GetShiftState [18:59:08]SAM_PROTO_GetShiftState [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 13 01 00 [18:59:08]Write to MH i2c: E2 08 00 72 1D 80 13 01 00 00 00 00 00 0C [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 0E 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 0E 00 72 1D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 71 [18:59:08]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:59:08]wFMCommunicate OK [18:59:08]SAM_PROTO_GetShiftState done [18:59:08]FM_GetShiftState done [18:59:08]opened in 1729642905 [18:59:08]opened+sec_in_day 1729729305 [18:59:08]quantity*price = 14300 [18:59:08]sum+1 = 14301 [18:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 261 23.10.2024 18:59 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75528 ФПД: 45982368802484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185910&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75528&fm=45982368802484&tin=02508201610067®Number=0000000000161154&sum=14300 0 [18:59:09]StoreToDocumentArchive [18:59:09]shift 173 fd 75528 [18:59:09]save to /storage/0173/doc_00075528 [18:59:09]save last doc name /storage/0173/doc_00075528 to /storage/kkm_last_doc_name [18:59:09]save OK [18:59:09]Clear old archive folders... [18:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=285 [18:59:09]tlvbuf is 007780C0 [18:59:09]SAM_PROTO_ClearQueue [18:59:09]wFMCommunicate request_size=4 [18:59:09]MH_SAM_APDU [18:59:09]CAPDU: 80 09 00 00 [18:59:09]Write to MH i2c: E2 08 00 7F 1D 80 09 00 00 00 00 00 00 0E [18:59:09]Write i2c OK [18:59:09]MH_I2C_Read... [18:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:09]Read from MH i2c: E2 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 03 00 [18:59:09]MH_I2C_Read... [18:59:09]Read from MH i2c: E2 03 00 7F 1D 00 90 00 10 [18:59:09]RAPDU: 90 00 [18:59:09]wFMCommunicate OK [18:59:09]SAM_PROTO_ClearQueue done [18:59:09]KKMCreateOFDPacket [18:59:09]OFDProtocolAddRootSTLVToBuf [18:59:09]FM_MakeSignedData [18:59:09]FM_MakeSignedData [18:59:09]SAM_PROTO_SignData [18:59:09]wFMCommunicate request_size=4 [18:59:09]MH_SAM_APDU [18:59:09]CAPDU: 80 0D 01 02 [18:59:09]Write to MH i2c: E2 08 00 80 1D 80 0D 01 02 00 00 00 00 16 [18:59:09]Write i2c OK [18:59:09]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 03 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 03 00 80 1D 00 90 00 11 [18:59:10]RAPDU: 90 00 [18:59:10]wFMCommunicate OK [18:59:10]wFMCommunicate request_size=255 [18:59:10]MH_SAM_APDU [18:59:10]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 7E 47 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 [18:59:10]Write to MH i2c: E2 02 01 81 1D 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 7E 47 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 00 00 EE [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 03 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [18:59:10]RAPDU: 90 00 [18:59:10]wFMCommunicate OK [18:59:10]wFMCommunicate request_size=44 [18:59:10]MH_SAM_APDU [18:59:10]CAPDU: 80 0D 02 02 27 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 27 01 00 35 04 06 00 29 D2 1A C2 26 B4 [18:59:10]Write to MH i2c: E2 2F 00 82 1D 80 0D 02 02 27 00 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 27 01 00 35 04 06 00 29 D2 1A C2 26 B4 00 00 12 [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 03 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [18:59:10]RAPDU: 90 00 [18:59:10]wFMCommunicate OK [18:59:10]wFMCommunicate request_size=4 [18:59:10]MH_SAM_APDU [18:59:10]CAPDU: 80 0D 03 02 [18:59:10]Write to MH i2c: E2 08 00 83 1D 80 0D 03 02 00 00 00 00 1B [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 0B 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 0B 00 83 1D 00 20 85 73 14 A4 60 AB 3C 90 00 33 [18:59:10]RAPDU: 20 85 73 14 A4 60 AB 3C 90 00 [18:59:10]wFMCommunicate OK [18:59:10]SAM_PROTO_SignData done [18:59:10]FM_MakeSignedData done [18:59:10]CreateOFDProtocolMessage [18:59:10]wFMCommunicate request_size=4 [18:59:10]MH_SAM_APDU [18:59:10]CAPDU: 80 11 00 00 [18:59:10]Write to MH i2c: E2 08 00 84 1D 80 11 00 00 00 00 00 00 1B [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 17 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 17 00 84 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 68 [18:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:59:10]wFMCommunicate OK [18:59:10]CreateOFDProtocolMessage done [18:59:10]OFDSenderStorePacket 75528 [18:59:10]StoreOFDPacket docnum=75528 [18:59:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 31 01 00 00 A0 0C 29 01 93 8C 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 7E 47 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 27 01 00 35 04 06 00 29 D2 1A C2 26 B4 20 85 73 14 A4 60 AB 3C [18:59:10]CheckFolder [18:59:10]dirname=/storage/ofd_packets [18:59:10]CheckFolder done [18:59:10]ProducePacketName [18:59:10]name=ofd_packets/00075528 [18:59:10]NVStorageSaveData ofd_packets/00075528 [18:59:10]File name is /storage/ofd_packets/00075528 [18:59:10]Write 335 bytes [18:59:10]NVStorageSaveData done [18:59:10]OFDSenderStorePacket done [18:59:10]KKMCreateOFDPacket done [18:59:10]NVStorageSaveData kkm_last_timestamp [18:59:10]File name is /storage/kkm_last_timestamp [18:59:10]Write 4 bytes [18:59:10]NVStorageSaveData done [18:59:10]ExternCall_PrintAddStr [18:59:10]wPrintStart [18:59:10]Write to MH i2c: 01 00 00 85 1D A2 [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: 01 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: 01 07 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: 01 07 00 85 1D 00 00 00 00 00 FF 0F B7 [18:59:10]RasterBufferAndPrint [18:59:10]line Счет N : (3)273293 [18:59:10]line ИНН: 02508201610067 [18:59:10]line Контрольно-Кассовый Чек [18:59:10]line ПРОДАЖА [18:59:10]line Товар: 48746717 [18:59:10]line Сигареты Winston XStyle Caster + Dream M [18:59:10]line 1.000 * 143.00 [18:59:10]line = 143.00 [18:59:10]line НДС 12% НСП 1% [18:59:10]line > о реализуемом товаре [18:59:10]line ИТОГО: 143.00 [18:59:10]line НСП 1% : 1.26 [18:59:10]line НДС 12% : 15.19 [18:59:10]line Наличными: 143.00 [18:59:10]line Безнал.: 0.00 [18:59:10]line Место: АЗС № 133 "Партнер Нефть" [18:59:10]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:59:10]line СНО: Общий режим [18:59:10]line Чек 261 23.10.2024 18:59 [18:59:10]line Смена: 173 ФФД: 1.0 [18:59:10]line ЗНМ: 0300000020 [18:59:10]line РНМ: 0000000000161154 [18:59:10]line Версия ККМ: v1.0 [18:59:10]line ФМ: 0000000000963323 [18:59:10]line ФД: 75528 [18:59:10]line ФПД: 45982368802484 [18:59:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185910&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75528&fm=45982368802484&tin=02508201610067®Number=0000000000161154&sum=14300 [18:59:10]line 0 [18:59:10]written 0, free lines is 4095 [18:59:10]OFD Sender: Processing packet 75528 [packets to send 16, broken 15] [18:59:10]ProducePacketName [18:59:10]name=ofd_packets/00075528 [18:59:10]OFD Sender: To server: pG, [18:59:10]CommunicateWithHost lk.salyk.kg:30040 [18:59:10]ConnectInit lk.salyk.kg [18:59:10]Connected sock=8 [18:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 31 01 00 00 A0 0C 29 01 93 8C 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 7E 47 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 27 01 00 35 04 06 00 29 D2 1A C2 26 B4 20 85 73 14 A4 60 AB 3C [18:59:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 52 66 47 00 50 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 08 27 01 00 F4 03 04 00 58 F0 18 67 B6 04 01 00 00 9D A3 02 8A F8 38 2E FF [18:59:10]CommunicateWithHost err = 0 [18:59:10]CheckOFDResponse [18:59:10]1017 (14) - 77093643461234 [18:59:10]1041 (16) - 0000000000963323 [18:59:10]1040 (4) - 75528 [18:59:10]1012 (4) - 23.10.2024 12:47 [18:59:10]1206 (1) - 0 [18:59:10]OFD Sender: Remove packet 75528 [18:59:10]ProducePacketName [18:59:10]name=ofd_packets/00075528 [18:59:10]NVStorageDeleteData [18:59:10]Write to MH i2c: 01 00 00 AD 1D CA [18:59:11]Write i2c OK [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: 01 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: 01 07 00 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: 01 07 00 AD 1D 00 00 00 00 00 E4 0C C1 [18:59:11]RasterBufferAndPrint [18:59:11]line [18:59:11]line [18:59:11]line [18:59:11]line [18:59:11]line [18:59:11]written 0, free lines is 3310 [18:59:11]MH_Cut [18:59:11]Write to MH i2c: D1 01 00 B4 1D 01 A3 [18:59:11]Write i2c OK [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: D1 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: D1 01 00 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: D1 01 00 B4 1D 00 A2 [18:59:11]Write to MH i2c: 01 00 00 B5 1D D2 [18:59:11]Write i2c OK [18:59:11]MH_I2C_Read... [18:59:11]OFD Sender: No OFD packet to send [18:59:11]*** Cut start [18:59:11]*** Partial cut [18:59:11]*** CUTSNS_PIN = 1 [18:59:11]*** CUTSNS_PIN = 0 [18:59:12]*** Brake cut motor [18:59:12]Read from MH i2c: 01 [18:59:12]MH_I2C_Read... [18:59:12]*** Stop cut motor [18:59:12]*** Cut end [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 B5 1D 00 00 00 00 00 FF 0F E7 [18:59:12]process_action close_receipt done [18:59:12]requested_data is exist [18:59:12]produce_requested_data [18:59:12]requested_item fm.sn is exist - process it [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 B6 1D 80 11 00 00 00 00 00 00 4D [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 B6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9A [18:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:59:12]wFMCommunicate OK [18:59:12]requested_item fd.num is exist - process it [18:59:12]SAM_PROTO_GetFieldsCounters [18:59:12]wFMCommunicate request_size=4 [18:59:12]MH_SAM_APDU [18:59:12]CAPDU: 80 13 00 00 [18:59:12]Write to MH i2c: E2 08 00 B7 1D 80 13 00 00 00 00 00 00 50 [18:59:12]Write i2c OK [18:59:12]MH_I2C_Read... [18:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:12]Read from MH i2c: E2 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 62 00 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 62 00 B7 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 08 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [18:59:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 08 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:12]wFMCommunicate OK [18:59:12]SAM_PROTO_GetFieldsCounters done [18:59:12]requested_item shift.num is exist - process it [18:59:12]requested_item shift.opened is exist - process it [18:59:12]req_shift_opened [18:59:12]FM_GetShiftState [18:59:12]SAM_PROTO_GetShiftState [18:59:12]wFMCommunicate request_size=4 [18:59:12]MH_SAM_APDU [18:59:12]CAPDU: 80 13 01 00 [18:59:12]Write to MH i2c: E2 08 00 B8 1D 80 13 01 00 00 00 00 00 52 [18:59:12]Write i2c OK [18:59:12]MH_I2C_Read... [18:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:12]Read from MH i2c: E2 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 0E 00 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 0E 00 B8 1D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B7 [18:59:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:59:12]wFMCommunicate OK [18:59:12]SAM_PROTO_GetShiftState done [18:59:12]FM_GetShiftState done [18:59:12]req_shift_opened done [18:59:12]requested_item shift.open_date is exist - process it [18:59:12]req_shift_open_date [18:59:12]req_shift_open_date done [18:59:12]produce_requested_data done [18:59:12]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75528,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [18:59:12]process_action_free close_receipt [18:59:12]json_value_free [18:59:12]json_value_free done [18:59:12]process_json_proto returns [18:59:12]Send response to host [18:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75528,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [18:59:12]free response buf [18:59:12]execute_script done [18:59:12]execute_script returns [18:59:12]free content buf [18:59:12]Sock 6.Close socket [18:59:12]Sock 6.Thread stoped [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [18:59:57]accept exits with 5 [18:59:57]New connection [18:59:57]New thread 3066608996 created [18:59:57]Thread 3066465636 joined [18:59:57]Waiting for new connection... [18:59:57] Sock 5.Parse request [18:59:57]Sock 5.Check first char [18:59:57]Sock 5.First char is OK [18:59:57]request: POST /json_proto HTTP/1.0 [18:59:57]Method: POST [18:59:57]URL: /json_proto [18:59:57]Method is POST - this is cgi request [18:59:57]url: /json_proto [18:59:57]query_string will be loaded in cgi processing [18:59:57]execute_cgi json_proto POST (null) [18:59:57]execute_cgi path=json_proto method=POST [18:59:57]POST find Content-Length [18:59:57]Host: 172.17.44.196:8080 [18:59:57]Content-Length: 757 [18:59:57]Content-Type: application/json [18:59:57] [18:59:57]POST finish read [18:59:57]Found Content-Length = 757 [18:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273294", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 2.000, "sum" : 200.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: Mbank", "payments": [ { "type": 1, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:57]execute_script... [18:59:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273294", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 2.000, "sum" : 200.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: Mbank", "payments": [ { "type": 1, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:57]POST & json_proto [18:59:57]process_json_proto [18:59:57]json parsed OK: [18:59:57]protocol is kg_v1.0 [18:59:57]action value=close_receipt [18:59:57]process_action close_receipt [18:59:57]cmd_close_receipt [18:59:57]MH_GetDate [18:59:57]Write to MH i2c: F0 00 00 B9 1D C5 [18:59:57]Write i2c OK [18:59:57]MH_I2C_Read... [18:59:57]Read from MH i2c: F0 [18:59:57]MH_I2C_Read... [18:59:57]Read from MH i2c: F0 09 00 [18:59:57]MH_I2C_Read... [18:59:57]Read from MH i2c: F0 09 00 B9 1D 00 AF 47 19 67 E7 19 F8 65 A1 [18:59:57]GetLastDocTimeStamp 1729709950 [18:59:57]current date 1729709999 [18:59:57]FM_GetShiftState [18:59:57]SAM_PROTO_GetShiftState [18:59:57]wFMCommunicate request_size=4 [18:59:57]MH_SAM_APDU [18:59:57]CAPDU: 80 13 01 00 [18:59:57]Write to MH i2c: E2 08 00 BA 1D 80 13 01 00 00 00 00 00 54 [18:59:57]Write i2c OK [18:59:57]MH_I2C_Read... [18:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:57]Read from MH i2c: E2 [18:59:57]MH_I2C_Read... [18:59:57]Read from MH i2c: E2 0E 00 [18:59:57]MH_I2C_Read... [18:59:57]Read from MH i2c: E2 0E 00 BA 1D 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B9 [18:59:57]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [18:59:57]wFMCommunicate OK [18:59:57]SAM_PROTO_GetShiftState done [18:59:57]FM_GetShiftState done [18:59:57]opened in 1729642905 [18:59:57]opened+sec_in_day 1729729305 [18:59:57]quantity*price = 20000 [18:59:57]sum+1 = 20001 [18:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 262 23.10.2024 18:59 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75529 ФПД: 28033622042886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185959&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75529&fm=28033622042886&tin=02508201610067®Number=0000000000161154&sum=20000 0 [18:59:58]StoreToDocumentArchive [18:59:58]shift 173 fd 75529 [18:59:58]save to /storage/0173/doc_00075529 [18:59:58]save last doc name /storage/0173/doc_00075529 to /storage/kkm_last_doc_name [18:59:58]save OK [18:59:58]Clear old archive folders... [18:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=270 [18:59:58]tlvbuf is 00810050 [18:59:58]SAM_PROTO_ClearQueue [18:59:58]wFMCommunicate request_size=4 [18:59:58]MH_SAM_APDU [18:59:58]CAPDU: 80 09 00 00 [18:59:58]Write to MH i2c: E2 08 00 C7 1D 80 09 00 00 00 00 00 00 56 [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:58]Read from MH i2c: E2 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 03 00 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 03 00 C7 1D 00 90 00 58 [18:59:58]RAPDU: 90 00 [18:59:58]wFMCommunicate OK [18:59:58]SAM_PROTO_ClearQueue done [18:59:58]KKMCreateOFDPacket [18:59:58]OFDProtocolAddRootSTLVToBuf [18:59:58]FM_MakeSignedData [18:59:58]FM_MakeSignedData [18:59:58]SAM_PROTO_SignData [18:59:58]wFMCommunicate request_size=4 [18:59:58]MH_SAM_APDU [18:59:58]CAPDU: 80 0D 01 02 [18:59:58]Write to MH i2c: E2 08 00 C8 1D 80 0D 01 02 00 00 00 00 5E [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:58]Read from MH i2c: E2 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 03 00 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 03 00 C8 1D 00 90 00 59 [18:59:58]RAPDU: 90 00 [18:59:58]wFMCommunicate OK [18:59:58]wFMCommunicate request_size=255 [18:59:58]MH_SAM_APDU [18:59:58]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 AF 47 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [18:59:58]Write to MH i2c: E2 02 01 C9 1D 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 AF 47 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 D1 [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 C9 1D 00 90 00 5A [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=29 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 02 02 18 39 36 33 33 32 33 10 04 04 00 09 27 01 00 35 04 06 00 19 7F 16 15 69 06 [18:59:59]Write to MH i2c: E2 20 00 CA 1D 80 0D 02 02 18 00 39 36 33 33 32 33 10 04 04 00 09 27 01 00 35 04 06 00 19 7F 16 15 69 06 00 00 85 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 CA 1D 00 90 00 5B [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 03 02 [18:59:59]Write to MH i2c: E2 08 00 CB 1D 80 0D 03 02 00 00 00 00 63 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 0B 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 0B 00 CB 1D 00 18 F4 4E 59 E6 A1 62 76 90 00 76 [18:59:59]RAPDU: 18 F4 4E 59 E6 A1 62 76 90 00 [18:59:59]wFMCommunicate OK [18:59:59]SAM_PROTO_SignData done [18:59:59]FM_MakeSignedData done [18:59:59]CreateOFDProtocolMessage [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 11 00 00 [18:59:59]Write to MH i2c: E2 08 00 CC 1D 80 11 00 00 00 00 00 00 63 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 17 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 17 00 CC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B0 [18:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [18:59:59]wFMCommunicate OK [18:59:59]CreateOFDProtocolMessage done [18:59:59]OFDSenderStorePacket 75529 [18:59:59]StoreOFDPacket docnum=75529 [18:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 A3 C8 1A 01 7D C9 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 AF 47 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 27 01 00 35 04 06 00 19 7F 16 15 69 06 18 F4 4E 59 E6 A1 62 76 [18:59:59]CheckFolder [18:59:59]dirname=/storage/ofd_packets [18:59:59]CheckFolder done [18:59:59]ProducePacketName [18:59:59]name=ofd_packets/00075529 [18:59:59]NVStorageSaveData ofd_packets/00075529 [18:59:59]File name is /storage/ofd_packets/00075529 [18:59:59]Write 320 bytes [18:59:59]NVStorageSaveData done [18:59:59]OFDSenderStorePacket done [18:59:59]KKMCreateOFDPacket done [18:59:59]NVStorageSaveData kkm_last_timestamp [18:59:59]File name is /storage/kkm_last_timestamp [18:59:59]Write 4 bytes [18:59:59]NVStorageSaveData done [18:59:59]ExternCall_PrintAddStr [18:59:59]wPrintStart [18:59:59]Write to MH i2c: 01 00 00 CD 1D EA [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 07 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 07 00 CD 1D 00 00 00 00 00 FF 0F FF [18:59:59]RasterBufferAndPrint [18:59:59]line Счет N : (3)273294 [18:59:59]line ИНН: 02508201610067 [18:59:59]line Контрольно-Кассовый Чек [18:59:59]line ПРОДАЖА [18:59:59]line Товар: 4700000480814 [18:59:59]line Пиво Живое 0,5 ст [18:59:59]line 2.000 * 100.00 [18:59:59]line = 200.00 [18:59:59]line НДС 12% НСП 1% [18:59:59]line > о реализуемом товаре [18:59:59]line ИТОГО: 200.00 [18:59:59]line НСП 1% : 1.77 [18:59:59]line НДС 12% : 21.24 [18:59:59]line Наличными: 0.00 [18:59:59]line Безнал.: 200.00 [18:59:59]line Место: АЗС № 133 "Партнер Нефть" [18:59:59]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [18:59:59]line СНО: Общий режим [18:59:59]line Чек 262 23.10.2024 18:59 [18:59:59]line Смена: 173 ФФД: 1.0 [18:59:59]line ЗНМ: 0300000020 [18:59:59]line РНМ: 0000000000161154 [18:59:59]line Версия ККМ: v1.0 [18:59:59]line Платежная система: Mbank [18:59:59]line ФМ: 0000000000963323 [18:59:59]line ФД: 75529 [18:59:59]line ФПД: 28033622042886 [18:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185959&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75529&fm=28033622042886&tin=02508201610067®Number=0000000000161154&sum=20000 [18:59:59]line 0 [18:59:59]OFD Sender: Processing packet 75529 [packets to send 16, broken 15] [18:59:59]ProducePacketName [18:59:59]name=ofd_packets/00075529 [18:59:59]OFD Sender: To server: pG, [18:59:59]CommunicateWithHost lk.salyk.kg:30040 [18:59:59]ConnectInit lk.salyk.kg [18:59:59]written 0, free lines is 4095 [18:59:59]Connected sock=8 [18:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 22 01 00 00 A3 C8 1A 01 7D C9 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 AF 47 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 27 01 00 35 04 06 00 19 7F 16 15 69 06 18 F4 4E 59 E6 A1 62 76 [18:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F5 B9 47 00 E5 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 09 27 01 00 F4 03 04 00 89 F0 18 67 B6 04 01 00 00 37 B4 06 A9 29 CE 14 6E [18:59:59]CommunicateWithHost err = 0 [18:59:59]CheckOFDResponse [18:59:59]1017 (14) - 77093643461234 [18:59:59]1041 (16) - 0000000000963323 [18:59:59]1040 (4) - 75529 [18:59:59]1012 (4) - 23.10.2024 12:48 [18:59:59]1206 (1) - 0 [18:59:59]OFD Sender: Remove packet 75529 [18:59:59]ProducePacketName [18:59:59]name=ofd_packets/00075529 [18:59:59]NVStorageDeleteData [19:00:00]Write to MH i2c: 01 00 00 F5 1D 12 [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 07 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 07 00 F5 1D 00 00 00 00 00 C2 0C E7 [19:00:00]RasterBufferAndPrint [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]written 0, free lines is 3272 [19:00:00]MH_Cut [19:00:00]Write to MH i2c: D1 01 00 FC 1D 01 EB [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 01 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 01 00 FC 1D 00 EA [19:00:00]Write to MH i2c: 01 00 00 FD 1D 1A [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]OFD Sender: No OFD packet to send [19:00:00]*** Cut start [19:00:00]*** Partial cut [19:00:00]*** CUTSNS_PIN = 1 [19:00:01]*** CUTSNS_PIN = 0 [19:00:01]*** Brake cut motor [19:00:01]Read from MH i2c: 01 [19:00:01]MH_I2C_Read... [19:00:01]*** Stop cut motor [19:00:01]*** Cut end [19:00:01]Read from MH i2c: 01 07 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: 01 07 00 FD 1D 00 00 00 00 00 FF 0F 2F [19:00:01]process_action close_receipt done [19:00:01]requested_data is exist [19:00:01]produce_requested_data [19:00:01]requested_item fm.sn is exist - process it [19:00:01]wFMCommunicate request_size=4 [19:00:01]MH_SAM_APDU [19:00:01]CAPDU: 80 11 00 00 [19:00:01]Write to MH i2c: E2 08 00 FE 1D 80 11 00 00 00 00 00 00 95 [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:01]Read from MH i2c: E2 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 17 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 17 00 FE 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E2 [19:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:00:01]wFMCommunicate OK [19:00:01]requested_item fd.num is exist - process it [19:00:01]SAM_PROTO_GetFieldsCounters [19:00:01]wFMCommunicate request_size=4 [19:00:01]MH_SAM_APDU [19:00:01]CAPDU: 80 13 00 00 [19:00:01]Write to MH i2c: E2 08 00 FF 1D 80 13 00 00 00 00 00 00 98 [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:01]Read from MH i2c: E2 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 62 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 62 00 FF 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 09 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [19:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 09 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:01]wFMCommunicate OK [19:00:01]SAM_PROTO_GetFieldsCounters done [19:00:01]requested_item shift.num is exist - process it [19:00:01]requested_item shift.opened is exist - process it [19:00:01]req_shift_opened [19:00:01]FM_GetShiftState [19:00:01]SAM_PROTO_GetShiftState [19:00:01]wFMCommunicate request_size=4 [19:00:01]MH_SAM_APDU [19:00:01]CAPDU: 80 13 01 00 [19:00:01]Write to MH i2c: E2 08 00 00 1E 80 13 01 00 00 00 00 00 9B [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:01]Read from MH i2c: E2 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 0E 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 0E 00 00 1E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 00 [19:00:01]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [19:00:01]wFMCommunicate OK [19:00:01]SAM_PROTO_GetShiftState done [19:00:01]FM_GetShiftState done [19:00:01]req_shift_opened done [19:00:01]requested_item shift.open_date is exist - process it [19:00:01]req_shift_open_date [19:00:01]req_shift_open_date done [19:00:01]produce_requested_data done [19:00:01]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75529,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [19:00:01]process_action_free close_receipt [19:00:01]json_value_free [19:00:01]json_value_free done [19:00:01]process_json_proto returns [19:00:01]Send response to host [19:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75529,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [19:00:01]free response buf [19:00:01]execute_script done [19:00:01]execute_script returns [19:00:01]free content buf [19:00:01]Sock 5.Close socket [19:00:01]Sock 5.Thread stoped [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19: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:15]OFD Sender: No OFD packet to send [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:17]accept exits with 6 [19:10:17]New connection [19:10:17]New thread 3066465636 created [19:10:17]Thread 3066608996 joined [19:10:17]Waiting for new connection... [19:10:17] Sock 6.Parse request [19:10:17]Sock 6.Check first char [19:10:17]Sock 6.First char is OK [19:10:17]request: POST /json_proto HTTP/1.0 [19:10:17]Method: POST [19:10:17]URL: /json_proto [19:10:17]Method is POST - this is cgi request [19:10:17]url: /json_proto [19:10:17]query_string will be loaded in cgi processing [19:10:17]execute_cgi json_proto POST (null) [19:10:17]execute_cgi path=json_proto method=POST [19:10:17]POST find Content-Length [19:10:17]Host: 172.17.44.196:8080 [19:10:17]Content-Length: 906 [19:10:17]Content-Type: application/json [19:10:17] [19:10:17]POST finish read [19:10:17]Found Content-Length = 906 [19:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273295", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:17]execute_script... [19:10:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273295", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:17]POST & json_proto [19:10:17]process_json_proto [19:10:17]json parsed OK: [19:10:17]protocol is kg_v1.0 [19:10:17]action value=close_receipt [19:10:17]process_action close_receipt [19:10:17]cmd_close_receipt [19:10:17]MH_GetDate [19:10:17]Write to MH i2c: F0 00 00 01 1E 0E [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: F0 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: F0 09 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: F0 09 00 01 1E 00 1B 4A 19 67 E7 19 F8 65 59 [19:10:17]GetLastDocTimeStamp 1729709999 [19:10:17]current date 1729710619 [19:10:17]FM_GetShiftState [19:10:17]SAM_PROTO_GetShiftState [19:10:17]wFMCommunicate request_size=4 [19:10:17]MH_SAM_APDU [19:10:17]CAPDU: 80 13 01 00 [19:10:17]Write to MH i2c: E2 08 00 02 1E 80 13 01 00 00 00 00 00 9D [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:17]Read from MH i2c: E2 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 0E 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 0E 00 02 1E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 02 [19:10:17]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [19:10:17]wFMCommunicate OK [19:10:17]SAM_PROTO_GetShiftState done [19:10:17]FM_GetShiftState done [19:10:17]opened in 1729642905 [19:10:17]opened+sec_in_day 1729729305 [19:10:17]quantity*price = 11500 [19:10:17]sum+1 = 11501 [19:10:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 263 23.10.2024 19:10 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75530 ФПД: 153151952104984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191019&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75530&fm=153151952104984&tin=02508201610067®Number=0000000000161154&sum=24500 0 [19:10:18]StoreToDocumentArchive [19:10:18]shift 173 fd 75530 [19:10:18]save to /storage/0173/doc_00075530 [19:10:18]save last doc name /storage/0173/doc_00075530 to /storage/kkm_last_doc_name [19:10:18]save OK [19:10:18]Clear old archive folders... [19:10:18]ProcessDocumentItem done err = 0, tmpTLVsize=392 [19:10:18]tlvbuf is 0080F940 [19:10:18]SAM_PROTO_ClearQueue [19:10:18]wFMCommunicate request_size=4 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 09 00 00 [19:10:18]Write to MH i2c: E2 08 00 0F 1E 80 09 00 00 00 00 00 00 9F [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 0F 1E 00 90 00 A1 [19:10:19]RAPDU: 90 00 [19:10:19]wFMCommunicate OK [19:10:19]SAM_PROTO_ClearQueue done [19:10:19]KKMCreateOFDPacket [19:10:19]OFDProtocolAddRootSTLVToBuf [19:10:19]FM_MakeSignedData [19:10:19]FM_MakeSignedData [19:10:19]SAM_PROTO_SignData [19:10:19]wFMCommunicate request_size=4 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 0D 01 02 [19:10:19]Write to MH i2c: E2 08 00 10 1E 80 0D 01 02 00 00 00 00 A7 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 10 1E 00 90 00 A2 [19:10:19]RAPDU: 90 00 [19:10:19]wFMCommunicate OK [19:10:19]wFMCommunicate request_size=255 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [19:10:19]Write to MH i2c: E2 02 01 11 1E 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 9B [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 11 1E 00 90 00 A3 [19:10:19]RAPDU: 90 00 [19:10:19]wFMCommunicate OK [19:10:19]wFMCommunicate request_size=151 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 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 01 00 00 F4 03 04 00 1B 4A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 27 01 00 35 04 06 00 8B 4A 77 B3 AE 18 [19:10:19]Write to MH i2c: E2 9A 00 12 1E 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 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 01 00 00 F4 03 04 00 1B 4A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 27 01 00 35 04 06 00 8B 4A 77 B3 AE 18 00 00 A3 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 03 00 12 1E 00 90 00 A4 [19:10:19]RAPDU: 90 00 [19:10:19]wFMCommunicate OK [19:10:19]wFMCommunicate request_size=4 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 0D 03 02 [19:10:19]Write to MH i2c: E2 08 00 13 1E 80 0D 03 02 00 00 00 00 AC [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 0B 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 0B 00 13 1E 00 1E 6C B8 C2 15 6A 3F 18 90 00 87 [19:10:19]RAPDU: 1E 6C B8 C2 15 6A 3F 18 90 00 [19:10:19]wFMCommunicate OK [19:10:19]SAM_PROTO_SignData done [19:10:19]FM_MakeSignedData done [19:10:19]CreateOFDProtocolMessage [19:10:19]wFMCommunicate request_size=4 [19:10:19]MH_SAM_APDU [19:10:19]CAPDU: 80 11 00 00 [19:10:19]Write to MH i2c: E2 08 00 14 1E 80 11 00 00 00 00 00 00 AC [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:19]Read from MH i2c: E2 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 17 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: E2 17 00 14 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F9 [19:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:10:19]wFMCommunicate OK [19:10:19]CreateOFDProtocolMessage done [19:10:19]OFDSenderStorePacket 75530 [19:10:19]StoreOFDPacket docnum=75530 [19:10:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9C 01 00 00 3D 0A 94 01 2C 11 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 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 01 00 00 F4 03 04 00 1B 4A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 27 01 00 35 04 06 00 8B 4A 77 B3 AE 18 1E 6C B8 C2 15 6A 3F 18 [19:10:19]CheckFolder [19:10:19]dirname=/storage/ofd_packets [19:10:19]CheckFolder done [19:10:19]ProducePacketName [19:10:19]name=ofd_packets/00075530 [19:10:19]NVStorageSaveData ofd_packets/00075530 [19:10:19]File name is /storage/ofd_packets/00075530 [19:10:19]Write 442 bytes [19:10:19]NVStorageSaveData done [19:10:19]OFDSenderStorePacket done [19:10:19]KKMCreateOFDPacket done [19:10:19]NVStorageSaveData kkm_last_timestamp [19:10:19]File name is /storage/kkm_last_timestamp [19:10:19]Write 4 bytes [19:10:19]NVStorageSaveData done [19:10:19]ExternCall_PrintAddStr [19:10:19]wPrintStart [19:10:19]Write to MH i2c: 01 00 00 15 1E 33 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: 01 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: 01 07 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: 01 07 00 15 1E 00 00 00 00 00 FF 0F 48 [19:10:19]RasterBufferAndPrint [19:10:19]line Счет N : (3)273295 [19:10:19]line ИНН: 02508201610067 [19:10:19]line Контрольно-Кассовый Чек [19:10:19]line ПРОДАЖА [19:10:19]line Товар: 2000036210013 [19:10:19]line Кофе Капучино (GABB TRADE) [19:10:19]line 1.000 * 115.00 [19:10:19]line = 115.00 [19:10:19]line НДС 12% НСП 1% [19:10:19]line > о реализуемом товаре [19:10:19]line Товар: 2000036220012 [19:10:19]line Кофе Капучино XL(GABB TRADE) [19:10:19]line 1.000 * 130.00 [19:10:19]line = 130.00 [19:10:19]line НДС 12% НСП 1% [19:10:19]line > о реализуемом товаре [19:10:19]line ИТОГО: 245.00 [19:10:19]line НСП 1% : 2.17 [19:10:19]line НДС 12% : 26.01 [19:10:19]line Наличными: 245.00 [19:10:19]line Безнал.: 0.00 [19:10:19]line Место: АЗС № 133 "Партнер Нефть" [19:10:19]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:10:19]line СНО: Общий режим [19:10:19]line Чек 263 23.10.2024 19:10 [19:10:19]line Смена: 173 ФФД: 1.0 [19:10:19]line ЗНМ: 0300000020 [19:10:19]line РНМ: 0000000000161154 [19:10:19]line Версия ККМ: v1.0 [19:10:19]line ФМ: 0000000000963323 [19:10:19]line ФД: 75530 [19:10:19]line ФПД: 153151952104984 [19:10:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T191019&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75530&fm=153151952104984&tin=02508201610067®Number=0000000000161154&sum=24500 [19:10:19]line 0 [19:10:19]OFD Sender: Processing packet 75530 [packets to send 16, broken 15] [19:10:19]ProducePacketName [19:10:19]name=ofd_packets/00075530 [19:10:19]OFD Sender: To server: pG, [19:10:19]CommunicateWithHost lk.salyk.kg:30040 [19:10:19]ConnectInit lk.salyk.kg [19:10:19]written 0, free lines is 4095 [19:10:19]Connected sock=8 [19:10:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 9C 01 00 00 3D 0A 94 01 2C 11 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 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 01 00 00 F4 03 04 00 1B 4A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0A 27 01 00 35 04 06 00 8B 4A 77 B3 AE 18 1E 6C B8 C2 15 6A 3F 18 [19:10:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 41 7C 47 00 B1 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 39 36 33 33 32 33 10 04 04 00 0A 27 01 00 F4 03 04 00 F5 F2 18 67 B6 04 01 00 00 EC F4 E6 2C DD 6B 65 52 [19:10:20]CommunicateWithHost err = 0 [19:10:20]CheckOFDResponse [19:10:20]1017 (14) - 77093643461234 [19:10:20]1041 (16) - 0000000000963323 [19:10:20]1040 (4) - 75530 [19:10:20]1012 (4) - 23.10.2024 12:58 [19:10:20]1206 (1) - 0 [19:10:20]OFD Sender: Remove packet 75530 [19:10:20]ProducePacketName [19:10:20]name=ofd_packets/00075530 [19:10:20]NVStorageDeleteData [19:10:20]Write to MH i2c: 01 00 00 43 1E 61 [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: 01 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: 01 07 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: 01 07 00 43 1E 00 00 00 00 00 4C 0C C0 [19:10:20]RasterBufferAndPrint [19:10:20]line [19:10:20]line [19:10:20]line [19:10:20]line [19:10:20]line [19:10:20]written 0, free lines is 3151 [19:10:20]MH_Cut [19:10:20]Write to MH i2c: D1 01 00 4A 1E 01 3A [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: D1 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: D1 01 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: D1 01 00 4A 1E 00 39 [19:10:20]Write to MH i2c: 01 00 00 4B 1E 69 [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]OFD Sender: No OFD packet to send [19:10:21]*** Cut start [19:10:21]*** Partial cut [19:10:21]*** CUTSNS_PIN = 1 [19:10:21]*** CUTSNS_PIN = 0 [19:10:21]*** Brake cut motor [19:10:21]Read from MH i2c: 01 [19:10:21]MH_I2C_Read... [19:10:21]*** Stop cut motor [19:10:21]*** Cut end [19:10:21]Read from MH i2c: 01 07 00 [19:10:21]MH_I2C_Read... [19:10:21]Read from MH i2c: 01 07 00 4B 1E 00 00 00 00 00 FF 0F 7E [19:10:21]process_action close_receipt done [19:10:21]requested_data is exist [19:10:21]produce_requested_data [19:10:21]requested_item fm.sn is exist - process it [19:10:21]wFMCommunicate request_size=4 [19:10:21]MH_SAM_APDU [19:10:21]CAPDU: 80 11 00 00 [19:10:21]Write to MH i2c: E2 08 00 4C 1E 80 11 00 00 00 00 00 00 E4 [19:10:21]Write i2c OK [19:10:21]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 17 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 17 00 4C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 31 [19:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:10:22]wFMCommunicate OK [19:10:22]requested_item fd.num is exist - process it [19:10:22]SAM_PROTO_GetFieldsCounters [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 13 00 00 [19:10:22]Write to MH i2c: E2 08 00 4D 1E 80 13 00 00 00 00 00 00 E7 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 62 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 62 00 4D 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0A 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [19:10:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0A 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:22]wFMCommunicate OK [19:10:22]SAM_PROTO_GetFieldsCounters done [19:10:22]requested_item shift.num is exist - process it [19:10:22]requested_item shift.opened is exist - process it [19:10:22]req_shift_opened [19:10:22]FM_GetShiftState [19:10:22]SAM_PROTO_GetShiftState [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 13 01 00 [19:10:22]Write to MH i2c: E2 08 00 4E 1E 80 13 01 00 00 00 00 00 E9 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 0E 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 0E 00 4E 1E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 4E [19:10:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [19:10:22]wFMCommunicate OK [19:10:22]SAM_PROTO_GetShiftState done [19:10:22]FM_GetShiftState done [19:10:22]req_shift_opened done [19:10:22]requested_item shift.open_date is exist - process it [19:10:22]req_shift_open_date [19:10:22]req_shift_open_date done [19:10:22]produce_requested_data done [19:10:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75530,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [19:10:22]process_action_free close_receipt [19:10:22]json_value_free [19:10:22]json_value_free done [19:10:22]process_json_proto returns [19:10:22]Send response to host [19:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75530,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [19:10:22]free response buf [19:10:22]execute_script done [19:10:22]execute_script returns [19:10:22]free content buf [19:10:22]Sock 6.Close socket [19:10:22]Sock 6.Thread stoped [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: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:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:32:58]accept exits with 5 [19:32:58]New connection [19:32:58]New thread 3066608996 created [19:32:58]Thread 3066465636 joined [19:32:58]Waiting for new connection... [19:32:58] Sock 5.Parse request [19:32:58]Sock 5.Check first char [19:32:58]Sock 5.First char is OK [19:32:58]request: POST /json_proto HTTP/1.0 [19:32:58]Method: POST [19:32:58]URL: /json_proto [19:32:58]Method is POST - this is cgi request [19:32:58]url: /json_proto [19:32:58]query_string will be loaded in cgi processing [19:32:58]execute_cgi json_proto POST (null) [19:32:58]execute_cgi path=json_proto method=POST [19:32:58]POST find Content-Length [19:32:58]Host: 172.17.44.196:8080 [19:32:58]Content-Length: 916 [19:32:58]Content-Type: application/json [19:32:58] [19:32:58]POST finish read [19:32:58]Found Content-Length = 916 [19:32:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273296", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 167.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:58]execute_script... [19:32:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273296", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 167.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:58]POST & json_proto [19:32:58]process_json_proto [19:32:58]json parsed OK: [19:32:58]protocol is kg_v1.0 [19:32:58]action value=close_receipt [19:32:58]process_action close_receipt [19:32:58]cmd_close_receipt [19:32:58]MH_GetDate [19:32:58]Write to MH i2c: F0 00 00 4F 1E 5C [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: F0 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: F0 09 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: F0 09 00 4F 1E 00 6C 4F 19 67 E7 19 F8 65 FD [19:32:58]GetLastDocTimeStamp 1729710619 [19:32:58]current date 1729711980 [19:32:58]FM_GetShiftState [19:32:58]SAM_PROTO_GetShiftState [19:32:58]wFMCommunicate request_size=4 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 13 01 00 [19:32:58]Write to MH i2c: E2 08 00 50 1E 80 13 01 00 00 00 00 00 EB [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 0E 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 0E 00 50 1E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 50 [19:32:58]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [19:32:58]wFMCommunicate OK [19:32:58]SAM_PROTO_GetShiftState done [19:32:58]FM_GetShiftState done [19:32:58]opened in 1729642905 [19:32:58]opened+sec_in_day 1729729305 [19:32:58]quantity*price = 15000 [19:32:58]sum+1 = 15001 [19:32:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620017451303 Кар.с жев.конф.Страйк 11.3г/50 1.000 * 17.00 = 17.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 167.00 НСП 1% : 1.48 НДС 12% : 17.73 Наличными: 167.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 264 23.10.2024 19:33 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75531 ФПД: 231550354701019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193300&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75531&fm=231550354701019&tin=02508201610067®Number=0000000000161154&sum=16700 0 [19:32:59]StoreToDocumentArchive [19:32:59]shift 173 fd 75531 [19:32:59]save to /storage/0173/doc_00075531 [19:32:59]save last doc name /storage/0173/doc_00075531 to /storage/kkm_last_doc_name [19:32:59]save OK [19:32:59]Clear old archive folders... [19:32:59]ProcessDocumentItem done err = 0, tmpTLVsize=396 [19:32:59]tlvbuf is 007957E0 [19:32:59]SAM_PROTO_ClearQueue [19:32:59]wFMCommunicate request_size=4 [19:32:59]MH_SAM_APDU [19:32:59]CAPDU: 80 09 00 00 [19:32:59]Write to MH i2c: E2 08 00 5D 1E 80 09 00 00 00 00 00 00 ED [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:32:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:59]Read from MH i2c: E2 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: E2 03 00 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: E2 03 00 5D 1E 00 90 00 EF [19:32:59]RAPDU: 90 00 [19:32:59]wFMCommunicate OK [19:32:59]SAM_PROTO_ClearQueue done [19:32:59]KKMCreateOFDPacket [19:32:59]OFDProtocolAddRootSTLVToBuf [19:32:59]FM_MakeSignedData [19:32:59]FM_MakeSignedData [19:32:59]SAM_PROTO_SignData [19:32:59]wFMCommunicate request_size=4 [19:32:59]MH_SAM_APDU [19:32:59]CAPDU: 80 0D 01 02 [19:32:59]Write to MH i2c: E2 08 00 5E 1E 80 0D 01 02 00 00 00 00 F5 [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:32:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:59]Read from MH i2c: E2 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: E2 03 00 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: E2 03 00 5E 1E 00 90 00 F0 [19:32:59]RAPDU: 90 00 [19:32:59]wFMCommunicate OK [19:32:59]wFMCommunicate request_size=255 [19:32:59]MH_SAM_APDU [19:32:59]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 41 00 00 00 00 EB 03 26 00 EF [19:32:59]Write to MH i2c: E2 02 01 5F 1E 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 41 00 00 00 00 EB 03 26 00 EF 00 00 79 [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 5F 1E 00 90 00 F1 [19:33:00]RAPDU: 90 00 [19:33:00]wFMCommunicate OK [19:33:00]wFMCommunicate request_size=155 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 06 00 00 00 00 07 04 06 00 3C 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 6C 4F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 27 01 00 35 04 06 00 D2 98 04 A3 BA DB [19:33:00]Write to MH i2c: E2 9E 00 60 1E 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 06 00 00 00 00 07 04 06 00 3C 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 6C 4F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 27 01 00 35 04 06 00 D2 98 04 A3 BA DB 00 00 1F [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 60 1E 00 90 00 F2 [19:33:00]RAPDU: 90 00 [19:33:00]wFMCommunicate OK [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 0D 03 02 [19:33:00]Write to MH i2c: E2 08 00 61 1E 80 0D 03 02 00 00 00 00 FA [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0B 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0B 00 61 1E 00 6B BC DF FA 8C C2 61 34 90 00 DE [19:33:00]RAPDU: 6B BC DF FA 8C C2 61 34 90 00 [19:33:00]wFMCommunicate OK [19:33:00]SAM_PROTO_SignData done [19:33:00]FM_MakeSignedData done [19:33:00]CreateOFDProtocolMessage [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 11 00 00 [19:33:00]Write to MH i2c: E2 08 00 62 1E 80 11 00 00 00 00 00 00 FA [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 17 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 17 00 62 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 47 [19:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:33:00]wFMCommunicate OK [19:33:00]CreateOFDProtocolMessage done [19:33:00]OFDSenderStorePacket 75531 [19:33:00]StoreOFDPacket docnum=75531 [19:33:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A0 01 00 00 8B 34 98 01 40 A4 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 06 00 00 00 00 07 04 06 00 3C 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 6C 4F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 27 01 00 35 04 06 00 D2 98 04 A3 BA DB 6B BC DF FA 8C C2 61 34 [19:33:00]CheckFolder [19:33:00]dirname=/storage/ofd_packets [19:33:00]CheckFolder done [19:33:00]ProducePacketName [19:33:00]name=ofd_packets/00075531 [19:33:00]NVStorageSaveData ofd_packets/00075531 [19:33:00]File name is /storage/ofd_packets/00075531 [19:33:00]Write 446 bytes [19:33:00]NVStorageSaveData done [19:33:00]OFDSenderStorePacket done [19:33:00]KKMCreateOFDPacket done [19:33:00]NVStorageSaveData kkm_last_timestamp [19:33:00]File name is /storage/kkm_last_timestamp [19:33:00]Write 4 bytes [19:33:00]NVStorageSaveData done [19:33:00]ExternCall_PrintAddStr [19:33:00]wPrintStart [19:33:00]Write to MH i2c: 01 00 00 63 1E 81 [19:33:00]OFD Sender: Processing packet 75531 [packets to send 16, broken 15] [19:33:00]ProducePacketName [19:33:00]name=ofd_packets/00075531 [19:33:00]OFD Sender: To server: pG, [19:33:00]CommunicateWithHost lk.salyk.kg:30040 [19:33:00]ConnectInit lk.salyk.kg [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: 01 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: 01 07 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: 01 07 00 63 1E 00 00 00 00 00 FF 0F 96 [19:33:00]RasterBufferAndPrint [19:33:00]line Счет N : (3)273296 [19:33:00]line ИНН: 02508201610067 [19:33:00]line Контрольно-Кассовый Чек [19:33:00]line ПРОДАЖА [19:33:00]line Товар: 48747073 [19:33:00]line Сигареты Richmond Royal Edition [19:33:00]line 1.000 * 150.00 [19:33:00]line = 150.00 [19:33:00]line НДС 12% НСП 1% [19:33:00]line > о реализуемом товаре [19:33:00]line Товар: 4620017451303 [19:33:00]line Кар.с жев.конф.Страйк 11.3г/50 [19:33:00]line 1.000 * 17.00 [19:33:00]line = 17.00 [19:33:00]line НДС 12% НСП 1% [19:33:00]line > о реализуемом товаре [19:33:00]line ИТОГО: 167.00 [19:33:00]line НСП 1% : 1.48 [19:33:00]line НДС 12% : 17.73 [19:33:00]line Наличными: 167.00 [19:33:00]line Безнал.: 0.00 [19:33:00]line Место: АЗС № 133 "Партнер Нефть" [19:33:00]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [19:33:00]line СНО: Общий режим [19:33:00]line Чек 264 23.10.2024 19:33 [19:33:00]line Смена: 173 ФФД: 1.0 [19:33:00]line ЗНМ: 0300000020 [19:33:00]line РНМ: 0000000000161154 [19:33:00]line Версия ККМ: v1.0 [19:33:00]line ФМ: 0000000000963323 [19:33:00]line ФД: 75531 [19:33:00]line ФПД: 231550354701019 [19:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T193300&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75531&fm=231550354701019&tin=02508201610067®Number=0000000000161154&sum=16700 [19:33:00]line 0 [19:33:00]written 0, free lines is 4095 [19:33:00]Connected sock=8 [19:33:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A0 01 00 00 8B 34 98 01 40 A4 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 06 00 00 00 00 07 04 06 00 3C 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 6C 4F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 27 01 00 35 04 06 00 D2 98 04 A3 BA DB 6B BC DF FA 8C C2 61 34 [19:33:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 98 66 47 00 97 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0B 27 01 00 F4 03 04 00 46 F8 18 67 B6 04 01 00 00 3B 02 72 FA 40 4D 97 5F [19:33:01]CommunicateWithHost err = 0 [19:33:01]CheckOFDResponse [19:33:01]1017 (14) - 77093643461234 [19:33:01]1041 (16) - 0000000000963323 [19:33:01]1040 (4) - 75531 [19:33:01]1012 (4) - 23.10.2024 13:21 [19:33:01]1206 (1) - 0 [19:33:01]OFD Sender: Remove packet 75531 [19:33:01]ProducePacketName [19:33:01]name=ofd_packets/00075531 [19:33:01]NVStorageDeleteData [19:33:01]Write to MH i2c: 01 00 00 92 1E B0 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 07 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 07 00 92 1E 00 00 00 00 00 33 0C F6 [19:33:01]RasterBufferAndPrint [19:33:01]line [19:33:01]line [19:33:01]line [19:33:01]line [19:33:01]line [19:33:01]written 0, free lines is 3126 [19:33:01]MH_Cut [19:33:01]Write to MH i2c: D1 01 00 99 1E 01 89 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: D1 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: D1 01 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: D1 01 00 99 1E 00 88 [19:33:01]Write to MH i2c: 01 00 00 9A 1E B8 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]OFD Sender: No OFD packet to send [19:33:02]*** Cut start [19:33:02]*** Partial cut [19:33:02]*** CUTSNS_PIN = 1 [19:33:02]*** CUTSNS_PIN = 0 [19:33:02]*** Brake cut motor [19:33:02]Read from MH i2c: 01 [19:33:03]MH_I2C_Read... [19:33:03]*** Stop cut motor [19:33:03]*** Cut end [19:33:03]Read from MH i2c: 01 07 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: 01 07 00 9A 1E 00 00 00 00 00 FF 0F CD [19:33:03]process_action close_receipt done [19:33:03]requested_data is exist [19:33:03]produce_requested_data [19:33:03]requested_item fm.sn is exist - process it [19:33:03]wFMCommunicate request_size=4 [19:33:03]MH_SAM_APDU [19:33:03]CAPDU: 80 11 00 00 [19:33:03]Write to MH i2c: E2 08 00 9B 1E 80 11 00 00 00 00 00 00 33 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:03]Read from MH i2c: E2 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 17 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 17 00 9B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 80 [19:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [19:33:03]wFMCommunicate OK [19:33:03]requested_item fd.num is exist - process it [19:33:03]SAM_PROTO_GetFieldsCounters [19:33:03]wFMCommunicate request_size=4 [19:33:03]MH_SAM_APDU [19:33:03]CAPDU: 80 13 00 00 [19:33:03]Write to MH i2c: E2 08 00 9C 1E 80 13 00 00 00 00 00 00 36 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:03]Read from MH i2c: E2 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 62 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 62 00 9C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0B 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [19:33:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0B 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:03]wFMCommunicate OK [19:33:03]SAM_PROTO_GetFieldsCounters done [19:33:03]requested_item shift.num is exist - process it [19:33:03]requested_item shift.opened is exist - process it [19:33:03]req_shift_opened [19:33:03]FM_GetShiftState [19:33:03]SAM_PROTO_GetShiftState [19:33:03]wFMCommunicate request_size=4 [19:33:03]MH_SAM_APDU [19:33:03]CAPDU: 80 13 01 00 [19:33:03]Write to MH i2c: E2 08 00 9D 1E 80 13 01 00 00 00 00 00 38 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:03]Read from MH i2c: E2 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 0E 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 0E 00 9D 1E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 9D [19:33:03]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [19:33:03]wFMCommunicate OK [19:33:03]SAM_PROTO_GetShiftState done [19:33:03]FM_GetShiftState done [19:33:03]req_shift_opened done [19:33:03]requested_item shift.open_date is exist - process it [19:33:03]req_shift_open_date [19:33:03]req_shift_open_date done [19:33:03]produce_requested_data done [19:33:03]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75531,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [19:33:03]process_action_free close_receipt [19:33:03]json_value_free [19:33:03]json_value_free done [19:33:03]process_json_proto returns [19:33:03]Send response to host [19:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75531,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [19:33:03]free response buf [19:33:03]execute_script done [19:33:03]execute_script returns [19:33:03]free content buf [19:33:03]Sock 5.Close socket [19:33:03]Sock 5.Thread stoped [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]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:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:48]accept exits with 6 [20:08:48]New connection [20:08:48]New thread 3066465636 created [20:08:48]Thread 3066608996 joined [20:08:48]Waiting for new connection... [20:08:48] Sock 6.Parse request [20:08:48]Sock 6.Check first char [20:08:48]Sock 6.First char is OK [20:08:48]request: POST /json_proto HTTP/1.0 [20:08:48]Method: POST [20:08:48]URL: /json_proto [20:08:48]Method is POST - this is cgi request [20:08:48]url: /json_proto [20:08:48]query_string will be loaded in cgi processing [20:08:48]execute_cgi json_proto POST (null) [20:08:48]execute_cgi path=json_proto method=POST [20:08:48]POST find Content-Length [20:08:48]Host: 172.17.44.196:8080 [20:08:48]Content-Length: 614 [20:08:48]Content-Type: application/json [20:08:48] [20:08:48]POST finish read [20:08:48]Found Content-Length = 614 [20:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273297", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [20:08:48]execute_script... [20:08:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273297", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [20:08:48]POST & json_proto [20:08:48]process_json_proto [20:08:48]json parsed OK: [20:08:48]protocol is kg_v1.0 [20:08:48]action value=close_receipt [20:08:48]process_action close_receipt [20:08:48]cmd_close_receipt [20:08:48]MH_GetDate [20:08:48]Write to MH i2c: F0 00 00 9E 1E AB [20:08:48]Write i2c OK [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: F0 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: F0 09 00 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: F0 09 00 9E 1E 00 D2 57 19 67 E7 19 F8 65 BA [20:08:48]GetLastDocTimeStamp 1729711980 [20:08:48]current date 1729714130 [20:08:48]FM_GetShiftState [20:08:48]SAM_PROTO_GetShiftState [20:08:48]wFMCommunicate request_size=4 [20:08:48]MH_SAM_APDU [20:08:48]CAPDU: 80 13 01 00 [20:08:48]Write to MH i2c: E2 08 00 9F 1E 80 13 01 00 00 00 00 00 3A [20:08:48]Write i2c OK [20:08:48]MH_I2C_Read... [20:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:48]Read from MH i2c: E2 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: E2 0E 00 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: E2 0E 00 9F 1E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 9F [20:08:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:08:48]wFMCommunicate OK [20:08:48]SAM_PROTO_GetShiftState done [20:08:48]FM_GetShiftState done [20:08:48]opened in 1729642905 [20:08:48]opened+sec_in_day 1729729305 [20:08:48]quantity*price = 11100 [20:08:48]sum+1 = 11101 [20:08:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 265 23.10.2024 20:08 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75532 ФПД: 63076332098802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200850&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75532&fm=63076332098802&tin=02508201610067®Number=0000000000161154&sum=11100 0 [20:08:49]StoreToDocumentArchive [20:08:49]shift 173 fd 75532 [20:08:49]save to /storage/0173/doc_00075532 [20:08:49]save last doc name /storage/0173/doc_00075532 to /storage/kkm_last_doc_name [20:08:49]save OK [20:08:49]Clear old archive folders... [20:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=266 [20:08:49]tlvbuf is 007B4FB0 [20:08:49]SAM_PROTO_ClearQueue [20:08:49]wFMCommunicate request_size=4 [20:08:49]MH_SAM_APDU [20:08:49]CAPDU: 80 09 00 00 [20:08:49]Write to MH i2c: E2 08 00 AC 1E 80 09 00 00 00 00 00 00 3C [20:08:49]Write i2c OK [20:08:49]MH_I2C_Read... [20:08:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:49]Read from MH i2c: E2 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 03 00 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 03 00 AC 1E 00 90 00 3E [20:08:49]RAPDU: 90 00 [20:08:49]wFMCommunicate OK [20:08:49]SAM_PROTO_ClearQueue done [20:08:49]KKMCreateOFDPacket [20:08:49]OFDProtocolAddRootSTLVToBuf [20:08:49]FM_MakeSignedData [20:08:49]FM_MakeSignedData [20:08:49]SAM_PROTO_SignData [20:08:49]wFMCommunicate request_size=4 [20:08:49]MH_SAM_APDU [20:08:49]CAPDU: 80 0D 01 02 [20:08:49]Write to MH i2c: E2 08 00 AD 1E 80 0D 01 02 00 00 00 00 44 [20:08:49]Write i2c OK [20:08:49]MH_I2C_Read... [20:08:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:49]Read from MH i2c: E2 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 03 00 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 03 00 AD 1E 00 90 00 3F [20:08:49]RAPDU: 90 00 [20:08:49]wFMCommunicate OK [20:08:49]wFMCommunicate request_size=255 [20:08:49]MH_SAM_APDU [20:08:49]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 09 01 00 00 F4 03 04 00 D2 57 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 [20:08:49]Write to MH i2c: E2 02 01 AE 1E 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 09 01 00 00 F4 03 04 00 D2 57 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 00 00 B1 [20:08:49]Write i2c OK [20:08:49]MH_I2C_Read... [20:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:49]Read from MH i2c: E2 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 03 00 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 03 00 AE 1E 00 90 00 40 [20:08:49]RAPDU: 90 00 [20:08:49]wFMCommunicate OK [20:08:49]wFMCommunicate request_size=25 [20:08:49]MH_SAM_APDU [20:08:49]CAPDU: 80 0D 02 02 14 32 33 10 04 04 00 0C 27 01 00 35 04 06 00 39 5E 1A 5E 54 F2 [20:08:49]Write to MH i2c: E2 1C 00 AF 1E 80 0D 02 02 14 00 32 33 10 04 04 00 0C 27 01 00 35 04 06 00 39 5E 1A 5E 54 F2 00 00 B4 [20:08:49]Write i2c OK [20:08:49]MH_I2C_Read... [20:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:49]Read from MH i2c: E2 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 03 00 [20:08:49]MH_I2C_Read... [20:08:49]Read from MH i2c: E2 03 00 AF 1E 00 90 00 41 [20:08:49]RAPDU: 90 00 [20:08:49]wFMCommunicate OK [20:08:49]wFMCommunicate request_size=4 [20:08:49]MH_SAM_APDU [20:08:49]CAPDU: 80 0D 03 02 [20:08:49]Write to MH i2c: E2 08 00 B0 1E 80 0D 03 02 00 00 00 00 49 [20:08:49]Write i2c OK [20:08:49]MH_I2C_Read... [20:08:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:50]Read from MH i2c: E2 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: E2 0B 00 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: E2 0B 00 B0 1E 00 B4 69 A1 21 D3 FC 19 0D 90 00 1E [20:08:50]RAPDU: B4 69 A1 21 D3 FC 19 0D 90 00 [20:08:50]wFMCommunicate OK [20:08:50]SAM_PROTO_SignData done [20:08:50]FM_MakeSignedData done [20:08:50]CreateOFDProtocolMessage [20:08:50]wFMCommunicate request_size=4 [20:08:50]MH_SAM_APDU [20:08:50]CAPDU: 80 11 00 00 [20:08:50]Write to MH i2c: E2 08 00 B1 1E 80 11 00 00 00 00 00 00 49 [20:08:50]Write i2c OK [20:08:50]MH_I2C_Read... [20:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:50]Read from MH i2c: E2 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: E2 17 00 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: E2 17 00 B1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 96 [20:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:08:50]wFMCommunicate OK [20:08:50]CreateOFDProtocolMessage done [20:08:50]OFDSenderStorePacket 75532 [20:08:50]StoreOFDPacket docnum=75532 [20:08:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1E 01 00 00 4E 86 16 01 C8 37 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 09 01 00 00 F4 03 04 00 D2 57 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0C 27 01 00 35 04 06 00 39 5E 1A 5E 54 F2 B4 69 A1 21 D3 FC 19 0D [20:08:50]CheckFolder [20:08:50]dirname=/storage/ofd_packets [20:08:50]CheckFolder done [20:08:50]ProducePacketName [20:08:50]name=ofd_packets/00075532 [20:08:50]NVStorageSaveData ofd_packets/00075532 [20:08:50]File name is /storage/ofd_packets/00075532 [20:08:50]Write 316 bytes [20:08:50]NVStorageSaveData done [20:08:50]OFDSenderStorePacket done [20:08:50]KKMCreateOFDPacket done [20:08:50]NVStorageSaveData kkm_last_timestamp [20:08:50]File name is /storage/kkm_last_timestamp [20:08:50]Write 4 bytes [20:08:50]NVStorageSaveData done [20:08:50]ExternCall_PrintAddStr [20:08:50]wPrintStart [20:08:50]Write to MH i2c: 01 00 00 B2 1E D0 [20:08:50]Write i2c OK [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: 01 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: 01 07 00 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: 01 07 00 B2 1E 00 00 00 00 00 FF 0F E5 [20:08:50]RasterBufferAndPrint [20:08:50]line Счет N : (3)273297 [20:08:50]line ИНН: 02508201610067 [20:08:50]line Контрольно-Кассовый Чек [20:08:50]line ПРОДАЖА [20:08:50]line Товар: 4870001570071 [20:08:50]line Напиток Pepsi 1л [20:08:50]line 1.000 * 111.00 [20:08:50]line = 111.00 [20:08:50]line НДС 12% НСП 1% [20:08:50]line > о реализуемом товаре [20:08:50]line ИТОГО: 111.00 [20:08:50]line НСП 1% : 0.98 [20:08:50]line НДС 12% : 11.79 [20:08:50]line Наличными: 111.00 [20:08:50]line Безнал.: 0.00 [20:08:50]line Место: АЗС № 133 "Партнер Нефть" [20:08:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:08:50]line СНО: Общий режим [20:08:50]line Чек 265 23.10.2024 20:08 [20:08:50]line Смена: 173 ФФД: 1.0 [20:08:50]line ЗНМ: 0300000020 [20:08:50]line РНМ: 0000000000161154 [20:08:50]line Версия ККМ: v1.0 [20:08:50]line ФМ: 0000000000963323 [20:08:50]line ФД: 75532 [20:08:50]line ФПД: 63076332098802 [20:08:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T200850&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75532&fm=63076332098802&tin=02508201610067®Number=0000000000161154&sum=11100 [20:08:50]line 0 [20:08:50]OFD Sender: Processing packet 75532 [packets to send 16, broken 15] [20:08:50]ProducePacketName [20:08:50]name=ofd_packets/00075532 [20:08:50]OFD Sender: To server: pG, [20:08:50]CommunicateWithHost lk.salyk.kg:30040 [20:08:50]ConnectInit lk.salyk.kg [20:08:50]written 0, free lines is 4095 [20:08:50]Connected sock=8 [20:08:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1E 01 00 00 4E 86 16 01 C8 37 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 09 01 00 00 F4 03 04 00 D2 57 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0C 27 01 00 35 04 06 00 39 5E 1A 5E 54 F2 B4 69 A1 21 D3 FC 19 0D [20:08:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 78 1A 47 00 C7 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 39 36 33 33 32 33 10 04 04 00 0C 27 01 00 F4 03 04 00 AC 00 19 67 B6 04 01 00 00 B2 42 51 25 CD 48 B7 3F [20:08:50]CommunicateWithHost err = 0 [20:08:50]CheckOFDResponse [20:08:50]1017 (14) - 77093643461234 [20:08:50]1041 (16) - 0000000000963323 [20:08:50]1040 (4) - 75532 [20:08:50]1012 (4) - 23.10.2024 13:57 [20:08:50]1206 (1) - 0 [20:08:50]OFD Sender: Remove packet 75532 [20:08:50]ProducePacketName [20:08:50]name=ofd_packets/00075532 [20:08:50]NVStorageDeleteData [20:08:50]Write to MH i2c: 01 00 00 D9 1E F7 [20:08:50]Write i2c OK [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: 01 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: 01 07 00 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: 01 07 00 D9 1E 00 00 00 00 00 CE 0C D8 [20:08:50]RasterBufferAndPrint [20:08:50]line [20:08:50]line [20:08:50]line [20:08:50]line [20:08:50]line [20:08:50]written 0, free lines is 3282 [20:08:50]MH_Cut [20:08:50]Write to MH i2c: D1 01 00 E0 1E 01 D0 [20:08:50]Write i2c OK [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: D1 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: D1 01 00 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: D1 01 00 E0 1E 00 CF [20:08:50]Write to MH i2c: 01 00 00 E1 1E FF [20:08:50]Write i2c OK [20:08:50]MH_I2C_Read... [20:08:51]OFD Sender: No OFD packet to send [20:08:51]*** Cut start [20:08:51]*** Partial cut [20:08:51]*** CUTSNS_PIN = 1 [20:08:51]*** CUTSNS_PIN = 0 [20:08:52]*** Brake cut motor [20:08:52]Read from MH i2c: 01 [20:08:52]MH_I2C_Read... [20:08:52]*** Stop cut motor [20:08:52]*** Cut end [20:08:52]Read from MH i2c: 01 07 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: 01 07 00 E1 1E 00 00 00 00 00 FF 0F 14 [20:08:52]process_action close_receipt done [20:08:52]requested_data is exist [20:08:52]produce_requested_data [20:08:52]requested_item fm.sn is exist - process it [20:08:52]wFMCommunicate request_size=4 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 11 00 00 [20:08:52]Write to MH i2c: E2 08 00 E2 1E 80 11 00 00 00 00 00 00 7A [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 17 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 17 00 E2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C7 [20:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:08:52]wFMCommunicate OK [20:08:52]requested_item fd.num is exist - process it [20:08:52]SAM_PROTO_GetFieldsCounters [20:08:52]wFMCommunicate request_size=4 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 13 00 00 [20:08:52]Write to MH i2c: E2 08 00 E3 1E 80 13 00 00 00 00 00 00 7D [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 62 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 62 00 E3 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0C 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [20:08:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0C 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:52]wFMCommunicate OK [20:08:52]SAM_PROTO_GetFieldsCounters done [20:08:52]requested_item shift.num is exist - process it [20:08:52]requested_item shift.opened is exist - process it [20:08:52]req_shift_opened [20:08:52]FM_GetShiftState [20:08:52]SAM_PROTO_GetShiftState [20:08:52]wFMCommunicate request_size=4 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 13 01 00 [20:08:52]Write to MH i2c: E2 08 00 E4 1E 80 13 01 00 00 00 00 00 7F [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 0E 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 0E 00 E4 1E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E4 [20:08:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:08:52]wFMCommunicate OK [20:08:52]SAM_PROTO_GetShiftState done [20:08:52]FM_GetShiftState done [20:08:52]req_shift_opened done [20:08:52]requested_item shift.open_date is exist - process it [20:08:52]req_shift_open_date [20:08:52]req_shift_open_date done [20:08:52]produce_requested_data done [20:08:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75532,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [20:08:52]process_action_free close_receipt [20:08:52]json_value_free [20:08:52]json_value_free done [20:08:52]process_json_proto returns [20:08:52]Send response to host [20:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75532,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [20:08:52]free response buf [20:08:52]execute_script done [20:08:52]execute_script returns [20:08:52]free content buf [20:08:52]Sock 6.Close socket [20:08:52]Sock 6.Thread stoped [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:51]accept exits with 5 [20:10:51]New connection [20:10:51]New thread 3066608996 created [20:10:51]Thread 3066465636 joined [20:10:51]Waiting for new connection... [20:10:51] Sock 5.Parse request [20:10:51]Sock 5.Check first char [20:10:51]Sock 5.First char is OK [20:10:51]request: POST /json_proto HTTP/1.0 [20:10:51]Method: POST [20:10:51]URL: /json_proto [20:10:51]Method is POST - this is cgi request [20:10:51]url: /json_proto [20:10:51]query_string will be loaded in cgi processing [20:10:51]execute_cgi json_proto POST (null) [20:10:51]execute_cgi path=json_proto method=POST [20:10:51]POST find Content-Length [20:10:51]Host: 172.17.44.196:8080 [20:10:51]Content-Length: 968 [20:10:51]Content-Type: application/json [20:10:51] [20:10:51]POST finish read [20:10:51]Found Content-Length = 968 [20:10:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273298", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:51]execute_script... [20:10:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273298", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:51]POST & json_proto [20:10:51]process_json_proto [20:10:51]json parsed OK: [20:10:51]protocol is kg_v1.0 [20:10:51]action value=close_receipt [20:10:51]process_action close_receipt [20:10:51]cmd_close_receipt [20:10:51]MH_GetDate [20:10:51]Write to MH i2c: F0 00 00 E5 1E F2 [20:10:51]Write i2c OK [20:10:51]MH_I2C_Read... [20:10:51]Read from MH i2c: F0 [20:10:51]MH_I2C_Read... [20:10:51]Read from MH i2c: F0 09 00 [20:10:51]MH_I2C_Read... [20:10:51]Read from MH i2c: F0 09 00 E5 1E 00 4D 58 19 67 E7 19 F8 65 7D [20:10:51]GetLastDocTimeStamp 1729714130 [20:10:51]current date 1729714253 [20:10:51]FM_GetShiftState [20:10:51]SAM_PROTO_GetShiftState [20:10:51]wFMCommunicate request_size=4 [20:10:51]MH_SAM_APDU [20:10:51]CAPDU: 80 13 01 00 [20:10:51]Write to MH i2c: E2 08 00 E6 1E 80 13 01 00 00 00 00 00 81 [20:10:51]Write i2c OK [20:10:51]MH_I2C_Read... [20:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:51]Read from MH i2c: E2 [20:10:51]MH_I2C_Read... [20:10:51]Read from MH i2c: E2 0E 00 [20:10:51]MH_I2C_Read... [20:10:51]Read from MH i2c: E2 0E 00 E6 1E 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E6 [20:10:51]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:10:51]wFMCommunicate OK [20:10:51]SAM_PROTO_GetShiftState done [20:10:51]FM_GetShiftState done [20:10:51]opened in 1729642905 [20:10:51]opened+sec_in_day 1729729305 [20:10:51]quantity*price = 11000 [20:10:51]sum+1 = 11001 [20:10:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400655 Семечки ДЖИНН 70г синий 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 266 23.10.2024 20:10 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75533 ФПД: 4184470615435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201053&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75533&fm=4184470615435&tin=02508201610067®Number=0000000000161154&sum=18000 0 [20:10:52]StoreToDocumentArchive [20:10:52]shift 173 fd 75533 [20:10:52]save to /storage/0173/doc_00075533 [20:10:52]save last doc name /storage/0173/doc_00075533 to /storage/kkm_last_doc_name [20:10:52]save OK [20:10:52]Clear old archive folders... [20:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=404 [20:10:52]tlvbuf is 007CD320 [20:10:52]SAM_PROTO_ClearQueue [20:10:52]wFMCommunicate request_size=4 [20:10:52]MH_SAM_APDU [20:10:52]CAPDU: 80 09 00 00 [20:10:52]Write to MH i2c: E2 08 00 F3 1E 80 09 00 00 00 00 00 00 83 [20:10:52]Write i2c OK [20:10:52]MH_I2C_Read... [20:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:52]Read from MH i2c: E2 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: E2 03 00 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: E2 03 00 F3 1E 00 90 00 85 [20:10:52]RAPDU: 90 00 [20:10:52]wFMCommunicate OK [20:10:52]SAM_PROTO_ClearQueue done [20:10:52]KKMCreateOFDPacket [20:10:52]OFDProtocolAddRootSTLVToBuf [20:10:52]FM_MakeSignedData [20:10:52]FM_MakeSignedData [20:10:52]SAM_PROTO_SignData [20:10:52]wFMCommunicate request_size=4 [20:10:52]MH_SAM_APDU [20:10:52]CAPDU: 80 0D 01 02 [20:10:52]Write to MH i2c: E2 08 00 F4 1E 80 0D 01 02 00 00 00 00 8B [20:10:52]Write i2c OK [20:10:52]MH_I2C_Read... [20:10:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:52]Read from MH i2c: E2 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: E2 03 00 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: E2 03 00 F4 1E 00 90 00 86 [20:10:52]RAPDU: 90 00 [20:10:52]wFMCommunicate OK [20:10:52]wFMCommunicate request_size=255 [20:10:52]MH_SAM_APDU [20:10:52]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 [20:10:52]Write to MH i2c: E2 02 01 F5 1E 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 BD [20:10:52]Write i2c OK [20:10:52]MH_I2C_Read... [20:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:53]Read from MH i2c: E2 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 03 00 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 03 00 F5 1E 00 90 00 87 [20:10:53]RAPDU: 90 00 [20:10:53]wFMCommunicate OK [20:10:53]wFMCommunicate request_size=163 [20:10:53]MH_SAM_APDU [20:10:53]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 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 01 00 00 F4 03 04 00 4D 58 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 27 01 00 35 04 06 00 03 CE 45 E2 75 8B [20:10:53]Write to MH i2c: E2 A6 00 F6 1E 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 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 01 00 00 F4 03 04 00 4D 58 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 27 01 00 35 04 06 00 03 CE 45 E2 75 8B 00 00 B7 [20:10:53]Write i2c OK [20:10:53]MH_I2C_Read... [20:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:53]Read from MH i2c: E2 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 03 00 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 03 00 F6 1E 00 90 00 88 [20:10:53]RAPDU: 90 00 [20:10:53]wFMCommunicate OK [20:10:53]wFMCommunicate request_size=4 [20:10:53]MH_SAM_APDU [20:10:53]CAPDU: 80 0D 03 02 [20:10:53]Write to MH i2c: E2 08 00 F7 1E 80 0D 03 02 00 00 00 00 90 [20:10:53]Write i2c OK [20:10:53]MH_I2C_Read... [20:10:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:53]Read from MH i2c: E2 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 0B 00 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 0B 00 F7 1E 00 19 1F F6 13 3A DA C4 47 90 00 F1 [20:10:53]RAPDU: 19 1F F6 13 3A DA C4 47 90 00 [20:10:53]wFMCommunicate OK [20:10:53]SAM_PROTO_SignData done [20:10:53]FM_MakeSignedData done [20:10:53]CreateOFDProtocolMessage [20:10:53]wFMCommunicate request_size=4 [20:10:53]MH_SAM_APDU [20:10:53]CAPDU: 80 11 00 00 [20:10:53]Write to MH i2c: E2 08 00 F8 1E 80 11 00 00 00 00 00 00 90 [20:10:53]Write i2c OK [20:10:53]MH_I2C_Read... [20:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:53]Read from MH i2c: E2 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 17 00 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 17 00 F8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DD [20:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:10:53]wFMCommunicate OK [20:10:53]CreateOFDProtocolMessage done [20:10:53]OFDSenderStorePacket 75533 [20:10:53]StoreOFDPacket docnum=75533 [20:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A8 01 00 00 83 6D A0 01 DF 26 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 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 01 00 00 F4 03 04 00 4D 58 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 27 01 00 35 04 06 00 03 CE 45 E2 75 8B 19 1F F6 13 3A DA C4 47 [20:10:53]CheckFolder [20:10:53]dirname=/storage/ofd_packets [20:10:53]CheckFolder done [20:10:53]ProducePacketName [20:10:53]name=ofd_packets/00075533 [20:10:53]NVStorageSaveData ofd_packets/00075533 [20:10:53]File name is /storage/ofd_packets/00075533 [20:10:53]Write 454 bytes [20:10:53]NVStorageSaveData done [20:10:53]OFDSenderStorePacket done [20:10:53]KKMCreateOFDPacket done [20:10:53]NVStorageSaveData kkm_last_timestamp [20:10:53]File name is /storage/kkm_last_timestamp [20:10:53]Write 4 bytes [20:10:53]NVStorageSaveData done [20:10:53]ExternCall_PrintAddStr [20:10:53]wPrintStart [20:10:53]Write to MH i2c: 01 00 00 F9 1E 17 [20:10:53]Write i2c OK [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: 01 [20:10:53]MH_I2C_Read... [20:10:53]OFD Sender: Processing packet 75533 [packets to send 16, broken 15] [20:10:53]ProducePacketName [20:10:53]name=ofd_packets/00075533 [20:10:53]OFD Sender: To server: pG, [20:10:53]CommunicateWithHost lk.salyk.kg:30040 [20:10:53]ConnectInit lk.salyk.kg [20:10:53]Read from MH i2c: 01 07 00 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: 01 07 00 F9 1E 00 00 00 00 00 FF 0F 2C [20:10:53]RasterBufferAndPrint [20:10:53]line Счет N : (3)273298 [20:10:53]line ИНН: 02508201610067 [20:10:53]line Контрольно-Кассовый Чек [20:10:53]line ПРОДАЖА [20:10:53]line Товар: 4870202522015 [20:10:53]line Напиток Maxi Чай Грушевый 1,2л [20:10:53]line 1.000 * 110.00 [20:10:53]line = 110.00 [20:10:53]line НДС 12% НСП 1% [20:10:53]line > о реализуемом товаре [20:10:53]line Товар: 4630007400655 [20:10:53]line Семечки ДЖИНН 70г синий [20:10:53]line 1.000 * 70.00 [20:10:53]line = 70.00 [20:10:53]line НДС 12% НСП 1% [20:10:53]line > о реализуемом товаре [20:10:53]line ИТОГО: 180.00 [20:10:53]line НСП 1% : 1.59 [20:10:53]line НДС 12% : 19.11 [20:10:53]line Наличными: 180.00 [20:10:53]line Безнал.: 0.00 [20:10:53]line Место: АЗС № 133 "Партнер Нефть" [20:10:53]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:10:53]line СНО: Общий режим [20:10:53]line Чек 266 23.10.2024 20:10 [20:10:53]line Смена: 173 ФФД: 1.0 [20:10:53]line ЗНМ: 0300000020 [20:10:53]line РНМ: 0000000000161154 [20:10:53]line Версия ККМ: v1.0 [20:10:53]line ФМ: 0000000000963323 [20:10:53]line ФД: 75533 [20:10:53]line ФПД: 4184470615435 [20:10:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201053&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75533&fm=4184470615435&tin=02508201610067®Number=0000000000161154&sum=18000 [20:10:53]line 0 [20:10:53]written 0, free lines is 4095 [20:10:53]Connected sock=8 [20:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A8 01 00 00 83 6D A0 01 DF 26 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 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 01 00 00 F4 03 04 00 4D 58 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0D 27 01 00 35 04 06 00 03 CE 45 E2 75 8B 19 1F F6 13 3A DA C4 47 [20:10:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 B6 11 47 00 0C 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 39 36 33 33 32 33 10 04 04 00 0D 27 01 00 F4 03 04 00 27 01 19 67 B6 04 01 00 00 7C A8 B5 F4 78 5B 13 65 [20:10:54]CommunicateWithHost err = 0 [20:10:54]CheckOFDResponse [20:10:54]1017 (14) - 77093643461234 [20:10:54]1041 (16) - 0000000000963323 [20:10:54]1040 (4) - 75533 [20:10:54]1012 (4) - 23.10.2024 13:59 [20:10:54]1206 (1) - 0 [20:10:54]OFD Sender: Remove packet 75533 [20:10:54]ProducePacketName [20:10:54]name=ofd_packets/00075533 [20:10:54]NVStorageDeleteData [20:10:54]Write to MH i2c: 01 00 00 27 1F 46 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: 01 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: 01 07 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: 01 07 00 27 1F 00 00 00 00 00 4B 0C A4 [20:10:54]RasterBufferAndPrint [20:10:54]line [20:10:54]line [20:10:54]line [20:10:54]line [20:10:54]line [20:10:54]written 0, free lines is 3152 [20:10:54]MH_Cut [20:10:54]Write to MH i2c: D1 01 00 2E 1F 01 1F [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: D1 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: D1 01 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: D1 01 00 2E 1F 00 1E [20:10:54]Write to MH i2c: 01 00 00 2F 1F 4E [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]OFD Sender: No OFD packet to send [20:10:55]*** Cut start [20:10:55]*** Partial cut [20:10:55]*** CUTSNS_PIN = 1 [20:10:55]*** CUTSNS_PIN = 0 [20:10:55]*** Brake cut motor [20:10:55]Read from MH i2c: 01 [20:10:56]MH_I2C_Read... [20:10:56]*** Stop cut motor [20:10:56]*** Cut end [20:10:56]Read from MH i2c: 01 07 00 [20:10:56]MH_I2C_Read... [20:10:56]Read from MH i2c: 01 07 00 2F 1F 00 00 00 00 00 FF 0F 63 [20:10:56]process_action close_receipt done [20:10:56]requested_data is exist [20:10:56]produce_requested_data [20:10:56]requested_item fm.sn is exist - process it [20:10:56]wFMCommunicate request_size=4 [20:10:56]MH_SAM_APDU [20:10:56]CAPDU: 80 11 00 00 [20:10:56]Write to MH i2c: E2 08 00 30 1F 80 11 00 00 00 00 00 00 C9 [20:10:56]Write i2c OK [20:10:56]MH_I2C_Read... [20:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:56]Read from MH i2c: E2 [20:10:56]MH_I2C_Read... [20:10:56]Read from MH i2c: E2 17 00 [20:10:56]MH_I2C_Read... [20:10:56]Read from MH i2c: E2 17 00 30 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 16 [20:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:10:56]wFMCommunicate OK [20:10:56]requested_item fd.num is exist - process it [20:10:56]SAM_PROTO_GetFieldsCounters [20:10:56]wFMCommunicate request_size=4 [20:10:56]MH_SAM_APDU [20:10:56]CAPDU: 80 13 00 00 [20:10:56]Write to MH i2c: E2 08 00 31 1F 80 13 00 00 00 00 00 00 CC [20:10:56]Write i2c OK [20:10:56]MH_I2C_Read... [20:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:56]Read from MH i2c: E2 [20:10:56]MH_I2C_Read... [20:10:56]Read from MH i2c: E2 62 00 [20:10:56]MH_I2C_Read... [20:10:56]Read from MH i2c: E2 62 00 31 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0D 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [20:10:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0D 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:56]wFMCommunicate OK [20:10:56]SAM_PROTO_GetFieldsCounters done [20:10:56]requested_item shift.num is exist - process it [20:10:56]requested_item shift.opened is exist - process it [20:10:56]req_shift_opened [20:10:56]FM_GetShiftState [20:10:56]SAM_PROTO_GetShiftState [20:10:56]wFMCommunicate request_size=4 [20:10:56]MH_SAM_APDU [20:10:56]CAPDU: 80 13 01 00 [20:10:56]Write to MH i2c: E2 08 00 32 1F 80 13 01 00 00 00 00 00 CE [20:10:56]Write i2c OK [20:10:56]MH_I2C_Read... [20:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:56]Read from MH i2c: E2 [20:10:56]MH_I2C_Read... [20:10:56]Read from MH i2c: E2 0E 00 [20:10:56]MH_I2C_Read... [20:10:56]Read from MH i2c: E2 0E 00 32 1F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 33 [20:10:56]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:10:56]wFMCommunicate OK [20:10:56]SAM_PROTO_GetShiftState done [20:10:56]FM_GetShiftState done [20:10:56]req_shift_opened done [20:10:56]requested_item shift.open_date is exist - process it [20:10:56]req_shift_open_date [20:10:56]req_shift_open_date done [20:10:56]produce_requested_data done [20:10:56]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75533,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [20:10:56]process_action_free close_receipt [20:10:56]json_value_free [20:10:56]json_value_free done [20:10:56]process_json_proto returns [20:10:56]Send response to host [20:10:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75533,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [20:10:56]free response buf [20:10:56]execute_script done [20:10:56]execute_script returns [20:10:56]free content buf [20:10:56]Sock 5.Close socket [20:10:56]Sock 5.Thread stoped [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:48]accept exits with 6 [20:13:48]New connection [20:13:48]New thread 3066465636 created [20:13:48]Thread 3066608996 joined [20:13:48]Waiting for new connection... [20:13:48] Sock 6.Parse request [20:13:48]Sock 6.Check first char [20:13:48]Sock 6.First char is OK [20:13:48]request: POST /json_proto HTTP/1.0 [20:13:48]Method: POST [20:13:48]URL: /json_proto [20:13:48]Method is POST - this is cgi request [20:13:48]url: /json_proto [20:13:48]query_string will be loaded in cgi processing [20:13:48]execute_cgi json_proto POST (null) [20:13:48]execute_cgi path=json_proto method=POST [20:13:48]POST find Content-Length [20:13:48]Host: 172.17.44.196:8080 [20:13:48]Content-Length: 907 [20:13:48]Content-Type: application/json [20:13:48] [20:13:48]POST finish read [20:13:48]Found Content-Length = 907 [20:13:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273299", "tax_sys" : 0, "items" : [ { "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:48]execute_script... [20:13:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273299", "tax_sys" : 0, "items" : [ { "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:48]POST & json_proto [20:13:48]process_json_proto [20:13:48]json parsed OK: [20:13:48]protocol is kg_v1.0 [20:13:48]action value=close_receipt [20:13:48]process_action close_receipt [20:13:48]cmd_close_receipt [20:13:48]MH_GetDate [20:13:48]Write to MH i2c: F0 00 00 33 1F 41 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: F0 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: F0 09 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: F0 09 00 33 1F 00 FE 58 19 67 E7 19 F8 65 7D [20:13:48]GetLastDocTimeStamp 1729714253 [20:13:48]current date 1729714430 [20:13:48]FM_GetShiftState [20:13:48]SAM_PROTO_GetShiftState [20:13:48]wFMCommunicate request_size=4 [20:13:48]MH_SAM_APDU [20:13:48]CAPDU: 80 13 01 00 [20:13:48]Write to MH i2c: E2 08 00 34 1F 80 13 01 00 00 00 00 00 D0 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:48]Read from MH i2c: E2 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 0E 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 0E 00 34 1F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 35 [20:13:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:13:48]wFMCommunicate OK [20:13:48]SAM_PROTO_GetShiftState done [20:13:48]FM_GetShiftState done [20:13:48]opened in 1729642905 [20:13:48]opened+sec_in_day 1729729305 [20:13:48]quantity*price = 15000 [20:13:48]sum+1 = 15001 [20:13:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 267 23.10.2024 20:13 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75534 ФПД: 61311894056076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201350&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75534&fm=61311894056076&tin=02508201610067®Number=0000000000161154&sum=27000 0 [20:13:49]StoreToDocumentArchive [20:13:49]shift 173 fd 75534 [20:13:49]save to /storage/0173/doc_00075534 [20:13:49]save last doc name /storage/0173/doc_00075534 to /storage/kkm_last_doc_name [20:13:49]save OK [20:13:49]Clear old archive folders... [20:13:49]ProcessDocumentItem done err = 0, tmpTLVsize=382 [20:13:49]tlvbuf is 007B0E80 [20:13:49]SAM_PROTO_ClearQueue [20:13:49]wFMCommunicate request_size=4 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 09 00 00 [20:13:49]Write to MH i2c: E2 08 00 41 1F 80 09 00 00 00 00 00 00 D2 [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:49]Read from MH i2c: E2 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 41 1F 00 90 00 D4 [20:13:49]RAPDU: 90 00 [20:13:49]wFMCommunicate OK [20:13:49]SAM_PROTO_ClearQueue done [20:13:49]KKMCreateOFDPacket [20:13:49]OFDProtocolAddRootSTLVToBuf [20:13:49]FM_MakeSignedData [20:13:49]FM_MakeSignedData [20:13:49]SAM_PROTO_SignData [20:13:49]wFMCommunicate request_size=4 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 0D 01 02 [20:13:49]Write to MH i2c: E2 08 00 42 1F 80 0D 01 02 00 00 00 00 DA [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:49]Read from MH i2c: E2 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 42 1F 00 90 00 D5 [20:13:49]RAPDU: 90 00 [20:13:49]wFMCommunicate OK [20:13:49]wFMCommunicate request_size=255 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 [20:13:49]Write to MH i2c: E2 02 01 43 1F 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 4A [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]OFD Sender: No OFD packet to send [20:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:50]Read from MH i2c: E2 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 03 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 03 00 43 1F 00 90 00 D6 [20:13:50]RAPDU: 90 00 [20:13:50]wFMCommunicate OK [20:13:50]wFMCommunicate request_size=141 [20:13:50]MH_SAM_APDU [20:13:50]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 FE 58 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 27 01 00 35 04 06 00 37 C3 49 AA 6C 8C [20:13:50]Write to MH i2c: E2 90 00 44 1F 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 FE 58 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 27 01 00 35 04 06 00 37 C3 49 AA 6C 8C 00 00 D6 [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:50]Read from MH i2c: E2 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 03 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 03 00 44 1F 00 90 00 D7 [20:13:50]RAPDU: 90 00 [20:13:50]wFMCommunicate OK [20:13:50]wFMCommunicate request_size=4 [20:13:50]MH_SAM_APDU [20:13:50]CAPDU: 80 0D 03 02 [20:13:50]Write to MH i2c: E2 08 00 45 1F 80 0D 03 02 00 00 00 00 DF [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:50]Read from MH i2c: E2 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 0B 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 0B 00 45 1F 00 37 45 D9 BE BF E4 0B A4 90 00 45 [20:13:50]RAPDU: 37 45 D9 BE BF E4 0B A4 90 00 [20:13:50]wFMCommunicate OK [20:13:50]SAM_PROTO_SignData done [20:13:50]FM_MakeSignedData done [20:13:50]CreateOFDProtocolMessage [20:13:50]wFMCommunicate request_size=4 [20:13:50]MH_SAM_APDU [20:13:50]CAPDU: 80 11 00 00 [20:13:50]Write to MH i2c: E2 08 00 46 1F 80 11 00 00 00 00 00 00 DF [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:50]Read from MH i2c: E2 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 17 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 17 00 46 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2C [20:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:13:50]wFMCommunicate OK [20:13:50]CreateOFDProtocolMessage done [20:13:50]OFDSenderStorePacket 75534 [20:13:50]StoreOFDPacket docnum=75534 [20:13:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 92 01 00 00 A1 4F 8A 01 45 16 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 FE 58 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 27 01 00 35 04 06 00 37 C3 49 AA 6C 8C 37 45 D9 BE BF E4 0B A4 [20:13:50]CheckFolder [20:13:50]dirname=/storage/ofd_packets [20:13:50]CheckFolder done [20:13:50]ProducePacketName [20:13:50]name=ofd_packets/00075534 [20:13:50]NVStorageSaveData ofd_packets/00075534 [20:13:50]File name is /storage/ofd_packets/00075534 [20:13:50]Write 432 bytes [20:13:50]NVStorageSaveData done [20:13:50]OFDSenderStorePacket done [20:13:50]KKMCreateOFDPacket done [20:13:50]NVStorageSaveData kkm_last_timestamp [20:13:50]File name is /storage/kkm_last_timestamp [20:13:50]Write 4 bytes [20:13:50]NVStorageSaveData done [20:13:50]ExternCall_PrintAddStr [20:13:50]wPrintStart [20:13:50]Write to MH i2c: 01 00 00 47 1F 66 [20:13:50]OFD Sender: Processing packet 75534 [packets to send 16, broken 15] [20:13:50]ProducePacketName [20:13:50]name=ofd_packets/00075534 [20:13:50]OFD Sender: To server: pG, [20:13:50]CommunicateWithHost lk.salyk.kg:30040 [20:13:50]ConnectInit lk.salyk.kg [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 07 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 07 00 47 1F 00 00 00 00 00 FF 0F 7B [20:13:50]RasterBufferAndPrint [20:13:50]line Счет N : (3)273299 [20:13:50]line ИНН: 02508201610067 [20:13:50]line Контрольно-Кассовый Чек [20:13:50]line ПРОДАЖА [20:13:50]line Товар: 4870001150099 [20:13:50]line Сок Da-Da 1л персик [20:13:50]line 1.000 * 150.00 [20:13:50]line = 150.00 [20:13:50]line НДС 12% НСП 1% [20:13:50]line > о реализуемом товаре [20:13:50]line Товар: 4011100977952 [20:13:50]line Шок Батончик Твикс 55г [20:13:50]line 2.000 * 60.00 [20:13:50]line = 120.00 [20:13:50]line НДС 12% НСП 1% [20:13:50]line > о реализуемом товаре [20:13:50]line ИТОГО: 270.00 [20:13:50]line НСП 1% : 2.39 [20:13:50]line НДС 12% : 28.67 [20:13:50]line Наличными: 270.00 [20:13:50]line Безнал.: 0.00 [20:13:50]line Место: АЗС № 133 "Партнер Нефть" [20:13:50]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:13:50]line СНО: Общий режим [20:13:50]line Чек 267 23.10.2024 20:13 [20:13:50]line Смена: 173 ФФД: 1.0 [20:13:50]line ЗНМ: 0300000020 [20:13:50]line РНМ: 0000000000161154 [20:13:50]line Версия ККМ: v1.0 [20:13:50]line ФМ: 0000000000963323 [20:13:50]line ФД: 75534 [20:13:50]line ФПД: 61311894056076 [20:13:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201350&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75534&fm=61311894056076&tin=02508201610067®Number=0000000000161154&sum=27000 [20:13:50]line 0 [20:13:50]written 0, free lines is 4095 [20:13:50]Connected sock=8 [20:13:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 92 01 00 00 A1 4F 8A 01 45 16 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 FE 58 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 27 01 00 35 04 06 00 37 C3 49 AA 6C 8C 37 45 D9 BE BF E4 0B A4 [20:13:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 6F B6 47 00 68 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0E 27 01 00 F4 03 04 00 D8 01 19 67 B6 04 01 00 00 C3 DC 93 BF 25 68 80 3F [20:13:50]CommunicateWithHost err = 0 [20:13:50]CheckOFDResponse [20:13:50]1017 (14) - 77093643461234 [20:13:50]1041 (16) - 0000000000963323 [20:13:50]1040 (4) - 75534 [20:13:50]1012 (4) - 23.10.2024 14:02 [20:13:50]1206 (1) - 0 [20:13:50]OFD Sender: Remove packet 75534 [20:13:50]ProducePacketName [20:13:50]name=ofd_packets/00075534 [20:13:50]NVStorageDeleteData [20:13:51]Write to MH i2c: 01 00 00 74 1F 93 [20:13:51]Write i2c OK [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: 01 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: 01 07 00 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: 01 07 00 74 1F 00 00 00 00 00 5B 0C 01 [20:13:51]RasterBufferAndPrint [20:13:51]line [20:13:51]line [20:13:51]line [20:13:51]line [20:13:51]line [20:13:51]written 0, free lines is 3166 [20:13:51]MH_Cut [20:13:51]Write to MH i2c: D1 01 00 7B 1F 01 6C [20:13:51]Write i2c OK [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: D1 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: D1 01 00 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: D1 01 00 7B 1F 00 6B [20:13:51]Write to MH i2c: 01 00 00 7C 1F 9B [20:13:51]Write i2c OK [20:13:51]MH_I2C_Read... [20:13:51]OFD Sender: No OFD packet to send [20:13:52]*** Cut start [20:13:52]*** Partial cut [20:13:52]*** CUTSNS_PIN = 1 [20:13:52]*** CUTSNS_PIN = 0 [20:13:52]*** Brake cut motor [20:13:52]Read from MH i2c: 01 [20:13:52]MH_I2C_Read... [20:13:52]*** Stop cut motor [20:13:52]*** Cut end [20:13:52]Read from MH i2c: 01 07 00 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: 01 07 00 7C 1F 00 00 00 00 00 FF 0F B0 [20:13:52]process_action close_receipt done [20:13:52]requested_data is exist [20:13:52]produce_requested_data [20:13:52]requested_item fm.sn is exist - process it [20:13:52]wFMCommunicate request_size=4 [20:13:52]MH_SAM_APDU [20:13:52]CAPDU: 80 11 00 00 [20:13:52]Write to MH i2c: E2 08 00 7D 1F 80 11 00 00 00 00 00 00 16 [20:13:52]Write i2c OK [20:13:52]MH_I2C_Read... [20:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:52]Read from MH i2c: E2 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 17 00 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 17 00 7D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 63 [20:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:13:52]wFMCommunicate OK [20:13:52]requested_item fd.num is exist - process it [20:13:52]SAM_PROTO_GetFieldsCounters [20:13:52]wFMCommunicate request_size=4 [20:13:52]MH_SAM_APDU [20:13:52]CAPDU: 80 13 00 00 [20:13:52]Write to MH i2c: E2 08 00 7E 1F 80 13 00 00 00 00 00 00 19 [20:13:52]Write i2c OK [20:13:52]MH_I2C_Read... [20:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:52]Read from MH i2c: E2 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 62 00 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 62 00 7E 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0E 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [20:13:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0E 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:52]wFMCommunicate OK [20:13:52]SAM_PROTO_GetFieldsCounters done [20:13:52]requested_item shift.num is exist - process it [20:13:52]requested_item shift.opened is exist - process it [20:13:52]req_shift_opened [20:13:52]FM_GetShiftState [20:13:52]SAM_PROTO_GetShiftState [20:13:52]wFMCommunicate request_size=4 [20:13:52]MH_SAM_APDU [20:13:52]CAPDU: 80 13 01 00 [20:13:52]Write to MH i2c: E2 08 00 7F 1F 80 13 01 00 00 00 00 00 1B [20:13:52]Write i2c OK [20:13:52]MH_I2C_Read... [20:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:52]Read from MH i2c: E2 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 0E 00 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 0E 00 7F 1F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 80 [20:13:52]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:13:52]wFMCommunicate OK [20:13:52]SAM_PROTO_GetShiftState done [20:13:52]FM_GetShiftState done [20:13:52]req_shift_opened done [20:13:52]requested_item shift.open_date is exist - process it [20:13:52]req_shift_open_date [20:13:52]req_shift_open_date done [20:13:52]produce_requested_data done [20:13:52]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75534,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [20:13:53]process_action_free close_receipt [20:13:53]json_value_free [20:13:53]json_value_free done [20:13:53]process_json_proto returns [20:13:53]Send response to host [20:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75534,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [20:13:53]free response buf [20:13:53]execute_script done [20:13:53]execute_script returns [20:13:53]free content buf [20:13:53]Sock 6.Close socket [20:13:53]Sock 6.Thread stoped [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:38]accept exits with 5 [20:19:38]New connection [20:19:38]New thread 3066608996 created [20:19:38]Thread 3066465636 joined [20:19:38]Waiting for new connection... [20:19:38] Sock 5.Parse request [20:19:38]Sock 5.Check first char [20:19:38]Sock 5.First char is OK [20:19:38]request: POST /json_proto HTTP/1.0 [20:19:38]Method: POST [20:19:38]URL: /json_proto [20:19:38]Method is POST - this is cgi request [20:19:38]url: /json_proto [20:19:38]query_string will be loaded in cgi processing [20:19:38]execute_cgi json_proto POST (null) [20:19:38]execute_cgi path=json_proto method=POST [20:19:38]POST find Content-Length [20:19:38]Host: 172.17.44.196:8080 [20:19:38]Content-Length: 874 [20:19:38]Content-Type: application/json [20:19:38] [20:19:38]POST finish read [20:19:38]Found Content-Length = 874 [20:19:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273300", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.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: Mbank", "payments": [ { "type": 1, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:38]execute_script... [20:19: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 : (3)273300", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.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: Mbank", "payments": [ { "type": 1, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:38]POST & json_proto [20:19:38]process_json_proto [20:19:38]json parsed OK: [20:19:38]protocol is kg_v1.0 [20:19:38]action value=close_receipt [20:19:38]process_action close_receipt [20:19:38]cmd_close_receipt [20:19:38]MH_GetDate [20:19:38]Write to MH i2c: F0 00 00 80 1F 8E [20:19:38]Write i2c OK [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: F0 [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: F0 09 00 [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: F0 09 00 80 1F 00 5C 5A 19 67 E7 19 F8 65 2A [20:19:38]GetLastDocTimeStamp 1729714430 [20:19:38]current date 1729714780 [20:19:38]FM_GetShiftState [20:19:38]SAM_PROTO_GetShiftState [20:19:38]wFMCommunicate request_size=4 [20:19:38]MH_SAM_APDU [20:19:38]CAPDU: 80 13 01 00 [20:19:38]Write to MH i2c: E2 08 00 81 1F 80 13 01 00 00 00 00 00 1D [20:19:38]Write i2c OK [20:19:38]MH_I2C_Read... [20:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:38]Read from MH i2c: E2 [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: E2 0E 00 [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: E2 0E 00 81 1F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 82 [20:19:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:19:38]wFMCommunicate OK [20:19:38]SAM_PROTO_GetShiftState done [20:19:38]FM_GetShiftState done [20:19:38]opened in 1729642905 [20:19:38]opened+sec_in_day 1729729305 [20:19:38]quantity*price = 59000 [20:19:38]sum+1 = 59001 [20:19:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 0.00 Безнал.: 590.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 268 23.10.2024 20:19 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75535 ФПД: 182665398378888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201940&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75535&fm=182665398378888&tin=02508201610067®Number=0000000000161154&sum=59000 0 [20:19:39]StoreToDocumentArchive [20:19:39]shift 173 fd 75535 [20:19:39]save to /storage/0173/doc_00075535 [20:19:39]save last doc name /storage/0173/doc_00075535 to /storage/kkm_last_doc_name [20:19:39]save OK [20:19:39]Clear old archive folders... [20:19:39]ProcessDocumentItem done err = 0, tmpTLVsize=307 [20:19:39]tlvbuf is 007D72C0 [20:19:39]SAM_PROTO_ClearQueue [20:19:39]wFMCommunicate request_size=4 [20:19:39]MH_SAM_APDU [20:19:39]CAPDU: 80 09 00 00 [20:19:39]Write to MH i2c: E2 08 00 8E 1F 80 09 00 00 00 00 00 00 1F [20:19:39]Write i2c OK [20:19:39]MH_I2C_Read... [20:19:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:39]Read from MH i2c: E2 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 03 00 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 03 00 8E 1F 00 90 00 21 [20:19:39]RAPDU: 90 00 [20:19:39]wFMCommunicate OK [20:19:39]SAM_PROTO_ClearQueue done [20:19:39]KKMCreateOFDPacket [20:19:39]OFDProtocolAddRootSTLVToBuf [20:19:39]FM_MakeSignedData [20:19:39]FM_MakeSignedData [20:19:39]SAM_PROTO_SignData [20:19:39]wFMCommunicate request_size=4 [20:19:39]MH_SAM_APDU [20:19:39]CAPDU: 80 0D 01 02 [20:19:39]Write to MH i2c: E2 08 00 8F 1F 80 0D 01 02 00 00 00 00 27 [20:19:39]Write i2c OK [20:19:39]MH_I2C_Read... [20:19:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:39]Read from MH i2c: E2 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 03 00 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 03 00 8F 1F 00 90 00 22 [20:19:39]RAPDU: 90 00 [20:19:39]wFMCommunicate OK [20:19:39]wFMCommunicate request_size=255 [20:19:39]MH_SAM_APDU [20:19:39]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 5C 5A 19 67 0E 04 04 00 AD 00 00 00 B9 04 [20:19:39]Write to MH i2c: E2 02 01 90 1F 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 5C 5A 19 67 0E 04 04 00 AD 00 00 00 B9 04 00 00 9E [20:19:39]Write i2c OK [20:19:39]MH_I2C_Read... [20:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:39]Read from MH i2c: E2 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 03 00 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 03 00 90 1F 00 90 00 23 [20:19:39]RAPDU: 90 00 [20:19:39]wFMCommunicate OK [20:19:39]wFMCommunicate request_size=66 [20:19:39]MH_SAM_APDU [20:19:39]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 27 01 00 35 04 06 00 A6 22 1A 2E E1 88 [20:19:39]Write to MH i2c: E2 45 00 91 1F 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 27 01 00 35 04 06 00 A6 22 1A 2E E1 88 00 00 1F [20:19:39]Write i2c OK [20:19:39]MH_I2C_Read... [20:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:39]Read from MH i2c: E2 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 03 00 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 03 00 91 1F 00 90 00 24 [20:19:39]RAPDU: 90 00 [20:19:39]wFMCommunicate OK [20:19:39]wFMCommunicate request_size=4 [20:19:39]MH_SAM_APDU [20:19:39]CAPDU: 80 0D 03 02 [20:19:39]Write to MH i2c: E2 08 00 92 1F 80 0D 03 02 00 00 00 00 2C [20:19:39]Write i2c OK [20:19:39]MH_I2C_Read... [20:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:40]Read from MH i2c: E2 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: E2 0B 00 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: E2 0B 00 92 1F 00 45 06 2F AE 76 5A E6 51 90 00 5C [20:19:40]RAPDU: 45 06 2F AE 76 5A E6 51 90 00 [20:19:40]wFMCommunicate OK [20:19:40]SAM_PROTO_SignData done [20:19:40]FM_MakeSignedData done [20:19:40]CreateOFDProtocolMessage [20:19:40]wFMCommunicate request_size=4 [20:19:40]MH_SAM_APDU [20:19:40]CAPDU: 80 11 00 00 [20:19:40]Write to MH i2c: E2 08 00 93 1F 80 11 00 00 00 00 00 00 2C [20:19:40]Write i2c OK [20:19:40]MH_I2C_Read... [20:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:40]Read from MH i2c: E2 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: E2 17 00 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: E2 17 00 93 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 79 [20:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:19:40]wFMCommunicate OK [20:19:40]CreateOFDProtocolMessage done [20:19:40]OFDSenderStorePacket 75535 [20:19:40]StoreOFDPacket docnum=75535 [20:19:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 47 01 00 00 42 80 3F 01 C3 E8 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 5C 5A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 27 01 00 35 04 06 00 A6 22 1A 2E E1 88 45 06 2F AE 76 5A E6 51 [20:19:40]CheckFolder [20:19:40]dirname=/storage/ofd_packets [20:19:40]CheckFolder done [20:19:40]ProducePacketName [20:19:40]name=ofd_packets/00075535 [20:19:40]NVStorageSaveData ofd_packets/00075535 [20:19:40]File name is /storage/ofd_packets/00075535 [20:19:40]Write 357 bytes [20:19:40]NVStorageSaveData done [20:19:40]OFDSenderStorePacket done [20:19:40]KKMCreateOFDPacket done [20:19:40]NVStorageSaveData kkm_last_timestamp [20:19:40]File name is /storage/kkm_last_timestamp [20:19:40]Write 4 bytes [20:19:40]NVStorageSaveData done [20:19:40]ExternCall_PrintAddStr [20:19:40]wPrintStart [20:19:40]Write to MH i2c: 01 00 00 94 1F B3 [20:19:40]Write i2c OK [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: 01 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: 01 07 00 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: 01 07 00 94 1F 00 00 00 00 00 FF 0F C8 [20:19:40]RasterBufferAndPrint [20:19:40]line Счет N : (3)273300 [20:19:40]line ИНН: 02508201610067 [20:19:40]line Контрольно-Кассовый Чек [20:19:40]line ПРОДАЖА [20:19:40]line Товар: 2000029770012 [20:19:40]line Очки солнцезащитные в ассортименте [20:19:40]line 1.000 * 590.00 [20:19:40]line = 590.00 [20:19:40]line НДС 12% НСП 1% [20:19:40]line > о реализуемом товаре [20:19:40]line ИТОГО: 590.00 [20:19:40]line НСП 1% : 5.22 [20:19:40]line НДС 12% : 62.65 [20:19:40]line Наличными: 0.00 [20:19:40]line Безнал.: 590.00 [20:19:40]line Место: АЗС № 133 "Партнер Нефть" [20:19:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:19:40]line СНО: Общий режим [20:19:40]line Чек 268 23.10.2024 20:19 [20:19:40]line Смена: 173 ФФД: 1.0 [20:19:40]line ЗНМ: 0300000020 [20:19:40]line РНМ: 0000000000161154 [20:19:40]line Версия ККМ: v1.0 [20:19:40]line Платежная система: Mbank [20:19:40]line ФМ: 0000000000963323 [20:19:40]line ФД: 75535 [20:19:40]line ФПД: 182665398378888 [20:19:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201940&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75535&fm=182665398378888&tin=02508201610067®Number=0000000000161154&sum=59000 [20:19:40]line 0 [20:19:40]OFD Sender: Processing packet 75535 [packets to send 16, broken 15] [20:19:40]ProducePacketName [20:19:40]name=ofd_packets/00075535 [20:19:40]OFD Sender: To server: pG, [20:19:40]CommunicateWithHost lk.salyk.kg:30040 [20:19:40]ConnectInit lk.salyk.kg [20:19:40]written 0, free lines is 4095 [20:19:40]Connected sock=8 [20:19:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 47 01 00 00 42 80 3F 01 C3 E8 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 5C 5A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 27 01 00 35 04 06 00 A6 22 1A 2E E1 88 45 06 2F AE 76 5A E6 51 [20:19:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 50 AE 47 00 35 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 0F 27 01 00 F4 03 04 00 36 03 19 67 B6 04 01 00 00 67 BC 63 F0 CD F3 87 C7 [20:19:40]CommunicateWithHost err = 0 [20:19:40]CheckOFDResponse [20:19:40]1017 (14) - 77093643461234 [20:19:40]1041 (16) - 0000000000963323 [20:19:40]1040 (4) - 75535 [20:19:40]1012 (4) - 23.10.2024 14:07 [20:19:40]1206 (1) - 0 [20:19:40]OFD Sender: Remove packet 75535 [20:19:40]ProducePacketName [20:19:40]name=ofd_packets/00075535 [20:19:40]NVStorageDeleteData [20:19:40]Write to MH i2c: 01 00 00 BD 1F DC [20:19:40]Write i2c OK [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: 01 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: 01 07 00 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: 01 07 00 BD 1F 00 00 00 00 00 AC 0C 9B [20:19:40]RasterBufferAndPrint [20:19:40]line [20:19:40]line [20:19:40]line [20:19:40]line [20:19:40]line [20:19:40]written 0, free lines is 3247 [20:19:40]MH_Cut [20:19:40]Write to MH i2c: D1 01 00 C4 1F 01 B5 [20:19:40]Write i2c OK [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: D1 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: D1 01 00 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: D1 01 00 C4 1F 00 B4 [20:19:40]Write to MH i2c: 01 00 00 C5 1F E4 [20:19:40]Write i2c OK [20:19:40]MH_I2C_Read... [20:19:41]OFD Sender: No OFD packet to send [20:19:41]*** Cut start [20:19:41]*** Partial cut [20:19:41]*** CUTSNS_PIN = 1 [20:19:41]*** CUTSNS_PIN = 0 [20:19:42]*** Brake cut motor [20:19:42]Read from MH i2c: 01 [20:19:42]MH_I2C_Read... [20:19:42]*** Stop cut motor [20:19:42]*** Cut end [20:19:42]Read from MH i2c: 01 07 00 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: 01 07 00 C5 1F 00 00 00 00 00 FF 0F F9 [20:19:42]process_action close_receipt done [20:19:42]requested_data is exist [20:19:42]produce_requested_data [20:19:42]requested_item fm.sn is exist - process it [20:19:42]wFMCommunicate request_size=4 [20:19:42]MH_SAM_APDU [20:19:42]CAPDU: 80 11 00 00 [20:19:42]Write to MH i2c: E2 08 00 C6 1F 80 11 00 00 00 00 00 00 5F [20:19:42]Write i2c OK [20:19:42]MH_I2C_Read... [20:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:42]Read from MH i2c: E2 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 17 00 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 17 00 C6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 AC [20:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:19:42]wFMCommunicate OK [20:19:42]requested_item fd.num is exist - process it [20:19:42]SAM_PROTO_GetFieldsCounters [20:19:42]wFMCommunicate request_size=4 [20:19:42]MH_SAM_APDU [20:19:42]CAPDU: 80 13 00 00 [20:19:42]Write to MH i2c: E2 08 00 C7 1F 80 13 00 00 00 00 00 00 62 [20:19:42]Write i2c OK [20:19:42]MH_I2C_Read... [20:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:42]Read from MH i2c: E2 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 62 00 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 62 00 C7 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0F 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [20:19:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 0F 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:19:42]wFMCommunicate OK [20:19:42]SAM_PROTO_GetFieldsCounters done [20:19:42]requested_item shift.num is exist - process it [20:19:42]requested_item shift.opened is exist - process it [20:19:42]req_shift_opened [20:19:42]FM_GetShiftState [20:19:42]SAM_PROTO_GetShiftState [20:19:42]wFMCommunicate request_size=4 [20:19:42]MH_SAM_APDU [20:19:42]CAPDU: 80 13 01 00 [20:19:42]Write to MH i2c: E2 08 00 C8 1F 80 13 01 00 00 00 00 00 64 [20:19:42]Write i2c OK [20:19:42]MH_I2C_Read... [20:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:42]Read from MH i2c: E2 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 0E 00 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 0E 00 C8 1F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C9 [20:19:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:19:42]wFMCommunicate OK [20:19:42]SAM_PROTO_GetShiftState done [20:19:42]FM_GetShiftState done [20:19:42]req_shift_opened done [20:19:42]requested_item shift.open_date is exist - process it [20:19:42]req_shift_open_date [20:19:42]req_shift_open_date done [20:19:42]produce_requested_data done [20:19:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75535,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [20:19:42]process_action_free close_receipt [20:19:42]json_value_free [20:19:42]json_value_free done [20:19:42]process_json_proto returns [20:19:42]Send response to host [20:19:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75535,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [20:19:42]free response buf [20:19:42]execute_script done [20:19:42]execute_script returns [20:19:42]free content buf [20:19:42]Sock 5.Close socket [20:19:42]Sock 5.Thread stoped [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:38]accept exits with 6 [20:23:38]New connection [20:23:38]New thread 3066465636 created [20:23:38]Thread 3066608996 joined [20:23:38]Waiting for new connection... [20:23:38] Sock 6.Parse request [20:23:38]Sock 6.Check first char [20:23:38]Sock 6.First char is OK [20:23:38]request: POST /json_proto HTTP/1.0 [20:23:38]Method: POST [20:23:38]URL: /json_proto [20:23:38]Method is POST - this is cgi request [20:23:38]url: /json_proto [20:23:38]query_string will be loaded in cgi processing [20:23:38]execute_cgi json_proto POST (null) [20:23:38]execute_cgi path=json_proto method=POST [20:23:38]POST find Content-Length [20:23:38]Host: 172.17.44.196:8080 [20:23:38]Content-Length: 674 [20:23:38]Content-Type: application/json [20:23:38] [20:23:38]POST finish read [20:23:38]Found Content-Length = 674 [20:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273301", "tax_sys" : 0, "items" : [ { "code": "4000512994909", "name": "\u0440\u0401\u044C\u0445\u044B\u0440\u0444 \u0401\u044E\u044B\u044B\u0448 \u0401\u0443\u0445\u0401 \u0448\u044D\u0448", "price" : 44.00, "quantity" : 4.000, "sum" : 176.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 176.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:38]execute_script... [20:23: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 : (3)273301", "tax_sys" : 0, "items" : [ { "code": "4000512994909", "name": "\u0440\u0401\u044C\u0445\u044B\u0440\u0444 \u0401\u044E\u044B\u044B\u0448 \u0401\u0443\u0445\u0401 \u0448\u044D\u0448", "price" : 44.00, "quantity" : 4.000, "sum" : 176.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 176.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:38]POST & json_proto [20:23:38]process_json_proto [20:23:38]json parsed OK: [20:23:38]protocol is kg_v1.0 [20:23:38]action value=close_receipt [20:23:38]process_action close_receipt [20:23:38]cmd_close_receipt [20:23:38]MH_GetDate [20:23:38]Write to MH i2c: F0 00 00 C9 1F D7 [20:23:38]Write i2c OK [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: F0 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: F0 09 00 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: F0 09 00 C9 1F 00 4C 5B 19 67 E7 19 F8 65 64 [20:23:38]GetLastDocTimeStamp 1729714780 [20:23:38]current date 1729715020 [20:23:38]FM_GetShiftState [20:23:38]SAM_PROTO_GetShiftState [20:23:38]wFMCommunicate request_size=4 [20:23:38]MH_SAM_APDU [20:23:38]CAPDU: 80 13 01 00 [20:23:38]Write to MH i2c: E2 08 00 CA 1F 80 13 01 00 00 00 00 00 66 [20:23:38]Write i2c OK [20:23:38]MH_I2C_Read... [20:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:38]Read from MH i2c: E2 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 0E 00 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 0E 00 CA 1F 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CB [20:23:38]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:23:38]wFMCommunicate OK [20:23:38]SAM_PROTO_GetShiftState done [20:23:38]FM_GetShiftState done [20:23:38]opened in 1729642905 [20:23:38]opened+sec_in_day 1729729305 [20:23:38]quantity*price = 17600 [20:23:38]sum+1 = 17601 [20:23:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 176.00 НСП 1% : 1.56 НДС 12% : 18.69 Наличными: 176.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 269 23.10.2024 20:23 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75536 ФПД: 251959210058577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202340&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75536&fm=251959210058577&tin=02508201610067®Number=0000000000161154&sum=17600 0 [20:23:39]StoreToDocumentArchive [20:23:39]shift 173 fd 75536 [20:23:39]save to /storage/0173/doc_00075536 [20:23:39]save last doc name /storage/0173/doc_00075536 to /storage/kkm_last_doc_name [20:23:39]save OK [20:23:39]Clear old archive folders... [20:23:39]ProcessDocumentItem done err = 0, tmpTLVsize=283 [20:23:39]tlvbuf is 007834F0 [20:23:39]SAM_PROTO_ClearQueue [20:23:39]wFMCommunicate request_size=4 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 09 00 00 [20:23:39]Write to MH i2c: E2 08 00 D7 1F 80 09 00 00 00 00 00 00 68 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 D7 1F 00 90 00 6A [20:23:39]RAPDU: 90 00 [20:23:39]wFMCommunicate OK [20:23:39]SAM_PROTO_ClearQueue done [20:23:39]KKMCreateOFDPacket [20:23:39]OFDProtocolAddRootSTLVToBuf [20:23:39]FM_MakeSignedData [20:23:39]FM_MakeSignedData [20:23:39]SAM_PROTO_SignData [20:23:39]wFMCommunicate request_size=4 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 0D 01 02 [20:23:39]Write to MH i2c: E2 08 00 D8 1F 80 0D 01 02 00 00 00 00 70 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 D8 1F 00 90 00 6B [20:23:39]RAPDU: 90 00 [20:23:39]wFMCommunicate OK [20:23:39]wFMCommunicate request_size=255 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 30 30 35 31 32 39 39 34 39 30 39 06 04 29 00 D1 80 D0 81 D1 8C D1 85 D1 8B D1 80 D1 84 20 D0 81 D1 8E D1 8B D1 8B D1 88 20 D0 81 D1 83 D1 85 D0 81 20 D1 88 D1 8D D1 88 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4C 5B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 [20:23:39]Write to MH i2c: E2 02 01 D9 1F 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 30 30 35 31 32 39 39 34 39 30 39 06 04 29 00 D1 80 D0 81 D1 8C D1 85 D1 8B D1 80 D1 84 20 D0 81 D1 8E D1 8B D1 8B D1 88 20 D0 81 D1 83 D1 85 D0 81 20 D1 88 D1 8D D1 88 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4C 5B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 00 00 21 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 D9 1F 00 90 00 6C [20:23:39]RAPDU: 90 00 [20:23:39]wFMCommunicate OK [20:23:39]wFMCommunicate request_size=42 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 27 01 00 35 04 06 00 E5 27 D3 36 A3 51 [20:23:39]Write to MH i2c: E2 2D 00 DA 1F 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 27 01 00 35 04 06 00 E5 27 D3 36 A3 51 00 00 83 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 DA 1F 00 90 00 6D [20:23:39]RAPDU: 90 00 [20:23:39]wFMCommunicate OK [20:23:39]wFMCommunicate request_size=4 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 0D 03 02 [20:23:39]Write to MH i2c: E2 08 00 DB 1F 80 0D 03 02 00 00 00 00 75 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 0B 00 [20:23:39]MH_I2C_Read... [20:23:40]Read from MH i2c: E2 0B 00 DB 1F 00 D4 0C 19 F1 EA 20 54 A1 90 00 5F [20:23:40]RAPDU: D4 0C 19 F1 EA 20 54 A1 90 00 [20:23:40]wFMCommunicate OK [20:23:40]SAM_PROTO_SignData done [20:23:40]FM_MakeSignedData done [20:23:40]CreateOFDProtocolMessage [20:23:40]wFMCommunicate request_size=4 [20:23:40]MH_SAM_APDU [20:23:40]CAPDU: 80 11 00 00 [20:23:40]Write to MH i2c: E2 08 00 DC 1F 80 11 00 00 00 00 00 00 75 [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:40]Read from MH i2c: E2 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: E2 17 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: E2 17 00 DC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C2 [20:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:23:40]wFMCommunicate OK [20:23:40]CreateOFDProtocolMessage done [20:23:40]OFDSenderStorePacket 75536 [20:23:40]StoreOFDPacket docnum=75536 [20:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2F 01 00 00 36 3C 27 01 5D E3 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 30 30 35 31 32 39 39 34 39 30 39 06 04 29 00 D1 80 D0 81 D1 8C D1 85 D1 8B D1 80 D1 84 20 D0 81 D1 8E D1 8B D1 8B D1 88 20 D0 81 D1 83 D1 85 D0 81 20 D1 88 D1 8D D1 88 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4C 5B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 27 01 00 35 04 06 00 E5 27 D3 36 A3 51 D4 0C 19 F1 EA 20 54 A1 [20:23:40]CheckFolder [20:23:40]dirname=/storage/ofd_packets [20:23:40]CheckFolder done [20:23:40]ProducePacketName [20:23:40]name=ofd_packets/00075536 [20:23:40]NVStorageSaveData ofd_packets/00075536 [20:23:40]File name is /storage/ofd_packets/00075536 [20:23:40]Write 333 bytes [20:23:40]NVStorageSaveData done [20:23:40]OFDSenderStorePacket done [20:23:40]KKMCreateOFDPacket done [20:23:40]NVStorageSaveData kkm_last_timestamp [20:23:40]File name is /storage/kkm_last_timestamp [20:23:40]Write 4 bytes [20:23:40]NVStorageSaveData done [20:23:40]ExternCall_PrintAddStr [20:23:40]wPrintStart [20:23:40]Write to MH i2c: 01 00 00 DD 1F FC [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 07 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 07 00 DD 1F 00 00 00 00 00 FF 0F 11 [20:23:40]RasterBufferAndPrint [20:23:40]line Счет N : (3)273301 [20:23:40]line ИНН: 02508201610067 [20:23:40]line Контрольно-Кассовый Чек [20:23:40]line ПРОДАЖА [20:23:40]line Товар: 4000512994909 [20:23:40]line рЁьхырф Ёюыыш ЁухЁ шэш [20:23:40]line 4.000 * 44.00 [20:23:40]line = 176.00 [20:23:40]line НДС 12% НСП 1% [20:23:40]line > о реализуемом товаре [20:23:40]line ИТОГО: 176.00 [20:23:40]line НСП 1% : 1.56 [20:23:40]line НДС 12% : 18.69 [20:23:40]line Наличными: 176.00 [20:23:40]line Безнал.: 0.00 [20:23:40]line Место: АЗС № 133 "Партнер Нефть" [20:23:40]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:23:40]line СНО: Общий режим [20:23:40]line Чек 269 23.10.2024 20:23 [20:23:40]line Смена: 173 ФФД: 1.0 [20:23:40]line ЗНМ: 0300000020 [20:23:40]line РНМ: 0000000000161154 [20:23:40]line Версия ККМ: v1.0 [20:23:40]line ФМ: 0000000000963323 [20:23:40]line ФД: 75536 [20:23:40]line ФПД: 251959210058577 [20:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202340&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75536&fm=251959210058577&tin=02508201610067®Number=0000000000161154&sum=17600 [20:23:40]line 0 [20:23:40]OFD Sender: Processing packet 75536 [packets to send 16, broken 15] [20:23:40]ProducePacketName [20:23:40]name=ofd_packets/00075536 [20:23:40]OFD Sender: To server: pG, [20:23:40]CommunicateWithHost lk.salyk.kg:30040 [20:23:40]ConnectInit lk.salyk.kg [20:23:40]written 0, free lines is 4095 [20:23:40]Connected sock=8 [20:23:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2F 01 00 00 36 3C 27 01 5D E3 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 30 30 35 31 32 39 39 34 39 30 39 06 04 29 00 D1 80 D0 81 D1 8C D1 85 D1 8B D1 80 D1 84 20 D0 81 D1 8E D1 8B D1 8B D1 88 20 D0 81 D1 83 D1 85 D0 81 20 D1 88 D1 8D D1 88 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 C0 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4C 5B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 27 01 00 35 04 06 00 E5 27 D3 36 A3 51 D4 0C 19 F1 EA 20 54 A1 [20:23:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A1 E2 47 00 BE 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 10 27 01 00 F4 03 04 00 26 04 19 67 B6 04 01 00 00 9C F8 A7 B6 18 95 68 CC [20:23:40]CommunicateWithHost err = 0 [20:23:40]CheckOFDResponse [20:23:40]1017 (14) - 77093643461234 [20:23:40]1041 (16) - 0000000000963323 [20:23:40]1040 (4) - 75536 [20:23:40]1012 (4) - 23.10.2024 14:11 [20:23:40]1206 (1) - 0 [20:23:40]OFD Sender: Remove packet 75536 [20:23:40]ProducePacketName [20:23:40]name=ofd_packets/00075536 [20:23:40]NVStorageDeleteData [20:23:40]Write to MH i2c: 01 00 00 04 20 24 [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 07 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 07 00 04 20 00 00 00 00 00 C7 0C FE [20:23:40]RasterBufferAndPrint [20:23:40]line [20:23:40]line [20:23:40]line [20:23:40]line [20:23:40]line [20:23:40]written 0, free lines is 3276 [20:23:40]MH_Cut [20:23:40]Write to MH i2c: D1 01 00 0B 20 01 FD [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: D1 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: D1 01 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: D1 01 00 0B 20 00 FC [20:23:40]Write to MH i2c: 01 00 00 0C 20 2C [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:41]OFD Sender: No OFD packet to send [20:23:41]*** Cut start [20:23:41]*** Partial cut [20:23:41]*** CUTSNS_PIN = 1 [20:23:41]*** CUTSNS_PIN = 0 [20:23:42]*** Brake cut motor [20:23:42]Read from MH i2c: 01 [20:23:42]MH_I2C_Read... [20:23:42]*** Stop cut motor [20:23:42]*** Cut end [20:23:42]Read from MH i2c: 01 07 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: 01 07 00 0C 20 00 00 00 00 00 FF 0F 41 [20:23:42]process_action close_receipt done [20:23:42]requested_data is exist [20:23:42]produce_requested_data [20:23:42]requested_item fm.sn is exist - process it [20:23:42]wFMCommunicate request_size=4 [20:23:42]MH_SAM_APDU [20:23:42]CAPDU: 80 11 00 00 [20:23:42]Write to MH i2c: E2 08 00 0D 20 80 11 00 00 00 00 00 00 A7 [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 17 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 17 00 0D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F4 [20:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:23:42]wFMCommunicate OK [20:23:42]requested_item fd.num is exist - process it [20:23:42]SAM_PROTO_GetFieldsCounters [20:23:42]wFMCommunicate request_size=4 [20:23:42]MH_SAM_APDU [20:23:42]CAPDU: 80 13 00 00 [20:23:42]Write to MH i2c: E2 08 00 0E 20 80 13 00 00 00 00 00 00 AA [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 62 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 62 00 0E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 10 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [20:23:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 10 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:42]wFMCommunicate OK [20:23:42]SAM_PROTO_GetFieldsCounters done [20:23:42]requested_item shift.num is exist - process it [20:23:42]requested_item shift.opened is exist - process it [20:23:42]req_shift_opened [20:23:42]FM_GetShiftState [20:23:42]SAM_PROTO_GetShiftState [20:23:42]wFMCommunicate request_size=4 [20:23:42]MH_SAM_APDU [20:23:42]CAPDU: 80 13 01 00 [20:23:42]Write to MH i2c: E2 08 00 0F 20 80 13 01 00 00 00 00 00 AC [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 0E 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 0E 00 0F 20 00 09 00 01 99 41 18 67 00 00 00 00 90 00 11 [20:23:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:23:42]wFMCommunicate OK [20:23:42]SAM_PROTO_GetShiftState done [20:23:42]FM_GetShiftState done [20:23:42]req_shift_opened done [20:23:42]requested_item shift.open_date is exist - process it [20:23:42]req_shift_open_date [20:23:42]req_shift_open_date done [20:23:42]produce_requested_data done [20:23:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75536,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [20:23:42]process_action_free close_receipt [20:23:42]json_value_free [20:23:42]json_value_free done [20:23:42]process_json_proto returns [20:23:42]Send response to host [20:23:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75536,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [20:23:42]free response buf [20:23:42]execute_script done [20:23:42]execute_script returns [20:23:42]free content buf [20:23:42]Sock 6.Close socket [20:23:42]Sock 6.Thread stoped [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:18]accept exits with 5 [20:24:18]New connection [20:24:18]New thread 3066608996 created [20:24:18]Thread 3066465636 joined [20:24:18]Waiting for new connection... [20:24:18] Sock 5.Parse request [20:24:18]Sock 5.Check first char [20:24:18]Sock 5.First char is OK [20:24:18]request: POST /json_proto HTTP/1.0 [20:24:18]Method: POST [20:24:18]URL: /json_proto [20:24:18]Method is POST - this is cgi request [20:24:18]url: /json_proto [20:24:18]query_string will be loaded in cgi processing [20:24:18]execute_cgi json_proto POST (null) [20:24:18]execute_cgi path=json_proto method=POST [20:24:18]POST find Content-Length [20:24:18]Host: 172.17.44.196:8080 [20:24:18]Content-Length: 959 [20:24:18]Content-Type: application/json [20:24:18] [20:24:18]POST finish read [20:24:18]Found Content-Length = 959 [20:24:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273302", "tax_sys" : 0, "items" : [ { "code": "4870002328602", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u0430\u043F,\u043B\u0435\u043C\u043E\u043D\u0433\u0440\u0430\u0441 \u041F\u042D\u0422 1\u043B", "price" : 142.00, "quantity" : 1.000, "sum" : 142.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:18]execute_script... [20:24:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273302", "tax_sys" : 0, "items" : [ { "code": "4870002328602", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u0430\u043F,\u043B\u0435\u043C\u043E\u043D\u0433\u0440\u0430\u0441 \u041F\u042D\u0422 1\u043B", "price" : 142.00, "quantity" : 1.000, "sum" : 142.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:18]POST & json_proto [20:24:18]process_json_proto [20:24:18]json parsed OK: [20:24:18]protocol is kg_v1.0 [20:24:18]action value=close_receipt [20:24:18]process_action close_receipt [20:24:18]cmd_close_receipt [20:24:18]MH_GetDate [20:24:18]Write to MH i2c: F0 00 00 10 20 1F [20:24:18]Write i2c OK [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: F0 [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: F0 09 00 [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: F0 09 00 10 20 00 74 5B 19 67 E7 19 F8 65 D4 [20:24:18]GetLastDocTimeStamp 1729715020 [20:24:18]current date 1729715060 [20:24:18]FM_GetShiftState [20:24:18]SAM_PROTO_GetShiftState [20:24:18]wFMCommunicate request_size=4 [20:24:18]MH_SAM_APDU [20:24:18]CAPDU: 80 13 01 00 [20:24:18]Write to MH i2c: E2 08 00 11 20 80 13 01 00 00 00 00 00 AE [20:24:18]Write i2c OK [20:24:18]MH_I2C_Read... [20:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:18]Read from MH i2c: E2 [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: E2 0E 00 [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: E2 0E 00 11 20 00 09 00 01 99 41 18 67 00 00 00 00 90 00 13 [20:24:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:24:18]wFMCommunicate OK [20:24:18]SAM_PROTO_GetShiftState done [20:24:18]FM_GetShiftState done [20:24:18]opened in 1729642905 [20:24:18]opened+sec_in_day 1729729305 [20:24:18]quantity*price = 14200 [20:24:18]sum+1 = 14201 [20:24:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 56.00 = 56.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 198.00 НСП 1% : 1.76 НДС 12% : 21.03 Наличными: 198.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 270 23.10.2024 20:24 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75537 ФПД: 63485886288038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202420&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75537&fm=63485886288038&tin=02508201610067®Number=0000000000161154&sum=19800 0 [20:24:19]StoreToDocumentArchive [20:24:19]shift 173 fd 75537 [20:24:19]save to /storage/0173/doc_00075537 [20:24:19]save last doc name /storage/0173/doc_00075537 to /storage/kkm_last_doc_name [20:24:19]save OK [20:24:19]Clear old archive folders... [20:24:19]ProcessDocumentItem done err = 0, tmpTLVsize=407 [20:24:19]tlvbuf is 0079B470 [20:24:19]SAM_PROTO_ClearQueue [20:24:19]wFMCommunicate request_size=4 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 09 00 00 [20:24:19]Write to MH i2c: E2 08 00 1E 20 80 09 00 00 00 00 00 00 B0 [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 1E 20 00 90 00 B2 [20:24:19]RAPDU: 90 00 [20:24:19]wFMCommunicate OK [20:24:19]SAM_PROTO_ClearQueue done [20:24:19]KKMCreateOFDPacket [20:24:19]OFDProtocolAddRootSTLVToBuf [20:24:19]FM_MakeSignedData [20:24:19]FM_MakeSignedData [20:24:19]SAM_PROTO_SignData [20:24:19]wFMCommunicate request_size=4 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 0D 01 02 [20:24:19]Write to MH i2c: E2 08 00 1F 20 80 0D 01 02 00 00 00 00 B8 [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 1F 20 00 90 00 B3 [20:24:19]RAPDU: 90 00 [20:24:19]wFMCommunicate OK [20:24:19]wFMCommunicate request_size=255 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 37 00 00 00 00 13 04 06 00 78 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [20:24:19]Write to MH i2c: E2 02 01 20 20 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 37 00 00 00 00 13 04 06 00 78 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 DC [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:20]Read from MH i2c: E2 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: E2 03 00 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: E2 03 00 20 20 00 90 00 B4 [20:24:20]RAPDU: 90 00 [20:24:20]wFMCommunicate OK [20:24:20]wFMCommunicate request_size=166 [20:24:20]MH_SAM_APDU [20:24:20]CAPDU: 80 0D 02 02 A1 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 01 00 00 F4 03 04 00 74 5B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 27 01 00 35 04 06 00 39 BD 75 B3 50 A6 [20:24:20]Write to MH i2c: E2 A9 00 21 20 80 0D 02 02 A1 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 01 00 00 F4 03 04 00 74 5B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 27 01 00 35 04 06 00 39 BD 75 B3 50 A6 00 00 BE [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:20]Read from MH i2c: E2 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: E2 03 00 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: E2 03 00 21 20 00 90 00 B5 [20:24:20]RAPDU: 90 00 [20:24:20]wFMCommunicate OK [20:24:20]wFMCommunicate request_size=4 [20:24:20]MH_SAM_APDU [20:24:20]CAPDU: 80 0D 03 02 [20:24:20]Write to MH i2c: E2 08 00 22 20 80 0D 03 02 00 00 00 00 BD [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:20]Read from MH i2c: E2 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: E2 0B 00 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: E2 0B 00 22 20 00 2B 9D 85 4B 4B 8D DA BA 90 00 C2 [20:24:20]RAPDU: 2B 9D 85 4B 4B 8D DA BA 90 00 [20:24:20]wFMCommunicate OK [20:24:20]SAM_PROTO_SignData done [20:24:20]FM_MakeSignedData done [20:24:20]CreateOFDProtocolMessage [20:24:20]wFMCommunicate request_size=4 [20:24:20]MH_SAM_APDU [20:24:20]CAPDU: 80 11 00 00 [20:24:20]Write to MH i2c: E2 08 00 23 20 80 11 00 00 00 00 00 00 BD [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:20]Read from MH i2c: E2 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: E2 17 00 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: E2 17 00 23 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 0A [20:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:24:20]wFMCommunicate OK [20:24:20]CreateOFDProtocolMessage done [20:24:20]OFDSenderStorePacket 75537 [20:24:20]StoreOFDPacket docnum=75537 [20:24:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 AB 01 00 00 C5 21 A3 01 77 13 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 37 00 00 00 00 13 04 06 00 78 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 01 00 00 F4 03 04 00 74 5B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 27 01 00 35 04 06 00 39 BD 75 B3 50 A6 2B 9D 85 4B 4B 8D DA BA [20:24:20]CheckFolder [20:24:20]dirname=/storage/ofd_packets [20:24:20]CheckFolder done [20:24:20]ProducePacketName [20:24:20]name=ofd_packets/00075537 [20:24:20]NVStorageSaveData ofd_packets/00075537 [20:24:20]File name is /storage/ofd_packets/00075537 [20:24:20]Write 457 bytes [20:24:20]NVStorageSaveData done [20:24:20]OFDSenderStorePacket done [20:24:20]KKMCreateOFDPacket done [20:24:20]NVStorageSaveData kkm_last_timestamp [20:24:20]File name is /storage/kkm_last_timestamp [20:24:20]Write 4 bytes [20:24:20]NVStorageSaveData done [20:24:20]ExternCall_PrintAddStr [20:24:20]wPrintStart [20:24:20]Write to MH i2c: 01 00 00 24 20 44 [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 07 00 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 07 00 24 20 00 00 00 00 00 FF 0F 59 [20:24:20]RasterBufferAndPrint [20:24:20]line Счет N : (3)273302 [20:24:20]line ИНН: 02508201610067 [20:24:20]line Контрольно-Кассовый Чек [20:24:20]line ПРОДАЖА [20:24:20]line Товар: 4870002328602 [20:24:20]line Напиток DADA ап,лемонграс ПЭТ 1л [20:24:20]line 1.000 * 142.00 [20:24:20]line = 142.00 [20:24:20]line НДС 12% НСП 1% [20:24:20]line > о реализуемом товаре [20:24:20]line Товар: 4607065001445 [20:24:20]line Шок батончик Snickers 50,5г [20:24:20]line 1.000 * 56.00 [20:24:20]line = 56.00 [20:24:20]line НДС 12% НСП 1% [20:24:20]line > о реализуемом товаре [20:24:20]line ИТОГО: 198.00 [20:24:20]line НСП 1% : 1.76 [20:24:20]line НДС 12% : 21.03 [20:24:20]line Наличными: 198.00 [20:24:20]line Безнал.: 0.00 [20:24:20]line Место: АЗС № 133 "Партнер Нефть" [20:24:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:24:20]line СНО: Общий режим [20:24:20]line Чек 270 23.10.2024 20:24 [20:24:20]line Смена: 173 ФФД: 1.0 [20:24:20]line ЗНМ: 0300000020 [20:24:20]line РНМ: 0000000000161154 [20:24:20]line Версия ККМ: v1.0 [20:24:20]line ФМ: 0000000000963323 [20:24:20]line ФД: 75537 [20:24:20]line ФПД: 63485886288038 [20:24:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202420&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75537&fm=63485886288038&tin=02508201610067®Number=0000000000161154&sum=19800 [20:24:20]line 0 [20:24:20]written 0, free lines is 4095 [20:24:20]OFD Sender: Processing packet 75537 [packets to send 16, broken 15] [20:24:20]ProducePacketName [20:24:20]name=ofd_packets/00075537 [20:24:20]OFD Sender: To server: pG, [20:24:20]CommunicateWithHost lk.salyk.kg:30040 [20:24:20]ConnectInit lk.salyk.kg [20:24:20]Connected sock=8 [20:24:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 AB 01 00 00 C5 21 A3 01 77 13 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 37 00 00 00 00 13 04 06 00 78 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 01 00 00 F4 03 04 00 74 5B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 27 01 00 35 04 06 00 39 BD 75 B3 50 A6 2B 9D 85 4B 4B 8D DA BA [20:24:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 BA 17 47 00 10 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 11 27 01 00 F4 03 04 00 4E 04 19 67 B6 04 01 00 00 93 B9 60 65 01 60 25 22 [20:24:20]CommunicateWithHost err = 0 [20:24:20]CheckOFDResponse [20:24:20]1017 (14) - 77093643461234 [20:24:20]1041 (16) - 0000000000963323 [20:24:20]1040 (4) - 75537 [20:24:20]1012 (4) - 23.10.2024 14:12 [20:24:20]1206 (1) - 0 [20:24:20]OFD Sender: Remove packet 75537 [20:24:20]ProducePacketName [20:24:20]name=ofd_packets/00075537 [20:24:20]NVStorageDeleteData [20:24:20]Write to MH i2c: 01 00 00 52 20 72 [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 07 00 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 07 00 52 20 00 00 00 00 00 5B 0C E0 [20:24:20]RasterBufferAndPrint [20:24:20]line [20:24:20]line [20:24:20]line [20:24:20]line [20:24:20]line [20:24:20]written 0, free lines is 3168 [20:24:20]MH_Cut [20:24:20]Write to MH i2c: D1 01 00 59 20 01 4B [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: D1 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: D1 01 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: D1 01 00 59 20 00 4A [20:24:21]Write to MH i2c: 01 00 00 5A 20 7A [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]OFD Sender: No OFD packet to send [20:24:21]*** Cut start [20:24:21]*** Partial cut [20:24:21]*** CUTSNS_PIN = 1 [20:24:22]*** CUTSNS_PIN = 0 [20:24:22]*** Brake cut motor [20:24:22]Read from MH i2c: 01 [20:24:22]MH_I2C_Read... [20:24:22]*** Stop cut motor [20:24:22]*** Cut end [20:24:22]Read from MH i2c: 01 07 00 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: 01 07 00 5A 20 00 00 00 00 00 FF 0F 8F [20:24:22]process_action close_receipt done [20:24:22]requested_data is exist [20:24:22]produce_requested_data [20:24:22]requested_item fm.sn is exist - process it [20:24:22]wFMCommunicate request_size=4 [20:24:22]MH_SAM_APDU [20:24:22]CAPDU: 80 11 00 00 [20:24:22]Write to MH i2c: E2 08 00 5B 20 80 11 00 00 00 00 00 00 F5 [20:24:22]Write i2c OK [20:24:22]MH_I2C_Read... [20:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:22]Read from MH i2c: E2 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: E2 17 00 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: E2 17 00 5B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 42 [20:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:24:22]wFMCommunicate OK [20:24:22]requested_item fd.num is exist - process it [20:24:22]SAM_PROTO_GetFieldsCounters [20:24:22]wFMCommunicate request_size=4 [20:24:22]MH_SAM_APDU [20:24:22]CAPDU: 80 13 00 00 [20:24:22]Write to MH i2c: E2 08 00 5C 20 80 13 00 00 00 00 00 00 F8 [20:24:22]Write i2c OK [20:24:22]MH_I2C_Read... [20:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:22]Read from MH i2c: E2 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: E2 62 00 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: E2 62 00 5C 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 11 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [20:24:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 11 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:22]wFMCommunicate OK [20:24:22]SAM_PROTO_GetFieldsCounters done [20:24:22]requested_item shift.num is exist - process it [20:24:22]requested_item shift.opened is exist - process it [20:24:22]req_shift_opened [20:24:22]FM_GetShiftState [20:24:22]SAM_PROTO_GetShiftState [20:24:22]wFMCommunicate request_size=4 [20:24:22]MH_SAM_APDU [20:24:22]CAPDU: 80 13 01 00 [20:24:22]Write to MH i2c: E2 08 00 5D 20 80 13 01 00 00 00 00 00 FA [20:24:22]Write i2c OK [20:24:22]MH_I2C_Read... [20:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:22]Read from MH i2c: E2 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: E2 0E 00 [20:24:22]MH_I2C_Read... [20:24:22]Read from MH i2c: E2 0E 00 5D 20 00 09 00 01 99 41 18 67 00 00 00 00 90 00 5F [20:24:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:24:22]wFMCommunicate OK [20:24:22]SAM_PROTO_GetShiftState done [20:24:22]FM_GetShiftState done [20:24:22]req_shift_opened done [20:24:22]requested_item shift.open_date is exist - process it [20:24:22]req_shift_open_date [20:24:22]req_shift_open_date done [20:24:22]produce_requested_data done [20:24:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75537,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [20:24:22]process_action_free close_receipt [20:24:22]json_value_free [20:24:22]json_value_free done [20:24:22]process_json_proto returns [20:24:22]Send response to host [20:24:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75537,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [20:24:22]free response buf [20:24:22]execute_script done [20:24:22]execute_script returns [20:24:22]free content buf [20:24:22]Sock 5.Close socket [20:24:22]Sock 5.Thread stoped [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:37]accept exits with 6 [20:42:37]New connection [20:42:37]New thread 3066465636 created [20:42:37]Thread 3066608996 joined [20:42:37]Waiting for new connection... [20:42:37] Sock 6.Parse request [20:42:37]Sock 6.Check first char [20:42:37]Sock 6.First char is OK [20:42:37]request: POST /json_proto HTTP/1.0 [20:42:37]Method: POST [20:42:37]URL: /json_proto [20:42:37]Method is POST - this is cgi request [20:42:37]url: /json_proto [20:42:37]query_string will be loaded in cgi processing [20:42:37]execute_cgi json_proto POST (null) [20:42:37]execute_cgi path=json_proto method=POST [20:42:37]POST find Content-Length [20:42:37]Host: 172.17.44.196:8080 [20:42:37]Content-Length: 623 [20:42:37]Content-Type: application/json [20:42:37] [20:42:37]POST finish read [20:42:37]Found Content-Length = 623 [20:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273303", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:37]execute_script... [20:42:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273303", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:37]POST & json_proto [20:42:37]process_json_proto [20:42:37]json parsed OK: [20:42:37]protocol is kg_v1.0 [20:42:37]action value=close_receipt [20:42:37]process_action close_receipt [20:42:37]cmd_close_receipt [20:42:37]MH_GetDate [20:42:37]Write to MH i2c: F0 00 00 5E 20 6D [20:42:37]Write i2c OK [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: F0 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: F0 09 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: F0 09 00 5E 20 00 BF 5F 19 67 E7 19 F8 65 71 [20:42:37]GetLastDocTimeStamp 1729715060 [20:42:37]current date 1729716159 [20:42:37]FM_GetShiftState [20:42:37]SAM_PROTO_GetShiftState [20:42:37]wFMCommunicate request_size=4 [20:42:37]MH_SAM_APDU [20:42:37]CAPDU: 80 13 01 00 [20:42:37]Write to MH i2c: E2 08 00 5F 20 80 13 01 00 00 00 00 00 FC [20:42:37]Write i2c OK [20:42:37]MH_I2C_Read... [20:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:37]Read from MH i2c: E2 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 0E 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 0E 00 5F 20 00 09 00 01 99 41 18 67 00 00 00 00 90 00 61 [20:42:37]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:42:37]wFMCommunicate OK [20:42:37]SAM_PROTO_GetShiftState done [20:42:37]FM_GetShiftState done [20:42:37]opened in 1729642905 [20:42:37]opened+sec_in_day 1729729305 [20:42:37]quantity*price = 14000 [20:42:37]sum+1 = 14001 [20:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 271 23.10.2024 20:42 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75538 ФПД: 226821866302917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204239&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75538&fm=226821866302917&tin=02508201610067®Number=0000000000161154&sum=14000 0 [20:42:38]StoreToDocumentArchive [20:42:38]shift 173 fd 75538 [20:42:38]save to /storage/0173/doc_00075538 [20:42:38]save last doc name /storage/0173/doc_00075538 to /storage/kkm_last_doc_name [20:42:38]save OK [20:42:38]Clear old archive folders... [20:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:42:38]tlvbuf is 00783530 [20:42:38]SAM_PROTO_ClearQueue [20:42:38]wFMCommunicate request_size=4 [20:42:38]MH_SAM_APDU [20:42:38]CAPDU: 80 09 00 00 [20:42:38]Write to MH i2c: E2 08 00 6C 20 80 09 00 00 00 00 00 00 FE [20:42:38]Write i2c OK [20:42:38]MH_I2C_Read... [20:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:38]Read from MH i2c: E2 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 03 00 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 03 00 6C 20 00 90 00 00 [20:42:38]RAPDU: 90 00 [20:42:38]wFMCommunicate OK [20:42:38]SAM_PROTO_ClearQueue done [20:42:38]KKMCreateOFDPacket [20:42:38]OFDProtocolAddRootSTLVToBuf [20:42:38]FM_MakeSignedData [20:42:38]FM_MakeSignedData [20:42:38]SAM_PROTO_SignData [20:42:38]wFMCommunicate request_size=4 [20:42:38]MH_SAM_APDU [20:42:38]CAPDU: 80 0D 01 02 [20:42:38]Write to MH i2c: E2 08 00 6D 20 80 0D 01 02 00 00 00 00 06 [20:42:38]Write i2c OK [20:42:38]MH_I2C_Read... [20:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:38]Read from MH i2c: E2 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 03 00 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 03 00 6D 20 00 90 00 01 [20:42:38]RAPDU: 90 00 [20:42:38]wFMCommunicate OK [20:42:38]wFMCommunicate request_size=255 [20:42:38]MH_SAM_APDU [20:42:38]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BF 5F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 [20:42:38]Write to MH i2c: E2 02 01 6E 20 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BF 5F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 00 00 EA [20:42:38]Write i2c OK [20:42:38]MH_I2C_Read... [20:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:38]Read from MH i2c: E2 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 03 00 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 03 00 6E 20 00 90 00 02 [20:42:38]RAPDU: 90 00 [20:42:38]wFMCommunicate OK [20:42:38]wFMCommunicate request_size=34 [20:42:38]MH_SAM_APDU [20:42:38]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 27 01 00 35 04 06 00 CE 4B 14 C4 AD C5 [20:42:38]Write to MH i2c: E2 25 00 6F 20 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 27 01 00 35 04 06 00 CE 4B 14 C4 AD C5 00 00 61 [20:42:38]Write i2c OK [20:42:38]MH_I2C_Read... [20:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:38]Read from MH i2c: E2 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 03 00 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 03 00 6F 20 00 90 00 03 [20:42:38]RAPDU: 90 00 [20:42:38]wFMCommunicate OK [20:42:38]wFMCommunicate request_size=4 [20:42:38]MH_SAM_APDU [20:42:38]CAPDU: 80 0D 03 02 [20:42:38]Write to MH i2c: E2 08 00 70 20 80 0D 03 02 00 00 00 00 0B [20:42:38]Write i2c OK [20:42:38]MH_I2C_Read... [20:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:38]Read from MH i2c: E2 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 0B 00 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 0B 00 70 20 00 D1 E6 92 9F 30 96 24 E5 90 00 C3 [20:42:38]RAPDU: D1 E6 92 9F 30 96 24 E5 90 00 [20:42:38]wFMCommunicate OK [20:42:38]SAM_PROTO_SignData done [20:42:38]FM_MakeSignedData done [20:42:38]CreateOFDProtocolMessage [20:42:38]wFMCommunicate request_size=4 [20:42:38]MH_SAM_APDU [20:42:38]CAPDU: 80 11 00 00 [20:42:38]Write to MH i2c: E2 08 00 71 20 80 11 00 00 00 00 00 00 0B [20:42:38]Write i2c OK [20:42:38]MH_I2C_Read... [20:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:39]Read from MH i2c: E2 [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: E2 17 00 [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: E2 17 00 71 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 58 [20:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:42:39]wFMCommunicate OK [20:42:39]CreateOFDProtocolMessage done [20:42:39]OFDSenderStorePacket 75538 [20:42:39]StoreOFDPacket docnum=75538 [20:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 9C CD 1F 01 B7 A3 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BF 5F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 27 01 00 35 04 06 00 CE 4B 14 C4 AD C5 D1 E6 92 9F 30 96 24 E5 [20:42:39]CheckFolder [20:42:39]dirname=/storage/ofd_packets [20:42:39]CheckFolder done [20:42:39]ProducePacketName [20:42:39]name=ofd_packets/00075538 [20:42:39]NVStorageSaveData ofd_packets/00075538 [20:42:39]File name is /storage/ofd_packets/00075538 [20:42:39]Write 325 bytes [20:42:39]NVStorageSaveData done [20:42:39]OFDSenderStorePacket done [20:42:39]KKMCreateOFDPacket done [20:42:39]NVStorageSaveData kkm_last_timestamp [20:42:39]File name is /storage/kkm_last_timestamp [20:42:39]Write 4 bytes [20:42:39]NVStorageSaveData done [20:42:39]ExternCall_PrintAddStr [20:42:39]wPrintStart [20:42:39]Write to MH i2c: 01 00 00 72 20 92 [20:42:39]Write i2c OK [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: 01 [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: 01 07 00 [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: 01 07 00 72 20 00 00 00 00 00 FF 0F A7 [20:42:39]RasterBufferAndPrint [20:42:39]line Счет N : (3)273303 [20:42:39]line ИНН: 02508201610067 [20:42:39]line Контрольно-Кассовый Чек [20:42:39]line ПРОДАЖА [20:42:39]line Товар: 48743587 [20:42:39]line Сигареты Winston XStyle Silver [20:42:39]line 1.000 * 140.00 [20:42:39]line = 140.00 [20:42:39]line НДС 12% НСП 1% [20:42:39]line > о реализуемом товаре [20:42:39]line ИТОГО: 140.00 [20:42:39]line НСП 1% : 1.24 [20:42:39]line НДС 12% : 14.87 [20:42:39]line Наличными: 140.00 [20:42:39]line Безнал.: 0.00 [20:42:39]line Место: АЗС № 133 "Партнер Нефть" [20:42:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:42:39]line СНО: Общий режим [20:42:39]line Чек 271 23.10.2024 20:42 [20:42:39]line Смена: 173 ФФД: 1.0 [20:42:39]line ЗНМ: 0300000020 [20:42:39]line РНМ: 0000000000161154 [20:42:39]line Версия ККМ: v1.0 [20:42:39]line ФМ: 0000000000963323 [20:42:39]line ФД: 75538 [20:42:39]line ФПД: 226821866302917 [20:42:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T204239&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75538&fm=226821866302917&tin=02508201610067®Number=0000000000161154&sum=14000 [20:42:39]line 0 [20:42:39]OFD Sender: Processing packet 75538 [packets to send 16, broken 15] [20:42:39]ProducePacketName [20:42:39]name=ofd_packets/00075538 [20:42:39]OFD Sender: To server: pG, [20:42:39]CommunicateWithHost lk.salyk.kg:30040 [20:42:39]ConnectInit lk.salyk.kg [20:42:39]written 0, free lines is 4095 [20:42:39]Connected sock=8 [20:42:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 27 01 00 00 9C CD 1F 01 B7 A3 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BF 5F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 27 01 00 35 04 06 00 CE 4B 14 C4 AD C5 D1 E6 92 9F 30 96 24 E5 [20:42:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 7B A4 47 00 F6 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 12 27 01 00 F4 03 04 00 99 08 19 67 B6 04 01 00 00 BE B7 4D 3A 5F F9 86 C2 [20:42:39]CommunicateWithHost err = 0 [20:42:39]CheckOFDResponse [20:42:39]1017 (14) - 77093643461234 [20:42:39]1041 (16) - 0000000000963323 [20:42:39]1040 (4) - 75538 [20:42:39]1012 (4) - 23.10.2024 14:30 [20:42:39]1206 (1) - 0 [20:42:39]OFD Sender: Remove packet 75538 [20:42:39]ProducePacketName [20:42:39]name=ofd_packets/00075538 [20:42:39]NVStorageDeleteData [20:42:39]Write to MH i2c: 01 00 00 9A 20 BA [20:42:39]Write i2c OK [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: 01 [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: 01 07 00 [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: 01 07 00 9A 20 00 00 00 00 00 CE 0C 9B [20:42:39]RasterBufferAndPrint [20:42:39]line [20:42:39]line [20:42:39]line [20:42:39]line [20:42:39]line [20:42:39]written 0, free lines is 3281 [20:42:39]MH_Cut [20:42:39]Write to MH i2c: D1 01 00 A1 20 01 93 [20:42:39]Write i2c OK [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: D1 [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: D1 01 00 [20:42:39]MH_I2C_Read... [20:42:39]Read from MH i2c: D1 01 00 A1 20 00 92 [20:42:39]Write to MH i2c: 01 00 00 A2 20 C2 [20:42:39]Write i2c OK [20:42:39]MH_I2C_Read... [20:42:40]OFD Sender: No OFD packet to send [20:42:40]*** Cut start [20:42:40]*** Partial cut [20:42:40]*** CUTSNS_PIN = 1 [20:42:40]*** CUTSNS_PIN = 0 [20:42:40]*** Brake cut motor [20:42:41]Read from MH i2c: 01 [20:42:41]MH_I2C_Read... [20:42:41]*** Stop cut motor [20:42:41]*** Cut end [20:42:41]Read from MH i2c: 01 07 00 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: 01 07 00 A2 20 00 00 00 00 00 FF 0F D7 [20:42:41]process_action close_receipt done [20:42:41]requested_data is exist [20:42:41]produce_requested_data [20:42:41]requested_item fm.sn is exist - process it [20:42:41]wFMCommunicate request_size=4 [20:42:41]MH_SAM_APDU [20:42:41]CAPDU: 80 11 00 00 [20:42:41]Write to MH i2c: E2 08 00 A3 20 80 11 00 00 00 00 00 00 3D [20:42:41]Write i2c OK [20:42:41]MH_I2C_Read... [20:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:41]Read from MH i2c: E2 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 17 00 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 17 00 A3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8A [20:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:42:41]wFMCommunicate OK [20:42:41]requested_item fd.num is exist - process it [20:42:41]SAM_PROTO_GetFieldsCounters [20:42:41]wFMCommunicate request_size=4 [20:42:41]MH_SAM_APDU [20:42:41]CAPDU: 80 13 00 00 [20:42:41]Write to MH i2c: E2 08 00 A4 20 80 13 00 00 00 00 00 00 40 [20:42:41]Write i2c OK [20:42:41]MH_I2C_Read... [20:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:41]Read from MH i2c: E2 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 62 00 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 62 00 A4 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 12 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 6B [20:42:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 12 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:41]wFMCommunicate OK [20:42:41]SAM_PROTO_GetFieldsCounters done [20:42:41]requested_item shift.num is exist - process it [20:42:41]requested_item shift.opened is exist - process it [20:42:41]req_shift_opened [20:42:41]FM_GetShiftState [20:42:41]SAM_PROTO_GetShiftState [20:42:41]wFMCommunicate request_size=4 [20:42:41]MH_SAM_APDU [20:42:41]CAPDU: 80 13 01 00 [20:42:41]Write to MH i2c: E2 08 00 A5 20 80 13 01 00 00 00 00 00 42 [20:42:41]Write i2c OK [20:42:41]MH_I2C_Read... [20:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:41]Read from MH i2c: E2 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 0E 00 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 0E 00 A5 20 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A7 [20:42:41]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:42:41]wFMCommunicate OK [20:42:41]SAM_PROTO_GetShiftState done [20:42:41]FM_GetShiftState done [20:42:41]req_shift_opened done [20:42:41]requested_item shift.open_date is exist - process it [20:42:41]req_shift_open_date [20:42:41]req_shift_open_date done [20:42:41]produce_requested_data done [20:42:41]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75538,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [20:42:41]process_action_free close_receipt [20:42:41]json_value_free [20:42:41]json_value_free done [20:42:41]process_json_proto returns [20:42:41]Send response to host [20:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75538,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [20:42:41]free response buf [20:42:41]execute_script done [20:42:41]execute_script returns [20:42:41]free content buf [20:42:41]Sock 6.Close socket [20:42:41]Sock 6.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:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]accept exits with 5 [20:51:20]New connection [20:51:20]New thread 3066608996 created [20:51:20]Thread 3066465636 joined [20:51:20]Waiting for new connection... [20:51:20] Sock 5.Parse request [20:51:20]Sock 5.Check first char [20:51:20]Sock 5.First char is OK [20:51:20]request: POST /json_proto HTTP/1.0 [20:51:20]Method: POST [20:51:20]URL: /json_proto [20:51:20]Method is POST - this is cgi request [20:51:20]url: /json_proto [20:51:20]query_string will be loaded in cgi processing [20:51:20]execute_cgi json_proto POST (null) [20:51:20]execute_cgi path=json_proto method=POST [20:51:20]POST find Content-Length [20:51:20]Host: 172.17.44.196:8080 [20:51:20]Content-Length: 995 [20:51:20]Content-Type: application/json [20:51:20] [20:51:20]POST finish read [20:51:20]Found Content-Length = 995 [20:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273304", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.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: Mbank", "payments": [ { "type": 1, "sum" : 370.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:20]execute_script... [20:51: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)273304", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.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: Mbank", "payments": [ { "type": 1, "sum" : 370.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:20]POST & json_proto [20:51:20]process_json_proto [20:51:20]json parsed OK: [20:51:20]protocol is kg_v1.0 [20:51:20]action value=close_receipt [20:51:20]process_action close_receipt [20:51:20]cmd_close_receipt [20:51:20]MH_GetDate [20:51:20]Write to MH i2c: F0 00 00 A6 20 B5 [20:51:20]Write i2c OK [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: F0 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: F0 09 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: F0 09 00 A6 20 00 CA 61 19 67 E7 19 F8 65 C6 [20:51:20]GetLastDocTimeStamp 1729716159 [20:51:20]current date 1729716682 [20:51:20]FM_GetShiftState [20:51:20]SAM_PROTO_GetShiftState [20:51:20]wFMCommunicate request_size=4 [20:51:20]MH_SAM_APDU [20:51:20]CAPDU: 80 13 01 00 [20:51:20]Write to MH i2c: E2 08 00 A7 20 80 13 01 00 00 00 00 00 44 [20:51:20]Write i2c OK [20:51:20]MH_I2C_Read... [20:51:20]OFD Sender: No OFD packet to send [20:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:20]Read from MH i2c: E2 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: E2 0E 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: E2 0E 00 A7 20 00 09 00 01 99 41 18 67 00 00 00 00 90 00 A9 [20:51:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:51:20]wFMCommunicate OK [20:51:20]SAM_PROTO_GetShiftState done [20:51:20]FM_GetShiftState done [20:51:20]opened in 1729642905 [20:51:20]opened+sec_in_day 1729729305 [20:51:20]quantity*price = 26000 [20:51:20]sum+1 = 26001 [20:51:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 2.000 * 55.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 370.00 НСП 1% : 3.27 НДС 12% : 39.29 Наличными: 0.00 Безнал.: 370.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 272 23.10.2024 20:51 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75539 ФПД: 75171249675397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205122&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75539&fm=75171249675397&tin=02508201610067®Number=0000000000161154&sum=37000 0 [20:51:21]StoreToDocumentArchive [20:51:21]shift 173 fd 75539 [20:51:21]save to /storage/0173/doc_00075539 [20:51:21]save last doc name /storage/0173/doc_00075539 to /storage/kkm_last_doc_name [20:51:21]save OK [20:51:21]Clear old archive folders... [20:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=387 [20:51:21]tlvbuf is B6E6DB50 [20:51:21]SAM_PROTO_ClearQueue [20:51:21]wFMCommunicate request_size=4 [20:51:21]MH_SAM_APDU [20:51:21]CAPDU: 80 09 00 00 [20:51:21]Write to MH i2c: E2 08 00 B4 20 80 09 00 00 00 00 00 00 46 [20:51:21]Write i2c OK [20:51:21]MH_I2C_Read... [20:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:21]Read from MH i2c: E2 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: E2 03 00 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: E2 03 00 B4 20 00 90 00 48 [20:51:21]RAPDU: 90 00 [20:51:21]wFMCommunicate OK [20:51:21]SAM_PROTO_ClearQueue done [20:51:21]KKMCreateOFDPacket [20:51:21]OFDProtocolAddRootSTLVToBuf [20:51:21]FM_MakeSignedData [20:51:21]FM_MakeSignedData [20:51:21]SAM_PROTO_SignData [20:51:21]wFMCommunicate request_size=4 [20:51:21]MH_SAM_APDU [20:51:21]CAPDU: 80 0D 01 02 [20:51:21]Write to MH i2c: E2 08 00 B5 20 80 0D 01 02 00 00 00 00 4E [20:51:21]Write i2c OK [20:51:21]MH_I2C_Read... [20:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:21]Read from MH i2c: E2 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: E2 03 00 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: E2 03 00 B5 20 00 90 00 49 [20:51:21]RAPDU: 90 00 [20:51:21]wFMCommunicate OK [20:51:21]wFMCommunicate request_size=255 [20:51:21]MH_SAM_APDU [20:51:21]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [20:51:21]Write to MH i2c: E2 02 01 B6 20 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 93 [20:51:21]Write i2c OK [20:51:21]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 03 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 03 00 B6 20 00 90 00 4A [20:51:22]RAPDU: 90 00 [20:51:22]wFMCommunicate OK [20:51:22]wFMCommunicate request_size=146 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 0D 02 02 8D 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 CA 61 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 27 01 00 35 04 06 00 44 5E 2B A2 5C 85 [20:51:22]Write to MH i2c: E2 95 00 B7 20 80 0D 02 02 8D 00 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 CA 61 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 27 01 00 35 04 06 00 44 5E 2B A2 5C 85 00 00 50 [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 03 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 03 00 B7 20 00 90 00 4B [20:51:22]RAPDU: 90 00 [20:51:22]wFMCommunicate OK [20:51:22]wFMCommunicate request_size=4 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 0D 03 02 [20:51:22]Write to MH i2c: E2 08 00 B8 20 80 0D 03 02 00 00 00 00 53 [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 0B 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 0B 00 B8 20 00 65 98 92 A2 60 E0 DF A5 90 00 49 [20:51:22]RAPDU: 65 98 92 A2 60 E0 DF A5 90 00 [20:51:22]wFMCommunicate OK [20:51:22]SAM_PROTO_SignData done [20:51:22]FM_MakeSignedData done [20:51:22]CreateOFDProtocolMessage [20:51:22]wFMCommunicate request_size=4 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 11 00 00 [20:51:22]Write to MH i2c: E2 08 00 B9 20 80 11 00 00 00 00 00 00 53 [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 17 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 17 00 B9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A0 [20:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:51:22]wFMCommunicate OK [20:51:22]CreateOFDProtocolMessage done [20:51:22]OFDSenderStorePacket 75539 [20:51:22]StoreOFDPacket docnum=75539 [20:51:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 97 01 00 00 AD FB 8F 01 93 8A 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 CA 61 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 27 01 00 35 04 06 00 44 5E 2B A2 5C 85 65 98 92 A2 60 E0 DF A5 [20:51:22]CheckFolder [20:51:22]dirname=/storage/ofd_packets [20:51:22]CheckFolder done [20:51:22]ProducePacketName [20:51:22]name=ofd_packets/00075539 [20:51:22]NVStorageSaveData ofd_packets/00075539 [20:51:22]File name is /storage/ofd_packets/00075539 [20:51:22]Write 437 bytes [20:51:22]NVStorageSaveData done [20:51:22]OFDSenderStorePacket done [20:51:22]KKMCreateOFDPacket done [20:51:22]NVStorageSaveData kkm_last_timestamp [20:51:22]File name is /storage/kkm_last_timestamp [20:51:22]Write 4 bytes [20:51:22]NVStorageSaveData done [20:51:22]ExternCall_PrintAddStr [20:51:22]wPrintStart [20:51:22]Write to MH i2c: 01 00 00 BA 20 DA [20:51:22]OFD Sender: Processing packet 75539 [packets to send 16, broken 15] [20:51:22]ProducePacketName [20:51:22]name=ofd_packets/00075539 [20:51:22]OFD Sender: To server: pG, [20:51:22]CommunicateWithHost lk.salyk.kg:30040 [20:51:22]ConnectInit lk.salyk.kg [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: 01 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: 01 07 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: 01 07 00 BA 20 00 00 00 00 00 FF 0F EF [20:51:22]RasterBufferAndPrint [20:51:22]line Счет N : (3)273304 [20:51:22]line ИНН: 02508201610067 [20:51:22]line Контрольно-Кассовый Чек [20:51:22]line ПРОДАЖА [20:51:22]line Товар: 2000036220012 [20:51:22]line Кофе Капучино XL(GABB TRADE) [20:51:22]line 2.000 * 130.00 [20:51:22]line = 260.00 [20:51:22]line НДС 12% НСП 1% [20:51:22]line > о реализуемом товаре [20:51:22]line Товар: 4870112003925 [20:51:22]line Конд ULKER-Albeni 40gr (6*24) [20:51:22]line 2.000 * 55.00 [20:51:22]line = 110.00 [20:51:22]line НДС 12% НСП 1% [20:51:22]line > о реализуемом товаре [20:51:22]line ИТОГО: 370.00 [20:51:22]line НСП 1% : 3.27 [20:51:22]line НДС 12% : 39.29 [20:51:22]line Наличными: 0.00 [20:51:22]line Безнал.: 370.00 [20:51:22]line Место: АЗС № 133 "Партнер Нефть" [20:51:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:51:22]line СНО: Общий режим [20:51:22]line Чек 272 23.10.2024 20:51 [20:51:22]line Смена: 173 ФФД: 1.0 [20:51:22]line ЗНМ: 0300000020 [20:51:22]line РНМ: 0000000000161154 [20:51:22]line Версия ККМ: v1.0 [20:51:22]line Платежная система: Mbank [20:51:22]line ФМ: 0000000000963323 [20:51:22]line ФД: 75539 [20:51:22]line ФПД: 75171249675397 [20:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205122&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75539&fm=75171249675397&tin=02508201610067®Number=0000000000161154&sum=37000 [20:51:22]line 0 [20:51:22]written 0, free lines is 4095 [20:51:22]Connected sock=8 [20:51:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 97 01 00 00 AD FB 8F 01 93 8A 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 CA 61 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 27 01 00 35 04 06 00 44 5E 2B A2 5C 85 65 98 92 A2 60 E0 DF A5 [20:51:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 96 16 47 00 1E AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 13 27 01 00 F4 03 04 00 A4 0A 19 67 B6 04 01 00 00 EC 39 83 1B A4 AE B9 22 [20:51:23]CommunicateWithHost err = 0 [20:51:23]CheckOFDResponse [20:51:23]1017 (14) - 77093643461234 [20:51:23]1041 (16) - 0000000000963323 [20:51:23]1040 (4) - 75539 [20:51:23]1012 (4) - 23.10.2024 14:39 [20:51:23]1206 (1) - 0 [20:51:23]OFD Sender: Remove packet 75539 [20:51:23]ProducePacketName [20:51:23]name=ofd_packets/00075539 [20:51:23]NVStorageDeleteData [20:51:23]Write to MH i2c: 01 00 00 E9 20 09 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: 01 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: 01 07 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: 01 07 00 E9 20 00 00 00 00 00 57 0C 73 [20:51:23]RasterBufferAndPrint [20:51:23]line [20:51:23]line [20:51:23]line [20:51:23]line [20:51:23]line [20:51:23]written 0, free lines is 3165 [20:51:23]MH_Cut [20:51:23]Write to MH i2c: D1 01 00 F0 20 01 E2 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: D1 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: D1 01 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: D1 01 00 F0 20 00 E1 [20:51:23]Write to MH i2c: 01 00 00 F1 20 11 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]OFD Sender: No OFD packet to send [20:51:24]*** Cut start [20:51:24]*** Partial cut [20:51:24]*** CUTSNS_PIN = 1 [20:51:24]*** CUTSNS_PIN = 0 [20:51:24]*** Brake cut motor [20:51:24]Read from MH i2c: 01 [20:51:24]MH_I2C_Read... [20:51:24]*** Stop cut motor [20:51:24]*** Cut end [20:51:24]Read from MH i2c: 01 07 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 F1 20 00 00 00 00 00 FF 0F 26 [20:51:24]process_action close_receipt done [20:51:24]requested_data is exist [20:51:24]produce_requested_data [20:51:24]requested_item fm.sn is exist - process it [20:51:24]wFMCommunicate request_size=4 [20:51:24]MH_SAM_APDU [20:51:24]CAPDU: 80 11 00 00 [20:51:24]Write to MH i2c: E2 08 00 F2 20 80 11 00 00 00 00 00 00 8C [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:24]Read from MH i2c: E2 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 17 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 17 00 F2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D9 [20:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:51:24]wFMCommunicate OK [20:51:24]requested_item fd.num is exist - process it [20:51:24]SAM_PROTO_GetFieldsCounters [20:51:24]wFMCommunicate request_size=4 [20:51:24]MH_SAM_APDU [20:51:24]CAPDU: 80 13 00 00 [20:51:24]Write to MH i2c: E2 08 00 F3 20 80 13 00 00 00 00 00 00 8F [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:25]Read from MH i2c: E2 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 62 00 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 62 00 F3 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 13 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [20:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 13 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:25]wFMCommunicate OK [20:51:25]SAM_PROTO_GetFieldsCounters done [20:51:25]requested_item shift.num is exist - process it [20:51:25]requested_item shift.opened is exist - process it [20:51:25]req_shift_opened [20:51:25]FM_GetShiftState [20:51:25]SAM_PROTO_GetShiftState [20:51:25]wFMCommunicate request_size=4 [20:51:25]MH_SAM_APDU [20:51:25]CAPDU: 80 13 01 00 [20:51:25]Write to MH i2c: E2 08 00 F4 20 80 13 01 00 00 00 00 00 91 [20:51:25]Write i2c OK [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 [20:51:25]MH_I2C_Read... [20:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:25]Read from MH i2c: E2 0E 00 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 0E 00 F4 20 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F6 [20:51:25]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:51:25]wFMCommunicate OK [20:51:25]SAM_PROTO_GetShiftState done [20:51:25]FM_GetShiftState done [20:51:25]req_shift_opened done [20:51:25]requested_item shift.open_date is exist - process it [20:51:25]req_shift_open_date [20:51:25]req_shift_open_date done [20:51:25]produce_requested_data done [20:51:25]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75539,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [20:51:25]process_action_free close_receipt [20:51:25]json_value_free [20:51:25]json_value_free done [20:51:25]process_json_proto returns [20:51:25]Send response to host [20:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75539,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [20:51:25]free response buf [20:51:25]execute_script done [20:51:25]execute_script returns [20:51:25]free content buf [20:51:25]Sock 5.Close socket [20:51:25]Sock 5.Thread stoped [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:41]accept exits with 6 [20:55:41]New connection [20:55:41]New thread 3066465636 created [20:55:41]Thread 3066608996 joined [20:55:41]Waiting for new connection... [20:55:41] Sock 6.Parse request [20:55:41]Sock 6.Check first char [20:55:41]Sock 6.First char is OK [20:55:41]request: POST /json_proto HTTP/1.0 [20:55:41]Method: POST [20:55:41]URL: /json_proto [20:55:41]Method is POST - this is cgi request [20:55:41]url: /json_proto [20:55:41]query_string will be loaded in cgi processing [20:55:41]execute_cgi json_proto POST (null) [20:55:41]execute_cgi path=json_proto method=POST [20:55:41]POST find Content-Length [20:55:41]Host: 172.17.44.196:8080 [20:55:41]Content-Length: 625 [20:55:41]Content-Type: application/json [20:55:41] [20:55:41]POST finish read [20:55:41]Found Content-Length = 625 [20:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273305", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:41]execute_script... [20:55:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273305", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:41]POST & json_proto [20:55:41]process_json_proto [20:55:41]json parsed OK: [20:55:41]protocol is kg_v1.0 [20:55:41]action value=close_receipt [20:55:41]process_action close_receipt [20:55:41]cmd_close_receipt [20:55:41]MH_GetDate [20:55:41]Write to MH i2c: F0 00 00 F5 20 04 [20:55:41]Write i2c OK [20:55:41]MH_I2C_Read... [20:55:41]Read from MH i2c: F0 [20:55:41]MH_I2C_Read... [20:55:41]Read from MH i2c: F0 09 00 [20:55:41]MH_I2C_Read... [20:55:41]Read from MH i2c: F0 09 00 F5 20 00 CF 62 19 67 E7 19 F8 65 1B [20:55:41]GetLastDocTimeStamp 1729716682 [20:55:41]current date 1729716943 [20:55:41]FM_GetShiftState [20:55:41]SAM_PROTO_GetShiftState [20:55:41]wFMCommunicate request_size=4 [20:55:41]MH_SAM_APDU [20:55:41]CAPDU: 80 13 01 00 [20:55:41]Write to MH i2c: E2 08 00 F6 20 80 13 01 00 00 00 00 00 93 [20:55:41]Write i2c OK [20:55:41]MH_I2C_Read... [20:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:41]Read from MH i2c: E2 [20:55:41]MH_I2C_Read... [20:55:41]Read from MH i2c: E2 0E 00 [20:55:41]MH_I2C_Read... [20:55:41]Read from MH i2c: E2 0E 00 F6 20 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F8 [20:55:41]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:55:41]wFMCommunicate OK [20:55:41]SAM_PROTO_GetShiftState done [20:55:41]FM_GetShiftState done [20:55:41]opened in 1729642905 [20:55:41]opened+sec_in_day 1729729305 [20:55:41]quantity*price = 15000 [20:55:41]sum+1 = 15001 [20:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 273 23.10.2024 20:55 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75540 ФПД: 218932731921336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205543&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75540&fm=218932731921336&tin=02508201610067®Number=0000000000161154&sum=15000 0 [20:55:42]StoreToDocumentArchive [20:55:42]shift 173 fd 75540 [20:55:42]save to /storage/0173/doc_00075540 [20:55:42]save last doc name /storage/0173/doc_00075540 to /storage/kkm_last_doc_name [20:55:42]save OK [20:55:42]Clear old archive folders... [20:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=277 [20:55:42]tlvbuf is 007934B0 [20:55:42]SAM_PROTO_ClearQueue [20:55:42]wFMCommunicate request_size=4 [20:55:42]MH_SAM_APDU [20:55:42]CAPDU: 80 09 00 00 [20:55:42]Write to MH i2c: E2 08 00 03 21 80 09 00 00 00 00 00 00 96 [20:55:42]Write i2c OK [20:55:42]MH_I2C_Read... [20:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:42]Read from MH i2c: E2 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 03 21 00 90 00 98 [20:55:42]RAPDU: 90 00 [20:55:42]wFMCommunicate OK [20:55:42]SAM_PROTO_ClearQueue done [20:55:42]KKMCreateOFDPacket [20:55:42]OFDProtocolAddRootSTLVToBuf [20:55:42]FM_MakeSignedData [20:55:42]FM_MakeSignedData [20:55:42]SAM_PROTO_SignData [20:55:42]wFMCommunicate request_size=4 [20:55:42]MH_SAM_APDU [20:55:42]CAPDU: 80 0D 01 02 [20:55:42]Write to MH i2c: E2 08 00 04 21 80 0D 01 02 00 00 00 00 9E [20:55:42]Write i2c OK [20:55:42]MH_I2C_Read... [20:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:42]Read from MH i2c: E2 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 04 21 00 90 00 99 [20:55:42]RAPDU: 90 00 [20:55:42]wFMCommunicate OK [20:55:42]wFMCommunicate request_size=255 [20:55:42]MH_SAM_APDU [20:55:42]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 CF 62 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 [20:55:42]Write to MH i2c: E2 02 01 05 21 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 CF 62 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 00 00 EF [20:55:42]Write i2c OK [20:55:42]MH_I2C_Read... [20:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:42]Read from MH i2c: E2 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 05 21 00 90 00 9A [20:55:42]RAPDU: 90 00 [20:55:42]wFMCommunicate OK [20:55:42]wFMCommunicate request_size=36 [20:55:42]MH_SAM_APDU [20:55:42]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 27 01 00 35 04 06 00 C7 1E 3F B7 43 B8 [20:55:42]Write to MH i2c: E2 27 00 06 21 80 0D 02 02 1F 00 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 27 01 00 35 04 06 00 C7 1E 3F B7 43 B8 00 00 D2 [20:55:42]Write i2c OK [20:55:42]MH_I2C_Read... [20:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:42]Read from MH i2c: E2 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 06 21 00 90 00 9B [20:55:42]RAPDU: 90 00 [20:55:42]wFMCommunicate OK [20:55:42]wFMCommunicate request_size=4 [20:55:42]MH_SAM_APDU [20:55:42]CAPDU: 80 0D 03 02 [20:55:42]Write to MH i2c: E2 08 00 07 21 80 0D 03 02 00 00 00 00 A3 [20:55:42]Write i2c OK [20:55:42]MH_I2C_Read... [20:55:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:42]Read from MH i2c: E2 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 0B 00 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 0B 00 07 21 00 08 56 A2 BC A0 DA 42 2B 90 00 47 [20:55:42]RAPDU: 08 56 A2 BC A0 DA 42 2B 90 00 [20:55:42]wFMCommunicate OK [20:55:42]SAM_PROTO_SignData done [20:55:42]FM_MakeSignedData done [20:55:42]CreateOFDProtocolMessage [20:55:42]wFMCommunicate request_size=4 [20:55:42]MH_SAM_APDU [20:55:42]CAPDU: 80 11 00 00 [20:55:42]Write to MH i2c: E2 08 00 08 21 80 11 00 00 00 00 00 00 A3 [20:55:42]Write i2c OK [20:55:42]MH_I2C_Read... [20:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:43]Read from MH i2c: E2 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 17 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 17 00 08 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F0 [20:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:55:43]wFMCommunicate OK [20:55:43]CreateOFDProtocolMessage done [20:55:43]OFDSenderStorePacket 75540 [20:55:43]StoreOFDPacket docnum=75540 [20:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 29 01 00 00 16 70 21 01 78 94 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 CF 62 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 27 01 00 35 04 06 00 C7 1E 3F B7 43 B8 08 56 A2 BC A0 DA 42 2B [20:55:43]CheckFolder [20:55:43]dirname=/storage/ofd_packets [20:55:43]CheckFolder done [20:55:43]ProducePacketName [20:55:43]name=ofd_packets/00075540 [20:55:43]NVStorageSaveData ofd_packets/00075540 [20:55:43]File name is /storage/ofd_packets/00075540 [20:55:43]Write 327 bytes [20:55:43]NVStorageSaveData done [20:55:43]OFDSenderStorePacket done [20:55:43]KKMCreateOFDPacket done [20:55:43]NVStorageSaveData kkm_last_timestamp [20:55:43]File name is /storage/kkm_last_timestamp [20:55:43]Write 4 bytes [20:55:43]NVStorageSaveData done [20:55:43]ExternCall_PrintAddStr [20:55:43]wPrintStart [20:55:43]Write to MH i2c: 01 00 00 09 21 2A [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 07 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 07 00 09 21 00 00 00 00 00 FF 0F 3F [20:55:43]RasterBufferAndPrint [20:55:43]line Счет N : (3)273305 [20:55:43]line ИНН: 02508201610067 [20:55:43]line Контрольно-Кассовый Чек [20:55:43]line ПРОДАЖА [20:55:43]line Товар: 46230607 [20:55:43]line Сигареты Richmond Bronze Edition [20:55:43]line 1.000 * 150.00 [20:55:43]line = 150.00 [20:55:43]line НДС 12% НСП 1% [20:55:43]line > о реализуемом товаре [20:55:43]line ИТОГО: 150.00 [20:55:43]line НСП 1% : 1.33 [20:55:43]line НДС 12% : 15.93 [20:55:43]line Наличными: 150.00 [20:55:43]line Безнал.: 0.00 [20:55:43]line Место: АЗС № 133 "Партнер Нефть" [20:55:43]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [20:55:43]line СНО: Общий режим [20:55:43]line Чек 273 23.10.2024 20:55 [20:55:43]line Смена: 173 ФФД: 1.0 [20:55:43]line ЗНМ: 0300000020 [20:55:43]line РНМ: 0000000000161154 [20:55:43]line Версия ККМ: v1.0 [20:55:43]line ФМ: 0000000000963323 [20:55:43]line ФД: 75540 [20:55:43]line ФПД: 218932731921336 [20:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T205543&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75540&fm=218932731921336&tin=02508201610067®Number=0000000000161154&sum=15000 [20:55:43]line 0 [20:55:43]OFD Sender: Processing packet 75540 [packets to send 16, broken 15] [20:55:43]ProducePacketName [20:55:43]name=ofd_packets/00075540 [20:55:43]OFD Sender: To server: pG, [20:55:43]CommunicateWithHost lk.salyk.kg:30040 [20:55:43]ConnectInit lk.salyk.kg [20:55:43]written 0, free lines is 4095 [20:55:43]Connected sock=8 [20:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 29 01 00 00 16 70 21 01 78 94 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 CF 62 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 27 01 00 35 04 06 00 C7 1E 3F B7 43 B8 08 56 A2 BC A0 DA 42 2B [20:55:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 C4 F5 47 00 53 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 14 27 01 00 F4 03 04 00 A9 0B 19 67 B6 04 01 00 00 4D 2B 75 C4 2D 36 CD BB [20:55:43]CommunicateWithHost err = 0 [20:55:43]CheckOFDResponse [20:55:43]1017 (14) - 77093643461234 [20:55:43]1041 (16) - 0000000000963323 [20:55:43]1040 (4) - 75540 [20:55:43]1012 (4) - 23.10.2024 14:43 [20:55:43]1206 (1) - 0 [20:55:43]OFD Sender: Remove packet 75540 [20:55:43]ProducePacketName [20:55:43]name=ofd_packets/00075540 [20:55:43]NVStorageDeleteData [20:55:43]Write to MH i2c: 01 00 00 31 21 52 [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 07 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 07 00 31 21 00 00 00 00 00 C7 0C 2C [20:55:43]RasterBufferAndPrint [20:55:43]line [20:55:43]line [20:55:43]line [20:55:43]line [20:55:43]line [20:55:43]written 0, free lines is 3275 [20:55:43]MH_Cut [20:55:43]Write to MH i2c: D1 01 00 38 21 01 2B [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: D1 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: D1 01 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: D1 01 00 38 21 00 2A [20:55:43]Write to MH i2c: 01 00 00 39 21 5A [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:44]OFD Sender: No OFD packet to send [20:55:44]*** Cut start [20:55:44]*** Partial cut [20:55:44]*** CUTSNS_PIN = 1 [20:55:44]*** CUTSNS_PIN = 0 [20:55:45]*** Brake cut motor [20:55:45]Read from MH i2c: 01 [20:55:45]MH_I2C_Read... [20:55:45]*** Stop cut motor [20:55:45]*** Cut end [20:55:45]Read from MH i2c: 01 07 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: 01 07 00 39 21 00 00 00 00 00 FF 0F 6F [20:55:45]process_action close_receipt done [20:55:45]requested_data is exist [20:55:45]produce_requested_data [20:55:45]requested_item fm.sn is exist - process it [20:55:45]wFMCommunicate request_size=4 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 11 00 00 [20:55:45]Write to MH i2c: E2 08 00 3A 21 80 11 00 00 00 00 00 00 D5 [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:45]Read from MH i2c: E2 17 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 17 00 3A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 22 [20:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [20:55:45]wFMCommunicate OK [20:55:45]requested_item fd.num is exist - process it [20:55:45]SAM_PROTO_GetFieldsCounters [20:55:45]wFMCommunicate request_size=4 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 13 00 00 [20:55:45]Write to MH i2c: E2 08 00 3B 21 80 13 00 00 00 00 00 00 D8 [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 62 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 62 00 3B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 14 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [20:55:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 14 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:45]wFMCommunicate OK [20:55:45]SAM_PROTO_GetFieldsCounters done [20:55:45]requested_item shift.num is exist - process it [20:55:45]requested_item shift.opened is exist - process it [20:55:45]req_shift_opened [20:55:45]FM_GetShiftState [20:55:45]SAM_PROTO_GetShiftState [20:55:45]wFMCommunicate request_size=4 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 13 01 00 [20:55:45]Write to MH i2c: E2 08 00 3C 21 80 13 01 00 00 00 00 00 DA [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 0E 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 0E 00 3C 21 00 09 00 01 99 41 18 67 00 00 00 00 90 00 3F [20:55:45]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [20:55:45]wFMCommunicate OK [20:55:45]SAM_PROTO_GetShiftState done [20:55:45]FM_GetShiftState done [20:55:45]req_shift_opened done [20:55:45]requested_item shift.open_date is exist - process it [20:55:45]req_shift_open_date [20:55:45]req_shift_open_date done [20:55:45]produce_requested_data done [20:55:45]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75540,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [20:55:45]process_action_free close_receipt [20:55:45]json_value_free [20:55:45]json_value_free done [20:55:45]process_json_proto returns [20:55:45]Send response to host [20:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75540,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [20:55:45]free response buf [20:55:45]execute_script done [20:55:45]execute_script returns [20:55:45]free content buf [20:55:45]Sock 6.Close socket [20:55:45]Sock 6.Thread stoped [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:37]accept exits with 5 [21:01:37]New connection [21:01:37]New thread 3066608996 created [21:01:37]Thread 3066465636 joined [21:01:37]Waiting for new connection... [21:01:37] Sock 5.Parse request [21:01:37]Sock 5.Check first char [21:01:37]Sock 5.First char is OK [21:01:37]request: POST /json_proto HTTP/1.0 [21:01:37]Method: POST [21:01:37]URL: /json_proto [21:01:37]Method is POST - this is cgi request [21:01:37]url: /json_proto [21:01:37]query_string will be loaded in cgi processing [21:01:37]execute_cgi json_proto POST (null) [21:01:37]execute_cgi path=json_proto method=POST [21:01:37]POST find Content-Length [21:01:37]Host: 172.17.44.196:8080 [21:01:37]Content-Length: 1134 [21:01:37]Content-Type: application/json [21:01:37] [21:01:37]POST finish read [21:01:37]Found Content-Length = 1134 [21:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273306", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:37]execute_script... [21:01:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273306", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:37]POST & json_proto [21:01:37]process_json_proto [21:01:37]json parsed OK: [21:01:37]protocol is kg_v1.0 [21:01:37]action value=close_receipt [21:01:37]process_action close_receipt [21:01:37]cmd_close_receipt [21:01:37]MH_GetDate [21:01:37]Write to MH i2c: F0 00 00 3D 21 4D [21:01:37]Write i2c OK [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: F0 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: F0 09 00 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: F0 09 00 3D 21 00 34 64 19 67 E7 19 F8 65 CB [21:01:37]GetLastDocTimeStamp 1729716943 [21:01:37]current date 1729717300 [21:01:37]FM_GetShiftState [21:01:37]SAM_PROTO_GetShiftState [21:01:37]wFMCommunicate request_size=4 [21:01:37]MH_SAM_APDU [21:01:37]CAPDU: 80 13 01 00 [21:01:37]Write to MH i2c: E2 08 00 3E 21 80 13 01 00 00 00 00 00 DC [21:01:37]Write i2c OK [21:01:37]MH_I2C_Read... [21:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:37]Read from MH i2c: E2 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: E2 0E 00 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: E2 0E 00 3E 21 00 09 00 01 99 41 18 67 00 00 00 00 90 00 41 [21:01:37]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:01:37]wFMCommunicate OK [21:01:37]SAM_PROTO_GetShiftState done [21:01:37]FM_GetShiftState done [21:01:37]opened in 1729642905 [21:01:37]opened+sec_in_day 1729729305 [21:01:37]quantity*price = 5000 [21:01:37]sum+1 = 5001 [21:01:37]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 2.000 * 10.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.85 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 274 23.10.2024 21:01 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75541 ФПД: 26899355989971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210140&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75541&fm=26899355989971&tin=02508201610067®Number=0000000000161154&sum=30000 0 [21:01:38]StoreToDocumentArchive [21:01:38]shift 173 fd 75541 [21:01:38]save to /storage/0173/doc_00075541 [21:01:38]save last doc name /storage/0173/doc_00075541 to /storage/kkm_last_doc_name [21:01:38]save OK [21:01:38]Clear old archive folders... [21:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=482 [21:01:38]tlvbuf is 0079B060 [21:01:38]SAM_PROTO_ClearQueue [21:01:38]wFMCommunicate request_size=4 [21:01:38]MH_SAM_APDU [21:01:38]CAPDU: 80 09 00 00 [21:01:38]Write to MH i2c: E2 08 00 4B 21 80 09 00 00 00 00 00 00 DE [21:01:38]Write i2c OK [21:01:38]MH_I2C_Read... [21:01:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:38]Read from MH i2c: E2 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: E2 03 00 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: E2 03 00 4B 21 00 90 00 E0 [21:01:38]RAPDU: 90 00 [21:01:38]wFMCommunicate OK [21:01:38]SAM_PROTO_ClearQueue done [21:01:38]KKMCreateOFDPacket [21:01:38]OFDProtocolAddRootSTLVToBuf [21:01:38]FM_MakeSignedData [21:01:38]FM_MakeSignedData [21:01:38]SAM_PROTO_SignData [21:01:38]wFMCommunicate request_size=4 [21:01:38]MH_SAM_APDU [21:01:38]CAPDU: 80 0D 01 02 [21:01:38]Write to MH i2c: E2 08 00 4C 21 80 0D 01 02 00 00 00 00 E6 [21:01:38]Write i2c OK [21:01:38]MH_I2C_Read... [21:01:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:38]Read from MH i2c: E2 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: E2 03 00 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: E2 03 00 4C 21 00 90 00 E1 [21:01:38]RAPDU: 90 00 [21:01:38]wFMCommunicate OK [21:01:38]wFMCommunicate request_size=255 [21:01:38]MH_SAM_APDU [21:01:38]CAPDU: 80 0D 02 02 FA 03 00 E2 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 [21:01:38]Write to MH i2c: E2 02 01 4D 21 80 0D 02 02 FA 00 03 00 E2 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 00 00 D1 [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]OFD Sender: No OFD packet to send [21:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 4D 21 00 90 00 E2 [21:01:39]RAPDU: 90 00 [21:01:39]wFMCommunicate OK [21:01:39]wFMCommunicate request_size=241 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 0D 02 02 EC D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 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 71 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 12 01 00 00 F4 03 04 00 34 64 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 27 01 00 35 04 06 00 18 76 FE 8E F7 D3 [21:01:39]Write to MH i2c: E2 F4 00 4E 21 80 0D 02 02 EC 00 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 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 71 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 12 01 00 00 F4 03 04 00 34 64 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 27 01 00 35 04 06 00 18 76 FE 8E F7 D3 00 00 CE [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 4E 21 00 90 00 E3 [21:01:39]RAPDU: 90 00 [21:01:39]wFMCommunicate OK [21:01:39]wFMCommunicate request_size=4 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 0D 03 02 [21:01:39]Write to MH i2c: E2 08 00 4F 21 80 0D 03 02 00 00 00 00 EB [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 0B 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 0B 00 4F 21 00 08 7F 28 BE A4 28 7A E5 90 00 84 [21:01:39]RAPDU: 08 7F 28 BE A4 28 7A E5 90 00 [21:01:39]wFMCommunicate OK [21:01:39]SAM_PROTO_SignData done [21:01:39]FM_MakeSignedData done [21:01:39]CreateOFDProtocolMessage [21:01:39]wFMCommunicate request_size=4 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 11 00 00 [21:01:39]Write to MH i2c: E2 08 00 50 21 80 11 00 00 00 00 00 00 EB [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 17 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 17 00 50 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 38 [21:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:01:39]wFMCommunicate OK [21:01:39]CreateOFDProtocolMessage done [21:01:39]OFDSenderStorePacket 75541 [21:01:39]StoreOFDPacket docnum=75541 [21:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F6 01 00 00 DA 66 EE 01 2E 0A 5A 03 01 00 03 00 E2 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 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 71 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 12 01 00 00 F4 03 04 00 34 64 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 27 01 00 35 04 06 00 18 76 FE 8E F7 D3 08 7F 28 BE A4 28 7A E5 [21:01:39]CheckFolder [21:01:39]dirname=/storage/ofd_packets [21:01:39]CheckFolder done [21:01:39]ProducePacketName [21:01:39]name=ofd_packets/00075541 [21:01:39]NVStorageSaveData ofd_packets/00075541 [21:01:39]File name is /storage/ofd_packets/00075541 [21:01:39]Write 532 bytes [21:01:39]NVStorageSaveData done [21:01:39]OFDSenderStorePacket done [21:01:39]KKMCreateOFDPacket done [21:01:39]NVStorageSaveData kkm_last_timestamp [21:01:39]File name is /storage/kkm_last_timestamp [21:01:39]Write 4 bytes [21:01:39]NVStorageSaveData done [21:01:39]ExternCall_PrintAddStr [21:01:39]wPrintStart [21:01:39]Write to MH i2c: 01 00 00 51 21 72 [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 07 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 07 00 51 21 00 00 00 00 00 FF 0F 87 [21:01:39]RasterBufferAndPrint [21:01:39]line Счет N : (3)273306 [21:01:39]line ИНН: 02508201610067 [21:01:39]line Контрольно-Кассовый Чек [21:01:39]line ПРОДАЖА [21:01:39]line Товар: 4700000160358 [21:01:39]line Вода Легенда 1л [21:01:39]line 1.000 * 50.00 [21:01:39]line = 50.00 [21:01:39]line НДС 12% НСП 1% [21:01:39]line > о реализуемом товаре [21:01:39]line Товар: 2000036210013 [21:01:39]line Кофе Капучино (GABB TRADE) [21:01:39]line 2.000 * 115.00 [21:01:39]line = 230.00 [21:01:39]line НДС 12% НСП 1% [21:01:39]line > о реализуемом товаре [21:01:39]line Товар: 46226624 [21:01:39]line Mentos ПВ Клубника 6*100*2 [21:01:39]line 2.000 * 10.00 [21:01:39]line = 20.00 [21:01:39]line НДС 12% НСП 1% [21:01:39]line > о реализуемом товаре [21:01:39]line ИТОГО: 300.00 [21:01:39]line НСП 1% : 2.65 [21:01:39]line НДС 12% : 31.85 [21:01:39]line Наличными: 300.00 [21:01:39]line Безнал.: 0.00 [21:01:39]line Место: АЗС № 133 "Партнер Нефть" [21:01:39]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:01:39]line СНО: Общий режим [21:01:39]line Чек 274 23.10.2024 21:01 [21:01:39]line Смена: 173 ФФД: 1.0 [21:01:39]line ЗНМ: 0300000020 [21:01:39]line РНМ: 0000000000161154 [21:01:39]line Версия ККМ: v1.0 [21:01:39]line ФМ: 0000000000963323 [21:01:39]line ФД: 75541 [21:01:39]line ФПД: 26899355989971 [21:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210140&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75541&fm=26899355989971&tin=02508201610067®Number=0000000000161154&sum=30000 [21:01:39]line 0 [21:01:39]written 0, free lines is 4095 [21:01:40]OFD Sender: Processing packet 75541 [packets to send 16, broken 15] [21:01:40]ProducePacketName [21:01:40]name=ofd_packets/00075541 [21:01:40]OFD Sender: To server: pG, [21:01:40]CommunicateWithHost lk.salyk.kg:30040 [21:01:40]ConnectInit lk.salyk.kg [21:01:40]Connected sock=8 [21:01:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 F6 01 00 00 DA 66 EE 01 2E 0A 5A 03 01 00 03 00 E2 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 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 71 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 12 01 00 00 F4 03 04 00 34 64 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 15 27 01 00 35 04 06 00 18 76 FE 8E F7 D3 08 7F 28 BE A4 28 7A E5 [21:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A7 D4 47 00 72 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 39 36 33 33 32 33 10 04 04 00 15 27 01 00 F4 03 04 00 0E 0D 19 67 B6 04 01 00 00 54 5F 0C 1C 6C 94 5D 68 [21:01:40]CommunicateWithHost err = 0 [21:01:40]CheckOFDResponse [21:01:40]1017 (14) - 77093643461234 [21:01:40]1041 (16) - 0000000000963323 [21:01:40]1040 (4) - 75541 [21:01:40]1012 (4) - 23.10.2024 14:49 [21:01:40]1206 (1) - 0 [21:01:40]OFD Sender: Remove packet 75541 [21:01:40]ProducePacketName [21:01:40]name=ofd_packets/00075541 [21:01:40]NVStorageDeleteData [21:01:40]Write to MH i2c: 01 00 00 84 21 A5 [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 07 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 07 00 84 21 00 00 00 00 00 FF 0B B6 [21:01:40]RasterBufferAndPrint [21:01:40]line [21:01:40]line [21:01:40]line [21:01:40]line [21:01:40]line [21:01:40]written 0, free lines is 3076 [21:01:40]MH_Cut [21:01:40]Write to MH i2c: D1 01 00 8B 21 01 7E [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: D1 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: D1 01 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: D1 01 00 8B 21 00 7D [21:01:40]Write to MH i2c: 01 00 00 8C 21 AD [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]OFD Sender: No OFD packet to send [21:01:41]*** Cut start [21:01:41]*** Partial cut [21:01:41]*** CUTSNS_PIN = 1 [21:01:41]*** CUTSNS_PIN = 0 [21:01:41]*** Brake cut motor [21:01:42]Read from MH i2c: 01 [21:01:42]MH_I2C_Read... [21:01:42]*** Stop cut motor [21:01:42]*** Cut end [21:01:42]Read from MH i2c: 01 07 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 FF 0F C2 [21:01:42]process_action close_receipt done [21:01:42]requested_data is exist [21:01:42]produce_requested_data [21:01:42]requested_item fm.sn is exist - process it [21:01:42]wFMCommunicate request_size=4 [21:01:42]MH_SAM_APDU [21:01:42]CAPDU: 80 11 00 00 [21:01:42]Write to MH i2c: E2 08 00 8D 21 80 11 00 00 00 00 00 00 28 [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:42]Read from MH i2c: E2 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 17 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 17 00 8D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 75 [21:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:01:42]wFMCommunicate OK [21:01:42]requested_item fd.num is exist - process it [21:01:42]SAM_PROTO_GetFieldsCounters [21:01:42]wFMCommunicate request_size=4 [21:01:42]MH_SAM_APDU [21:01:42]CAPDU: 80 13 00 00 [21:01:42]Write to MH i2c: E2 08 00 8E 21 80 13 00 00 00 00 00 00 2B [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:42]Read from MH i2c: E2 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 62 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 62 00 8E 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 15 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [21:01:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 15 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:42]wFMCommunicate OK [21:01:42]SAM_PROTO_GetFieldsCounters done [21:01:42]requested_item shift.num is exist - process it [21:01:42]requested_item shift.opened is exist - process it [21:01:42]req_shift_opened [21:01:42]FM_GetShiftState [21:01:42]SAM_PROTO_GetShiftState [21:01:42]wFMCommunicate request_size=4 [21:01:42]MH_SAM_APDU [21:01:42]CAPDU: 80 13 01 00 [21:01:42]Write to MH i2c: E2 08 00 8F 21 80 13 01 00 00 00 00 00 2D [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:42]Read from MH i2c: E2 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 0E 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 0E 00 8F 21 00 09 00 01 99 41 18 67 00 00 00 00 90 00 92 [21:01:42]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:01:42]wFMCommunicate OK [21:01:42]SAM_PROTO_GetShiftState done [21:01:42]FM_GetShiftState done [21:01:42]req_shift_opened done [21:01:42]requested_item shift.open_date is exist - process it [21:01:42]req_shift_open_date [21:01:42]req_shift_open_date done [21:01:42]produce_requested_data done [21:01:42]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75541,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [21:01:42]process_action_free close_receipt [21:01:42]json_value_free [21:01:42]json_value_free done [21:01:42]process_json_proto returns [21:01:42]Send response to host [21:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75541,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [21:01:42]free response buf [21:01:42]execute_script done [21:01:42]execute_script returns [21:01:42]free content buf [21:01:42]Sock 5.Close socket [21:01:42]Sock 5.Thread stoped [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]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:18]accept exits with 6 [21:05:18]New connection [21:05:18]New thread 3066465636 created [21:05:18]Thread 3066608996 joined [21:05:18]Waiting for new connection... [21:05:18] Sock 6.Parse request [21:05:18]Sock 6.Check first char [21:05:18]Sock 6.First char is OK [21:05:18]request: POST /json_proto HTTP/1.0 [21:05:18]Method: POST [21:05:18]URL: /json_proto [21:05:18]Method is POST - this is cgi request [21:05:18]url: /json_proto [21:05:18]query_string will be loaded in cgi processing [21:05:18]execute_cgi json_proto POST (null) [21:05:18]execute_cgi path=json_proto method=POST [21:05:18]POST find Content-Length [21:05:18]Host: 172.17.44.196:8080 [21:05:18]Content-Length: 968 [21:05:18]Content-Type: application/json [21:05:18] [21:05:18]POST finish read [21:05:18]Found Content-Length = 968 [21:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273307", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 136.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:18]execute_script... [21:05:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273307", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 1.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 136.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:18]POST & json_proto [21:05:18]process_json_proto [21:05:18]json parsed OK: [21:05:18]protocol is kg_v1.0 [21:05:18]action value=close_receipt [21:05:18]process_action close_receipt [21:05:18]cmd_close_receipt [21:05:18]MH_GetDate [21:05:18]Write to MH i2c: F0 00 00 90 21 A0 [21:05:18]Write i2c OK [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: F0 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: F0 09 00 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: F0 09 00 90 21 00 10 65 19 67 E7 19 F8 65 FB [21:05:18]GetLastDocTimeStamp 1729717300 [21:05:18]current date 1729717520 [21:05:18]FM_GetShiftState [21:05:18]SAM_PROTO_GetShiftState [21:05:18]wFMCommunicate request_size=4 [21:05:18]MH_SAM_APDU [21:05:18]CAPDU: 80 13 01 00 [21:05:18]Write to MH i2c: E2 08 00 91 21 80 13 01 00 00 00 00 00 2F [21:05:18]Write i2c OK [21:05:18]MH_I2C_Read... [21:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:18]Read from MH i2c: E2 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: E2 0E 00 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: E2 0E 00 91 21 00 09 00 01 99 41 18 67 00 00 00 00 90 00 94 [21:05:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:05:18]wFMCommunicate OK [21:05:18]SAM_PROTO_GetShiftState done [21:05:18]FM_GetShiftState done [21:05:18]opened in 1729642905 [21:05:18]opened+sec_in_day 1729729305 [21:05:18]quantity*price = 8000 [21:05:18]sum+1 = 8001 [21:05:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 56.00 = 56.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 136.00 НСП 1% : 1.21 НДС 12% : 14.45 Наличными: 136.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 275 23.10.2024 21:05 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75542 ФПД: 172118850928198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210520&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75542&fm=172118850928198&tin=02508201610067®Number=0000000000161154&sum=13600 0 [21:05:19]StoreToDocumentArchive [21:05:19]shift 173 fd 75542 [21:05:19]save to /storage/0173/doc_00075542 [21:05:19]save last doc name /storage/0173/doc_00075542 to /storage/kkm_last_doc_name [21:05:19]save OK [21:05:19]Clear old archive folders... [21:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=410 [21:05:19]tlvbuf is 007B4860 [21:05:19]SAM_PROTO_ClearQueue [21:05:19]wFMCommunicate request_size=4 [21:05:19]MH_SAM_APDU [21:05:19]CAPDU: 80 09 00 00 [21:05:19]Write to MH i2c: E2 08 00 9E 21 80 09 00 00 00 00 00 00 31 [21:05:19]Write i2c OK [21:05:19]MH_I2C_Read... [21:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:19]Read from MH i2c: E2 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 03 00 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 03 00 9E 21 00 90 00 33 [21:05:19]RAPDU: 90 00 [21:05:19]wFMCommunicate OK [21:05:19]SAM_PROTO_ClearQueue done [21:05:19]KKMCreateOFDPacket [21:05:19]OFDProtocolAddRootSTLVToBuf [21:05:19]FM_MakeSignedData [21:05:19]FM_MakeSignedData [21:05:19]SAM_PROTO_SignData [21:05:19]wFMCommunicate request_size=4 [21:05:19]MH_SAM_APDU [21:05:19]CAPDU: 80 0D 01 02 [21:05:19]Write to MH i2c: E2 08 00 9F 21 80 0D 01 02 00 00 00 00 39 [21:05:19]Write i2c OK [21:05:19]MH_I2C_Read... [21:05:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:19]Read from MH i2c: E2 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 03 00 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 03 00 9F 21 00 90 00 34 [21:05:19]RAPDU: 90 00 [21:05:19]wFMCommunicate OK [21:05:19]wFMCommunicate request_size=255 [21:05:19]MH_SAM_APDU [21:05:19]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [21:05:19]Write to MH i2c: E2 02 01 A0 21 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 AE [21:05:19]Write i2c OK [21:05:19]MH_I2C_Read... [21:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:19]Read from MH i2c: E2 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 03 00 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 03 00 A0 21 00 90 00 35 [21:05:19]RAPDU: 90 00 [21:05:19]wFMCommunicate OK [21:05:19]wFMCommunicate request_size=169 [21:05:19]MH_SAM_APDU [21:05:19]CAPDU: 80 0D 02 02 A4 03 06 00 20 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 05 00 00 00 00 07 04 06 00 20 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 10 65 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 27 01 00 35 04 06 00 9C 8A 8A F7 FE 46 [21:05:19]Write to MH i2c: E2 AC 00 A1 21 80 0D 02 02 A4 00 03 06 00 20 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 05 00 00 00 00 07 04 06 00 20 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 10 65 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 27 01 00 35 04 06 00 9C 8A 8A F7 FE 46 00 00 69 [21:05:19]Write i2c OK [21:05:19]MH_I2C_Read... [21:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:20]Read from MH i2c: E2 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 03 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 03 00 A1 21 00 90 00 36 [21:05:20]RAPDU: 90 00 [21:05:20]wFMCommunicate OK [21:05:20]wFMCommunicate request_size=4 [21:05:20]MH_SAM_APDU [21:05:20]CAPDU: 80 0D 03 02 [21:05:20]Write to MH i2c: E2 08 00 A2 21 80 0D 03 02 00 00 00 00 3E [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:20]Read from MH i2c: E2 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 0B 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 0B 00 A2 21 00 E7 45 87 C4 E7 FD 64 98 90 00 96 [21:05:20]RAPDU: E7 45 87 C4 E7 FD 64 98 90 00 [21:05:20]wFMCommunicate OK [21:05:20]SAM_PROTO_SignData done [21:05:20]FM_MakeSignedData done [21:05:20]CreateOFDProtocolMessage [21:05:20]wFMCommunicate request_size=4 [21:05:20]MH_SAM_APDU [21:05:20]CAPDU: 80 11 00 00 [21:05:20]Write to MH i2c: E2 08 00 A3 21 80 11 00 00 00 00 00 00 3E [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:20]Read from MH i2c: E2 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 17 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 17 00 A3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 8B [21:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:05:20]wFMCommunicate OK [21:05:20]CreateOFDProtocolMessage done [21:05:20]OFDSenderStorePacket 75542 [21:05:20]StoreOFDPacket docnum=75542 [21:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 AE 01 00 00 81 63 A6 01 88 12 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 05 00 00 00 00 07 04 06 00 20 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 10 65 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 27 01 00 35 04 06 00 9C 8A 8A F7 FE 46 E7 45 87 C4 E7 FD 64 98 [21:05:20]CheckFolder [21:05:20]dirname=/storage/ofd_packets [21:05:20]CheckFolder done [21:05:20]ProducePacketName [21:05:20]name=ofd_packets/00075542 [21:05:20]NVStorageSaveData ofd_packets/00075542 [21:05:20]File name is /storage/ofd_packets/00075542 [21:05:20]Write 460 bytes [21:05:20]NVStorageSaveData done [21:05:20]OFDSenderStorePacket done [21:05:20]KKMCreateOFDPacket done [21:05:20]NVStorageSaveData kkm_last_timestamp [21:05:20]File name is /storage/kkm_last_timestamp [21:05:20]Write 4 bytes [21:05:20]NVStorageSaveData done [21:05:20]ExternCall_PrintAddStr [21:05:20]wPrintStart [21:05:20]Write to MH i2c: 01 00 00 A4 21 C5 [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: 01 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: 01 07 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: 01 07 00 A4 21 00 00 00 00 00 FF 0F DA [21:05:20]RasterBufferAndPrint [21:05:20]line Счет N : (3)273307 [21:05:20]line ИНН: 02508201610067 [21:05:20]line Контрольно-Кассовый Чек [21:05:20]line ПРОДАЖА [21:05:20]line Товар: 4660085515163 [21:05:20]line Шок Батончик Сникерс супер 95/80г [21:05:20]line 1.000 * 80.00 [21:05:20]line = 80.00 [21:05:20]line НДС 12% НСП 1% [21:05:20]line > о реализуемом товаре [21:05:20]line Товар: 4607065001445 [21:05:20]line Шок батончик Snickers 50,5г [21:05:20]line 1.000 * 56.00 [21:05:20]line = 56.00 [21:05:20]line НДС 12% НСП 1% [21:05:20]line > о реализуемом товаре [21:05:20]line ИТОГО: 136.00 [21:05:20]line НСП 1% : 1.21 [21:05:20]line НДС 12% : 14.45 [21:05:20]line Наличными: 136.00 [21:05:20]line Безнал.: 0.00 [21:05:20]line Место: АЗС № 133 "Партнер Нефть" [21:05:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:05:20]line СНО: Общий режим [21:05:20]line Чек 275 23.10.2024 21:05 [21:05:20]line Смена: 173 ФФД: 1.0 [21:05:20]line ЗНМ: 0300000020 [21:05:20]line РНМ: 0000000000161154 [21:05:20]line Версия ККМ: v1.0 [21:05:20]line ФМ: 0000000000963323 [21:05:20]line ФД: 75542 [21:05:20]line ФПД: 172118850928198 [21:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T210520&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75542&fm=172118850928198&tin=02508201610067®Number=0000000000161154&sum=13600 [21:05:20]line 0 [21:05:20]written 0, free lines is 4095 [21:05:20]OFD Sender: Processing packet 75542 [packets to send 16, broken 15] [21:05:20]ProducePacketName [21:05:20]name=ofd_packets/00075542 [21:05:20]OFD Sender: To server: pG, [21:05:20]CommunicateWithHost lk.salyk.kg:30040 [21:05:20]ConnectInit lk.salyk.kg [21:05:20]Connected sock=8 [21:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 AE 01 00 00 81 63 A6 01 88 12 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 05 00 00 00 00 07 04 06 00 20 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 10 65 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 16 27 01 00 35 04 06 00 9C 8A 8A F7 FE 46 E7 45 87 C4 E7 FD 64 98 [21:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A0 75 47 00 07 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 39 36 33 33 32 33 10 04 04 00 16 27 01 00 F4 03 04 00 EA 0D 19 67 B6 04 01 00 00 E3 2D 3E 94 70 40 0B 4B [21:05:20]CommunicateWithHost err = 0 [21:05:20]CheckOFDResponse [21:05:20]1017 (14) - 77093643461234 [21:05:20]1041 (16) - 0000000000963323 [21:05:20]1040 (4) - 75542 [21:05:20]1012 (4) - 23.10.2024 14:53 [21:05:20]1206 (1) - 0 [21:05:20]OFD Sender: Remove packet 75542 [21:05:20]ProducePacketName [21:05:20]name=ofd_packets/00075542 [21:05:20]NVStorageDeleteData [21:05:20]Write to MH i2c: 01 00 00 D2 21 F3 [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: 01 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: 01 07 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: 01 07 00 D2 21 00 00 00 00 00 70 0C 76 [21:05:20]RasterBufferAndPrint [21:05:20]line [21:05:20]line [21:05:20]line [21:05:20]line [21:05:20]line [21:05:20]written 0, free lines is 3190 [21:05:20]MH_Cut [21:05:20]Write to MH i2c: D1 01 00 D9 21 01 CC [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: D1 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: D1 01 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: D1 01 00 D9 21 00 CB [21:05:20]Write to MH i2c: 01 00 00 DA 21 FB [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:21]OFD Sender: No OFD packet to send [21:05:21]*** Cut start [21:05:21]*** Partial cut [21:05:21]*** CUTSNS_PIN = 1 [21:05:21]*** CUTSNS_PIN = 0 [21:05:22]*** Brake cut motor [21:05:22]Read from MH i2c: 01 [21:05:22]MH_I2C_Read... [21:05:22]*** Stop cut motor [21:05:22]*** Cut end [21:05:22]Read from MH i2c: 01 07 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 07 00 DA 21 00 00 00 00 00 FF 0F 10 [21:05:22]process_action close_receipt done [21:05:22]requested_data is exist [21:05:22]produce_requested_data [21:05:22]requested_item fm.sn is exist - process it [21:05:22]wFMCommunicate request_size=4 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 11 00 00 [21:05:22]Write to MH i2c: E2 08 00 DB 21 80 11 00 00 00 00 00 00 76 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 17 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 17 00 DB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C3 [21:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:05:22]wFMCommunicate OK [21:05:22]requested_item fd.num is exist - process it [21:05:22]SAM_PROTO_GetFieldsCounters [21:05:22]wFMCommunicate request_size=4 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 13 00 00 [21:05:22]Write to MH i2c: E2 08 00 DC 21 80 13 00 00 00 00 00 00 79 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 62 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 62 00 DC 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 16 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [21:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 16 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:22]wFMCommunicate OK [21:05:22]SAM_PROTO_GetFieldsCounters done [21:05:22]requested_item shift.num is exist - process it [21:05:22]requested_item shift.opened is exist - process it [21:05:22]req_shift_opened [21:05:22]FM_GetShiftState [21:05:22]SAM_PROTO_GetShiftState [21:05:22]wFMCommunicate request_size=4 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 13 01 00 [21:05:22]Write to MH i2c: E2 08 00 DD 21 80 13 01 00 00 00 00 00 7B [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 0E 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 0E 00 DD 21 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E0 [21:05:22]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:05:22]wFMCommunicate OK [21:05:22]SAM_PROTO_GetShiftState done [21:05:22]FM_GetShiftState done [21:05:22]req_shift_opened done [21:05:22]requested_item shift.open_date is exist - process it [21:05:22]req_shift_open_date [21:05:22]req_shift_open_date done [21:05:22]produce_requested_data done [21:05:22]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75542,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [21:05:22]process_action_free close_receipt [21:05:22]json_value_free [21:05:22]json_value_free done [21:05:22]process_json_proto returns [21:05:22]Send response to host [21:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75542,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [21:05:22]free response buf [21:05:22]execute_script done [21:05:22]execute_script returns [21:05:22]free content buf [21:05:22]Sock 6.Close socket [21:05:22]Sock 6.Thread stoped [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:21]accept exits with 5 [21:14:21]New connection [21:14:21]New thread 3066608996 created [21:14:21]Thread 3066465636 joined [21:14:21]Waiting for new connection... [21:14:21] Sock 5.Parse request [21:14:21]Sock 5.Check first char [21:14:21]Sock 5.First char is OK [21:14:21]request: POST /json_proto HTTP/1.0 [21:14:21]Method: POST [21:14:21]URL: /json_proto [21:14:21]Method is POST - this is cgi request [21:14:21]url: /json_proto [21:14:21]query_string will be loaded in cgi processing [21:14:21]execute_cgi json_proto POST (null) [21:14:21]execute_cgi path=json_proto method=POST [21:14:21]POST find Content-Length [21:14:21]Host: 172.17.44.196:8080 [21:14:21]Content-Length: 1329 [21:14:21]Content-Type: application/json [21:14:21] [21:14:21]POST finish read [21:14:21]Found Content-Length = 1329 [21:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273308", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 380.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:21]execute_script... [21:14: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 : (3)273308", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 380.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:21]POST & json_proto [21:14:21]process_json_proto [21:14:21]json parsed OK: [21:14:21]protocol is kg_v1.0 [21:14:21]action value=close_receipt [21:14:21]process_action close_receipt [21:14:21]cmd_close_receipt [21:14:21]MH_GetDate [21:14:21]Write to MH i2c: F0 00 00 DE 21 EE [21:14:21]Write i2c OK [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: F0 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: F0 09 00 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: F0 09 00 DE 21 00 2F 67 19 67 E7 19 F8 65 6A [21:14:21]GetLastDocTimeStamp 1729717520 [21:14:21]current date 1729718063 [21:14:21]FM_GetShiftState [21:14:21]SAM_PROTO_GetShiftState [21:14:21]wFMCommunicate request_size=4 [21:14:21]MH_SAM_APDU [21:14:21]CAPDU: 80 13 01 00 [21:14:21]Write to MH i2c: E2 08 00 DF 21 80 13 01 00 00 00 00 00 7D [21:14:21]Write i2c OK [21:14:21]MH_I2C_Read... [21:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:21]Read from MH i2c: E2 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: E2 0E 00 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: E2 0E 00 DF 21 00 09 00 01 99 41 18 67 00 00 00 00 90 00 E2 [21:14:21]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:14:21]wFMCommunicate OK [21:14:21]SAM_PROTO_GetShiftState done [21:14:21]FM_GetShiftState done [21:14:21]opened in 1729642905 [21:14:21]opened+sec_in_day 1729729305 [21:14:21]quantity*price = 24000 [21:14:21]sum+1 = 24001 [21:14:21]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607010740733 Чипсы Чипсоны шашлык 40г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010070 Чай хол Let`s Go! чер персик ПЭТ 1,25л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 380.00 НСП 1% : 3.36 НДС 12% : 40.36 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 276 23.10.2024 21:14 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75543 ФПД: 5404178561078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211424&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75543&fm=5404178561078&tin=02508201610067®Number=0000000000161154&sum=38000 0 [21:14:22]StoreToDocumentArchive [21:14:22]shift 173 fd 75543 [21:14:22]save to /storage/0173/doc_00075543 [21:14:22]save last doc name /storage/0173/doc_00075543 to /storage/kkm_last_doc_name [21:14:22]save OK [21:14:22]Clear old archive folders... [21:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=549 [21:14:22]tlvbuf is 0079AFD0 [21:14:22]SAM_PROTO_ClearQueue [21:14:22]wFMCommunicate request_size=4 [21:14:22]MH_SAM_APDU [21:14:22]CAPDU: 80 09 00 00 [21:14:22]Write to MH i2c: E2 08 00 EC 21 80 09 00 00 00 00 00 00 7F [21:14:22]Write i2c OK [21:14:22]MH_I2C_Read... [21:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:22]Read from MH i2c: E2 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 03 00 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 03 00 EC 21 00 90 00 81 [21:14:22]RAPDU: 90 00 [21:14:22]wFMCommunicate OK [21:14:22]SAM_PROTO_ClearQueue done [21:14:22]KKMCreateOFDPacket [21:14:22]OFDProtocolAddRootSTLVToBuf [21:14:22]FM_MakeSignedData [21:14:22]FM_MakeSignedData [21:14:22]SAM_PROTO_SignData [21:14:22]wFMCommunicate request_size=4 [21:14:22]MH_SAM_APDU [21:14:22]CAPDU: 80 0D 01 02 [21:14:22]Write to MH i2c: E2 08 00 ED 21 80 0D 01 02 00 00 00 00 87 [21:14:22]Write i2c OK [21:14:22]MH_I2C_Read... [21:14:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:22]Read from MH i2c: E2 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 03 00 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 03 00 ED 21 00 90 00 82 [21:14:22]RAPDU: 90 00 [21:14:22]wFMCommunicate OK [21:14:22]wFMCommunicate request_size=255 [21:14:22]MH_SAM_APDU [21:14:22]CAPDU: 80 0D 02 02 FA 03 00 25 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 [21:14:23]Write to MH i2c: E2 02 01 EE 21 80 0D 02 02 FA 00 03 00 25 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 00 00 62 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 EE 21 00 90 00 83 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=255 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 02 02 FA 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 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 01 00 00 F4 03 04 00 30 67 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [21:14:23]Write to MH i2c: E2 02 01 EF 21 80 0D 02 02 FA 00 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 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 01 00 00 F4 03 04 00 30 67 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 DE [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 EF 21 00 90 00 84 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=58 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 27 01 00 35 04 06 00 04 EA 42 24 B8 36 [21:14:23]Write to MH i2c: E2 3D 00 F0 21 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 27 01 00 35 04 06 00 04 EA 42 24 B8 36 00 00 EE [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 F0 21 00 90 00 85 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 03 02 [21:14:23]Write to MH i2c: E2 08 00 F1 21 80 0D 03 02 00 00 00 00 8D [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 0B 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 0B 00 F1 21 00 FB DE DE 1E F0 6B 80 20 90 00 5E [21:14:23]RAPDU: FB DE DE 1E F0 6B 80 20 90 00 [21:14:23]wFMCommunicate OK [21:14:23]SAM_PROTO_SignData done [21:14:23]FM_MakeSignedData done [21:14:23]CreateOFDProtocolMessage [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 11 00 00 [21:14:23]Write to MH i2c: E2 08 00 F2 21 80 11 00 00 00 00 00 00 8D [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 17 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 17 00 F2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 DA [21:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:14:23]wFMCommunicate OK [21:14:23]CreateOFDProtocolMessage done [21:14:23]OFDSenderStorePacket 75543 [21:14:23]StoreOFDPacket docnum=75543 [21:14:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 02 00 00 25 E1 31 02 93 FA 5A 03 01 00 03 00 25 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 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 01 00 00 F4 03 04 00 30 67 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 27 01 00 35 04 06 00 04 EA 42 24 B8 36 FB DE DE 1E F0 6B 80 20 [21:14:23]CheckFolder [21:14:23]dirname=/storage/ofd_packets [21:14:23]CheckFolder done [21:14:23]ProducePacketName [21:14:23]name=ofd_packets/00075543 [21:14:23]NVStorageSaveData ofd_packets/00075543 [21:14:23]File name is /storage/ofd_packets/00075543 [21:14:23]Write 599 bytes [21:14:23]NVStorageSaveData done [21:14:23]OFDSenderStorePacket done [21:14:23]KKMCreateOFDPacket done [21:14:23]NVStorageSaveData kkm_last_timestamp [21:14:23]File name is /storage/kkm_last_timestamp [21:14:23]Write 4 bytes [21:14:23]NVStorageSaveData done [21:14:23]ExternCall_PrintAddStr [21:14:23]wPrintStart [21:14:23]Write to MH i2c: 01 00 00 F3 21 14 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 07 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 07 00 F3 21 00 00 00 00 00 FF 0F 29 [21:14:23]RasterBufferAndPrint [21:14:23]line Счет N : (3)273308 [21:14:23]line ИНН: 02508201610067 [21:14:23]line Контрольно-Кассовый Чек [21:14:23]line ПРОДАЖА [21:14:23]line Товар: 4630007401201 [21:14:23]line Семечки соленые ДЖИНН Великан 100гр [21:14:23]line 2.000 * 120.00 [21:14:23]line = 240.00 [21:14:23]line НДС 12% НСП 1% [21:14:23]line > о реализуемом товаре [21:14:23]line Товар: 4607010740733 [21:14:23]line Чипсы Чипсоны шашлык 40г [21:14:23]line 1.000 * 45.00 [21:14:23]line = 45.00 [21:14:23]line НДС 12% НСП 1% [21:14:23]line > о реализуемом товаре [21:14:23]line Товар: 4700003010070 [21:14:23]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [21:14:23]line 1.000 * 95.00 [21:14:23]line = 95.00 [21:14:23]line НДС 12% НСП 1% [21:14:23]line > о реализуемом товаре [21:14:23]line ИТОГО: 380.00 [21:14:23]line НСП 1% : 3.36 [21:14:23]line НДС 12% : 40.36 [21:14:23]line Наличными: 380.00 [21:14:23]line Безнал.: 0.00 [21:14:23]line Место: АЗС № 133 "Партнер Нефть" [21:14:23]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:14:23]line СНО: Общий режим [21:14:23]line Чек 276 23.10.2024 21:14 [21:14:23]line Смена: 173 ФФД: 1.0 [21:14:23]line ЗНМ: 0300000020 [21:14:23]line РНМ: 0000000000161154 [21:14:23]line Версия ККМ: v1.0 [21:14:23]line ФМ: 0000000000963323 [21:14:23]line ФД: 75543 [21:14:23]line ФПД: 5404178561078 [21:14:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T211424&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75543&fm=5404178561078&tin=02508201610067®Number=0000000000161154&sum=38000 [21:14:24]line 0 [21:14:24]OFD Sender: Processing packet 75543 [packets to send 16, broken 15] [21:14:24]ProducePacketName [21:14:24]name=ofd_packets/00075543 [21:14:24]OFD Sender: To server: pG, [21:14:24]CommunicateWithHost lk.salyk.kg:30040 [21:14:24]ConnectInit lk.salyk.kg [21:14:24]written 0, free lines is 4095 [21:14:24]Connected sock=8 [21:14:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 39 02 00 00 25 E1 31 02 93 FA 5A 03 01 00 03 00 25 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 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 01 00 00 F4 03 04 00 30 67 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 17 27 01 00 35 04 06 00 04 EA 42 24 B8 36 FB DE DE 1E F0 6B 80 20 [21:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F9 46 47 00 64 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 39 36 33 33 32 33 10 04 04 00 17 27 01 00 F4 03 04 00 0A 10 19 67 B6 04 01 00 00 26 15 98 9A 03 94 C6 D9 [21:14:24]CommunicateWithHost err = 0 [21:14:24]CheckOFDResponse [21:14:24]1017 (14) - 77093643461234 [21:14:24]1041 (16) - 0000000000963323 [21:14:24]1040 (4) - 75543 [21:14:24]1012 (4) - 23.10.2024 15:02 [21:14:24]1206 (1) - 0 [21:14:24]OFD Sender: Remove packet 75543 [21:14:24]ProducePacketName [21:14:24]name=ofd_packets/00075543 [21:14:24]NVStorageDeleteData [21:14:24]Write to MH i2c: 01 00 00 28 22 4A [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 07 00 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 07 00 28 22 00 00 00 00 00 CC 0B 28 [21:14:24]RasterBufferAndPrint [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]written 0, free lines is 3028 [21:14:24]MH_Cut [21:14:24]Write to MH i2c: D1 01 00 2F 22 01 23 [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 01 00 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 01 00 2F 22 00 22 [21:14:24]Write to MH i2c: 01 00 00 30 22 52 [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:25]OFD Sender: No OFD packet to send [21:14:25]*** Cut start [21:14:25]*** Partial cut [21:14:25]*** CUTSNS_PIN = 1 [21:14:26]*** CUTSNS_PIN = 0 [21:14:26]*** Brake cut motor [21:14:26]Read from MH i2c: 01 [21:14:26]MH_I2C_Read... [21:14:26]*** Stop cut motor [21:14:26]*** Cut end [21:14:26]Read from MH i2c: 01 07 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: 01 07 00 30 22 00 00 00 00 00 FF 0F 67 [21:14:26]process_action close_receipt done [21:14:26]requested_data is exist [21:14:26]produce_requested_data [21:14:26]requested_item fm.sn is exist - process it [21:14:26]wFMCommunicate request_size=4 [21:14:26]MH_SAM_APDU [21:14:26]CAPDU: 80 11 00 00 [21:14:26]Write to MH i2c: E2 08 00 31 22 80 11 00 00 00 00 00 00 CD [21:14:26]Write i2c OK [21:14:26]MH_I2C_Read... [21:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:26]Read from MH i2c: E2 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 17 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 17 00 31 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 1A [21:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:14:26]wFMCommunicate OK [21:14:26]requested_item fd.num is exist - process it [21:14:26]SAM_PROTO_GetFieldsCounters [21:14:26]wFMCommunicate request_size=4 [21:14:26]MH_SAM_APDU [21:14:26]CAPDU: 80 13 00 00 [21:14:26]Write to MH i2c: E2 08 00 32 22 80 13 00 00 00 00 00 00 D0 [21:14:26]Write i2c OK [21:14:26]MH_I2C_Read... [21:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:26]Read from MH i2c: E2 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 62 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 62 00 32 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 17 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [21:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 17 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:26]wFMCommunicate OK [21:14:26]SAM_PROTO_GetFieldsCounters done [21:14:26]requested_item shift.num is exist - process it [21:14:26]requested_item shift.opened is exist - process it [21:14:26]req_shift_opened [21:14:26]FM_GetShiftState [21:14:26]SAM_PROTO_GetShiftState [21:14:26]wFMCommunicate request_size=4 [21:14:26]MH_SAM_APDU [21:14:26]CAPDU: 80 13 01 00 [21:14:26]Write to MH i2c: E2 08 00 33 22 80 13 01 00 00 00 00 00 D2 [21:14:26]Write i2c OK [21:14:26]MH_I2C_Read... [21:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:26]Read from MH i2c: E2 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 0E 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 0E 00 33 22 00 09 00 01 99 41 18 67 00 00 00 00 90 00 37 [21:14:26]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:14:26]wFMCommunicate OK [21:14:26]SAM_PROTO_GetShiftState done [21:14:26]FM_GetShiftState done [21:14:26]req_shift_opened done [21:14:26]requested_item shift.open_date is exist - process it [21:14:26]req_shift_open_date [21:14:26]req_shift_open_date done [21:14:26]produce_requested_data done [21:14:26]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75543,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [21:14:26]process_action_free close_receipt [21:14:26]json_value_free [21:14:26]json_value_free done [21:14:26]process_json_proto returns [21:14:26]Send response to host [21:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75543,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [21:14:26]free response buf [21:14:26]execute_script done [21:14:26]execute_script returns [21:14:26]free content buf [21:14:26]Sock 5.Close socket [21:14:26]Sock 5.Thread stoped [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:28]accept exits with 6 [21:22:28]New connection [21:22:28]New thread 3066465636 created [21:22:28]Thread 3066608996 joined [21:22:28]Waiting for new connection... [21:22:28] Sock 6.Parse request [21:22:28]Sock 6.Check first char [21:22:28]Sock 6.First char is OK [21:22:28]request: POST /json_proto HTTP/1.0 [21:22:28]Method: POST [21:22:28]URL: /json_proto [21:22:28]Method is POST - this is cgi request [21:22:28]url: /json_proto [21:22:28]query_string will be loaded in cgi processing [21:22:28]execute_cgi json_proto POST (null) [21:22:28]execute_cgi path=json_proto method=POST [21:22:28]POST find Content-Length [21:22:28]Host: 172.17.44.196:8080 [21:22:28]Content-Length: 621 [21:22:28]Content-Type: application/json [21:22:28] [21:22:28]POST finish read [21:22:28]Found Content-Length = 621 [21:22:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273309", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:28]execute_script... [21:22: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 : (3)273309", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:28]POST & json_proto [21:22:28]process_json_proto [21:22:28]json parsed OK: [21:22:28]protocol is kg_v1.0 [21:22:28]action value=close_receipt [21:22:28]process_action close_receipt [21:22:28]cmd_close_receipt [21:22:28]MH_GetDate [21:22:28]Write to MH i2c: F0 00 00 34 22 45 [21:22:28]Write i2c OK [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: F0 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: F0 09 00 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: F0 09 00 34 22 00 16 69 19 67 E7 19 F8 65 AA [21:22:28]GetLastDocTimeStamp 1729718064 [21:22:28]current date 1729718550 [21:22:28]FM_GetShiftState [21:22:28]SAM_PROTO_GetShiftState [21:22:28]wFMCommunicate request_size=4 [21:22:28]MH_SAM_APDU [21:22:28]CAPDU: 80 13 01 00 [21:22:28]Write to MH i2c: E2 08 00 35 22 80 13 01 00 00 00 00 00 D4 [21:22:28]Write i2c OK [21:22:28]MH_I2C_Read... [21:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:28]Read from MH i2c: E2 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 0E 00 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 0E 00 35 22 00 09 00 01 99 41 18 67 00 00 00 00 90 00 39 [21:22:28]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:22:28]wFMCommunicate OK [21:22:28]SAM_PROTO_GetShiftState done [21:22:28]FM_GetShiftState done [21:22:28]opened in 1729642905 [21:22:28]opened+sec_in_day 1729729305 [21:22:28]quantity*price = 14000 [21:22:28]sum+1 = 14001 [21:22:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 277 23.10.2024 21:22 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75544 ФПД: 34818631243798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212230&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75544&fm=34818631243798&tin=02508201610067®Number=0000000000161154&sum=14000 0 [21:22:29]StoreToDocumentArchive [21:22:29]shift 173 fd 75544 [21:22:29]save to /storage/0173/doc_00075544 [21:22:29]save last doc name /storage/0173/doc_00075544 to /storage/kkm_last_doc_name [21:22:29]save OK [21:22:29]Clear old archive folders... [21:22:29]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:22:29]tlvbuf is 007F6870 [21:22:29]SAM_PROTO_ClearQueue [21:22:29]wFMCommunicate request_size=4 [21:22:29]MH_SAM_APDU [21:22:29]CAPDU: 80 09 00 00 [21:22:29]Write to MH i2c: E2 08 00 42 22 80 09 00 00 00 00 00 00 D6 [21:22:29]Write i2c OK [21:22:29]MH_I2C_Read... [21:22:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:29]Read from MH i2c: E2 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 03 00 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 03 00 42 22 00 90 00 D8 [21:22:29]RAPDU: 90 00 [21:22:29]wFMCommunicate OK [21:22:29]SAM_PROTO_ClearQueue done [21:22:29]KKMCreateOFDPacket [21:22:29]OFDProtocolAddRootSTLVToBuf [21:22:29]FM_MakeSignedData [21:22:29]FM_MakeSignedData [21:22:29]SAM_PROTO_SignData [21:22:29]wFMCommunicate request_size=4 [21:22:29]MH_SAM_APDU [21:22:29]CAPDU: 80 0D 01 02 [21:22:29]Write to MH i2c: E2 08 00 43 22 80 0D 01 02 00 00 00 00 DE [21:22:29]Write i2c OK [21:22:29]MH_I2C_Read... [21:22:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:29]Read from MH i2c: E2 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 03 00 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [21:22:29]RAPDU: 90 00 [21:22:29]wFMCommunicate OK [21:22:29]wFMCommunicate request_size=255 [21:22:29]MH_SAM_APDU [21:22:29]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 16 69 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 [21:22:29]Write to MH i2c: E2 02 01 44 22 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 16 69 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 00 00 8E [21:22:29]Write i2c OK [21:22:29]MH_I2C_Read... [21:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:29]Read from MH i2c: E2 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 03 00 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 03 00 44 22 00 90 00 DA [21:22:29]RAPDU: 90 00 [21:22:29]wFMCommunicate OK [21:22:29]wFMCommunicate request_size=32 [21:22:29]MH_SAM_APDU [21:22:29]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 33 32 33 10 04 04 00 18 27 01 00 35 04 06 00 1F AA D8 25 98 16 [21:22:29]Write to MH i2c: E2 23 00 45 22 80 0D 02 02 1B 00 30 30 30 39 36 33 33 32 33 10 04 04 00 18 27 01 00 35 04 06 00 1F AA D8 25 98 16 00 00 EC [21:22:29]Write i2c OK [21:22:29]MH_I2C_Read... [21:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:29]Read from MH i2c: E2 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 03 00 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 03 00 45 22 00 90 00 DB [21:22:29]RAPDU: 90 00 [21:22:29]wFMCommunicate OK [21:22:29]wFMCommunicate request_size=4 [21:22:29]MH_SAM_APDU [21:22:29]CAPDU: 80 0D 03 02 [21:22:29]Write to MH i2c: E2 08 00 46 22 80 0D 03 02 00 00 00 00 E3 [21:22:29]Write i2c OK [21:22:29]MH_I2C_Read... [21:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:29]Read from MH i2c: E2 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 0B 00 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 0B 00 46 22 00 2C 9A 1A D3 75 20 70 38 90 00 D4 [21:22:29]RAPDU: 2C 9A 1A D3 75 20 70 38 90 00 [21:22:29]wFMCommunicate OK [21:22:29]SAM_PROTO_SignData done [21:22:29]FM_MakeSignedData done [21:22:29]CreateOFDProtocolMessage [21:22:29]wFMCommunicate request_size=4 [21:22:29]MH_SAM_APDU [21:22:29]CAPDU: 80 11 00 00 [21:22:29]Write to MH i2c: E2 08 00 47 22 80 11 00 00 00 00 00 00 E3 [21:22:29]Write i2c OK [21:22:29]MH_I2C_Read... [21:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:30]Read from MH i2c: E2 [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: E2 17 00 [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: E2 17 00 47 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 30 [21:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:22:30]wFMCommunicate OK [21:22:30]CreateOFDProtocolMessage done [21:22:30]OFDSenderStorePacket 75544 [21:22:30]StoreOFDPacket docnum=75544 [21:22:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 CE EA 1D 01 D1 87 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 16 69 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 27 01 00 35 04 06 00 1F AA D8 25 98 16 2C 9A 1A D3 75 20 70 38 [21:22:30]CheckFolder [21:22:30]dirname=/storage/ofd_packets [21:22:30]CheckFolder done [21:22:30]ProducePacketName [21:22:30]name=ofd_packets/00075544 [21:22:30]NVStorageSaveData ofd_packets/00075544 [21:22:30]File name is /storage/ofd_packets/00075544 [21:22:30]Write 323 bytes [21:22:30]NVStorageSaveData done [21:22:30]OFDSenderStorePacket done [21:22:30]KKMCreateOFDPacket done [21:22:30]NVStorageSaveData kkm_last_timestamp [21:22:30]File name is /storage/kkm_last_timestamp [21:22:30]Write 4 bytes [21:22:30]NVStorageSaveData done [21:22:30]ExternCall_PrintAddStr [21:22:30]wPrintStart [21:22:30]Write to MH i2c: 01 00 00 48 22 6A [21:22:30]Write i2c OK [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: 01 [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: 01 07 00 [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: 01 07 00 48 22 00 00 00 00 00 FF 0F 7F [21:22:30]RasterBufferAndPrint [21:22:30]line Счет N : (3)273309 [21:22:30]line ИНН: 02508201610067 [21:22:30]line Контрольно-Кассовый Чек [21:22:30]line ПРОДАЖА [21:22:30]line Товар: 48743570 [21:22:30]line Сигареты Winston XStyle Blue [21:22:30]line 1.000 * 140.00 [21:22:30]line = 140.00 [21:22:30]line НДС 12% НСП 1% [21:22:30]line > о реализуемом товаре [21:22:30]line ИТОГО: 140.00 [21:22:30]line НСП 1% : 1.24 [21:22:30]line НДС 12% : 14.87 [21:22:30]line Наличными: 140.00 [21:22:30]line Безнал.: 0.00 [21:22:30]line Место: АЗС № 133 "Партнер Нефть" [21:22:30]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:22:30]line СНО: Общий режим [21:22:30]line Чек 277 23.10.2024 21:22 [21:22:30]line Смена: 173 ФФД: 1.0 [21:22:30]line ЗНМ: 0300000020 [21:22:30]line РНМ: 0000000000161154 [21:22:30]line Версия ККМ: v1.0 [21:22:30]line ФМ: 0000000000963323 [21:22:30]line ФД: 75544 [21:22:30]line ФПД: 34818631243798 [21:22:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212230&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75544&fm=34818631243798&tin=02508201610067®Number=0000000000161154&sum=14000 [21:22:30]line 0 [21:22:30]OFD Sender: Processing packet 75544 [packets to send 16, broken 15] [21:22:30]ProducePacketName [21:22:30]name=ofd_packets/00075544 [21:22:30]OFD Sender: To server: pG, [21:22:30]CommunicateWithHost lk.salyk.kg:30040 [21:22:30]ConnectInit lk.salyk.kg [21:22:30]written 0, free lines is 4095 [21:22:30]Connected sock=8 [21:22:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 25 01 00 00 CE EA 1D 01 D1 87 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 16 69 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 27 01 00 35 04 06 00 1F AA D8 25 98 16 2C 9A 1A D3 75 20 70 38 [21:22:30]Write to MH i2c: 01 00 00 6F 22 91 [21:22:30]Write i2c OK [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: 01 [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: 01 07 00 [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: 01 07 00 6F 22 00 00 00 00 00 D8 0C 7C [21:22:30]RasterBufferAndPrint [21:22:30]line [21:22:30]line [21:22:30]line [21:22:30]line [21:22:30]line [21:22:30]written 0, free lines is 3292 [21:22:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 D9 BB 47 00 3C F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 18 27 01 00 F4 03 04 00 F0 11 19 67 B6 04 01 00 00 00 E3 52 94 14 BF 02 36 [21:22:30]CommunicateWithHost err = 0 [21:22:30]CheckOFDResponse [21:22:30]1017 (14) - 77093643461234 [21:22:30]1041 (16) - 0000000000963323 [21:22:30]1040 (4) - 75544 [21:22:30]1012 (4) - 23.10.2024 15:10 [21:22:30]1206 (1) - 0 [21:22:30]OFD Sender: Remove packet 75544 [21:22:30]ProducePacketName [21:22:30]name=ofd_packets/00075544 [21:22:30]NVStorageDeleteData [21:22:30]MH_Cut [21:22:30]Write to MH i2c: D1 01 00 76 22 01 6A [21:22:30]Write i2c OK [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: D1 [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: D1 01 00 [21:22:30]MH_I2C_Read... [21:22:30]Read from MH i2c: D1 01 00 76 22 00 69 [21:22:30]Write to MH i2c: 01 00 00 77 22 99 [21:22:30]Write i2c OK [21:22:30]MH_I2C_Read... [21:22:31]OFD Sender: No OFD packet to send [21:22:31]*** Cut start [21:22:31]*** Partial cut [21:22:31]*** CUTSNS_PIN = 1 [21:22:31]*** CUTSNS_PIN = 0 [21:22:31]*** Brake cut motor [21:22:32]Read from MH i2c: 01 [21:22:32]MH_I2C_Read... [21:22:32]*** Stop cut motor [21:22:32]*** Cut end [21:22:32]Read from MH i2c: 01 07 00 [21:22:32]MH_I2C_Read... [21:22:32]Read from MH i2c: 01 07 00 77 22 00 00 00 00 00 FF 0F AE [21:22:32]process_action close_receipt done [21:22:32]requested_data is exist [21:22:32]produce_requested_data [21:22:32]requested_item fm.sn is exist - process it [21:22:32]wFMCommunicate request_size=4 [21:22:32]MH_SAM_APDU [21:22:32]CAPDU: 80 11 00 00 [21:22:32]Write to MH i2c: E2 08 00 78 22 80 11 00 00 00 00 00 00 14 [21:22:32]Write i2c OK [21:22:32]MH_I2C_Read... [21:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:32]Read from MH i2c: E2 [21:22:32]MH_I2C_Read... [21:22:32]Read from MH i2c: E2 17 00 [21:22:32]MH_I2C_Read... [21:22:32]Read from MH i2c: E2 17 00 78 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 61 [21:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:22:32]wFMCommunicate OK [21:22:32]requested_item fd.num is exist - process it [21:22:32]SAM_PROTO_GetFieldsCounters [21:22:32]wFMCommunicate request_size=4 [21:22:32]MH_SAM_APDU [21:22:32]CAPDU: 80 13 00 00 [21:22:32]Write to MH i2c: E2 08 00 79 22 80 13 00 00 00 00 00 00 17 [21:22:32]Write i2c OK [21:22:32]MH_I2C_Read... [21:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:32]Read from MH i2c: E2 [21:22:32]MH_I2C_Read... [21:22:32]Read from MH i2c: E2 62 00 [21:22:32]MH_I2C_Read... [21:22:32]Read from MH i2c: E2 62 00 79 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 18 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [21:22:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 18 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:32]wFMCommunicate OK [21:22:32]SAM_PROTO_GetFieldsCounters done [21:22:32]requested_item shift.num is exist - process it [21:22:32]requested_item shift.opened is exist - process it [21:22:32]req_shift_opened [21:22:32]FM_GetShiftState [21:22:32]SAM_PROTO_GetShiftState [21:22:32]wFMCommunicate request_size=4 [21:22:32]MH_SAM_APDU [21:22:32]CAPDU: 80 13 01 00 [21:22:32]Write to MH i2c: E2 08 00 7A 22 80 13 01 00 00 00 00 00 19 [21:22:32]Write i2c OK [21:22:32]MH_I2C_Read... [21:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:32]Read from MH i2c: E2 [21:22:32]MH_I2C_Read... [21:22:32]Read from MH i2c: E2 0E 00 [21:22:32]MH_I2C_Read... [21:22:32]Read from MH i2c: E2 0E 00 7A 22 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7E [21:22:32]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:22:32]wFMCommunicate OK [21:22:32]SAM_PROTO_GetShiftState done [21:22:32]FM_GetShiftState done [21:22:32]req_shift_opened done [21:22:32]requested_item shift.open_date is exist - process it [21:22:32]req_shift_open_date [21:22:32]req_shift_open_date done [21:22:32]produce_requested_data done [21:22:32]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75544,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [21:22:32]process_action_free close_receipt [21:22:32]json_value_free [21:22:32]json_value_free done [21:22:32]process_json_proto returns [21:22:32]Send response to host [21:22:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75544,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [21:22:32]free response buf [21:22:32]execute_script done [21:22:32]execute_script returns [21:22:32]free content buf [21:22:32]Sock 6.Close socket [21:22:32]Sock 6.Thread stoped [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]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:39]accept exits with 5 [21:28:39]New connection [21:28:39]New thread 3066608996 created [21:28:39]Thread 3066465636 joined [21:28:39]Waiting for new connection... [21:28:39] Sock 5.Parse request [21:28:39]Sock 5.Check first char [21:28:39]Sock 5.First char is OK [21:28:39]request: POST /json_proto HTTP/1.0 [21:28:39]Method: POST [21:28:39]URL: /json_proto [21:28:39]Method is POST - this is cgi request [21:28:39]url: /json_proto [21:28:39]query_string will be loaded in cgi processing [21:28:39]execute_cgi json_proto POST (null) [21:28:39]execute_cgi path=json_proto method=POST [21:28:39]POST find Content-Length [21:28:39]Host: 172.17.44.196:8080 [21:28:39]Content-Length: 981 [21:28:39]Content-Type: application/json [21:28:39] [21:28:39]POST finish read [21:28:39]Found Content-Length = 981 [21:28:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273310", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:39]execute_script... [21:28: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)273310", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:39]POST & json_proto [21:28:39]process_json_proto [21:28:39]json parsed OK: [21:28:39]protocol is kg_v1.0 [21:28:39]action value=close_receipt [21:28:39]process_action close_receipt [21:28:39]cmd_close_receipt [21:28:39]MH_GetDate [21:28:39]Write to MH i2c: F0 00 00 7B 22 8C [21:28:39]Write i2c OK [21:28:39]MH_I2C_Read... [21:28:39]Read from MH i2c: F0 [21:28:39]MH_I2C_Read... [21:28:39]Read from MH i2c: F0 09 00 [21:28:39]MH_I2C_Read... [21:28:39]Read from MH i2c: F0 09 00 7B 22 00 89 6A 19 67 E7 19 F8 65 65 [21:28:39]GetLastDocTimeStamp 1729718550 [21:28:39]current date 1729718921 [21:28:39]FM_GetShiftState [21:28:39]SAM_PROTO_GetShiftState [21:28:39]wFMCommunicate request_size=4 [21:28:39]MH_SAM_APDU [21:28:39]CAPDU: 80 13 01 00 [21:28:39]Write to MH i2c: E2 08 00 7C 22 80 13 01 00 00 00 00 00 1B [21:28:39]Write i2c OK [21:28:39]MH_I2C_Read... [21:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:39]Read from MH i2c: E2 [21:28:39]MH_I2C_Read... [21:28:39]Read from MH i2c: E2 0E 00 [21:28:39]MH_I2C_Read... [21:28:39]Read from MH i2c: E2 0E 00 7C 22 00 09 00 01 99 41 18 67 00 00 00 00 90 00 80 [21:28:39]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:28:39]wFMCommunicate OK [21:28:39]SAM_PROTO_GetShiftState done [21:28:39]FM_GetShiftState done [21:28:39]opened in 1729642905 [21:28:39]opened+sec_in_day 1729729305 [21:28:39]quantity*price = 6500 [21:28:39]sum+1 = 6501 [21:28:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.32 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 278 23.10.2024 21:28 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75545 ФПД: 151602399541830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212841&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75545&fm=151602399541830&tin=02508201610067®Number=0000000000161154&sum=15000 0 [21:28:40]StoreToDocumentArchive [21:28:40]shift 173 fd 75545 [21:28:40]save to /storage/0173/doc_00075545 [21:28:40]save last doc name /storage/0173/doc_00075545 to /storage/kkm_last_doc_name [21:28:40]save OK [21:28:40]Clear old archive folders... [21:28:40]ProcessDocumentItem done err = 0, tmpTLVsize=423 [21:28:40]tlvbuf is B6E6DBA0 [21:28:40]SAM_PROTO_ClearQueue [21:28:40]wFMCommunicate request_size=4 [21:28:40]MH_SAM_APDU [21:28:40]CAPDU: 80 09 00 00 [21:28:40]Write to MH i2c: E2 08 00 89 22 80 09 00 00 00 00 00 00 1D [21:28:40]Write i2c OK [21:28:40]MH_I2C_Read... [21:28:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:40]Read from MH i2c: E2 [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: E2 03 00 [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: E2 03 00 89 22 00 90 00 1F [21:28:40]RAPDU: 90 00 [21:28:40]wFMCommunicate OK [21:28:40]SAM_PROTO_ClearQueue done [21:28:40]KKMCreateOFDPacket [21:28:40]OFDProtocolAddRootSTLVToBuf [21:28:40]FM_MakeSignedData [21:28:40]FM_MakeSignedData [21:28:40]SAM_PROTO_SignData [21:28:40]wFMCommunicate request_size=4 [21:28:40]MH_SAM_APDU [21:28:40]CAPDU: 80 0D 01 02 [21:28:40]Write to MH i2c: E2 08 00 8A 22 80 0D 01 02 00 00 00 00 25 [21:28:40]Write i2c OK [21:28:40]MH_I2C_Read... [21:28:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:40]Read from MH i2c: E2 [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: E2 03 00 [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: E2 03 00 8A 22 00 90 00 20 [21:28:40]RAPDU: 90 00 [21:28:40]wFMCommunicate OK [21:28:40]wFMCommunicate request_size=255 [21:28:40]MH_SAM_APDU [21:28:40]CAPDU: 80 0D 02 02 FA 03 00 A7 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 [21:28:40]Write to MH i2c: E2 02 01 8B 22 80 0D 02 02 FA 00 03 00 A7 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 00 5C [21:28:40]Write i2c OK [21:28:40]MH_I2C_Read... [21:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:40]Read from MH i2c: E2 [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: E2 03 00 [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: E2 03 00 8B 22 00 90 00 21 [21:28:40]RAPDU: 90 00 [21:28:40]wFMCommunicate OK [21:28:40]wFMCommunicate request_size=182 [21:28:40]MH_SAM_APDU [21:28:40]CAPDU: 80 0D 02 02 B1 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 89 6A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 27 01 00 35 04 06 00 89 E1 AF 2B FA 46 [21:28:40]Write to MH i2c: E2 B9 00 8C 22 80 0D 02 02 B1 00 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 89 6A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 27 01 00 35 04 06 00 89 E1 AF 2B FA 46 00 00 E0 [21:28:40]Write i2c OK [21:28:40]MH_I2C_Read... [21:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:41]Read from MH i2c: E2 [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: E2 03 00 [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: E2 03 00 8C 22 00 90 00 22 [21:28:41]RAPDU: 90 00 [21:28:41]wFMCommunicate OK [21:28:41]wFMCommunicate request_size=4 [21:28:41]MH_SAM_APDU [21:28:41]CAPDU: 80 0D 03 02 [21:28:41]Write to MH i2c: E2 08 00 8D 22 80 0D 03 02 00 00 00 00 2A [21:28:41]Write i2c OK [21:28:41]MH_I2C_Read... [21:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:41]Read from MH i2c: E2 [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: E2 0B 00 [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: E2 0B 00 8D 22 00 CF AB 0C 0D C2 30 CB 9E 90 00 19 [21:28:41]RAPDU: CF AB 0C 0D C2 30 CB 9E 90 00 [21:28:41]wFMCommunicate OK [21:28:41]SAM_PROTO_SignData done [21:28:41]FM_MakeSignedData done [21:28:41]CreateOFDProtocolMessage [21:28:41]wFMCommunicate request_size=4 [21:28:41]MH_SAM_APDU [21:28:41]CAPDU: 80 11 00 00 [21:28:41]Write to MH i2c: E2 08 00 8E 22 80 11 00 00 00 00 00 00 2A [21:28:41]Write i2c OK [21:28:41]MH_I2C_Read... [21:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:41]Read from MH i2c: E2 [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: E2 17 00 [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: E2 17 00 8E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 77 [21:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:28:41]wFMCommunicate OK [21:28:41]CreateOFDProtocolMessage done [21:28:41]OFDSenderStorePacket 75545 [21:28:41]StoreOFDPacket docnum=75545 [21:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 BB 01 00 00 C3 10 B3 01 BB 27 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 89 6A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 27 01 00 35 04 06 00 89 E1 AF 2B FA 46 CF AB 0C 0D C2 30 CB 9E [21:28:41]CheckFolder [21:28:41]dirname=/storage/ofd_packets [21:28:41]CheckFolder done [21:28:41]ProducePacketName [21:28:41]name=ofd_packets/00075545 [21:28:41]NVStorageSaveData ofd_packets/00075545 [21:28:41]File name is /storage/ofd_packets/00075545 [21:28:41]Write 473 bytes [21:28:41]NVStorageSaveData done [21:28:41]OFDSenderStorePacket done [21:28:41]KKMCreateOFDPacket done [21:28:41]NVStorageSaveData kkm_last_timestamp [21:28:41]File name is /storage/kkm_last_timestamp [21:28:41]Write 4 bytes [21:28:41]NVStorageSaveData done [21:28:41]ExternCall_PrintAddStr [21:28:41]wPrintStart [21:28:41]Write to MH i2c: 01 00 00 8F 22 B1 [21:28:41]OFD Sender: Processing packet 75545 [packets to send 16, broken 15] [21:28:41]ProducePacketName [21:28:41]name=ofd_packets/00075545 [21:28:41]OFD Sender: To server: pG, [21:28:41]CommunicateWithHost lk.salyk.kg:30040 [21:28:41]ConnectInit lk.salyk.kg [21:28:41]Write i2c OK [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: 01 [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: 01 07 00 [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: 01 07 00 8F 22 00 00 00 00 00 FF 0F C6 [21:28:41]RasterBufferAndPrint [21:28:41]line Счет N : (3)273310 [21:28:41]line ИНН: 02508201610067 [21:28:41]line Контрольно-Кассовый Чек [21:28:41]line ПРОДАЖА [21:28:41]line Товар: 2000032780015 [21:28:41]line Слойка DC треугольная курица 110г [21:28:41]line 1.000 * 65.00 [21:28:41]line = 65.00 [21:28:41]line НДС 12% НСП 1% [21:28:41]line > о реализуемом товаре [21:28:41]line Товар: 4600682557456 [21:28:41]line Напиток FLash up energy эн ж/б 0,5/0,45л [21:28:41]line 1.000 * 85.00 [21:28:41]line = 85.00 [21:28:41]line НДС 12% НСП 1% [21:28:41]line > о реализуемом товаре [21:28:41]line ИТОГО: 150.00 [21:28:41]line НСП 1% : 1.32 [21:28:41]line НДС 12% : 15.93 [21:28:41]line Наличными: 150.00 [21:28:41]line Безнал.: 0.00 [21:28:41]line Место: АЗС № 133 "Партнер Нефть" [21:28:41]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:28:41]line СНО: Общий режим [21:28:41]line Чек 278 23.10.2024 21:28 [21:28:41]line Смена: 173 ФФД: 1.0 [21:28:41]line ЗНМ: 0300000020 [21:28:41]line РНМ: 0000000000161154 [21:28:41]line Версия ККМ: v1.0 [21:28:41]line ФМ: 0000000000963323 [21:28:41]line ФД: 75545 [21:28:41]line ФПД: 151602399541830 [21:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212841&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75545&fm=151602399541830&tin=02508201610067®Number=0000000000161154&sum=15000 [21:28:41]line 0 [21:28:41]written 0, free lines is 4095 [21:28:41]Connected sock=8 [21:28:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 BB 01 00 00 C3 10 B3 01 BB 27 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 89 6A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 19 27 01 00 35 04 06 00 89 E1 AF 2B FA 46 CF AB 0C 0D C2 30 CB 9E [21:28:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 0F 62 47 00 0E 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 39 36 33 33 32 33 10 04 04 00 19 27 01 00 F4 03 04 00 63 13 19 67 B6 04 01 00 00 A3 DF 80 54 70 89 8C 9B [21:28:41]CommunicateWithHost err = 0 [21:28:41]CheckOFDResponse [21:28:41]1017 (14) - 77093643461234 [21:28:41]1041 (16) - 0000000000963323 [21:28:41]1040 (4) - 75545 [21:28:41]1012 (4) - 23.10.2024 15:16 [21:28:41]1206 (1) - 0 [21:28:41]OFD Sender: Remove packet 75545 [21:28:41]ProducePacketName [21:28:41]name=ofd_packets/00075545 [21:28:41]NVStorageDeleteData [21:28:42]Write to MH i2c: 01 00 00 BE 22 E0 [21:28:42]Write i2c OK [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: 01 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: 01 07 00 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: 01 07 00 BE 22 00 00 00 00 00 46 0C 39 [21:28:42]RasterBufferAndPrint [21:28:42]line [21:28:42]line [21:28:42]line [21:28:42]line [21:28:42]line [21:28:42]written 0, free lines is 3147 [21:28:42]MH_Cut [21:28:42]Write to MH i2c: D1 01 00 C5 22 01 B9 [21:28:42]Write i2c OK [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: D1 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: D1 01 00 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: D1 01 00 C5 22 00 B8 [21:28:42]Write to MH i2c: 01 00 00 C6 22 E8 [21:28:42]Write i2c OK [21:28:42]MH_I2C_Read... [21:28:42]OFD Sender: No OFD packet to send [21:28:43]*** Cut start [21:28:43]*** Partial cut [21:28:43]*** CUTSNS_PIN = 1 [21:28:43]*** CUTSNS_PIN = 0 [21:28:43]*** Brake cut motor [21:28:43]Read from MH i2c: 01 [21:28:43]MH_I2C_Read... [21:28:43]*** Stop cut motor [21:28:43]*** Cut end [21:28:43]Read from MH i2c: 01 07 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: 01 07 00 C6 22 00 00 00 00 00 FF 0F FD [21:28:43]process_action close_receipt done [21:28:43]requested_data is exist [21:28:43]produce_requested_data [21:28:43]requested_item fm.sn is exist - process it [21:28:43]wFMCommunicate request_size=4 [21:28:43]MH_SAM_APDU [21:28:43]CAPDU: 80 11 00 00 [21:28:43]Write to MH i2c: E2 08 00 C7 22 80 11 00 00 00 00 00 00 63 [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:43]Read from MH i2c: E2 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 17 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 17 00 C7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B0 [21:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:28:43]wFMCommunicate OK [21:28:43]requested_item fd.num is exist - process it [21:28:43]SAM_PROTO_GetFieldsCounters [21:28:43]wFMCommunicate request_size=4 [21:28:43]MH_SAM_APDU [21:28:43]CAPDU: 80 13 00 00 [21:28:43]Write to MH i2c: E2 08 00 C8 22 80 13 00 00 00 00 00 00 66 [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:43]Read from MH i2c: E2 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 62 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 62 00 C8 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 19 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [21:28:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 19 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:43]wFMCommunicate OK [21:28:43]SAM_PROTO_GetFieldsCounters done [21:28:43]requested_item shift.num is exist - process it [21:28:43]requested_item shift.opened is exist - process it [21:28:43]req_shift_opened [21:28:43]FM_GetShiftState [21:28:43]SAM_PROTO_GetShiftState [21:28:43]wFMCommunicate request_size=4 [21:28:43]MH_SAM_APDU [21:28:43]CAPDU: 80 13 01 00 [21:28:43]Write to MH i2c: E2 08 00 C9 22 80 13 01 00 00 00 00 00 68 [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:43]Read from MH i2c: E2 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 0E 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 0E 00 C9 22 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CD [21:28:43]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:28:43]wFMCommunicate OK [21:28:43]SAM_PROTO_GetShiftState done [21:28:43]FM_GetShiftState done [21:28:43]req_shift_opened done [21:28:43]requested_item shift.open_date is exist - process it [21:28:43]req_shift_open_date [21:28:43]req_shift_open_date done [21:28:43]produce_requested_data done [21:28:43]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75545,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [21:28:43]process_action_free close_receipt [21:28:43]json_value_free [21:28:43]json_value_free done [21:28:43]process_json_proto returns [21:28:43]Send response to host [21:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75545,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [21:28:43]free response buf [21:28:43]execute_script done [21:28:43]execute_script returns [21:28:43]free content buf [21:28:43]Sock 5.Close socket [21:28:43]Sock 5.Thread stoped [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]accept exits with 6 [21:29:27]New connection [21:29:27]New thread 3066465636 created [21:29:27]Thread 3066608996 joined [21:29:27]Waiting for new connection... [21:29:27] Sock 6.Parse request [21:29:27]Sock 6.Check first char [21:29:27]Sock 6.First char is OK [21:29:27]request: POST /json_proto HTTP/1.0 [21:29:27]Method: POST [21:29:27]URL: /json_proto [21:29:27]Method is POST - this is cgi request [21:29:27]url: /json_proto [21:29:27]query_string will be loaded in cgi processing [21:29:27]execute_cgi json_proto POST (null) [21:29:27]execute_cgi path=json_proto method=POST [21:29:27]POST find Content-Length [21:29:27]Host: 172.17.44.196:8080 [21:29:27]Content-Length: 747 [21:29:27]Content-Type: application/json [21:29:27] [21:29:27]POST finish read [21:29:27]Found Content-Length = 747 [21:29:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273311", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.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: Mbank", "payments": [ { "type": 1, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:27]execute_script... [21:29:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273311", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.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: Mbank", "payments": [ { "type": 1, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:27]POST & json_proto [21:29:27]process_json_proto [21:29:27]json parsed OK: [21:29:27]protocol is kg_v1.0 [21:29:27]action value=close_receipt [21:29:27]process_action close_receipt [21:29:27]cmd_close_receipt [21:29:27]MH_GetDate [21:29:27]Write to MH i2c: F0 00 00 CA 22 DB [21:29:27]Write i2c OK [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: F0 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: F0 09 00 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: F0 09 00 CA 22 00 B9 6A 19 67 E7 19 F8 65 E4 [21:29:27]GetLastDocTimeStamp 1729718921 [21:29:27]current date 1729718969 [21:29:27]FM_GetShiftState [21:29:27]SAM_PROTO_GetShiftState [21:29:27]wFMCommunicate request_size=4 [21:29:27]MH_SAM_APDU [21:29:27]CAPDU: 80 13 01 00 [21:29:27]Write to MH i2c: E2 08 00 CB 22 80 13 01 00 00 00 00 00 6A [21:29:27]Write i2c OK [21:29:27]MH_I2C_Read... [21:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:27]Read from MH i2c: E2 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 0E 00 [21:29:27]MH_I2C_Read... [21:29:27]Read from MH i2c: E2 0E 00 CB 22 00 09 00 01 99 41 18 67 00 00 00 00 90 00 CF [21:29:27]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:29:27]wFMCommunicate OK [21:29:27]SAM_PROTO_GetShiftState done [21:29:27]FM_GetShiftState done [21:29:27]opened in 1729642905 [21:29:27]opened+sec_in_day 1729729305 [21:29:27]quantity*price = 40500 [21:29:27]sum+1 = 40501 [21:29:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 0.00 Безнал.: 405.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 279 23.10.2024 21:29 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75546 ФПД: 188985895882725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212929&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75546&fm=188985895882725&tin=02508201610067®Number=0000000000161154&sum=40500 0 [21:29:28]StoreToDocumentArchive [21:29:28]shift 173 fd 75546 [21:29:28]save to /storage/0173/doc_00075546 [21:29:28]save last doc name /storage/0173/doc_00075546 to /storage/kkm_last_doc_name [21:29:28]save OK [21:29:28]Clear old archive folders... [21:29:28]ProcessDocumentItem done err = 0, tmpTLVsize=280 [21:29:28]tlvbuf is 0079AA60 [21:29:28]SAM_PROTO_ClearQueue [21:29:28]wFMCommunicate request_size=4 [21:29:28]MH_SAM_APDU [21:29:28]CAPDU: 80 09 00 00 [21:29:28]Write to MH i2c: E2 08 00 D8 22 80 09 00 00 00 00 00 00 6C [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:28]Read from MH i2c: E2 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 03 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [21:29:28]RAPDU: 90 00 [21:29:28]wFMCommunicate OK [21:29:28]SAM_PROTO_ClearQueue done [21:29:28]KKMCreateOFDPacket [21:29:28]OFDProtocolAddRootSTLVToBuf [21:29:28]FM_MakeSignedData [21:29:28]FM_MakeSignedData [21:29:28]SAM_PROTO_SignData [21:29:28]wFMCommunicate request_size=4 [21:29:28]MH_SAM_APDU [21:29:28]CAPDU: 80 0D 01 02 [21:29:28]Write to MH i2c: E2 08 00 D9 22 80 0D 01 02 00 00 00 00 74 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:28]Read from MH i2c: E2 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 03 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 03 00 D9 22 00 90 00 6F [21:29:28]RAPDU: 90 00 [21:29:28]wFMCommunicate OK [21:29:28]wFMCommunicate request_size=255 [21:29:28]MH_SAM_APDU [21:29:28]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B9 6A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 [21:29:28]Write to MH i2c: E2 02 01 DA 22 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B9 6A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 00 D0 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:28]Read from MH i2c: E2 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 03 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 03 00 DA 22 00 90 00 70 [21:29:28]RAPDU: 90 00 [21:29:28]wFMCommunicate OK [21:29:28]wFMCommunicate request_size=39 [21:29:28]MH_SAM_APDU [21:29:28]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 27 01 00 35 04 06 00 AB E1 B5 31 0F E5 [21:29:28]Write to MH i2c: E2 2A 00 DB 22 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 27 01 00 35 04 06 00 AB E1 B5 31 0F E5 00 00 D4 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:28]Read from MH i2c: E2 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 03 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 03 00 DB 22 00 90 00 71 [21:29:28]RAPDU: 90 00 [21:29:28]wFMCommunicate OK [21:29:28]wFMCommunicate request_size=4 [21:29:28]MH_SAM_APDU [21:29:28]CAPDU: 80 0D 03 02 [21:29:28]Write to MH i2c: E2 08 00 DC 22 80 0D 03 02 00 00 00 00 79 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:28]Read from MH i2c: E2 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 0B 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 0B 00 DC 22 00 7D 80 C1 48 0C 33 D7 F8 90 00 8E [21:29:28]RAPDU: 7D 80 C1 48 0C 33 D7 F8 90 00 [21:29:28]wFMCommunicate OK [21:29:28]SAM_PROTO_SignData done [21:29:28]FM_MakeSignedData done [21:29:28]CreateOFDProtocolMessage [21:29:28]wFMCommunicate request_size=4 [21:29:28]MH_SAM_APDU [21:29:28]CAPDU: 80 11 00 00 [21:29:28]Write to MH i2c: E2 08 00 DD 22 80 11 00 00 00 00 00 00 79 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:28]Read from MH i2c: E2 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 17 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: E2 17 00 DD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 C6 [21:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:29:28]wFMCommunicate OK [21:29:28]CreateOFDProtocolMessage done [21:29:28]OFDSenderStorePacket 75546 [21:29:28]StoreOFDPacket docnum=75546 [21:29:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 6B 6D 24 01 E0 B3 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B9 6A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 27 01 00 35 04 06 00 AB E1 B5 31 0F E5 7D 80 C1 48 0C 33 D7 F8 [21:29:28]CheckFolder [21:29:28]dirname=/storage/ofd_packets [21:29:28]CheckFolder done [21:29:28]ProducePacketName [21:29:28]name=ofd_packets/00075546 [21:29:28]NVStorageSaveData ofd_packets/00075546 [21:29:28]File name is /storage/ofd_packets/00075546 [21:29:28]Write 330 bytes [21:29:28]NVStorageSaveData done [21:29:28]OFDSenderStorePacket done [21:29:28]KKMCreateOFDPacket done [21:29:28]NVStorageSaveData kkm_last_timestamp [21:29:28]File name is /storage/kkm_last_timestamp [21:29:28]Write 4 bytes [21:29:28]NVStorageSaveData done [21:29:28]ExternCall_PrintAddStr [21:29:28]wPrintStart [21:29:28]Write to MH i2c: 01 00 00 DE 22 00 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: 01 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: 01 07 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: 01 07 00 DE 22 00 00 00 00 00 FF 0F 15 [21:29:28]RasterBufferAndPrint [21:29:28]line Счет N : (3)273311 [21:29:28]line ИНН: 02508201610067 [21:29:28]line Контрольно-Кассовый Чек [21:29:28]line ПРОДАЖА [21:29:28]line Товар: 4650063110756 [21:29:28]line Масло Gazpromneft Super 10w40 1л [21:29:28]line 1.000 * 405.00 [21:29:28]line = 405.00 [21:29:28]line НДС 12% НСП 1% [21:29:28]line > о реализуемом товаре [21:29:28]line ИТОГО: 405.00 [21:29:28]line НСП 1% : 3.58 [21:29:28]line НДС 12% : 43.01 [21:29:28]line Наличными: 0.00 [21:29:28]line Безнал.: 405.00 [21:29:28]line Место: АЗС № 133 "Партнер Нефть" [21:29:28]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:29:28]line СНО: Общий режим [21:29:28]line Чек 279 23.10.2024 21:29 [21:29:28]line Смена: 173 ФФД: 1.0 [21:29:28]line ЗНМ: 0300000020 [21:29:28]line РНМ: 0000000000161154 [21:29:28]line Версия ККМ: v1.0 [21:29:28]line Платежная система: Mbank [21:29:28]line ФМ: 0000000000963323 [21:29:28]line ФД: 75546 [21:29:28]line ФПД: 188985895882725 [21:29:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T212929&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75546&fm=188985895882725&tin=02508201610067®Number=0000000000161154&sum=40500 [21:29:29]line 0 [21:29:29]OFD Sender: Processing packet 75546 [packets to send 16, broken 15] [21:29:29]ProducePacketName [21:29:29]name=ofd_packets/00075546 [21:29:29]OFD Sender: To server: pG, [21:29:29]CommunicateWithHost lk.salyk.kg:30040 [21:29:29]ConnectInit lk.salyk.kg [21:29:29]written 0, free lines is 4095 [21:29:29]Connected sock=8 [21:29:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 6B 6D 24 01 E0 B3 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 B9 6A 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 27 01 00 35 04 06 00 AB E1 B5 31 0F E5 7D 80 C1 48 0C 33 D7 F8 [21:29:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 44 3E 47 00 49 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1A 27 01 00 F4 03 04 00 93 13 19 67 B6 04 01 00 00 43 57 32 42 11 CF 86 B3 [21:29:29]CommunicateWithHost err = 0 [21:29:29]CheckOFDResponse [21:29:29]1017 (14) - 77093643461234 [21:29:29]1041 (16) - 0000000000963323 [21:29:29]1040 (4) - 75546 [21:29:29]1012 (4) - 23.10.2024 15:17 [21:29:29]1206 (1) - 0 [21:29:29]OFD Sender: Remove packet 75546 [21:29:29]ProducePacketName [21:29:29]name=ofd_packets/00075546 [21:29:29]NVStorageDeleteData [21:29:29]Write to MH i2c: 01 00 00 07 23 2A [21:29:29]Write i2c OK [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: 01 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: 01 07 00 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: 01 07 00 07 23 00 00 00 00 00 A7 0C E4 [21:29:29]RasterBufferAndPrint [21:29:29]line [21:29:29]line [21:29:29]line [21:29:29]line [21:29:29]line [21:29:29]written 0, free lines is 3243 [21:29:29]MH_Cut [21:29:29]Write to MH i2c: D1 01 00 0E 23 01 03 [21:29:29]Write i2c OK [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: D1 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: D1 01 00 [21:29:29]MH_I2C_Read... [21:29:29]Read from MH i2c: D1 01 00 0E 23 00 02 [21:29:29]Write to MH i2c: 01 00 00 0F 23 32 [21:29:29]Write i2c OK [21:29:29]MH_I2C_Read... [21:29:30]OFD Sender: No OFD packet to send [21:29:30]*** Cut start [21:29:30]*** Partial cut [21:29:30]*** CUTSNS_PIN = 1 [21:29:30]*** CUTSNS_PIN = 0 [21:29:30]*** Brake cut motor [21:29:31]Read from MH i2c: 01 [21:29:31]MH_I2C_Read... [21:29:31]*** Stop cut motor [21:29:31]*** Cut end [21:29:31]Read from MH i2c: 01 07 00 [21:29:31]MH_I2C_Read... [21:29:31]Read from MH i2c: 01 07 00 0F 23 00 00 00 00 00 FF 0F 47 [21:29:31]process_action close_receipt done [21:29:31]requested_data is exist [21:29:31]produce_requested_data [21:29:31]requested_item fm.sn is exist - process it [21:29:31]wFMCommunicate request_size=4 [21:29:31]MH_SAM_APDU [21:29:31]CAPDU: 80 11 00 00 [21:29:31]Write to MH i2c: E2 08 00 10 23 80 11 00 00 00 00 00 00 AD [21:29:31]Write i2c OK [21:29:31]MH_I2C_Read... [21:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:31]Read from MH i2c: E2 [21:29:31]MH_I2C_Read... [21:29:31]Read from MH i2c: E2 17 00 [21:29:31]MH_I2C_Read... [21:29:31]Read from MH i2c: E2 17 00 10 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 FA [21:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:29:31]wFMCommunicate OK [21:29:31]requested_item fd.num is exist - process it [21:29:31]SAM_PROTO_GetFieldsCounters [21:29:31]wFMCommunicate request_size=4 [21:29:31]MH_SAM_APDU [21:29:31]CAPDU: 80 13 00 00 [21:29:31]Write to MH i2c: E2 08 00 11 23 80 13 00 00 00 00 00 00 B0 [21:29:31]Write i2c OK [21:29:31]MH_I2C_Read... [21:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:31]Read from MH i2c: E2 [21:29:31]MH_I2C_Read... [21:29:31]Read from MH i2c: E2 62 00 [21:29:31]MH_I2C_Read... [21:29:31]Read from MH i2c: E2 62 00 11 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1A 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [21:29:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1A 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:31]wFMCommunicate OK [21:29:31]SAM_PROTO_GetFieldsCounters done [21:29:31]requested_item shift.num is exist - process it [21:29:31]requested_item shift.opened is exist - process it [21:29:31]req_shift_opened [21:29:31]FM_GetShiftState [21:29:31]SAM_PROTO_GetShiftState [21:29:31]wFMCommunicate request_size=4 [21:29:31]MH_SAM_APDU [21:29:31]CAPDU: 80 13 01 00 [21:29:31]Write to MH i2c: E2 08 00 12 23 80 13 01 00 00 00 00 00 B2 [21:29:31]Write i2c OK [21:29:31]MH_I2C_Read... [21:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:31]Read from MH i2c: E2 [21:29:31]MH_I2C_Read... [21:29:31]Read from MH i2c: E2 0E 00 [21:29:31]MH_I2C_Read... [21:29:31]Read from MH i2c: E2 0E 00 12 23 00 09 00 01 99 41 18 67 00 00 00 00 90 00 17 [21:29:31]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:29:31]wFMCommunicate OK [21:29:31]SAM_PROTO_GetShiftState done [21:29:31]FM_GetShiftState done [21:29:31]req_shift_opened done [21:29:31]requested_item shift.open_date is exist - process it [21:29:31]req_shift_open_date [21:29:31]req_shift_open_date done [21:29:31]produce_requested_data done [21:29:31]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75546,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [21:29:31]process_action_free close_receipt [21:29:31]json_value_free [21:29:31]json_value_free done [21:29:31]process_json_proto returns [21:29:31]Send response to host [21:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75546,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [21:29:31]free response buf [21:29:31]execute_script done [21:29:31]execute_script returns [21:29:31]free content buf [21:29:31]Sock 6.Close socket [21:29:31]Sock 6.Thread stoped [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [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: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]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:19]accept exits with 5 [21:49:19]New connection [21:49:19]New thread 3066608996 created [21:49:19]Thread 3066465636 joined [21:49:19]Waiting for new connection... [21:49:19] Sock 5.Parse request [21:49:19]Sock 5.Check first char [21:49:19]Sock 5.First char is OK [21:49:19]request: POST /json_proto HTTP/1.0 [21:49:19]Method: POST [21:49:19]URL: /json_proto [21:49:19]Method is POST - this is cgi request [21:49:19]url: /json_proto [21:49:19]query_string will be loaded in cgi processing [21:49:19]execute_cgi json_proto POST (null) [21:49:19]execute_cgi path=json_proto method=POST [21:49:19]POST find Content-Length [21:49:19]Host: 172.17.44.196:8080 [21:49:19]Content-Length: 1617 [21:49:19]Content-Type: application/json [21:49:19] [21:49:19]POST finish read [21:49:19]Found Content-Length = 1617 [21:49:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273312", "tax_sys" : 0, "items" : [ { "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077626227", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B. \u043F\u043E\u0440\u0438\u0441 \u0420\u043E\u0448\u0435\u043D 80 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:19]execute_script... [21:49:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273312", "tax_sys" : 0, "items" : [ { "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077626227", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B. \u043F\u043E\u0440\u0438\u0441 \u0420\u043E\u0448\u0435\u043D 80 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:19]POST & json_proto [21:49:19]process_json_proto [21:49:19]json parsed OK: [21:49:19]protocol is kg_v1.0 [21:49:19]action value=close_receipt [21:49:19]process_action close_receipt [21:49:19]cmd_close_receipt [21:49:19]MH_GetDate [21:49:19]Write to MH i2c: F0 00 00 13 23 25 [21:49:20]Write i2c OK [21:49:20]MH_I2C_Read... [21:49:20]Read from MH i2c: F0 [21:49:20]MH_I2C_Read... [21:49:20]Read from MH i2c: F0 09 00 [21:49:20]MH_I2C_Read... [21:49:20]Read from MH i2c: F0 09 00 13 23 00 62 6F 19 67 E7 19 F8 65 DC [21:49:20]GetLastDocTimeStamp 1729718969 [21:49:20]current date 1729720162 [21:49:20]FM_GetShiftState [21:49:20]SAM_PROTO_GetShiftState [21:49:20]wFMCommunicate request_size=4 [21:49:20]MH_SAM_APDU [21:49:20]CAPDU: 80 13 01 00 [21:49:20]Write to MH i2c: E2 08 00 14 23 80 13 01 00 00 00 00 00 B4 [21:49:20]Write i2c OK [21:49:20]MH_I2C_Read... [21:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:20]Read from MH i2c: E2 [21:49:20]MH_I2C_Read... [21:49:20]Read from MH i2c: E2 0E 00 [21:49:20]MH_I2C_Read... [21:49:20]Read from MH i2c: E2 0E 00 14 23 00 09 00 01 99 41 18 67 00 00 00 00 90 00 19 [21:49:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:49:20]wFMCommunicate OK [21:49:20]SAM_PROTO_GetShiftState done [21:49:20]FM_GetShiftState done [21:49:20]opened in 1729642905 [21:49:20]opened+sec_in_day 1729729305 [21:49:20]quantity*price = 6500 [21:49:20]sum+1 = 6501 [21:49:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4631150682851 Нап En Dragon Mojito лайм,клуб ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077626227 Шоколад мол. порис Рошен 80 гр 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 355.00 НСП 1% : 3.13 НДС 12% : 37.69 Наличными: 355.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 280 23.10.2024 21:49 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75547 ФПД: 229667398195825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T214922&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75547&fm=229667398195825&tin=02508201610067®Number=0000000000161154&sum=35500 0 [21:49:21]StoreToDocumentArchive [21:49:21]shift 173 fd 75547 [21:49:21]save to /storage/0173/doc_00075547 [21:49:21]save last doc name /storage/0173/doc_00075547 to /storage/kkm_last_doc_name [21:49:21]save OK [21:49:21]Clear old archive folders... [21:49:21]ProcessDocumentItem done err = 0, tmpTLVsize=673 [21:49:21]tlvbuf is 0080FBD0 [21:49:21]SAM_PROTO_ClearQueue [21:49:21]wFMCommunicate request_size=4 [21:49:21]MH_SAM_APDU [21:49:21]CAPDU: 80 09 00 00 [21:49:21]Write to MH i2c: E2 08 00 21 23 80 09 00 00 00 00 00 00 B6 [21:49:21]Write i2c OK [21:49:21]MH_I2C_Read... [21:49:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:21]Read from MH i2c: E2 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: E2 03 00 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: E2 03 00 21 23 00 90 00 B8 [21:49:21]RAPDU: 90 00 [21:49:21]wFMCommunicate OK [21:49:21]SAM_PROTO_ClearQueue done [21:49:21]KKMCreateOFDPacket [21:49:21]OFDProtocolAddRootSTLVToBuf [21:49:21]FM_MakeSignedData [21:49:21]FM_MakeSignedData [21:49:21]SAM_PROTO_SignData [21:49:21]wFMCommunicate request_size=4 [21:49:21]MH_SAM_APDU [21:49:21]CAPDU: 80 0D 01 02 [21:49:21]Write to MH i2c: E2 08 00 22 23 80 0D 01 02 00 00 00 00 BE [21:49:21]Write i2c OK [21:49:21]MH_I2C_Read... [21:49:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:21]Read from MH i2c: E2 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: E2 03 00 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: E2 03 00 22 23 00 90 00 B9 [21:49:21]RAPDU: 90 00 [21:49:21]wFMCommunicate OK [21:49:21]wFMCommunicate request_size=255 [21:49:21]MH_SAM_APDU [21:49:21]CAPDU: 80 0D 02 02 FA 03 00 A1 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 [21:49:21]Write to MH i2c: E2 02 01 23 23 80 0D 02 02 FA 00 03 00 A1 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 00 4D [21:49:21]Write i2c OK [21:49:21]MH_I2C_Read... [21:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:21]Read from MH i2c: E2 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: E2 03 00 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [21:49:21]RAPDU: 90 00 [21:49:21]wFMCommunicate OK [21:49:21]wFMCommunicate request_size=255 [21:49:21]MH_SAM_APDU [21:49:21]CAPDU: 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 [21:49:21]Write to MH i2c: E2 02 01 24 23 80 0D 02 02 FA 00 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 00 03 [21:49:21]Write i2c OK [21:49:21]MH_I2C_Read... [21:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:21]Read from MH i2c: E2 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: E2 03 00 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: E2 03 00 24 23 00 90 00 BB [21:49:21]RAPDU: 90 00 [21:49:21]wFMCommunicate OK [21:49:21]wFMCommunicate request_size=182 [21:49:21]MH_SAM_APDU [21:49:21]CAPDU: 80 0D 02 02 B1 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 0E 00 00 00 00 07 04 06 00 AC 8A 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 01 00 00 F4 03 04 00 62 6F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 27 01 00 35 04 06 00 D0 E1 9B AF 9A 71 [21:49:21]Write to MH i2c: E2 B9 00 25 23 80 0D 02 02 B1 00 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 0E 00 00 00 00 07 04 06 00 AC 8A 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 01 00 00 F4 03 04 00 62 6F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 27 01 00 35 04 06 00 D0 E1 9B AF 9A 71 00 00 E4 [21:49:21]Write i2c OK [21:49:21]MH_I2C_Read... [21:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:21]Read from MH i2c: E2 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: E2 03 00 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: E2 03 00 25 23 00 90 00 BC [21:49:21]RAPDU: 90 00 [21:49:21]wFMCommunicate OK [21:49:21]wFMCommunicate request_size=4 [21:49:21]MH_SAM_APDU [21:49:21]CAPDU: 80 0D 03 02 [21:49:21]Write to MH i2c: E2 08 00 26 23 80 0D 03 02 00 00 00 00 C4 [21:49:21]Write i2c OK [21:49:21]MH_I2C_Read... [21:49:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:22]Read from MH i2c: E2 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: E2 0B 00 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: E2 0B 00 26 23 00 F4 59 68 FA 68 9F 4D F0 90 00 B8 [21:49:22]RAPDU: F4 59 68 FA 68 9F 4D F0 90 00 [21:49:22]wFMCommunicate OK [21:49:22]SAM_PROTO_SignData done [21:49:22]FM_MakeSignedData done [21:49:22]CreateOFDProtocolMessage [21:49:22]wFMCommunicate request_size=4 [21:49:22]MH_SAM_APDU [21:49:22]CAPDU: 80 11 00 00 [21:49:22]Write to MH i2c: E2 08 00 27 23 80 11 00 00 00 00 00 00 C4 [21:49:22]Write i2c OK [21:49:22]MH_I2C_Read... [21:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:22]Read from MH i2c: E2 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: E2 17 00 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: E2 17 00 27 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 11 [21:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:49:22]wFMCommunicate OK [21:49:22]CreateOFDProtocolMessage done [21:49:22]OFDSenderStorePacket 75547 [21:49:22]StoreOFDPacket docnum=75547 [21:49:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B5 02 00 00 DA C1 AD 02 DA B3 5A 03 01 00 03 00 A1 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 0E 00 00 00 00 07 04 06 00 AC 8A 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 01 00 00 F4 03 04 00 62 6F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 27 01 00 35 04 06 00 D0 E1 9B AF 9A 71 F4 59 68 FA 68 9F 4D F0 [21:49:22]CheckFolder [21:49:22]dirname=/storage/ofd_packets [21:49:22]CheckFolder done [21:49:22]ProducePacketName [21:49:22]name=ofd_packets/00075547 [21:49:22]NVStorageSaveData ofd_packets/00075547 [21:49:22]File name is /storage/ofd_packets/00075547 [21:49:22]Write 723 bytes [21:49:22]NVStorageSaveData done [21:49:22]OFDSenderStorePacket done [21:49:22]KKMCreateOFDPacket done [21:49:22]NVStorageSaveData kkm_last_timestamp [21:49:22]File name is /storage/kkm_last_timestamp [21:49:22]Write 4 bytes [21:49:22]NVStorageSaveData done [21:49:22]ExternCall_PrintAddStr [21:49:22]wPrintStart [21:49:22]Write to MH i2c: 01 00 00 28 23 4B [21:49:22]Write i2c OK [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: 01 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: 01 07 00 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: 01 07 00 28 23 00 00 00 00 00 FF 0F 60 [21:49:22]RasterBufferAndPrint [21:49:22]line Счет N : (3)273312 [21:49:22]line ИНН: 02508201610067 [21:49:22]line Контрольно-Кассовый Чек [21:49:22]line ПРОДАЖА [21:49:22]line Товар: 2000032760017 [21:49:22]line Слойка DC треугольная мясо110г [21:49:22]line 1.000 * 65.00 [21:49:22]line = 65.00 [21:49:22]line НДС 12% НСП 1% [21:49:22]line > о реализуемом товаре [21:49:22]line Товар: 2000032780015 [21:49:22]line Слойка DC треугольная курица 110г [21:49:22]line 1.000 * 65.00 [21:49:22]line = 65.00 [21:49:22]line НДС 12% НСП 1% [21:49:22]line > о реализуемом товаре [21:49:22]line Товар: 4631150682851 [21:49:22]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [21:49:22]line 1.000 * 95.00 [21:49:22]line = 95.00 [21:49:22]line НДС 12% НСП 1% [21:49:22]line > о реализуемом товаре [21:49:22]line Товар: 4823077626227 [21:49:22]line Шоколад мол. порис Рошен 80 гр [21:49:22]line 1.000 * 130.00 [21:49:22]line = 130.00 [21:49:22]line НДС 12% НСП 1% [21:49:22]line > о реализуемом товаре [21:49:22]line ИТОГО: 355.00 [21:49:22]line НСП 1% : 3.13 [21:49:22]line НДС 12% : 37.69 [21:49:22]line Наличными: 355.00 [21:49:22]line Безнал.: 0.00 [21:49:22]line Место: АЗС № 133 "Партнер Нефть" [21:49:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:49:22]line СНО: Общий режим [21:49:22]line Чек 280 23.10.2024 21:49 [21:49:22]line Смена: 173 ФФД: 1.0 [21:49:22]line ЗНМ: 0300000020 [21:49:22]line РНМ: 0000000000161154 [21:49:22]line Версия ККМ: v1.0 [21:49:22]line ФМ: 0000000000963323 [21:49:22]line ФД: 75547 [21:49:22]line ФПД: 229667398195825 [21:49:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T214922&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75547&fm=229667398195825&tin=02508201610067®Number=0000000000161154&sum=35500 [21:49:22]OFD Sender: Processing packet 75547 [packets to send 16, broken 15] [21:49:22]ProducePacketName [21:49:22]name=ofd_packets/00075547 [21:49:22]OFD Sender: To server: pG, [21:49:22]CommunicateWithHost lk.salyk.kg:30040 [21:49:22]ConnectInit lk.salyk.kg [21:49:22]line 0 [21:49:22]written 0, free lines is 4095 [21:49:22]Connected sock=8 [21:49:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B5 02 00 00 DA C1 AD 02 DA B3 5A 03 01 00 03 00 A1 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 32 37 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB 2E 20 D0 BF D0 BE D1 80 D0 B8 D1 81 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 38 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 0E 00 00 00 00 07 04 06 00 AC 8A 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 01 00 00 F4 03 04 00 62 6F 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 27 01 00 35 04 06 00 D0 E1 9B AF 9A 71 F4 59 68 FA 68 9F 4D F0 [21:49:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 18 08 47 00 BF 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1B 27 01 00 F4 03 04 00 3C 18 19 67 B6 04 01 00 00 61 ED B9 9C AB DD D3 A3 [21:49:22]CommunicateWithHost err = 0 [21:49:22]CheckOFDResponse [21:49:22]1017 (14) - 77093643461234 [21:49:22]1041 (16) - 0000000000963323 [21:49:22]1040 (4) - 75547 [21:49:22]1012 (4) - 23.10.2024 15:37 [21:49:22]1206 (1) - 0 [21:49:22]OFD Sender: Remove packet 75547 [21:49:22]ProducePacketName [21:49:22]name=ofd_packets/00075547 [21:49:22]NVStorageDeleteData [21:49:23]Write to MH i2c: 01 00 00 65 23 88 [21:49:23]Write i2c OK [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: 01 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: 01 07 00 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: 01 07 00 65 23 00 00 00 00 00 52 0B EC [21:49:23]RasterBufferAndPrint [21:49:23]line [21:49:23]line [21:49:23]line [21:49:23]line [21:49:23]line [21:49:23]written 0, free lines is 2904 [21:49:23]MH_Cut [21:49:23]Write to MH i2c: D1 01 00 6C 23 01 61 [21:49:23]Write i2c OK [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: D1 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: D1 01 00 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: D1 01 00 6C 23 00 60 [21:49:23]Write to MH i2c: 01 00 00 6D 23 90 [21:49:23]Write i2c OK [21:49:23]MH_I2C_Read... [21:49:23]OFD Sender: No OFD packet to send [21:49:24]*** Cut start [21:49:24]*** Partial cut [21:49:24]*** CUTSNS_PIN = 1 [21:49:24]*** CUTSNS_PIN = 0 [21:49:24]*** Brake cut motor [21:49:24]Read from MH i2c: 01 [21:49:24]MH_I2C_Read... [21:49:24]*** Stop cut motor [21:49:24]*** Cut end [21:49:24]Read from MH i2c: 01 07 00 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: 01 07 00 6D 23 00 00 00 00 00 FF 0F A5 [21:49:24]process_action close_receipt done [21:49:24]requested_data is exist [21:49:24]produce_requested_data [21:49:24]requested_item fm.sn is exist - process it [21:49:24]wFMCommunicate request_size=4 [21:49:24]MH_SAM_APDU [21:49:24]CAPDU: 80 11 00 00 [21:49:24]Write to MH i2c: E2 08 00 6E 23 80 11 00 00 00 00 00 00 0B [21:49:24]Write i2c OK [21:49:24]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 17 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 17 00 6E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 58 [21:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:49:25]wFMCommunicate OK [21:49:25]requested_item fd.num is exist - process it [21:49:25]SAM_PROTO_GetFieldsCounters [21:49:25]wFMCommunicate request_size=4 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 13 00 00 [21:49:25]Write to MH i2c: E2 08 00 6F 23 80 13 00 00 00 00 00 00 0E [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:25]Read from MH i2c: E2 62 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 62 00 6F 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1B 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [21:49:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1B 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:25]wFMCommunicate OK [21:49:25]SAM_PROTO_GetFieldsCounters done [21:49:25]requested_item shift.num is exist - process it [21:49:25]requested_item shift.opened is exist - process it [21:49:25]req_shift_opened [21:49:25]FM_GetShiftState [21:49:25]SAM_PROTO_GetShiftState [21:49:25]wFMCommunicate request_size=4 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 13 01 00 [21:49:25]Write to MH i2c: E2 08 00 70 23 80 13 01 00 00 00 00 00 10 [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 0E 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 0E 00 70 23 00 09 00 01 99 41 18 67 00 00 00 00 90 00 75 [21:49:25]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:49:25]wFMCommunicate OK [21:49:25]SAM_PROTO_GetShiftState done [21:49:25]FM_GetShiftState done [21:49:25]req_shift_opened done [21:49:25]requested_item shift.open_date is exist - process it [21:49:25]req_shift_open_date [21:49:25]req_shift_open_date done [21:49:25]produce_requested_data done [21:49:25]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75547,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [21:49:25]process_action_free close_receipt [21:49:25]json_value_free [21:49:25]json_value_free done [21:49:25]process_json_proto returns [21:49:25]Send response to host [21:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75547,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [21:49:25]free response buf [21:49:25]execute_script done [21:49:25]execute_script returns [21:49:25]free content buf [21:49:25]Sock 5.Close socket [21:49:25]Sock 5.Thread stoped [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:20]accept exits with 6 [21:52:20]New connection [21:52:20]New thread 3066465636 created [21:52:20]Thread 3066608996 joined [21:52:20]Waiting for new connection... [21:52:20] Sock 6.Parse request [21:52:20]Sock 6.Check first char [21:52:20]Sock 6.First char is OK [21:52:20]request: POST /json_proto HTTP/1.0 [21:52:20]Method: POST [21:52:20]URL: /json_proto [21:52:20]Method is POST - this is cgi request [21:52:20]url: /json_proto [21:52:20]query_string will be loaded in cgi processing [21:52:20]execute_cgi json_proto POST (null) [21:52:20]execute_cgi path=json_proto method=POST [21:52:20]POST find Content-Length [21:52:20]Host: 172.17.44.196:8080 [21:52:20]Content-Length: 1103 [21:52:20]Content-Type: application/json [21:52:20] [21:52:20]POST finish read [21:52:20]Found Content-Length = 1103 [21:52:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273313", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 2.000, "sum" : 112.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:20]execute_script... [21:52: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)273313", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 56.00, "quantity" : 2.000, "sum" : 112.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:20]POST & json_proto [21:52:20]process_json_proto [21:52:20]json parsed OK: [21:52:20]protocol is kg_v1.0 [21:52:20]action value=close_receipt [21:52:20]process_action close_receipt [21:52:20]cmd_close_receipt [21:52:20]MH_GetDate [21:52:20]Write to MH i2c: F0 00 00 71 23 83 [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: F0 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: F0 09 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: F0 09 00 71 23 00 16 70 19 67 E7 19 F8 65 EF [21:52:20]GetLastDocTimeStamp 1729720162 [21:52:20]current date 1729720342 [21:52:20]FM_GetShiftState [21:52:20]SAM_PROTO_GetShiftState [21:52:20]wFMCommunicate request_size=4 [21:52:20]MH_SAM_APDU [21:52:20]CAPDU: 80 13 01 00 [21:52:20]Write to MH i2c: E2 08 00 72 23 80 13 01 00 00 00 00 00 12 [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 0E 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 0E 00 72 23 00 09 00 01 99 41 18 67 00 00 00 00 90 00 77 [21:52:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:52:20]wFMCommunicate OK [21:52:20]SAM_PROTO_GetShiftState done [21:52:20]FM_GetShiftState done [21:52:20]opened in 1729642905 [21:52:20]opened+sec_in_day 1729729305 [21:52:20]quantity*price = 11200 [21:52:20]sum+1 = 11201 [21:52:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481965 Напиток энерг Nitro дикие ягоды 0,45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 207.00 НСП 1% : 1.83 НДС 12% : 21.98 Наличными: 0.00 Безнал.: 207.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 281 23.10.2024 21:52 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75548 ФПД: 100496263768918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215222&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75548&fm=100496263768918&tin=02508201610067®Number=0000000000161154&sum=20700 0 [21:52:21]StoreToDocumentArchive [21:52:21]shift 173 fd 75548 [21:52:21]save to /storage/0173/doc_00075548 [21:52:21]save last doc name /storage/0173/doc_00075548 to /storage/kkm_last_doc_name [21:52:21]save OK [21:52:21]Clear old archive folders... [21:52:21]ProcessDocumentItem done err = 0, tmpTLVsize=417 [21:52:21]tlvbuf is 007B4950 [21:52:21]SAM_PROTO_ClearQueue [21:52:21]wFMCommunicate request_size=4 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 09 00 00 [21:52:21]Write to MH i2c: E2 08 00 7F 23 80 09 00 00 00 00 00 00 14 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 7F 23 00 90 00 16 [21:52:21]RAPDU: 90 00 [21:52:21]wFMCommunicate OK [21:52:21]SAM_PROTO_ClearQueue done [21:52:21]KKMCreateOFDPacket [21:52:21]OFDProtocolAddRootSTLVToBuf [21:52:21]FM_MakeSignedData [21:52:21]FM_MakeSignedData [21:52:21]SAM_PROTO_SignData [21:52:21]wFMCommunicate request_size=4 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 0D 01 02 [21:52:21]Write to MH i2c: E2 08 00 80 23 80 0D 01 02 00 00 00 00 1C [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 80 23 00 90 00 17 [21:52:21]RAPDU: 90 00 [21:52:21]wFMCommunicate OK [21:52:21]wFMCommunicate request_size=255 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 C0 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [21:52:21]Write to MH i2c: E2 02 01 81 23 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 C0 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 61 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 81 23 00 90 00 18 [21:52:21]RAPDU: 90 00 [21:52:21]wFMCommunicate OK [21:52:21]wFMCommunicate request_size=176 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 16 70 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 27 01 00 35 04 06 00 5B 66 9C 1A 6B 56 [21:52:21]Write to MH i2c: E2 B3 00 82 23 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 16 70 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 27 01 00 35 04 06 00 5B 66 9C 1A 6B 56 00 00 63 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 82 23 00 90 00 19 [21:52:21]RAPDU: 90 00 [21:52:21]wFMCommunicate OK [21:52:21]wFMCommunicate request_size=4 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 0D 03 02 [21:52:21]Write to MH i2c: E2 08 00 83 23 80 0D 03 02 00 00 00 00 21 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 0B 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 0B 00 83 23 00 50 AE F4 59 24 B9 9D 24 90 00 0B [21:52:21]RAPDU: 50 AE F4 59 24 B9 9D 24 90 00 [21:52:21]wFMCommunicate OK [21:52:21]SAM_PROTO_SignData done [21:52:21]FM_MakeSignedData done [21:52:21]CreateOFDProtocolMessage [21:52:21]wFMCommunicate request_size=4 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 11 00 00 [21:52:21]Write to MH i2c: E2 08 00 84 23 80 11 00 00 00 00 00 00 21 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 17 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 17 00 84 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 6E [21:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:52:21]wFMCommunicate OK [21:52:21]CreateOFDProtocolMessage done [21:52:21]OFDSenderStorePacket 75548 [21:52:21]StoreOFDPacket docnum=75548 [21:52:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B5 01 00 00 1B 3F AD 01 CD D4 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 C0 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 16 70 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 27 01 00 35 04 06 00 5B 66 9C 1A 6B 56 50 AE F4 59 24 B9 9D 24 [21:52:21]CheckFolder [21:52:21]dirname=/storage/ofd_packets [21:52:21]CheckFolder done [21:52:21]ProducePacketName [21:52:21]name=ofd_packets/00075548 [21:52:21]NVStorageSaveData ofd_packets/00075548 [21:52:21]File name is /storage/ofd_packets/00075548 [21:52:21]Write 467 bytes [21:52:21]NVStorageSaveData done [21:52:21]OFDSenderStorePacket done [21:52:21]KKMCreateOFDPacket done [21:52:21]NVStorageSaveData kkm_last_timestamp [21:52:21]File name is /storage/kkm_last_timestamp [21:52:21]Write 4 bytes [21:52:21]NVStorageSaveData done [21:52:21]ExternCall_PrintAddStr [21:52:21]wPrintStart [21:52:21]Write to MH i2c: 01 00 00 85 23 A8 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: 01 [21:52:22]MH_I2C_Read... [21:52:22]OFD Sender: Processing packet 75548 [packets to send 16, broken 15] [21:52:22]ProducePacketName [21:52:22]name=ofd_packets/00075548 [21:52:22]OFD Sender: To server: pG, [21:52:22]CommunicateWithHost lk.salyk.kg:30040 [21:52:22]ConnectInit lk.salyk.kg [21:52:22]Read from MH i2c: 01 07 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 07 00 85 23 00 00 00 00 00 FF 0F BD [21:52:22]RasterBufferAndPrint [21:52:22]line Счет N : (3)273313 [21:52:22]line ИНН: 02508201610067 [21:52:22]line Контрольно-Кассовый Чек [21:52:22]line ПРОДАЖА [21:52:22]line Товар: 4607065001445 [21:52:22]line Шок батончик Snickers 50,5г [21:52:22]line 2.000 * 56.00 [21:52:22]line = 112.00 [21:52:22]line НДС 12% НСП 1% [21:52:22]line > о реализуемом товаре [21:52:22]line Товар: 4700000481965 [21:52:22]line Напиток энерг Nitro дикие ягоды 0,45 ж/б [21:52:22]line 1.000 * 95.00 [21:52:22]line = 95.00 [21:52:22]line НДС 12% НСП 1% [21:52:22]line > о реализуемом товаре [21:52:22]line ИТОГО: 207.00 [21:52:22]line НСП 1% : 1.83 [21:52:22]line НДС 12% : 21.98 [21:52:22]line Наличными: 0.00 [21:52:22]line Безнал.: 207.00 [21:52:22]line Место: АЗС № 133 "Партнер Нефть" [21:52:22]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [21:52:22]line СНО: Общий режим [21:52:22]line Чек 281 23.10.2024 21:52 [21:52:22]line Смена: 173 ФФД: 1.0 [21:52:22]line ЗНМ: 0300000020 [21:52:22]line РНМ: 0000000000161154 [21:52:22]line Версия ККМ: v1.0 [21:52:22]line Платежная система: Mbank [21:52:22]line ФМ: 0000000000963323 [21:52:22]line ФД: 75548 [21:52:22]line ФПД: 100496263768918 [21:52:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215222&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75548&fm=100496263768918&tin=02508201610067®Number=0000000000161154&sum=20700 [21:52:22]line 0 [21:52:22]written 0, free lines is 4095 [21:52:22]Connected sock=9 [21:52:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 B5 01 00 00 1B 3F AD 01 CD D4 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 15 00 00 00 00 13 04 06 00 C0 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 16 70 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 27 01 00 35 04 06 00 5B 66 9C 1A 6B 56 50 AE F4 59 24 B9 9D 24 [21:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 44 62 47 00 A0 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1C 27 01 00 F4 03 04 00 F0 18 19 67 B6 04 01 00 00 2A 41 4F F2 3D 13 27 E6 [21:52:22]CommunicateWithHost err = 0 [21:52:22]CheckOFDResponse [21:52:22]1017 (14) - 77093643461234 [21:52:22]1041 (16) - 0000000000963323 [21:52:22]1040 (4) - 75548 [21:52:22]1012 (4) - 23.10.2024 15:40 [21:52:22]1206 (1) - 0 [21:52:22]OFD Sender: Remove packet 75548 [21:52:22]ProducePacketName [21:52:22]name=ofd_packets/00075548 [21:52:22]NVStorageDeleteData [21:52:22]Write to MH i2c: 01 00 00 B4 23 D7 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 07 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 07 00 B4 23 00 00 00 00 00 4A 0C 34 [21:52:22]RasterBufferAndPrint [21:52:22]line [21:52:22]line [21:52:22]line [21:52:22]line [21:52:22]line [21:52:22]written 0, free lines is 3152 [21:52:22]MH_Cut [21:52:22]Write to MH i2c: D1 01 00 BB 23 01 B0 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: D1 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: D1 01 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: D1 01 00 BB 23 00 AF [21:52:22]Write to MH i2c: 01 00 00 BC 23 DF [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]OFD Sender: No OFD packet to send [21:52:23]*** Cut start [21:52:23]*** Partial cut [21:52:23]*** CUTSNS_PIN = 1 [21:52:23]*** CUTSNS_PIN = 0 [21:52:24]*** Brake cut motor [21:52:24]Read from MH i2c: 01 [21:52:24]MH_I2C_Read... [21:52:24]*** Stop cut motor [21:52:24]*** Cut end [21:52:24]Read from MH i2c: 01 07 00 [21:52:24]MH_I2C_Read... [21:52:24]Read from MH i2c: 01 07 00 BC 23 00 00 00 00 00 FF 0F F4 [21:52:24]process_action close_receipt done [21:52:24]requested_data is exist [21:52:24]produce_requested_data [21:52:24]requested_item fm.sn is exist - process it [21:52:24]wFMCommunicate request_size=4 [21:52:24]MH_SAM_APDU [21:52:24]CAPDU: 80 11 00 00 [21:52:24]Write to MH i2c: E2 08 00 BD 23 80 11 00 00 00 00 00 00 5A [21:52:24]Write i2c OK [21:52:24]MH_I2C_Read... [21:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:24]Read from MH i2c: E2 [21:52:24]MH_I2C_Read... [21:52:24]Read from MH i2c: E2 17 00 [21:52:24]MH_I2C_Read... [21:52:24]Read from MH i2c: E2 17 00 BD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 A7 [21:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [21:52:24]wFMCommunicate OK [21:52:24]requested_item fd.num is exist - process it [21:52:24]SAM_PROTO_GetFieldsCounters [21:52:24]wFMCommunicate request_size=4 [21:52:24]MH_SAM_APDU [21:52:24]CAPDU: 80 13 00 00 [21:52:24]Write to MH i2c: E2 08 00 BE 23 80 13 00 00 00 00 00 00 5D [21:52:24]Write i2c OK [21:52:24]MH_I2C_Read... [21:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:24]Read from MH i2c: E2 [21:52:24]MH_I2C_Read... [21:52:24]Read from MH i2c: E2 62 00 [21:52:24]MH_I2C_Read... [21:52:24]Read from MH i2c: E2 62 00 BE 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1C 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 B0 [21:52:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1C 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:24]wFMCommunicate OK [21:52:24]SAM_PROTO_GetFieldsCounters done [21:52:24]requested_item shift.num is exist - process it [21:52:24]requested_item shift.opened is exist - process it [21:52:24]req_shift_opened [21:52:24]FM_GetShiftState [21:52:24]SAM_PROTO_GetShiftState [21:52:24]wFMCommunicate request_size=4 [21:52:24]MH_SAM_APDU [21:52:24]CAPDU: 80 13 01 00 [21:52:24]Write to MH i2c: E2 08 00 BF 23 80 13 01 00 00 00 00 00 5F [21:52:24]Write i2c OK [21:52:24]MH_I2C_Read... [21:52:24]Read from MH i2c: E2 [21:52:24]MH_I2C_Read... [21:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:24]Read from MH i2c: E2 0E 00 [21:52:24]MH_I2C_Read... [21:52:24]Read from MH i2c: E2 0E 00 BF 23 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C4 [21:52:24]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [21:52:24]wFMCommunicate OK [21:52:24]SAM_PROTO_GetShiftState done [21:52:24]FM_GetShiftState done [21:52:24]req_shift_opened done [21:52:24]requested_item shift.open_date is exist - process it [21:52:24]req_shift_open_date [21:52:24]req_shift_open_date done [21:52:24]produce_requested_data done [21:52:24]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75548,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [21:52:24]process_action_free close_receipt [21:52:24]json_value_free [21:52:24]json_value_free done [21:52:24]process_json_proto returns [21:52:24]Send response to host [21:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75548,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [21:52:24]free response buf [21:52:24]execute_script done [21:52:24]execute_script returns [21:52:24]free content buf [21:52:24]Sock 6.Close socket [21:52:24]Sock 6.Thread stoped [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:08]accept exits with 5 [22:17:08]New connection [22:17:08]New thread 3066608996 created [22:17:08]Thread 3066465636 joined [22:17:08]Waiting for new connection... [22:17:08] Sock 5.Parse request [22:17:08]Sock 5.Check first char [22:17:08]Sock 5.First char is OK [22:17:08]request: POST /json_proto HTTP/1.0 [22:17:08]Method: POST [22:17:08]URL: /json_proto [22:17:08]Method is POST - this is cgi request [22:17:08]url: /json_proto [22:17:08]query_string will be loaded in cgi processing [22:17:08]execute_cgi json_proto POST (null) [22:17:08]execute_cgi path=json_proto method=POST [22:17:08]POST find Content-Length [22:17:08]Host: 172.17.44.196:8080 [22:17:08]Content-Length: 771 [22:17:08]Content-Type: application/json [22:17:08] [22:17:08]POST finish read [22:17:08]Found Content-Length = 771 [22:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273314", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 5.000, "sum" : 575.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: Mbank", "payments": [ { "type": 1, "sum" : 575.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:08]execute_script... [22:17: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)273314", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 5.000, "sum" : 575.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: Mbank", "payments": [ { "type": 1, "sum" : 575.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:08]POST & json_proto [22:17:08]process_json_proto [22:17:08]json parsed OK: [22:17:08]protocol is kg_v1.0 [22:17:08]action value=close_receipt [22:17:08]process_action close_receipt [22:17:08]cmd_close_receipt [22:17:08]MH_GetDate [22:17:08]Write to MH i2c: F0 00 00 C0 23 D2 [22:17:08]Write i2c OK [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: F0 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: F0 09 00 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: F0 09 00 C0 23 00 E6 75 19 67 E7 19 F8 65 13 [22:17:08]GetLastDocTimeStamp 1729720342 [22:17:08]current date 1729721830 [22:17:08]FM_GetShiftState [22:17:08]SAM_PROTO_GetShiftState [22:17:08]wFMCommunicate request_size=4 [22:17:08]MH_SAM_APDU [22:17:08]CAPDU: 80 13 01 00 [22:17:08]Write to MH i2c: E2 08 00 C1 23 80 13 01 00 00 00 00 00 61 [22:17:08]Write i2c OK [22:17:08]MH_I2C_Read... [22:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:08]Read from MH i2c: E2 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: E2 0E 00 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: E2 0E 00 C1 23 00 09 00 01 99 41 18 67 00 00 00 00 90 00 C6 [22:17:08]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [22:17:08]wFMCommunicate OK [22:17:08]SAM_PROTO_GetShiftState done [22:17:08]FM_GetShiftState done [22:17:08]opened in 1729642905 [22:17:08]opened+sec_in_day 1729729305 [22:17:08]quantity*price = 57500 [22:17:08]sum+1 = 57501 [22:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 575.00 НСП 1% : 5.09 НДС 12% : 61.06 Наличными: 0.00 Безнал.: 575.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 282 23.10.2024 22:17 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75549 ФПД: 56142564974582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221710&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75549&fm=56142564974582&tin=02508201610067®Number=0000000000161154&sum=57500 0 [22:17:09]StoreToDocumentArchive [22:17:09]shift 173 fd 75549 [22:17:09]save to /storage/0173/doc_00075549 [22:17:09]save last doc name /storage/0173/doc_00075549 to /storage/kkm_last_doc_name [22:17:09]save OK [22:17:09]Clear old archive folders... [22:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=280 [22:17:09]tlvbuf is 0077FD60 [22:17:09]SAM_PROTO_ClearQueue [22:17:09]wFMCommunicate request_size=4 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 09 00 00 [22:17:09]Write to MH i2c: E2 08 00 CE 23 80 09 00 00 00 00 00 00 63 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 CE 23 00 90 00 65 [22:17:09]RAPDU: 90 00 [22:17:09]wFMCommunicate OK [22:17:09]SAM_PROTO_ClearQueue done [22:17:09]KKMCreateOFDPacket [22:17:09]OFDProtocolAddRootSTLVToBuf [22:17:09]FM_MakeSignedData [22:17:09]FM_MakeSignedData [22:17:09]SAM_PROTO_SignData [22:17:09]wFMCommunicate request_size=4 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 0D 01 02 [22:17:09]Write to MH i2c: E2 08 00 CF 23 80 0D 01 02 00 00 00 00 6B [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 CF 23 00 90 00 66 [22:17:09]RAPDU: 90 00 [22:17:09]wFMCommunicate OK [22:17:09]wFMCommunicate request_size=255 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C E0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 E6 75 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 [22:17:09]Write to MH i2c: E2 02 01 D0 23 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C E0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 E6 75 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 00 00 E3 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 D0 23 00 90 00 67 [22:17:09]RAPDU: 90 00 [22:17:09]wFMCommunicate OK [22:17:09]wFMCommunicate request_size=39 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 27 01 00 35 04 06 00 33 0F B5 A4 5F F6 [22:17:09]Write to MH i2c: E2 2A 00 D1 23 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 27 01 00 35 04 06 00 33 0F B5 A4 5F F6 00 00 58 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 D1 23 00 90 00 68 [22:17:09]RAPDU: 90 00 [22:17:09]wFMCommunicate OK [22:17:09]wFMCommunicate request_size=4 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 0D 03 02 [22:17:09]Write to MH i2c: E2 08 00 D2 23 80 0D 03 02 00 00 00 00 70 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 0B 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 0B 00 D2 23 00 44 57 66 9B A9 B6 71 B4 90 00 91 [22:17:09]RAPDU: 44 57 66 9B A9 B6 71 B4 90 00 [22:17:09]wFMCommunicate OK [22:17:09]SAM_PROTO_SignData done [22:17:09]FM_MakeSignedData done [22:17:09]CreateOFDProtocolMessage [22:17:09]wFMCommunicate request_size=4 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 11 00 00 [22:17:09]Write to MH i2c: E2 08 00 D3 23 80 11 00 00 00 00 00 00 70 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 17 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 17 00 D3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 BD [22:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:17:09]wFMCommunicate OK [22:17:09]CreateOFDProtocolMessage done [22:17:09]OFDSenderStorePacket 75549 [22:17:09]StoreOFDPacket docnum=75549 [22:17:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 A5 7D 24 01 C2 9F 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C E0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 E6 75 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 27 01 00 35 04 06 00 33 0F B5 A4 5F F6 44 57 66 9B A9 B6 71 B4 [22:17:09]CheckFolder [22:17:09]dirname=/storage/ofd_packets [22:17:09]CheckFolder done [22:17:09]ProducePacketName [22:17:09]name=ofd_packets/00075549 [22:17:09]NVStorageSaveData ofd_packets/00075549 [22:17:09]File name is /storage/ofd_packets/00075549 [22:17:09]Write 330 bytes [22:17:09]NVStorageSaveData done [22:17:09]OFDSenderStorePacket done [22:17:09]KKMCreateOFDPacket done [22:17:09]NVStorageSaveData kkm_last_timestamp [22:17:09]File name is /storage/kkm_last_timestamp [22:17:09]Write 4 bytes [22:17:09]NVStorageSaveData done [22:17:09]ExternCall_PrintAddStr [22:17:09]wPrintStart [22:17:09]Write to MH i2c: 01 00 00 D4 23 F7 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: 01 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: 01 07 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: 01 07 00 D4 23 00 00 00 00 00 FF 0F 0C [22:17:09]RasterBufferAndPrint [22:17:09]line Счет N : (3)273314 [22:17:09]line ИНН: 02508201610067 [22:17:09]line Контрольно-Кассовый Чек [22:17:09]line ПРОДАЖА [22:17:09]line Товар: 2000036210013 [22:17:09]line Кофе Капучино (GABB TRADE) [22:17:09]line 5.000 * 115.00 [22:17:09]line = 575.00 [22:17:09]line НДС 12% НСП 1% [22:17:09]line > о реализуемом товаре [22:17:09]line ИТОГО: 575.00 [22:17:09]line НСП 1% : 5.09 [22:17:09]line НДС 12% : 61.06 [22:17:09]line Наличными: 0.00 [22:17:09]line Безнал.: 575.00 [22:17:09]line Место: АЗС № 133 "Партнер Нефть" [22:17:09]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:17:09]line СНО: Общий режим [22:17:09]line Чек 282 23.10.2024 22:17 [22:17:09]line Смена: 173 ФФД: 1.0 [22:17:09]line ЗНМ: 0300000020 [22:17:09]line РНМ: 0000000000161154 [22:17:09]line Версия ККМ: v1.0 [22:17:09]line Платежная система: Mbank [22:17:09]line ФМ: 0000000000963323 [22:17:09]line ФД: 75549 [22:17:09]line ФПД: 56142564974582 [22:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221710&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75549&fm=56142564974582&tin=02508201610067®Number=0000000000161154&sum=57500 [22:17:10]line 0 [22:17:10]OFD Sender: Processing packet 75549 [packets to send 16, broken 15] [22:17:10]ProducePacketName [22:17:10]name=ofd_packets/00075549 [22:17:10]OFD Sender: To server: pG, [22:17:10]CommunicateWithHost lk.salyk.kg:30040 [22:17:10]ConnectInit lk.salyk.kg [22:17:10]written 0, free lines is 4095 [22:17:10]Connected sock=8 [22:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2C 01 00 00 A5 7D 24 01 C2 9F 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C E0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 E6 75 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 27 01 00 35 04 06 00 33 0F B5 A4 5F F6 44 57 66 9B A9 B6 71 B4 [22:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 78 62 47 00 4C AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1D 27 01 00 F4 03 04 00 C0 1E 19 67 B6 04 01 00 00 DA 74 1C 4A CE 65 DA E2 [22:17:10]CommunicateWithHost err = 0 [22:17:10]CheckOFDResponse [22:17:10]1017 (14) - 77093643461234 [22:17:10]1041 (16) - 0000000000963323 [22:17:10]1040 (4) - 75549 [22:17:10]1012 (4) - 23.10.2024 16:05 [22:17:10]1206 (1) - 0 [22:17:10]OFD Sender: Remove packet 75549 [22:17:10]ProducePacketName [22:17:10]name=ofd_packets/00075549 [22:17:10]NVStorageDeleteData [22:17:10]Write to MH i2c: 01 00 00 FC 23 1F [22:17:10]Write i2c OK [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: 01 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: 01 07 00 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: 01 07 00 FC 23 00 00 00 00 00 C9 0C FB [22:17:10]RasterBufferAndPrint [22:17:10]line [22:17:10]line [22:17:10]line [22:17:10]line [22:17:10]line [22:17:10]written 0, free lines is 3277 [22:17:10]MH_Cut [22:17:10]Write to MH i2c: D1 01 00 03 24 01 F9 [22:17:10]Write i2c OK [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: D1 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: D1 01 00 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: D1 01 00 03 24 00 F8 [22:17:10]Write to MH i2c: 01 00 00 04 24 28 [22:17:10]Write i2c OK [22:17:10]MH_I2C_Read... [22:17:11]OFD Sender: No OFD packet to send [22:17:11]*** Cut start [22:17:11]*** Partial cut [22:17:11]*** CUTSNS_PIN = 1 [22:17:11]*** CUTSNS_PIN = 0 [22:17:11]*** Brake cut motor [22:17:12]Read from MH i2c: 01 [22:17:12]MH_I2C_Read... [22:17:12]*** Stop cut motor [22:17:12]*** Cut end [22:17:12]Read from MH i2c: 01 07 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 07 00 04 24 00 00 00 00 00 FF 0F 3D [22:17:12]process_action close_receipt done [22:17:12]requested_data is exist [22:17:12]produce_requested_data [22:17:12]requested_item fm.sn is exist - process it [22:17:12]wFMCommunicate request_size=4 [22:17:12]MH_SAM_APDU [22:17:12]CAPDU: 80 11 00 00 [22:17:12]Write to MH i2c: E2 08 00 05 24 80 11 00 00 00 00 00 00 A3 [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:12]Read from MH i2c: E2 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 17 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 17 00 05 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F0 [22:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:17:12]wFMCommunicate OK [22:17:12]requested_item fd.num is exist - process it [22:17:12]SAM_PROTO_GetFieldsCounters [22:17:12]wFMCommunicate request_size=4 [22:17:12]MH_SAM_APDU [22:17:12]CAPDU: 80 13 00 00 [22:17:12]Write to MH i2c: E2 08 00 06 24 80 13 00 00 00 00 00 00 A6 [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:12]Read from MH i2c: E2 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 62 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 62 00 06 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1D 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [22:17:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1D 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:12]wFMCommunicate OK [22:17:12]SAM_PROTO_GetFieldsCounters done [22:17:12]requested_item shift.num is exist - process it [22:17:12]requested_item shift.opened is exist - process it [22:17:12]req_shift_opened [22:17:12]FM_GetShiftState [22:17:12]SAM_PROTO_GetShiftState [22:17:12]wFMCommunicate request_size=4 [22:17:12]MH_SAM_APDU [22:17:12]CAPDU: 80 13 01 00 [22:17:12]Write to MH i2c: E2 08 00 07 24 80 13 01 00 00 00 00 00 A8 [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:12]Read from MH i2c: E2 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 0E 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 0E 00 07 24 00 09 00 01 99 41 18 67 00 00 00 00 90 00 0D [22:17:12]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [22:17:12]wFMCommunicate OK [22:17:12]SAM_PROTO_GetShiftState done [22:17:12]FM_GetShiftState done [22:17:12]req_shift_opened done [22:17:12]requested_item shift.open_date is exist - process it [22:17:12]req_shift_open_date [22:17:12]req_shift_open_date done [22:17:12]produce_requested_data done [22:17:12]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75549,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [22:17:12]process_action_free close_receipt [22:17:12]json_value_free [22:17:12]json_value_free done [22:17:12]process_json_proto returns [22:17:12]Send response to host [22:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75549,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [22:17:12]free response buf [22:17:12]execute_script done [22:17:12]execute_script returns [22:17:12]free content buf [22:17:12]Sock 5.Close socket [22:17:12]Sock 5.Thread stoped [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:44]accept exits with 6 [22:33:44]New connection [22:33:44]New thread 3066465636 created [22:33:44]Thread 3066608996 joined [22:33:44]Waiting for new connection... [22:33:44] Sock 6.Parse request [22:33:44]Sock 6.Check first char [22:33:44]Sock 6.First char is OK [22:33:44]request: POST /json_proto HTTP/1.0 [22:33:44]Method: POST [22:33:44]URL: /json_proto [22:33:44]Method is POST - this is cgi request [22:33:44]url: /json_proto [22:33:44]query_string will be loaded in cgi processing [22:33:44]execute_cgi json_proto POST (null) [22:33:44]execute_cgi path=json_proto method=POST [22:33:44]POST find Content-Length [22:33:44]Host: 172.17.44.196:8080 [22:33:44]Content-Length: 646 [22:33:44]Content-Type: application/json [22:33:44] [22:33:44]POST finish read [22:33:44]Found Content-Length = 646 [22:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273315", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:44]execute_script... [22:33: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 : (3)273315", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:44]POST & json_proto [22:33:44]process_json_proto [22:33:44]json parsed OK: [22:33:44]protocol is kg_v1.0 [22:33:44]action value=close_receipt [22:33:44]process_action close_receipt [22:33:44]cmd_close_receipt [22:33:44]MH_GetDate [22:33:44]Write to MH i2c: F0 00 00 08 24 1B [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: F0 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: F0 09 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: F0 09 00 08 24 00 CA 79 19 67 E7 19 F8 65 44 [22:33:44]GetLastDocTimeStamp 1729721830 [22:33:44]current date 1729722826 [22:33:44]FM_GetShiftState [22:33:44]SAM_PROTO_GetShiftState [22:33:44]wFMCommunicate request_size=4 [22:33:44]MH_SAM_APDU [22:33:44]CAPDU: 80 13 01 00 [22:33:44]Write to MH i2c: E2 08 00 09 24 80 13 01 00 00 00 00 00 AA [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:44]Read from MH i2c: E2 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 0E 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 0E 00 09 24 00 09 00 01 99 41 18 67 00 00 00 00 90 00 0F [22:33:44]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [22:33:44]wFMCommunicate OK [22:33:44]SAM_PROTO_GetShiftState done [22:33:44]FM_GetShiftState done [22:33:44]opened in 1729642905 [22:33:44]opened+sec_in_day 1729729305 [22:33:44]quantity*price = 13000 [22:33:44]sum+1 = 13001 [22:33:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 283 23.10.2024 22:33 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75550 ФПД: 135397234791845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T223346&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75550&fm=135397234791845&tin=02508201610067®Number=0000000000161154&sum=13000 0 [22:33:45]StoreToDocumentArchive [22:33:45]shift 173 fd 75550 [22:33:45]save to /storage/0173/doc_00075550 [22:33:45]save last doc name /storage/0173/doc_00075550 to /storage/kkm_last_doc_name [22:33:45]save OK [22:33:45]Clear old archive folders... [22:33:45]ProcessDocumentItem done err = 0, tmpTLVsize=282 [22:33:45]tlvbuf is B6F01870 [22:33:45]SAM_PROTO_ClearQueue [22:33:45]wFMCommunicate request_size=4 [22:33:45]MH_SAM_APDU [22:33:45]CAPDU: 80 09 00 00 [22:33:45]Write to MH i2c: E2 08 00 16 24 80 09 00 00 00 00 00 00 AC [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:45]Read from MH i2c: E2 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 16 24 00 90 00 AE [22:33:45]RAPDU: 90 00 [22:33:45]wFMCommunicate OK [22:33:45]SAM_PROTO_ClearQueue done [22:33:45]KKMCreateOFDPacket [22:33:45]OFDProtocolAddRootSTLVToBuf [22:33:45]FM_MakeSignedData [22:33:45]FM_MakeSignedData [22:33:45]SAM_PROTO_SignData [22:33:45]wFMCommunicate request_size=4 [22:33:45]MH_SAM_APDU [22:33:45]CAPDU: 80 0D 01 02 [22:33:45]Write to MH i2c: E2 08 00 17 24 80 0D 01 02 00 00 00 00 B4 [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:45]Read from MH i2c: E2 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 17 24 00 90 00 AF [22:33:45]RAPDU: 90 00 [22:33:45]wFMCommunicate OK [22:33:45]wFMCommunicate request_size=255 [22:33:45]MH_SAM_APDU [22:33:45]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 CA 79 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 [22:33:45]Write to MH i2c: E2 02 01 18 24 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 CA 79 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 00 00 48 [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:45]Read from MH i2c: E2 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 18 24 00 90 00 B0 [22:33:45]RAPDU: 90 00 [22:33:45]wFMCommunicate OK [22:33:45]wFMCommunicate request_size=41 [22:33:45]MH_SAM_APDU [22:33:45]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 27 01 00 35 04 06 00 7B 24 A0 15 55 A5 [22:33:45]Write to MH i2c: E2 2C 00 19 24 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 27 01 00 35 04 06 00 7B 24 A0 15 55 A5 00 00 14 [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:45]Read from MH i2c: E2 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 19 24 00 90 00 B1 [22:33:45]RAPDU: 90 00 [22:33:45]wFMCommunicate OK [22:33:45]wFMCommunicate request_size=4 [22:33:45]MH_SAM_APDU [22:33:45]CAPDU: 80 0D 03 02 [22:33:45]Write to MH i2c: E2 08 00 1A 24 80 0D 03 02 00 00 00 00 B9 [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:45]Read from MH i2c: E2 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 0B 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 0B 00 1A 24 00 C4 87 CC E3 E4 16 C1 EB 90 00 5A [22:33:45]RAPDU: C4 87 CC E3 E4 16 C1 EB 90 00 [22:33:45]wFMCommunicate OK [22:33:45]SAM_PROTO_SignData done [22:33:45]FM_MakeSignedData done [22:33:45]CreateOFDProtocolMessage [22:33:45]wFMCommunicate request_size=4 [22:33:45]MH_SAM_APDU [22:33:45]CAPDU: 80 11 00 00 [22:33:45]Write to MH i2c: E2 08 00 1B 24 80 11 00 00 00 00 00 00 B9 [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:45]Read from MH i2c: E2 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 17 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 17 00 1B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 06 [22:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:33:45]wFMCommunicate OK [22:33:45]CreateOFDProtocolMessage done [22:33:45]OFDSenderStorePacket 75550 [22:33:45]StoreOFDPacket docnum=75550 [22:33:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 B4 CD 26 01 E7 55 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 CA 79 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 27 01 00 35 04 06 00 7B 24 A0 15 55 A5 C4 87 CC E3 E4 16 C1 EB [22:33:45]CheckFolder [22:33:45]dirname=/storage/ofd_packets [22:33:45]CheckFolder done [22:33:45]ProducePacketName [22:33:45]name=ofd_packets/00075550 [22:33:45]NVStorageSaveData ofd_packets/00075550 [22:33:45]File name is /storage/ofd_packets/00075550 [22:33:45]Write 332 bytes [22:33:45]NVStorageSaveData done [22:33:45]OFDSenderStorePacket done [22:33:45]KKMCreateOFDPacket done [22:33:45]NVStorageSaveData kkm_last_timestamp [22:33:45]File name is /storage/kkm_last_timestamp [22:33:45]Write 4 bytes [22:33:45]NVStorageSaveData done [22:33:45]ExternCall_PrintAddStr [22:33:45]wPrintStart [22:33:45]Write to MH i2c: 01 00 00 1C 24 40 [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: 01 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: 01 07 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: 01 07 00 1C 24 00 00 00 00 00 FF 0F 55 [22:33:45]RasterBufferAndPrint [22:33:45]line Счет N : (3)273315 [22:33:45]line ИНН: 02508201610067 [22:33:45]line Контрольно-Кассовый Чек [22:33:45]line ПРОДАЖА [22:33:45]line Товар: 2000036220012 [22:33:45]line Кофе Капучино XL(GABB TRADE) [22:33:45]line 1.000 * 130.00 [22:33:45]line = 130.00 [22:33:45]line НДС 12% НСП 1% [22:33:45]line > о реализуемом товаре [22:33:45]line ИТОГО: 130.00 [22:33:45]line НСП 1% : 1.15 [22:33:45]line НДС 12% : 13.80 [22:33:45]line Наличными: 130.00 [22:33:45]line Безнал.: 0.00 [22:33:45]line Место: АЗС № 133 "Партнер Нефть" [22:33:45]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:33:45]line СНО: Общий режим [22:33:45]line Чек 283 23.10.2024 22:33 [22:33:45]line Смена: 173 ФФД: 1.0 [22:33:45]line ЗНМ: 0300000020 [22:33:45]line РНМ: 0000000000161154 [22:33:45]line Версия ККМ: v1.0 [22:33:46]line ФМ: 0000000000963323 [22:33:46]line ФД: 75550 [22:33:46]line ФПД: 135397234791845 [22:33:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T223346&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75550&fm=135397234791845&tin=02508201610067®Number=0000000000161154&sum=13000 [22:33:46]line 0 [22:33:46]OFD Sender: Processing packet 75550 [packets to send 16, broken 15] [22:33:46]ProducePacketName [22:33:46]name=ofd_packets/00075550 [22:33:46]OFD Sender: To server: pG, [22:33:46]CommunicateWithHost lk.salyk.kg:30040 [22:33:46]ConnectInit lk.salyk.kg [22:33:46]written 0, free lines is 4095 [22:33:46]Connected sock=8 [22:33:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 2E 01 00 00 B4 CD 26 01 E7 55 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 CA 79 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 27 01 00 35 04 06 00 7B 24 A0 15 55 A5 C4 87 CC E3 E4 16 C1 EB [22:33:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E5 D8 47 00 BA 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1E 27 01 00 F4 03 04 00 A4 22 19 67 B6 04 01 00 00 D5 0B 59 0E 19 09 22 F7 [22:33:46]CommunicateWithHost err = 0 [22:33:46]CheckOFDResponse [22:33:46]1017 (14) - 77093643461234 [22:33:46]1041 (16) - 0000000000963323 [22:33:46]1040 (4) - 75550 [22:33:46]1012 (4) - 23.10.2024 16:21 [22:33:46]1206 (1) - 0 [22:33:46]OFD Sender: Remove packet 75550 [22:33:46]ProducePacketName [22:33:46]name=ofd_packets/00075550 [22:33:46]NVStorageDeleteData [22:33:46]Write to MH i2c: 01 00 00 44 24 68 [22:33:46]Write i2c OK [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: 01 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: 01 07 00 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: 01 07 00 44 24 00 00 00 00 00 C5 0C 40 [22:33:46]RasterBufferAndPrint [22:33:46]line [22:33:46]line [22:33:46]line [22:33:46]line [22:33:46]line [22:33:46]written 0, free lines is 3272 [22:33:46]MH_Cut [22:33:46]Write to MH i2c: D1 01 00 4B 24 01 41 [22:33:46]Write i2c OK [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: D1 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: D1 01 00 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: D1 01 00 4B 24 00 40 [22:33:46]Write to MH i2c: 01 00 00 4C 24 70 [22:33:46]Write i2c OK [22:33:46]MH_I2C_Read... [22:33:46]OFD Sender: No OFD packet to send [22:33:47]*** Cut start [22:33:47]*** Partial cut [22:33:47]*** CUTSNS_PIN = 1 [22:33:47]*** CUTSNS_PIN = 0 [22:33:47]*** Brake cut motor [22:33:48]Read from MH i2c: 01 [22:33:48]MH_I2C_Read... [22:33:48]*** Stop cut motor [22:33:48]*** Cut end [22:33:48]Read from MH i2c: 01 07 00 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: 01 07 00 4C 24 00 00 00 00 00 FF 0F 85 [22:33:48]process_action close_receipt done [22:33:48]requested_data is exist [22:33:48]produce_requested_data [22:33:48]requested_item fm.sn is exist - process it [22:33:48]wFMCommunicate request_size=4 [22:33:48]MH_SAM_APDU [22:33:48]CAPDU: 80 11 00 00 [22:33:48]Write to MH i2c: E2 08 00 4D 24 80 11 00 00 00 00 00 00 EB [22:33:48]Write i2c OK [22:33:48]MH_I2C_Read... [22:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:48]Read from MH i2c: E2 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 17 00 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 17 00 4D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 38 [22:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:33:48]wFMCommunicate OK [22:33:48]requested_item fd.num is exist - process it [22:33:48]SAM_PROTO_GetFieldsCounters [22:33:48]wFMCommunicate request_size=4 [22:33:48]MH_SAM_APDU [22:33:48]CAPDU: 80 13 00 00 [22:33:48]Write to MH i2c: E2 08 00 4E 24 80 13 00 00 00 00 00 00 EE [22:33:48]Write i2c OK [22:33:48]MH_I2C_Read... [22:33:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:48]Read from MH i2c: E2 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 62 00 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 62 00 4E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1E 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [22:33:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1E 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:48]wFMCommunicate OK [22:33:48]SAM_PROTO_GetFieldsCounters done [22:33:48]requested_item shift.num is exist - process it [22:33:48]requested_item shift.opened is exist - process it [22:33:48]req_shift_opened [22:33:48]FM_GetShiftState [22:33:48]SAM_PROTO_GetShiftState [22:33:48]wFMCommunicate request_size=4 [22:33:48]MH_SAM_APDU [22:33:48]CAPDU: 80 13 01 00 [22:33:48]Write to MH i2c: E2 08 00 4F 24 80 13 01 00 00 00 00 00 F0 [22:33:48]Write i2c OK [22:33:48]MH_I2C_Read... [22:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:48]Read from MH i2c: E2 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 0E 00 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 0E 00 4F 24 00 09 00 01 99 41 18 67 00 00 00 00 90 00 55 [22:33:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [22:33:48]wFMCommunicate OK [22:33:48]SAM_PROTO_GetShiftState done [22:33:48]FM_GetShiftState done [22:33:48]req_shift_opened done [22:33:48]requested_item shift.open_date is exist - process it [22:33:48]req_shift_open_date [22:33:48]req_shift_open_date done [22:33:48]produce_requested_data done [22:33:48]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75550,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [22:33:48]process_action_free close_receipt [22:33:48]json_value_free [22:33:48]json_value_free done [22:33:48]process_json_proto returns [22:33:48]Send response to host [22:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75550,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [22:33:48]free response buf [22:33:48]execute_script done [22:33:48]execute_script returns [22:33:48]free content buf [22:33:48]Sock 6.Close socket [22:33:48]Sock 6.Thread stoped [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:52]accept exits with 5 [22:41:52]New connection [22:41:52]New thread 3066608996 created [22:41:52]Thread 3066465636 joined [22:41:52]Waiting for new connection... [22:41:52] Sock 5.Parse request [22:41:52]Sock 5.Check first char [22:41:52]Sock 5.First char is OK [22:41:52]request: POST /json_proto HTTP/1.0 [22:41:52]Method: POST [22:41:52]URL: /json_proto [22:41:52]Method is POST - this is cgi request [22:41:52]url: /json_proto [22:41:52]query_string will be loaded in cgi processing [22:41:52]execute_cgi json_proto POST (null) [22:41:52]execute_cgi path=json_proto method=POST [22:41:52]POST find Content-Length [22:41:52]Host: 172.17.44.196:8080 [22:41:52]Content-Length: 1970 [22:41:52]Content-Type: application/json [22:41:52] [22:41:52]POST finish read [22:41:52]Found Content-Length = 1970 [22:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273316", "tax_sys" : 0, "items" : [ { "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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: Mbank", "payments": [ { "type": 1, "sum" : 1117.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:52]execute_script... [22:41:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273316", "tax_sys" : 0, "items" : [ { "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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: Mbank", "payments": [ { "type": 1, "sum" : 1117.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:52]POST & json_proto [22:41:52]process_json_proto [22:41:52]json parsed OK: [22:41:52]protocol is kg_v1.0 [22:41:52]action value=close_receipt [22:41:52]process_action close_receipt [22:41:52]cmd_close_receipt [22:41:52]MH_GetDate [22:41:52]Write to MH i2c: F0 00 00 50 24 63 [22:41:52]Write i2c OK [22:41:52]MH_I2C_Read... [22:41:52]Read from MH i2c: F0 [22:41:52]MH_I2C_Read... [22:41:52]Read from MH i2c: F0 09 00 [22:41:52]MH_I2C_Read... [22:41:52]Read from MH i2c: F0 09 00 50 24 00 B3 7B 19 67 E7 19 F8 65 77 [22:41:52]GetLastDocTimeStamp 1729722826 [22:41:52]current date 1729723315 [22:41:52]FM_GetShiftState [22:41:52]SAM_PROTO_GetShiftState [22:41:52]wFMCommunicate request_size=4 [22:41:52]MH_SAM_APDU [22:41:52]CAPDU: 80 13 01 00 [22:41:52]Write to MH i2c: E2 08 00 51 24 80 13 01 00 00 00 00 00 F2 [22:41:52]Write i2c OK [22:41:52]MH_I2C_Read... [22:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:53]Read from MH i2c: E2 [22:41:53]MH_I2C_Read... [22:41:53]Read from MH i2c: E2 0E 00 [22:41:53]MH_I2C_Read... [22:41:53]Read from MH i2c: E2 0E 00 51 24 00 09 00 01 99 41 18 67 00 00 00 00 90 00 57 [22:41:53]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [22:41:53]wFMCommunicate OK [22:41:53]SAM_PROTO_GetShiftState done [22:41:53]FM_GetShiftState done [22:41:53]opened in 1729642905 [22:41:53]opened+sec_in_day 1729729305 [22:41:53]quantity*price = 79500 [22:41:53]sum+1 = 79501 [22:41:53]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189332 Холодный чай Fuse персик 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1117.00 НСП 1% : 9.88 НДС 12% : 118.61 Наличными: 0.00 Безнал.: 1117.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 284 23.10.2024 22:41 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75551 ФПД: 159122133425068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224155&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75551&fm=159122133425068&tin=02508201610067®Number=0000000000161154&sum=111700 0 [22:41:54]StoreToDocumentArchive [22:41:54]shift 173 fd 75551 [22:41:54]save to /storage/0173/doc_00075551 [22:41:54]save last doc name /storage/0173/doc_00075551 to /storage/kkm_last_doc_name [22:41:54]save OK [22:41:54]Clear old archive folders... [22:41:54]ProcessDocumentItem done err = 0, tmpTLVsize=752 [22:41:54]tlvbuf is 007D37F0 [22:41:54]SAM_PROTO_ClearQueue [22:41:54]wFMCommunicate request_size=4 [22:41:54]MH_SAM_APDU [22:41:54]CAPDU: 80 09 00 00 [22:41:54]Write to MH i2c: E2 08 00 5E 24 80 09 00 00 00 00 00 00 F4 [22:41:54]Write i2c OK [22:41:54]MH_I2C_Read... [22:41:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:54]Read from MH i2c: E2 [22:41:54]MH_I2C_Read... [22:41:54]Read from MH i2c: E2 03 00 [22:41:54]MH_I2C_Read... [22:41:54]Read from MH i2c: E2 03 00 5E 24 00 90 00 F6 [22:41:54]RAPDU: 90 00 [22:41:54]wFMCommunicate OK [22:41:54]SAM_PROTO_ClearQueue done [22:41:54]KKMCreateOFDPacket [22:41:54]OFDProtocolAddRootSTLVToBuf [22:41:54]FM_MakeSignedData [22:41:54]FM_MakeSignedData [22:41:54]SAM_PROTO_SignData [22:41:54]wFMCommunicate request_size=4 [22:41:54]MH_SAM_APDU [22:41:54]CAPDU: 80 0D 01 02 [22:41:54]Write to MH i2c: E2 08 00 5F 24 80 0D 01 02 00 00 00 00 FC [22:41:54]Write i2c OK [22:41:54]MH_I2C_Read... [22:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:54]Read from MH i2c: E2 [22:41:54]MH_I2C_Read... [22:41:54]Read from MH i2c: E2 03 00 [22:41:54]MH_I2C_Read... [22:41:54]Read from MH i2c: E2 03 00 5F 24 00 90 00 F7 [22:41:54]RAPDU: 90 00 [22:41:54]wFMCommunicate OK [22:41:54]wFMCommunicate request_size=255 [22:41:54]MH_SAM_APDU [22:41:54]CAPDU: 80 0D 02 02 FA 03 00 F0 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 [22:41:54]Write to MH i2c: E2 02 01 60 24 80 0D 02 02 FA 00 03 00 F0 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 00 00 05 [22:41:54]Write i2c OK [22:41:54]MH_I2C_Read... [22:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:54]Read from MH i2c: E2 [22:41:54]MH_I2C_Read... [22:41:54]Read from MH i2c: E2 03 00 [22:41:54]MH_I2C_Read... [22:41:54]Read from MH i2c: E2 03 00 60 24 00 90 00 F8 [22:41:54]RAPDU: 90 00 [22:41:54]wFMCommunicate OK [22:41:54]wFMCommunicate request_size=255 [22:41:54]MH_SAM_APDU [22:41:54]CAPDU: 80 0D 02 02 FA 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 [22:41:54]Write to MH i2c: E2 02 01 61 24 80 0D 02 02 FA 00 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 00 00 49 [22:41:54]Write i2c OK [22:41:54]MH_I2C_Read... [22:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:55]Read from MH i2c: E2 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: E2 03 00 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: E2 03 00 61 24 00 90 00 F9 [22:41:55]RAPDU: 90 00 [22:41:55]wFMCommunicate OK [22:41:55]wFMCommunicate request_size=255 [22:41:55]MH_SAM_APDU [22:41:55]CAPDU: 80 0D 02 02 FA D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 B4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 B4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 B3 7B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 27 01 00 35 04 06 00 [22:41:55]Write to MH i2c: E2 02 01 62 24 80 0D 02 02 FA 00 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 B4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 B4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 B3 7B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 27 01 00 35 04 06 00 00 00 D5 [22:41:55]Write i2c OK [22:41:55]MH_I2C_Read... [22:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:55]Read from MH i2c: E2 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: E2 03 00 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: E2 03 00 62 24 00 90 00 FA [22:41:55]RAPDU: 90 00 [22:41:55]wFMCommunicate OK [22:41:55]wFMCommunicate request_size=11 [22:41:55]MH_SAM_APDU [22:41:55]CAPDU: 80 0D 02 02 06 90 B8 82 3D 1B AC [22:41:55]Write to MH i2c: E2 0E 00 63 24 80 0D 02 02 06 00 90 B8 82 3D 1B AC 00 00 DB [22:41:55]Write i2c OK [22:41:55]MH_I2C_Read... [22:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:55]Read from MH i2c: E2 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: E2 03 00 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: E2 03 00 63 24 00 90 00 FB [22:41:55]RAPDU: 90 00 [22:41:55]wFMCommunicate OK [22:41:55]wFMCommunicate request_size=4 [22:41:55]MH_SAM_APDU [22:41:55]CAPDU: 80 0D 03 02 [22:41:55]Write to MH i2c: E2 08 00 64 24 80 0D 03 02 00 00 00 00 03 [22:41:55]Write i2c OK [22:41:55]MH_I2C_Read... [22:41:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:55]Read from MH i2c: E2 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: E2 0B 00 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: E2 0B 00 64 24 00 A4 C5 A0 99 72 30 21 55 90 00 BE [22:41:55]RAPDU: A4 C5 A0 99 72 30 21 55 90 00 [22:41:55]wFMCommunicate OK [22:41:55]SAM_PROTO_SignData done [22:41:55]FM_MakeSignedData done [22:41:55]CreateOFDProtocolMessage [22:41:55]wFMCommunicate request_size=4 [22:41:55]MH_SAM_APDU [22:41:55]CAPDU: 80 11 00 00 [22:41:55]Write to MH i2c: E2 08 00 65 24 80 11 00 00 00 00 00 00 03 [22:41:55]Write i2c OK [22:41:55]MH_I2C_Read... [22:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:55]Read from MH i2c: E2 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: E2 17 00 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: E2 17 00 65 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 50 [22:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:41:55]wFMCommunicate OK [22:41:55]CreateOFDProtocolMessage done [22:41:55]OFDSenderStorePacket 75551 [22:41:55]StoreOFDPacket docnum=75551 [22:41:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 04 03 00 00 96 5B FC 02 53 12 5A 03 01 00 03 00 F0 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 B4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 B4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 B3 7B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 27 01 00 35 04 06 00 90 B8 82 3D 1B AC A4 C5 A0 99 72 30 21 55 [22:41:55]CheckFolder [22:41:55]dirname=/storage/ofd_packets [22:41:55]CheckFolder done [22:41:55]ProducePacketName [22:41:55]name=ofd_packets/00075551 [22:41:55]NVStorageSaveData ofd_packets/00075551 [22:41:55]File name is /storage/ofd_packets/00075551 [22:41:55]Write 802 bytes [22:41:55]NVStorageSaveData done [22:41:55]OFDSenderStorePacket done [22:41:55]KKMCreateOFDPacket done [22:41:55]NVStorageSaveData kkm_last_timestamp [22:41:55]File name is /storage/kkm_last_timestamp [22:41:55]Write 4 bytes [22:41:55]NVStorageSaveData done [22:41:55]ExternCall_PrintAddStr [22:41:55]wPrintStart [22:41:55]Write to MH i2c: 01 00 00 66 24 8A [22:41:55]Write i2c OK [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: 01 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: 01 07 00 [22:41:55]MH_I2C_Read... [22:41:55]Read from MH i2c: 01 07 00 66 24 00 00 00 00 00 FF 0F 9F [22:41:55]RasterBufferAndPrint [22:41:55]line Счет N : (3)273316 [22:41:55]line ИНН: 02508201610067 [22:41:55]line Контрольно-Кассовый Чек [22:41:55]line ПРОДАЖА [22:41:55]line Товар: 4700003150806 [22:41:55]line Водка Настроение V премиум 40% 0,7л [22:41:55]line 1.000 * 795.00 [22:41:55]line = 795.00 [22:41:55]line НДС 12% НСП 1% [22:41:55]line > о реализуемом товаре [22:41:55]line Товар: 4700000160204 [22:41:55]line Вода Легенда 1,5л [22:41:55]line 1.000 * 60.00 [22:41:55]line = 60.00 [22:41:55]line НДС 12% НСП 1% [22:41:55]line > о реализуемом товаре [22:41:55]line Товар: 54491472 [22:41:55]line Напиток Кока-Кола 0,5л [22:41:55]line 1.000 * 75.00 [22:41:55]line = 75.00 [22:41:55]line НДС 12% НСП 1% [22:41:55]line > о реализуемом товаре [22:41:55]line Товар: 5449000189332 [22:41:55]line Холодный чай Fuse персик 1л [22:41:55]line 1.000 * 107.00 [22:41:55]line = 107.00 [22:41:55]line НДС 12% НСП 1% [22:41:55]line > о реализуемом товаре [22:41:55]line Товар: 4660085515163 [22:41:55]line Шок Батончик Сникерс супер 95/80г [22:41:55]line 1.000 * 80.00 [22:41:55]line = 80.00 [22:41:55]line НДС 12% НСП 1% [22:41:55]line > о реализуемом товаре [22:41:55]line ИТОГО: 1117.00 [22:41:55]line НСП 1% : 9.88 [22:41:55]line НДС 12% : 118.61 [22:41:55]line Наличными: 0.00 [22:41:55]line Безнал.: 1117.00 [22:41:55]line Место: АЗС № 133 "Партнер Нефть" [22:41:55]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:41:55]line СНО: Общий режим [22:41:55]line Чек 284 23.10.2024 22:41 [22:41:55]line Смена: 173 ФФД: 1.0 [22:41:55]line ЗНМ: 0300000020 [22:41:55]line РНМ: 0000000000161154 [22:41:55]line Версия ККМ: v1.0 [22:41:55]line Платежная система: Mbank [22:41:55]line ФМ: 0000000000963323 [22:41:55]line ФД: 75551 [22:41:55]line ФПД: 159122133425068 [22:41:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224155&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75551&fm=159122133425068&tin=02508201610067®Number=0000000000161154&sum=111700 [22:41:55]line 0 [22:41:55]OFD Sender: Processing packet 75551 [packets to send 16, broken 15] [22:41:55]ProducePacketName [22:41:55]name=ofd_packets/00075551 [22:41:55]OFD Sender: To server: pG, [22:41:55]CommunicateWithHost lk.salyk.kg:30040 [22:41:55]ConnectInit lk.salyk.kg [22:41:55]written 0, free lines is 4095 [22:41:55]Connected sock=8 [22:41:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 04 03 00 00 96 5B FC 02 53 12 5A 03 01 00 03 00 F0 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 B4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 B4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 B3 7B 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 1F 27 01 00 35 04 06 00 90 B8 82 3D 1B AC A4 C5 A0 99 72 30 21 55 [22:41:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 F0 02 47 00 A3 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 39 36 33 33 32 33 10 04 04 00 1F 27 01 00 F4 03 04 00 8E 24 19 67 B6 04 01 00 00 EF 39 50 92 D0 9E 32 3F [22:41:56]CommunicateWithHost err = 0 [22:41:56]CheckOFDResponse [22:41:56]1017 (14) - 77093643461234 [22:41:56]1041 (16) - 0000000000963323 [22:41:56]1040 (4) - 75551 [22:41:56]1012 (4) - 23.10.2024 16:30 [22:41:56]1206 (1) - 0 [22:41:56]OFD Sender: Remove packet 75551 [22:41:56]ProducePacketName [22:41:56]name=ofd_packets/00075551 [22:41:56]NVStorageDeleteData [22:41:56]Write to MH i2c: 01 00 00 A8 24 CC [22:41:56]Write i2c OK [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: 01 [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: 01 07 00 [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: 01 07 00 A8 24 00 00 00 00 00 F4 0A D1 [22:41:56]RasterBufferAndPrint [22:41:56]line [22:41:56]line [22:41:56]line [22:41:56]line [22:41:56]line [22:41:56]written 0, free lines is 2814 [22:41:56]MH_Cut [22:41:56]Write to MH i2c: D1 01 00 AF 24 01 A5 [22:41:56]Write i2c OK [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: D1 [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: D1 01 00 [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: D1 01 00 AF 24 00 A4 [22:41:56]Write to MH i2c: 01 00 00 B0 24 D4 [22:41:56]Write i2c OK [22:41:56]MH_I2C_Read... [22:41:56]OFD Sender: No OFD packet to send [22:41:57]*** Cut start [22:41:57]*** Partial cut [22:41:57]*** CUTSNS_PIN = 1 [22:41:57]*** CUTSNS_PIN = 0 [22:41:58]*** Brake cut motor [22:41:58]Read from MH i2c: 01 [22:41:58]MH_I2C_Read... [22:41:58]*** Stop cut motor [22:41:58]*** Cut end [22:41:58]Read from MH i2c: 01 07 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: 01 07 00 B0 24 00 00 00 00 00 FF 0F E9 [22:41:58]process_action close_receipt done [22:41:58]requested_data is exist [22:41:58]produce_requested_data [22:41:58]requested_item fm.sn is exist - process it [22:41:58]wFMCommunicate request_size=4 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 11 00 00 [22:41:58]Write to MH i2c: E2 08 00 B1 24 80 11 00 00 00 00 00 00 4F [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 17 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 17 00 B1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 9C [22:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:41:58]wFMCommunicate OK [22:41:58]requested_item fd.num is exist - process it [22:41:58]SAM_PROTO_GetFieldsCounters [22:41:58]wFMCommunicate request_size=4 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 13 00 00 [22:41:58]Write to MH i2c: E2 08 00 B2 24 80 13 00 00 00 00 00 00 52 [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 62 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 62 00 B2 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1F 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [22:41:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 1F 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:58]wFMCommunicate OK [22:41:58]SAM_PROTO_GetFieldsCounters done [22:41:58]requested_item shift.num is exist - process it [22:41:58]requested_item shift.opened is exist - process it [22:41:58]req_shift_opened [22:41:58]FM_GetShiftState [22:41:58]SAM_PROTO_GetShiftState [22:41:58]wFMCommunicate request_size=4 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 13 01 00 [22:41:58]Write to MH i2c: E2 08 00 B3 24 80 13 01 00 00 00 00 00 54 [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 0E 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 0E 00 B3 24 00 09 00 01 99 41 18 67 00 00 00 00 90 00 B9 [22:41:58]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [22:41:58]wFMCommunicate OK [22:41:58]SAM_PROTO_GetShiftState done [22:41:58]FM_GetShiftState done [22:41:58]req_shift_opened done [22:41:58]requested_item shift.open_date is exist - process it [22:41:58]req_shift_open_date [22:41:58]req_shift_open_date done [22:41:58]produce_requested_data done [22:41:58]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75551,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [22:41:58]process_action_free close_receipt [22:41:58]json_value_free [22:41:58]json_value_free done [22:41:58]process_json_proto returns [22:41:58]Send response to host [22:41:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75551,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [22:41:58]free response buf [22:41:58]execute_script done [22:41:58]execute_script returns [22:41:58]free content buf [22:41:58]Sock 5.Close socket [22:41:58]Sock 5.Thread stoped [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:25]accept exits with 6 [22:43:25]New connection [22:43:25]New thread 3066465636 created [22:43:25]Thread 3066608996 joined [22:43:25]Waiting for new connection... [22:43:25] Sock 6.Parse request [22:43:25]Sock 6.Check first char [22:43:25]Sock 6.First char is OK [22:43:25]request: POST /json_proto HTTP/1.0 [22:43:25]Method: POST [22:43:25]URL: /json_proto [22:43:25]Method is POST - this is cgi request [22:43:25]url: /json_proto [22:43:25]query_string will be loaded in cgi processing [22:43:25]execute_cgi json_proto POST (null) [22:43:25]execute_cgi path=json_proto method=POST [22:43:25]POST find Content-Length [22:43:25]Host: 172.17.44.196:8080 [22:43:25]Content-Length: 1015 [22:43:25]Content-Type: application/json [22:43:25] [22:43:25]POST finish read [22:43:25]Found Content-Length = 1015 [22:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273317", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:25]execute_script... [22:43:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273317", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:25]POST & json_proto [22:43:25]process_json_proto [22:43:25]json parsed OK: [22:43:25]protocol is kg_v1.0 [22:43:25]action value=close_receipt [22:43:25]process_action close_receipt [22:43:25]cmd_close_receipt [22:43:25]MH_GetDate [22:43:25]Write to MH i2c: F0 00 00 B4 24 C7 [22:43:25]Write i2c OK [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: F0 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: F0 09 00 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: F0 09 00 B4 24 00 10 7C 19 67 E7 19 F8 65 39 [22:43:25]GetLastDocTimeStamp 1729723315 [22:43:25]current date 1729723408 [22:43:25]FM_GetShiftState [22:43:25]SAM_PROTO_GetShiftState [22:43:25]wFMCommunicate request_size=4 [22:43:25]MH_SAM_APDU [22:43:25]CAPDU: 80 13 01 00 [22:43:25]Write to MH i2c: E2 08 00 B5 24 80 13 01 00 00 00 00 00 56 [22:43:25]Write i2c OK [22:43:25]MH_I2C_Read... [22:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:25]Read from MH i2c: E2 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 0E 00 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 0E 00 B5 24 00 09 00 01 99 41 18 67 00 00 00 00 90 00 BB [22:43:25]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [22:43:25]wFMCommunicate OK [22:43:25]SAM_PROTO_GetShiftState done [22:43:25]FM_GetShiftState done [22:43:25]opened in 1729642905 [22:43:25]opened+sec_in_day 1729729305 [22:43:25]quantity*price = 11500 [22:43:25]sum+1 = 11501 [22:43:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 0.00 Безнал.: 245.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 285 23.10.2024 22:43 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75552 ФПД: 192533384247209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224328&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75552&fm=192533384247209&tin=02508201610067®Number=0000000000161154&sum=24500 0 [22:43:26]StoreToDocumentArchive [22:43:26]shift 173 fd 75552 [22:43:26]save to /storage/0173/doc_00075552 [22:43:26]save last doc name /storage/0173/doc_00075552 to /storage/kkm_last_doc_name [22:43:26]save OK [22:43:26]Clear old archive folders... [22:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=386 [22:43:26]tlvbuf is 007F84C0 [22:43:26]SAM_PROTO_ClearQueue [22:43:26]wFMCommunicate request_size=4 [22:43:26]MH_SAM_APDU [22:43:26]CAPDU: 80 09 00 00 [22:43:26]Write to MH i2c: E2 08 00 C2 24 80 09 00 00 00 00 00 00 58 [22:43:26]Write i2c OK [22:43:26]MH_I2C_Read... [22:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:26]Read from MH i2c: E2 [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: E2 03 00 [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: E2 03 00 C2 24 00 90 00 5A [22:43:26]RAPDU: 90 00 [22:43:26]wFMCommunicate OK [22:43:26]SAM_PROTO_ClearQueue done [22:43:26]KKMCreateOFDPacket [22:43:26]OFDProtocolAddRootSTLVToBuf [22:43:26]FM_MakeSignedData [22:43:26]FM_MakeSignedData [22:43:26]SAM_PROTO_SignData [22:43:26]wFMCommunicate request_size=4 [22:43:26]MH_SAM_APDU [22:43:26]CAPDU: 80 0D 01 02 [22:43:26]Write to MH i2c: E2 08 00 C3 24 80 0D 01 02 00 00 00 00 60 [22:43:26]Write i2c OK [22:43:26]MH_I2C_Read... [22:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:26]Read from MH i2c: E2 [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: E2 03 00 [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: E2 03 00 C3 24 00 90 00 5B [22:43:26]RAPDU: 90 00 [22:43:26]wFMCommunicate OK [22:43:26]wFMCommunicate request_size=255 [22:43:26]MH_SAM_APDU [22:43:26]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [22:43:26]Write to MH i2c: E2 02 01 C4 24 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 8F [22:43:26]Write i2c OK [22:43:26]MH_I2C_Read... [22:43:26]OFD Sender: No OFD packet to send [22:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:26]Read from MH i2c: E2 [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: E2 03 00 [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: E2 03 00 C4 24 00 90 00 5C [22:43:26]RAPDU: 90 00 [22:43:26]wFMCommunicate OK [22:43:26]wFMCommunicate request_size=145 [22:43:26]MH_SAM_APDU [22:43:26]CAPDU: 80 0D 02 02 8C 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 10 7C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 27 01 00 35 04 06 00 AF 1B AB F9 B7 A9 [22:43:26]Write to MH i2c: E2 94 00 C5 24 80 0D 02 02 8C 00 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 10 7C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 27 01 00 35 04 06 00 AF 1B AB F9 B7 A9 00 00 AD [22:43:26]Write i2c OK [22:43:26]MH_I2C_Read... [22:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:27]Read from MH i2c: E2 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: E2 03 00 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: E2 03 00 C5 24 00 90 00 5D [22:43:27]RAPDU: 90 00 [22:43:27]wFMCommunicate OK [22:43:27]wFMCommunicate request_size=4 [22:43:27]MH_SAM_APDU [22:43:27]CAPDU: 80 0D 03 02 [22:43:27]Write to MH i2c: E2 08 00 C6 24 80 0D 03 02 00 00 00 00 65 [22:43:27]Write i2c OK [22:43:27]MH_I2C_Read... [22:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:27]Read from MH i2c: E2 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: E2 0B 00 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: E2 0B 00 C6 24 00 38 30 7B B8 CB 4E 7A B1 90 00 45 [22:43:27]RAPDU: 38 30 7B B8 CB 4E 7A B1 90 00 [22:43:27]wFMCommunicate OK [22:43:27]SAM_PROTO_SignData done [22:43:27]FM_MakeSignedData done [22:43:27]CreateOFDProtocolMessage [22:43:27]wFMCommunicate request_size=4 [22:43:27]MH_SAM_APDU [22:43:27]CAPDU: 80 11 00 00 [22:43:27]Write to MH i2c: E2 08 00 C7 24 80 11 00 00 00 00 00 00 65 [22:43:27]Write i2c OK [22:43:27]MH_I2C_Read... [22:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:27]Read from MH i2c: E2 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: E2 17 00 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: E2 17 00 C7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 B2 [22:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:43:27]wFMCommunicate OK [22:43:27]CreateOFDProtocolMessage done [22:43:27]OFDSenderStorePacket 75552 [22:43:27]StoreOFDPacket docnum=75552 [22:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 96 01 00 00 74 E0 8E 01 02 46 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 10 7C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 27 01 00 35 04 06 00 AF 1B AB F9 B7 A9 38 30 7B B8 CB 4E 7A B1 [22:43:27]CheckFolder [22:43:27]dirname=/storage/ofd_packets [22:43:27]CheckFolder done [22:43:27]ProducePacketName [22:43:27]name=ofd_packets/00075552 [22:43:27]NVStorageSaveData ofd_packets/00075552 [22:43:27]File name is /storage/ofd_packets/00075552 [22:43:27]Write 436 bytes [22:43:27]NVStorageSaveData done [22:43:27]OFDSenderStorePacket done [22:43:27]KKMCreateOFDPacket done [22:43:27]NVStorageSaveData kkm_last_timestamp [22:43:27]File name is /storage/kkm_last_timestamp [22:43:27]Write 4 bytes [22:43:27]NVStorageSaveData done [22:43:27]ExternCall_PrintAddStr [22:43:27]wPrintStart [22:43:27]Write to MH i2c: 01 00 00 C8 24 EC [22:43:27]OFD Sender: Processing packet 75552 [packets to send 16, broken 15] [22:43:27]ProducePacketName [22:43:27]name=ofd_packets/00075552 [22:43:27]OFD Sender: To server: pG, [22:43:27]CommunicateWithHost lk.salyk.kg:30040 [22:43:27]ConnectInit lk.salyk.kg [22:43:27]Write i2c OK [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: 01 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: 01 07 00 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: 01 07 00 C8 24 00 00 00 00 00 FF 0F 01 [22:43:27]RasterBufferAndPrint [22:43:27]line Счет N : (3)273317 [22:43:27]line ИНН: 02508201610067 [22:43:27]line Контрольно-Кассовый Чек [22:43:27]line ПРОДАЖА [22:43:27]line Товар: 2000036210013 [22:43:27]line Кофе Капучино (GABB TRADE) [22:43:27]line 1.000 * 115.00 [22:43:27]line = 115.00 [22:43:27]line НДС 12% НСП 1% [22:43:27]line > о реализуемом товаре [22:43:27]line Товар: 2000036230011 [22:43:27]line Кофе Латте XL(GABB TRADE) [22:43:27]line 1.000 * 130.00 [22:43:27]line = 130.00 [22:43:27]line НДС 12% НСП 1% [22:43:27]line > о реализуемом товаре [22:43:27]line ИТОГО: 245.00 [22:43:27]line НСП 1% : 2.17 [22:43:27]line НДС 12% : 26.01 [22:43:27]line Наличными: 0.00 [22:43:27]line Безнал.: 245.00 [22:43:27]line Место: АЗС № 133 "Партнер Нефть" [22:43:27]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [22:43:27]line СНО: Общий режим [22:43:27]line Чек 285 23.10.2024 22:43 [22:43:27]line Смена: 173 ФФД: 1.0 [22:43:27]line ЗНМ: 0300000020 [22:43:27]line РНМ: 0000000000161154 [22:43:27]line Версия ККМ: v1.0 [22:43:27]line Платежная система: Mbank [22:43:27]line ФМ: 0000000000963323 [22:43:27]line ФД: 75552 [22:43:27]line ФПД: 192533384247209 [22:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224328&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75552&fm=192533384247209&tin=02508201610067®Number=0000000000161154&sum=24500 [22:43:27]line 0 [22:43:27]written 0, free lines is 4095 [22:43:28]Write to MH i2c: 01 00 00 F6 24 1A [22:43:28]Write i2c OK [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: 01 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: 01 07 00 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: 01 07 00 F6 24 00 00 00 00 00 59 0C 86 [22:43:28]RasterBufferAndPrint [22:43:28]line [22:43:28]line [22:43:28]line [22:43:28]line [22:43:28]line [22:43:28]written 0, free lines is 3165 [22:43:28]MH_Cut [22:43:28]Write to MH i2c: D1 01 00 FD 24 01 F3 [22:43:28]Write i2c OK [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: D1 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: D1 01 00 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: D1 01 00 FD 24 00 F2 [22:43:28]Write to MH i2c: 01 00 00 FE 24 22 [22:43:28]Write i2c OK [22:43:28]MH_I2C_Read... [22:43:29]*** Cut start [22:43:29]*** Partial cut [22:43:29]*** CUTSNS_PIN = 1 [22:43:29]*** CUTSNS_PIN = 0 [22:43:29]*** Brake cut motor [22:43:29]Read from MH i2c: 01 [22:43:29]MH_I2C_Read... [22:43:29]*** Stop cut motor [22:43:29]*** Cut end [22:43:29]Read from MH i2c: 01 07 00 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: 01 07 00 FE 24 00 00 00 00 00 FF 0F 37 [22:43:29]process_action close_receipt done [22:43:29]requested_data is exist [22:43:29]produce_requested_data [22:43:29]requested_item fm.sn is exist - process it [22:43:29]wFMCommunicate request_size=4 [22:43:29]MH_SAM_APDU [22:43:29]CAPDU: 80 11 00 00 [22:43:29]Write to MH i2c: E2 08 00 FF 24 80 11 00 00 00 00 00 00 9D [22:43:29]Write i2c OK [22:43:29]MH_I2C_Read... [22:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:29]Read from MH i2c: E2 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 17 00 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 17 00 FF 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 EA [22:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:43:29]wFMCommunicate OK [22:43:29]requested_item fd.num is exist - process it [22:43:29]SAM_PROTO_GetFieldsCounters [22:43:29]wFMCommunicate request_size=4 [22:43:29]MH_SAM_APDU [22:43:29]CAPDU: 80 13 00 00 [22:43:29]Write to MH i2c: E2 08 00 00 25 80 13 00 00 00 00 00 00 A1 [22:43:29]Write i2c OK [22:43:29]MH_I2C_Read... [22:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:29]Read from MH i2c: E2 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 62 00 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 62 00 00 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 20 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [22:43:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 20 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:29]wFMCommunicate OK [22:43:29]SAM_PROTO_GetFieldsCounters done [22:43:29]requested_item shift.num is exist - process it [22:43:29]requested_item shift.opened is exist - process it [22:43:29]req_shift_opened [22:43:29]FM_GetShiftState [22:43:29]SAM_PROTO_GetShiftState [22:43:29]wFMCommunicate request_size=4 [22:43:29]MH_SAM_APDU [22:43:29]CAPDU: 80 13 01 00 [22:43:29]Write to MH i2c: E2 08 00 01 25 80 13 01 00 00 00 00 00 A3 [22:43:29]Write i2c OK [22:43:29]MH_I2C_Read... [22:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:29]Read from MH i2c: E2 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 0E 00 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 0E 00 01 25 00 09 00 01 99 41 18 67 00 00 00 00 90 00 08 [22:43:29]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [22:43:29]wFMCommunicate OK [22:43:29]SAM_PROTO_GetShiftState done [22:43:29]FM_GetShiftState done [22:43:29]req_shift_opened done [22:43:29]requested_item shift.open_date is exist - process it [22:43:29]req_shift_open_date [22:43:29]req_shift_open_date done [22:43:29]produce_requested_data done [22:43:29]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75552,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [22:43:29]process_action_free close_receipt [22:43:29]json_value_free [22:43:29]json_value_free done [22:43:29]process_json_proto returns [22:43:29]Send response to host [22:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75552,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [22:43:29]free response buf [22:43:29]execute_script done [22:43:29]execute_script returns [22:43:29]free content buf [22:43:29]Sock 6.Close socket [22:43:29]Sock 6.Thread stoped [22:45:39]ConnectInit Can't connect to host [22:45:39]CommunicateWithHost connect error [22:45:39]CommunicateWithHost err = -1 [22:45:39]OFD Sender: Server communicate error [22:45:44]OFD Sender: Processing packet 75552 [packets to send 16, broken 15] [22:45:44]ProducePacketName [22:45:44]name=ofd_packets/00075552 [22:45:44]OFD Sender: To server: pG, [22:45:44]CommunicateWithHost lk.salyk.kg:30040 [22:45:44]ConnectInit lk.salyk.kg [22:45:45]Connected sock=6 [22:45:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 96 01 00 00 74 E0 8E 01 02 46 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 10 7C 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 27 01 00 35 04 06 00 AF 1B AB F9 B7 A9 38 30 7B B8 CB 4E 7A B1 [22:45:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FE 66 47 00 62 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 20 27 01 00 F4 03 04 00 73 25 19 67 B6 04 01 00 00 3C CD 85 DA 18 42 52 09 [22:45:45]CommunicateWithHost err = 0 [22:45:45]CheckOFDResponse [22:45:45]1017 (14) - 77093643461234 [22:45:45]1041 (16) - 0000000000963323 [22:45:45]1040 (4) - 75552 [22:45:45]1012 (4) - 23.10.2024 16:33 [22:45:45]1206 (1) - 0 [22:45:45]OFD Sender: Remove packet 75552 [22:45:45]ProducePacketName [22:45:45]name=ofd_packets/00075552 [22:45:45]NVStorageDeleteData [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:17]*** FLAG_PRN_KEY set [22:46:17]*** FLAG_PRN_KEY reset [22:46:17]*** FLAG_PRN_KEY set [22:46:18]*** FLAG_PRN_KEY reset [22:46:18]*** FLAG_PRN_KEY set [22:46:18]*** FLAG_PRN_KEY reset [22:46:19]*** FLAG_PRN_KEY set [22:46:19]*** FLAG_PRN_KEY reset [22:46:19]*** FLAG_PRN_KEY set [22:46:19]*** FLAG_PRN_KEY reset [22:46:20]*** FLAG_PRN_KEY set [22:46:20]*** FLAG_PRN_KEY reset [22:46:20]*** FLAG_PRN_PAP1 set [22:46:20]*** FLAG_PRN_PAP2 set [22:46:20]OFD Sender: No OFD packet to send [22:46:23]*** FLAG_PRN_PAP1 reset [22:46:23]*** FLAG_PRN_PAP2 reset [22:46:24]*** FLAG_PRN_KEY set [22:46:24]*** FLAG_PRN_KEY reset [22:46:24]*** FLAG_PRN_KEY set [22:46:25]*** FLAG_PRN_KEY reset [22:46:25]*** FLAG_PRN_KEY set [22:46:25]OFD Sender: No OFD packet to send [22:46:25]*** FLAG_PRN_KEY reset [22:46:26]*** FLAG_PRN_KEY set [22:46:26]*** FLAG_PRN_KEY reset [22:46:28]*** FLAG_PRN_KEY set [22:46:28]*** FLAG_PRN_KEY reset [22:46:28]*** FLAG_PRN_KEY set [22:46:29]*** FLAG_PRN_KEY reset [22:46:30]*** FLAG_PRN_PAP1 set [22:46:30]*** FLAG_PRN_PAP2 set [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:36]*** FLAG_PRN_KEY set [22:46:36]*** FLAG_PRN_KEY reset [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:45]*** FLAG_PRN_PAP1 reset [22:46:45]*** FLAG_PRN_PAP2 reset [22:46:47]*** FLAG_PRN_KEY set [22:46:47]*** FLAG_PRN_KEY reset [22:46:47]*** FLAG_PRN_KEY set [22:46:47]*** FLAG_PRN_KEY reset [22:46:48]*** FLAG_PRN_PAP1 set [22:46:48]*** FLAG_PRN_PAP2 set [22:46:50]OFD Sender: No OFD packet to send [22:46:52]*** FLAG_PRN_PAP1 reset [22:46:52]*** FLAG_PRN_PAP2 reset [22:46:53]*** FLAG_PRN_KEY set [22:46:54]*** FLAG_PRN_KEY reset [22:46:55]*** FLAG_PRN_KEY set [22:46:55]*** FLAG_PRN_KEY reset [22:46:55]OFD Sender: No OFD packet to send [22:46:55]*** FLAG_PRN_KEY set [22:46:56]*** FLAG_PRN_KEY reset [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 BB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 60 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725BB (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 18965271+1710758375=1729723646 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 BB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 61 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 78 00 64 00 FF FF BA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 FE 7C 19 67 E7 19 F8 65 56 [22:47:26]Current date/time: 23.10.2024 22:47 [22:47:26]FM_Init [22:47:26]wFMConnect [22:47:26]MH_SAM_On [22:47:26]Write to MH i2c: E0 00 00 08 00 E7 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_init finished! [22:47:26]*** atr: [22:47:26]*** 0F 3B D5 18 FF 81 91 FE [22:47:26]*** 1F C3 80 73 C8 21 10 0A [22:47:26]*** 00 00 00 00 00 00 00 00 [22:47:26]*** 00 00 00 00 00 00 00 00 [22:47:26]*** 00 00 00 00 00 00 00 00 [22:47:26]*** 00 00 00 00 00 00 00 00 [22:47:26]*** 00 00 00 00 00 00 00 00 [22:47:26]*** 00 00 00 00 00 00 00 00 [22:47:26]Read from MH i2c: E0 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E0 10 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [22:47:26]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [22:47:26]wFMCommunicate request_size=10 [22:47:26]MH_SAM_APDU [22:47:26]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [22:47:26]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 03 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [22:47:26]RAPDU: 90 00 [22:47:26]wFMCommunicate OK [22:47:26]wFMCommunicate request_size=4 [22:47:26]MH_SAM_APDU [22:47:26]CAPDU: 80 11 00 00 [22:47:26]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 17 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D1 [22:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:47:26]wFMCommunicate OK [22:47:26]Detected FM SN is 0000000000963323 [22:47:26]Stored FM SN is 0000000000963323 [22:47:26]wFMCommunicate request_size=9 [22:47:26]MH_SAM_APDU [22:47:26]CAPDU: 80 16 00 00 04 FB CB 00 00 [22:47:26]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FB CB 00 00 00 00 58 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 03 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [22:47:26]RAPDU: 90 00 [22:47:26]wFMCommunicate OK [22:47:26]FM PIN OK [22:47:26]wFMCommunicate request_size=8 [22:47:26]MH_SAM_APDU [22:47:26]CAPDU: 80 14 04 00 03 02 00 01 [22:47:26]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 03 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [22:47:26]RAPDU: 90 00 [22:47:26]wFMCommunicate OK [22:47:26]wFMCommunicate request_size=13 [22:47:26]MH_SAM_APDU [22:47:26]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [22:47:26]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 03 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [22:47:26]RAPDU: 90 00 [22:47:26]wFMCommunicate OK [22:47:26]wFMCommunicate request_size=4 [22:47:26]MH_SAM_APDU [22:47:26]CAPDU: 80 11 00 00 [22:47:26]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 17 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D5 [22:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [22:47:26]wFMCommunicate OK [22:47:26]DocumentArchiveInit [22:47:26]Start Httpd... [22:47:26]Httpd thread 3066998116 created [22:47:26]Write to MH i2c: 01 00 00 0F 00 0F [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 07 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [22:47:26]MH Int Process started [22:47:26]Allocated Socket 5 [22:47:26]Bind OK [22:47:26]Listen OK [22:47:26]httpd running on port 8080 [22:47:26]Waiting for new connection... [22:47:26]OFD Sender: No OFD packet to send [22:47:27]int [22:47:27]Write to MH i2c: 01 00 00 10 00 10 [22:47:27]*** FLAG_PRN_KEY set [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: 01 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: 01 07 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: 01 07 00 10 00 00 08 00 00 00 FF 0F 2D [22:47:27]state=0 [22:47:27]Key pressed [22:47:27]Feed [22:47:27]Write to MH i2c: D8 00 00 11 00 E8 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: D8 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: D8 01 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: D8 01 00 11 00 00 E9 [22:47:27]int [22:47:27]Write to MH i2c: 01 00 00 12 00 12 [22:47:27]*** FLAG_PRN_KEY reset [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: 01 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: 01 07 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: 01 07 00 12 00 00 00 00 00 00 FF 0F 27 [22:47:27]state=2 [22:47:27]Stop feed [22:47:28]int [22:47:28]Write to MH i2c: 01 00 00 13 00 13 [22:47:28]*** FLAG_PRN_KEY set [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 13 00 00 08 00 00 00 FF 0F 30 [22:47:28]state=0 [22:47:28]Key pressed [22:47:28]Feed [22:47:28]Write to MH i2c: D8 00 00 14 00 EB [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D8 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D8 01 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D8 01 00 14 00 00 EC [22:47:28]int [22:47:28]Write to MH i2c: 01 00 00 15 00 15 [22:47:28]*** FLAG_PRN_KEY reset [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 15 00 00 00 00 00 00 FF 0F 2A [22:47:28]state=2 [22:47:28]Stop feed [22:47:28]int [22:47:28]Write to MH i2c: 01 00 00 16 00 16 [22:47:28]*** FLAG_PRN_KEY set [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 16 00 00 08 00 00 00 FF 0F 33 [22:47:28]state=0 [22:47:28]Key pressed [22:47:28]Feed [22:47:28]Write to MH i2c: D8 00 00 17 00 EE [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D8 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D8 01 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D8 01 00 17 00 00 EF [22:47:28]int [22:47:28]Write to MH i2c: 01 00 00 18 00 18 [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 18 00 00 48 00 00 00 3C 00 A3 [22:47:28]state=2 [22:47:28]Key pressed [22:47:29]int [22:47:29]Write to MH i2c: 01 00 00 19 00 19 [22:47:29]*** FLAG_PRN_KEY reset [22:47:29]Write i2c OK [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: 01 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: 01 07 00 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: 01 07 00 19 00 00 00 00 00 00 F7 0F 26 [22:47:29]state=2 [22:47:29]Stop feed [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:44]accept exits with 8 [23:17:44]New connection [23:17:44]New thread 3066711396 created [23:17:44]Waiting for new connection... [23:17:44] Sock 8.Parse request [23:17:44]Sock 8.Check first char [23:17:44]Sock 8.First char is OK [23:17:44]request: POST /json_proto HTTP/1.0 [23:17:44]Method: POST [23:17:44]URL: /json_proto [23:17:44]Method is POST - this is cgi request [23:17:44]url: /json_proto [23:17:44]query_string will be loaded in cgi processing [23:17:44]execute_cgi json_proto POST (null) [23:17:44]execute_cgi path=json_proto method=POST [23:17:44]POST find Content-Length [23:17:44]Host: 172.17.44.196:8080 [23:17:44]Content-Length: 939 [23:17:44]Content-Type: application/json [23:17:44] [23:17:44]POST finish read [23:17:44]Found Content-Length = 939 [23:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273318", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:44]execute_script... [23:17: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 : (3)273318", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:44]POST & json_proto [23:17:44]process_json_proto [23:17:44]json parsed OK: [23:17:44]protocol is kg_v1.0 [23:17:44]action value=close_receipt [23:17:44]process_action close_receipt [23:17:44]cmd_close_receipt [23:17:44]MH_GetDate [23:17:44]Write to MH i2c: F0 00 00 1A 00 09 [23:17:44]Write i2c OK [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: F0 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: F0 09 00 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: F0 09 00 1A 00 00 19 84 19 67 E7 19 F8 65 8C [23:17:44]GetLastDocTimeStamp 1729723408 [23:17:44]current date 1729725465 [23:17:44]FM_GetShiftState [23:17:44]SAM_PROTO_GetShiftState [23:17:44]wFMCommunicate request_size=4 [23:17:44]MH_SAM_APDU [23:17:44]CAPDU: 80 13 01 00 [23:17:44]Write to MH i2c: E2 08 00 1B 00 80 13 01 00 00 00 00 00 98 [23:17:44]Write i2c OK [23:17:44]MH_I2C_Read... [23:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:44]Read from MH i2c: E2 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: E2 0E 00 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: E2 0E 00 1B 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 FD [23:17:44]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [23:17:44]wFMCommunicate OK [23:17:44]SAM_PROTO_GetShiftState done [23:17:44]FM_GetShiftState done [23:17:44]opened in 1729642905 [23:17:44]opened+sec_in_day 1729729305 [23:17:44]quantity*price = 26000 [23:17:44]sum+1 = 26001 [23:17:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329951 Напиток Lipton IceTea 1л зел чай Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.41 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 286 23.10.2024 23:17 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75553 ФПД: 123399440940243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231745&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75553&fm=123399440940243&tin=02508201610067®Number=0000000000161154&sum=39000 0 [23:17:45]StoreToDocumentArchive [23:17:45]shift 173 fd 75553 [23:17:45]save to /storage/0173/doc_00075553 [23:17:45]save last doc name /storage/0173/doc_00075553 to /storage/kkm_last_doc_name [23:17:45]save OK [23:17:45]Clear old archive folders... [23:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=405 [23:17:45]tlvbuf is 01E7AB90 [23:17:45]SAM_PROTO_ClearQueue [23:17:45]wFMCommunicate request_size=4 [23:17:45]MH_SAM_APDU [23:17:45]CAPDU: 80 09 00 00 [23:17:45]Write to MH i2c: E2 08 00 28 00 80 09 00 00 00 00 00 00 9A [23:17:45]Write i2c OK [23:17:45]MH_I2C_Read... [23:17:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:45]Read from MH i2c: E2 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 03 00 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 03 00 28 00 00 90 00 9C [23:17:45]RAPDU: 90 00 [23:17:45]wFMCommunicate OK [23:17:45]SAM_PROTO_ClearQueue done [23:17:45]KKMCreateOFDPacket [23:17:45]OFDProtocolAddRootSTLVToBuf [23:17:45]FM_MakeSignedData [23:17:45]FM_MakeSignedData [23:17:45]SAM_PROTO_SignData [23:17:45]wFMCommunicate request_size=4 [23:17:45]MH_SAM_APDU [23:17:45]CAPDU: 80 0D 01 02 [23:17:45]Write to MH i2c: E2 08 00 29 00 80 0D 01 02 00 00 00 00 A2 [23:17:45]Write i2c OK [23:17:45]MH_I2C_Read... [23:17:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:45]Read from MH i2c: E2 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 03 00 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 03 00 29 00 00 90 00 9D [23:17:45]RAPDU: 90 00 [23:17:45]wFMCommunicate OK [23:17:45]wFMCommunicate request_size=255 [23:17:45]MH_SAM_APDU [23:17:45]CAPDU: 80 0D 02 02 FA 03 00 95 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 [23:17:45]Write to MH i2c: E2 02 01 2A 00 80 0D 02 02 FA 00 03 00 95 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 E3 [23:17:45]Write i2c OK [23:17:45]MH_I2C_Read... [23:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:45]Read from MH i2c: E2 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 03 00 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 03 00 2A 00 00 90 00 9E [23:17:45]RAPDU: 90 00 [23:17:45]wFMCommunicate OK [23:17:45]wFMCommunicate request_size=164 [23:17:45]MH_SAM_APDU [23:17:45]CAPDU: 80 0D 02 02 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 19 84 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 27 01 00 35 04 06 00 70 3B 2B D7 BC D3 [23:17:45]Write to MH i2c: E2 A7 00 2B 00 80 0D 02 02 9F 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 19 84 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 27 01 00 35 04 06 00 70 3B 2B D7 BC D3 00 00 08 [23:17:45]Write i2c OK [23:17:45]MH_I2C_Read... [23:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:45]Read from MH i2c: E2 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 03 00 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [23:17:45]RAPDU: 90 00 [23:17:45]wFMCommunicate OK [23:17:45]wFMCommunicate request_size=4 [23:17:45]MH_SAM_APDU [23:17:45]CAPDU: 80 0D 03 02 [23:17:45]Write to MH i2c: E2 08 00 2C 00 80 0D 03 02 00 00 00 00 A7 [23:17:45]Write i2c OK [23:17:45]MH_I2C_Read... [23:17:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:45]Read from MH i2c: E2 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 0B 00 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 0B 00 2C 00 00 9D 7C E6 80 D9 F3 39 E0 90 00 0C [23:17:45]RAPDU: 9D 7C E6 80 D9 F3 39 E0 90 00 [23:17:45]wFMCommunicate OK [23:17:45]SAM_PROTO_SignData done [23:17:45]FM_MakeSignedData done [23:17:45]CreateOFDProtocolMessage [23:17:45]wFMCommunicate request_size=4 [23:17:45]MH_SAM_APDU [23:17:45]CAPDU: 80 11 00 00 [23:17:45]Write to MH i2c: E2 08 00 2D 00 80 11 00 00 00 00 00 00 A7 [23:17:45]Write i2c OK [23:17:45]MH_I2C_Read... [23:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:45]Read from MH i2c: E2 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 17 00 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: E2 17 00 2D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 F4 [23:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:17:45]wFMCommunicate OK [23:17:45]CreateOFDProtocolMessage done [23:17:45]OFDSenderStorePacket 75553 [23:17:45]StoreOFDPacket docnum=75553 [23:17:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A9 01 00 00 4C 84 A1 01 D7 21 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 19 84 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 27 01 00 35 04 06 00 70 3B 2B D7 BC D3 9D 7C E6 80 D9 F3 39 E0 [23:17:45]CheckFolder [23:17:45]dirname=/storage/ofd_packets [23:17:45]CheckFolder done [23:17:45]ProducePacketName [23:17:45]name=ofd_packets/00075553 [23:17:45]NVStorageSaveData ofd_packets/00075553 [23:17:45]File name is /storage/ofd_packets/00075553 [23:17:45]Write 455 bytes [23:17:45]NVStorageSaveData done [23:17:45]OFDSenderStorePacket done [23:17:45]KKMCreateOFDPacket done [23:17:45]NVStorageSaveData kkm_last_timestamp [23:17:45]File name is /storage/kkm_last_timestamp [23:17:45]Write 4 bytes [23:17:45]NVStorageSaveData done [23:17:45]ExternCall_PrintAddStr [23:17:45]wPrintStart [23:17:45]Write to MH i2c: 01 00 00 2E 00 2E [23:17:45]Write i2c OK [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: 01 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: 01 07 00 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: 01 07 00 2E 00 00 00 00 00 00 FF 0F 43 [23:17:45]RasterBufferAndPrint [23:17:45]line Счет N : (3)273318 [23:17:45]line ИНН: 02508201610067 [23:17:45]line Контрольно-Кассовый Чек [23:17:45]line ПРОДАЖА [23:17:45]line Товар: 4700002083914 [23:17:45]line Водка Сары челек 0,35л [23:17:45]line 1.000 * 260.00 [23:17:45]line = 260.00 [23:17:45]line НДС 12% НСП 1% [23:17:46]line > о реализуемом товаре [23:17:46]line Товар: 4870002329951 [23:17:46]line Напиток Lipton IceTea 1л зел чай Regular [23:17:46]line 1.000 * 130.00 [23:17:46]line = 130.00 [23:17:46]line НДС 12% НСП 1% [23:17:46]line > о реализуемом товаре [23:17:46]line ИТОГО: 390.00 [23:17:46]line НСП 1% : 3.45 [23:17:46]line НДС 12% : 41.41 [23:17:46]line Наличными: 390.00 [23:17:46]line Безнал.: 0.00 [23:17:46]line Место: АЗС № 133 "Партнер Нефть" [23:17:46]OFD Sender: Processing packet 75553 [packets to send 16, broken 15] [23:17:46]ProducePacketName [23:17:46]name=ofd_packets/00075553 [23:17:46]OFD Sender: To server: pG, [23:17:46]CommunicateWithHost lk.salyk.kg:30040 [23:17:46]ConnectInit lk.salyk.kg [23:17:46]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:17:46]line СНО: Общий режим [23:17:46]line Чек 286 23.10.2024 23:17 [23:17:46]line Смена: 173 ФФД: 1.0 [23:17:46]line ЗНМ: 0300000020 [23:17:46]line РНМ: 0000000000161154 [23:17:46]line Версия ККМ: v1.0 [23:17:46]line ФМ: 0000000000963323 [23:17:46]line ФД: 75553 [23:17:46]line ФПД: 123399440940243 [23:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231745&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75553&fm=123399440940243&tin=02508201610067®Number=0000000000161154&sum=39000 [23:17:46]line 0 [23:17:46]written 0, free lines is 4095 [23:17:46]Connected sock=10 [23:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 A9 01 00 00 4C 84 A1 01 D7 21 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 19 84 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 27 01 00 35 04 06 00 70 3B 2B D7 BC D3 9D 7C E6 80 D9 F3 39 E0 [23:17:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 42 43 47 00 F3 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 21 27 01 00 F4 03 04 00 F2 2C 19 67 B6 04 01 00 00 F7 C3 2D C4 10 3E C3 F6 [23:17:46]CommunicateWithHost err = 0 [23:17:46]CheckOFDResponse [23:17:46]1017 (14) - 77093643461234 [23:17:46]1041 (16) - 0000000000963323 [23:17:46]1040 (4) - 75553 [23:17:46]1012 (4) - 23.10.2024 17:05 [23:17:46]1206 (1) - 0 [23:17:46]OFD Sender: Remove packet 75553 [23:17:46]ProducePacketName [23:17:46]name=ofd_packets/00075553 [23:17:46]NVStorageDeleteData [23:17:46]Write to MH i2c: 01 00 00 5C 00 5C [23:17:46]Write i2c OK [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: 01 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: 01 07 00 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 55 0C C4 [23:17:46]RasterBufferAndPrint [23:17:46]line [23:17:46]line [23:17:46]line [23:17:46]line [23:17:46]line [23:17:46]written 0, free lines is 3162 [23:17:46]MH_Cut [23:17:46]Write to MH i2c: D1 01 00 63 00 01 35 [23:17:46]Write i2c OK [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: D1 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: D1 01 00 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: D1 01 00 63 00 00 34 [23:17:46]Write to MH i2c: 01 00 00 64 00 64 [23:17:46]Write i2c OK [23:17:46]MH_I2C_Read... [23:17:47]OFD Sender: No OFD packet to send [23:17:47]*** Cut start [23:17:47]*** Partial cut [23:17:47]*** CUTSNS_PIN = 1 [23:17:47]*** CUTSNS_PIN = 0 [23:17:48]*** Brake cut motor [23:17:48]Read from MH i2c: 01 [23:17:48]MH_I2C_Read... [23:17:48]*** Stop cut motor [23:17:48]*** Cut end [23:17:48]Read from MH i2c: 01 07 00 [23:17:48]MH_I2C_Read... [23:17:48]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [23:17:48]process_action close_receipt done [23:17:48]requested_data is exist [23:17:48]produce_requested_data [23:17:48]requested_item fm.sn is exist - process it [23:17:48]wFMCommunicate request_size=4 [23:17:48]MH_SAM_APDU [23:17:48]CAPDU: 80 11 00 00 [23:17:48]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [23:17:48]Write i2c OK [23:17:48]MH_I2C_Read... [23:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:48]Read from MH i2c: E2 [23:17:48]MH_I2C_Read... [23:17:48]Read from MH i2c: E2 17 00 [23:17:48]MH_I2C_Read... [23:17:48]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2C [23:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:17:48]wFMCommunicate OK [23:17:48]requested_item fd.num is exist - process it [23:17:48]SAM_PROTO_GetFieldsCounters [23:17:48]wFMCommunicate request_size=4 [23:17:48]MH_SAM_APDU [23:17:48]CAPDU: 80 13 00 00 [23:17:48]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [23:17:48]Write i2c OK [23:17:48]MH_I2C_Read... [23:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:48]Read from MH i2c: E2 [23:17:48]MH_I2C_Read... [23:17:48]Read from MH i2c: E2 62 00 [23:17:48]MH_I2C_Read... [23:17:48]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 21 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [23:17:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 21 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:48]wFMCommunicate OK [23:17:48]SAM_PROTO_GetFieldsCounters done [23:17:48]requested_item shift.num is exist - process it [23:17:48]requested_item shift.opened is exist - process it [23:17:48]req_shift_opened [23:17:48]FM_GetShiftState [23:17:48]SAM_PROTO_GetShiftState [23:17:48]wFMCommunicate request_size=4 [23:17:48]MH_SAM_APDU [23:17:48]CAPDU: 80 13 01 00 [23:17:48]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [23:17:48]Write i2c OK [23:17:48]MH_I2C_Read... [23:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:48]Read from MH i2c: E2 [23:17:48]MH_I2C_Read... [23:17:48]Read from MH i2c: E2 0E 00 [23:17:48]MH_I2C_Read... [23:17:48]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 49 [23:17:48]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [23:17:48]wFMCommunicate OK [23:17:48]SAM_PROTO_GetShiftState done [23:17:48]FM_GetShiftState done [23:17:48]req_shift_opened done [23:17:48]requested_item shift.open_date is exist - process it [23:17:48]req_shift_open_date [23:17:48]req_shift_open_date done [23:17:48]produce_requested_data done [23:17:48]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75553,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [23:17:48]process_action_free close_receipt [23:17:48]json_value_free [23:17:48]json_value_free done [23:17:48]process_json_proto returns [23:17:48]Send response to host [23:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75553,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [23:17:48]free response buf [23:17:48]execute_script done [23:17:48]execute_script returns [23:17:48]free content buf [23:17:48]Sock 8.Close socket [23:17:48]Sock 8.Thread stoped [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:15]accept exits with 9 [23:22:15]New connection [23:22:15]New thread 3066568036 created [23:22:15]Thread 3066711396 joined [23:22:15]Waiting for new connection... [23:22:15] Sock 9.Parse request [23:22:15]Sock 9.Check first char [23:22:15]Sock 9.First char is OK [23:22:15]request: POST /json_proto HTTP/1.0 [23:22:15]Method: POST [23:22:15]URL: /json_proto [23:22:15]Method is POST - this is cgi request [23:22:15]url: /json_proto [23:22:15]query_string will be loaded in cgi processing [23:22:15]execute_cgi json_proto POST (null) [23:22:15]execute_cgi path=json_proto method=POST [23:22:15]POST find Content-Length [23:22:15]Host: 172.17.44.196:8080 [23:22:15]Content-Length: 1162 [23:22:15]Content-Type: application/json [23:22:15] [23:22:15]POST finish read [23:22:15]Found Content-Length = 1162 [23:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273319", "tax_sys" : 0, "items" : [ { "code": "4700003010346", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:15]execute_script... [23:22: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 : (3)273319", "tax_sys" : 0, "items" : [ { "code": "4700003010346", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:15]POST & json_proto [23:22:15]process_json_proto [23:22:15]json parsed OK: [23:22:15]protocol is kg_v1.0 [23:22:15]action value=close_receipt [23:22:15]process_action close_receipt [23:22:15]cmd_close_receipt [23:22:15]MH_GetDate [23:22:15]Write to MH i2c: F0 00 00 68 00 57 [23:22:15]Write i2c OK [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: F0 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: F0 09 00 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: F0 09 00 68 00 00 28 85 19 67 E7 19 F8 65 EA [23:22:15]GetLastDocTimeStamp 1729725465 [23:22:15]current date 1729725736 [23:22:15]FM_GetShiftState [23:22:15]SAM_PROTO_GetShiftState [23:22:15]wFMCommunicate request_size=4 [23:22:15]MH_SAM_APDU [23:22:15]CAPDU: 80 13 01 00 [23:22:15]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [23:22:15]Write i2c OK [23:22:15]MH_I2C_Read... [23:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:15]Read from MH i2c: E2 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: E2 0E 00 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 4B [23:22:15]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [23:22:15]wFMCommunicate OK [23:22:15]SAM_PROTO_GetShiftState done [23:22:15]FM_GetShiftState done [23:22:15]opened in 1729642905 [23:22:15]opened+sec_in_day 1729729305 [23:22:15]quantity*price = 4000 [23:22:15]sum+1 = 4001 [23:22:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 3.000 * 40.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 287 23.10.2024 23:22 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75554 ФПД: 243778286606026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232216&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75554&fm=243778286606026&tin=02508201610067®Number=0000000000161154&sum=24000 0 [23:22:16]StoreToDocumentArchive [23:22:16]shift 173 fd 75554 [23:22:16]save to /storage/0173/doc_00075554 [23:22:16]save last doc name /storage/0173/doc_00075554 to /storage/kkm_last_doc_name [23:22:16]save OK [23:22:16]Clear old archive folders... [23:22:16]ProcessDocumentItem done err = 0, tmpTLVsize=495 [23:22:16]tlvbuf is 01EBAFC0 [23:22:16]SAM_PROTO_ClearQueue [23:22:16]wFMCommunicate request_size=4 [23:22:16]MH_SAM_APDU [23:22:16]CAPDU: 80 09 00 00 [23:22:16]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [23:22:16]Write i2c OK [23:22:16]MH_I2C_Read... [23:22:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:16]Read from MH i2c: E2 [23:22:16]MH_I2C_Read... [23:22:16]Read from MH i2c: E2 03 00 [23:22:16]MH_I2C_Read... [23:22:16]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [23:22:16]RAPDU: 90 00 [23:22:16]wFMCommunicate OK [23:22:16]SAM_PROTO_ClearQueue done [23:22:16]KKMCreateOFDPacket [23:22:16]OFDProtocolAddRootSTLVToBuf [23:22:16]FM_MakeSignedData [23:22:16]FM_MakeSignedData [23:22:16]SAM_PROTO_SignData [23:22:16]wFMCommunicate request_size=4 [23:22:16]MH_SAM_APDU [23:22:16]CAPDU: 80 0D 01 02 [23:22:16]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [23:22:16]Write i2c OK [23:22:16]MH_I2C_Read... [23:22:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:16]Read from MH i2c: E2 [23:22:16]MH_I2C_Read... [23:22:16]Read from MH i2c: E2 03 00 [23:22:16]MH_I2C_Read... [23:22:16]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [23:22:16]RAPDU: 90 00 [23:22:16]wFMCommunicate OK [23:22:16]wFMCommunicate request_size=255 [23:22:16]MH_SAM_APDU [23:22:16]CAPDU: 80 0D 02 02 FA 03 00 EF 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 [23:22:16]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 EF 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 00 00 55 [23:22:16]Write i2c OK [23:22:16]MH_I2C_Read... [23:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:17]Read from MH i2c: E2 [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: E2 03 00 [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [23:22:17]RAPDU: 90 00 [23:22:17]wFMCommunicate OK [23:22:17]wFMCommunicate request_size=254 [23:22:17]MH_SAM_APDU [23:22:17]CAPDU: 80 0D 02 02 F9 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 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 28 85 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 27 01 00 35 04 06 00 DD B7 0E 2D 56 CA [23:22:17]Write to MH i2c: E2 01 01 79 00 80 0D 02 02 F9 00 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 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 28 85 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 27 01 00 35 04 06 00 DD B7 0E 2D 56 CA 00 00 7B [23:22:17]Write i2c OK [23:22:17]MH_I2C_Read... [23:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:17]Read from MH i2c: E2 [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: E2 03 00 [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [23:22:17]RAPDU: 90 00 [23:22:17]wFMCommunicate OK [23:22:17]wFMCommunicate request_size=4 [23:22:17]MH_SAM_APDU [23:22:17]CAPDU: 80 0D 03 02 [23:22:17]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [23:22:17]Write i2c OK [23:22:17]MH_I2C_Read... [23:22:17]OFD Sender: No OFD packet to send [23:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:17]Read from MH i2c: E2 [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: E2 0B 00 [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: E2 0B 00 7A 00 00 F9 52 23 1B 6D D3 F5 D7 90 00 8B [23:22:17]RAPDU: F9 52 23 1B 6D D3 F5 D7 90 00 [23:22:17]wFMCommunicate OK [23:22:17]SAM_PROTO_SignData done [23:22:17]FM_MakeSignedData done [23:22:17]CreateOFDProtocolMessage [23:22:17]wFMCommunicate request_size=4 [23:22:17]MH_SAM_APDU [23:22:17]CAPDU: 80 11 00 00 [23:22:17]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [23:22:17]Write i2c OK [23:22:17]MH_I2C_Read... [23:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:17]Read from MH i2c: E2 [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: E2 17 00 [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 42 [23:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:22:17]wFMCommunicate OK [23:22:17]CreateOFDProtocolMessage done [23:22:17]OFDSenderStorePacket 75554 [23:22:17]StoreOFDPacket docnum=75554 [23:22:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 03 02 00 00 94 EE FB 01 C6 DE 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 28 85 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 27 01 00 35 04 06 00 DD B7 0E 2D 56 CA F9 52 23 1B 6D D3 F5 D7 [23:22:17]CheckFolder [23:22:17]dirname=/storage/ofd_packets [23:22:17]CheckFolder done [23:22:17]ProducePacketName [23:22:17]name=ofd_packets/00075554 [23:22:17]NVStorageSaveData ofd_packets/00075554 [23:22:17]File name is /storage/ofd_packets/00075554 [23:22:17]Write 545 bytes [23:22:17]NVStorageSaveData done [23:22:17]OFDSenderStorePacket done [23:22:17]KKMCreateOFDPacket done [23:22:17]NVStorageSaveData kkm_last_timestamp [23:22:17]File name is /storage/kkm_last_timestamp [23:22:17]Write 4 bytes [23:22:17]NVStorageSaveData done [23:22:17]ExternCall_PrintAddStr [23:22:17]wPrintStart [23:22:17]Write to MH i2c: 01 00 00 7C 00 7C [23:22:17]Write i2c OK [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: 01 [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: 01 07 00 [23:22:17]MH_I2C_Read... [23:22:17]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [23:22:17]RasterBufferAndPrint [23:22:17]line Счет N : (3)273319 [23:22:17]line ИНН: 02508201610067 [23:22:17]line Контрольно-Кассовый Чек [23:22:17]line ПРОДАЖА [23:22:17]line Товар: 4700003010346 [23:22:17]line Напиток Let`s Go! с/с груша ПЭТ 0,5л [23:22:17]line 1.000 * 40.00 [23:22:17]line = 40.00 [23:22:17]line НДС 12% НСП 1% [23:22:17]line > о реализуемом товаре [23:22:17]line Товар: 4700000160211 [23:22:17]line Вода Легенда 0,5л [23:22:17]line 3.000 * 40.00 [23:22:17]line = 120.00 [23:22:17]line НДС 12% НСП 1% [23:22:17]line > о реализуемом товаре [23:22:17]line Товар: 4870001570057 [23:22:17]line Напиток Pepsi 0,5л [23:22:17]line 1.000 * 80.00 [23:22:17]line = 80.00 [23:22:17]line НДС 12% НСП 1% [23:22:17]line > о реализуемом товаре [23:22:17]line ИТОГО: 240.00 [23:22:17]line НСП 1% : 2.12 [23:22:17]line НДС 12% : 25.49 [23:22:17]line Наличными: 240.00 [23:22:17]line Безнал.: 0.00 [23:22:17]line Место: АЗС № 133 "Партнер Нефть" [23:22:17]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:22:17]line СНО: Общий режим [23:22:17]line Чек 287 23.10.2024 23:22 [23:22:17]line Смена: 173 ФФД: 1.0 [23:22:17]line ЗНМ: 0300000020 [23:22:17]line РНМ: 0000000000161154 [23:22:17]line Версия ККМ: v1.0 [23:22:17]line ФМ: 0000000000963323 [23:22:17]line ФД: 75554 [23:22:17]line ФПД: 243778286606026 [23:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232216&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75554&fm=243778286606026&tin=02508201610067®Number=0000000000161154&sum=24000 [23:22:17]line 0 [23:22:17]written 0, free lines is 4095 [23:22:17]OFD Sender: Processing packet 75554 [packets to send 16, broken 15] [23:22:17]ProducePacketName [23:22:17]name=ofd_packets/00075554 [23:22:17]OFD Sender: To server: pG, [23:22:17]CommunicateWithHost lk.salyk.kg:30040 [23:22:17]ConnectInit lk.salyk.kg [23:22:17]Connected sock=10 [23:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 03 02 00 00 94 EE FB 01 C6 DE 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 28 85 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 22 27 01 00 35 04 06 00 DD B7 0E 2D 56 CA F9 52 23 1B 6D D3 F5 D7 [23:22:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 FF A2 47 00 B8 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 39 36 33 33 32 33 10 04 04 00 22 27 01 00 F4 03 04 00 02 2E 19 67 B6 04 01 00 00 95 01 18 CC 31 A4 3D 2E [23:22:17]CommunicateWithHost err = 0 [23:22:17]CheckOFDResponse [23:22:17]1017 (14) - 77093643461234 [23:22:17]1041 (16) - 0000000000963323 [23:22:17]1040 (4) - 75554 [23:22:17]1012 (4) - 23.10.2024 17:10 [23:22:17]1206 (1) - 0 [23:22:17]OFD Sender: Remove packet 75554 [23:22:17]ProducePacketName [23:22:17]name=ofd_packets/00075554 [23:22:17]NVStorageDeleteData [23:22:18]Write to MH i2c: 01 00 00 B0 00 B0 [23:22:18]Write i2c OK [23:22:18]MH_I2C_Read... [23:22:18]Read from MH i2c: 01 [23:22:18]MH_I2C_Read... [23:22:18]Read from MH i2c: 01 07 00 [23:22:18]MH_I2C_Read... [23:22:18]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 F2 0B B4 [23:22:18]RasterBufferAndPrint [23:22:18]line [23:22:18]line [23:22:18]line [23:22:18]line [23:22:18]line [23:22:18]written 0, free lines is 3063 [23:22:18]MH_Cut [23:22:18]Write to MH i2c: D1 01 00 B7 00 01 89 [23:22:18]Write i2c OK [23:22:18]MH_I2C_Read... [23:22:18]Read from MH i2c: D1 [23:22:18]MH_I2C_Read... [23:22:18]Read from MH i2c: D1 01 00 [23:22:18]MH_I2C_Read... [23:22:18]Read from MH i2c: D1 01 00 B7 00 00 88 [23:22:18]Write to MH i2c: 01 00 00 B8 00 B8 [23:22:18]Write i2c OK [23:22:18]MH_I2C_Read... [23:22:18]OFD Sender: No OFD packet to send [23:22:19]*** Cut start [23:22:19]*** Partial cut [23:22:19]*** CUTSNS_PIN = 1 [23:22:19]*** CUTSNS_PIN = 0 [23:22:19]*** Brake cut motor [23:22:19]Read from MH i2c: 01 [23:22:19]MH_I2C_Read... [23:22:19]*** Stop cut motor [23:22:19]*** Cut end [23:22:19]Read from MH i2c: 01 07 00 [23:22:19]MH_I2C_Read... [23:22:19]Read from MH i2c: 01 07 00 B8 00 00 00 00 00 00 FF 0F CD [23:22:19]process_action close_receipt done [23:22:19]requested_data is exist [23:22:19]produce_requested_data [23:22:19]requested_item fm.sn is exist - process it [23:22:19]wFMCommunicate request_size=4 [23:22:19]MH_SAM_APDU [23:22:19]CAPDU: 80 11 00 00 [23:22:19]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [23:22:19]Write i2c OK [23:22:19]MH_I2C_Read... [23:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:19]Read from MH i2c: E2 [23:22:19]MH_I2C_Read... [23:22:19]Read from MH i2c: E2 17 00 [23:22:19]MH_I2C_Read... [23:22:19]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 80 [23:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:22:19]wFMCommunicate OK [23:22:19]requested_item fd.num is exist - process it [23:22:19]SAM_PROTO_GetFieldsCounters [23:22:19]wFMCommunicate request_size=4 [23:22:19]MH_SAM_APDU [23:22:19]CAPDU: 80 13 00 00 [23:22:19]Write to MH i2c: E2 08 00 BA 00 80 13 00 00 00 00 00 00 36 [23:22:19]Write i2c OK [23:22:19]MH_I2C_Read... [23:22:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:20]Read from MH i2c: E2 [23:22:20]MH_I2C_Read... [23:22:20]Read from MH i2c: E2 62 00 [23:22:20]MH_I2C_Read... [23:22:20]Read from MH i2c: E2 62 00 BA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 22 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [23:22:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 22 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:20]wFMCommunicate OK [23:22:20]SAM_PROTO_GetFieldsCounters done [23:22:20]requested_item shift.num is exist - process it [23:22:20]requested_item shift.opened is exist - process it [23:22:20]req_shift_opened [23:22:20]FM_GetShiftState [23:22:20]SAM_PROTO_GetShiftState [23:22:20]wFMCommunicate request_size=4 [23:22:20]MH_SAM_APDU [23:22:20]CAPDU: 80 13 01 00 [23:22:20]Write to MH i2c: E2 08 00 BB 00 80 13 01 00 00 00 00 00 38 [23:22:20]Write i2c OK [23:22:20]MH_I2C_Read... [23:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:20]Read from MH i2c: E2 [23:22:20]MH_I2C_Read... [23:22:20]Read from MH i2c: E2 0E 00 [23:22:20]MH_I2C_Read... [23:22:20]Read from MH i2c: E2 0E 00 BB 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 9D [23:22:20]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [23:22:20]wFMCommunicate OK [23:22:20]SAM_PROTO_GetShiftState done [23:22:20]FM_GetShiftState done [23:22:20]req_shift_opened done [23:22:20]requested_item shift.open_date is exist - process it [23:22:20]req_shift_open_date [23:22:20]req_shift_open_date done [23:22:20]produce_requested_data done [23:22:20]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75554,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [23:22:20]process_action_free close_receipt [23:22:20]json_value_free [23:22:20]json_value_free done [23:22:20]process_json_proto returns [23:22:20]Send response to host [23:22:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75554,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [23:22:20]free response buf [23:22:20]execute_script done [23:22:20]execute_script returns [23:22:20]free content buf [23:22:20]Sock 9.Close socket [23:22:20]Sock 9.Thread stoped [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]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:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:09]accept exits with 8 [23:34:09]New connection [23:34:09]New thread 3066711396 created [23:34:09]Thread 3066568036 joined [23:34:09]Waiting for new connection... [23:34:09] Sock 8.Parse request [23:34:09]Sock 8.Check first char [23:34:09]Sock 8.First char is OK [23:34:09]request: POST /json_proto HTTP/1.0 [23:34:09]Method: POST [23:34:09]URL: /json_proto [23:34:09]Method is POST - this is cgi request [23:34:09]url: /json_proto [23:34:09]query_string will be loaded in cgi processing [23:34:09]execute_cgi json_proto POST (null) [23:34:09]execute_cgi path=json_proto method=POST [23:34:09]POST find Content-Length [23:34:09]Host: 172.17.44.196:8080 [23:34:09]Content-Length: 1189 [23:34:09]Content-Type: application/json [23:34:09] [23:34:09]POST finish read [23:34:09]Found Content-Length = 1189 [23:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273320", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.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: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:09]execute_script... [23:34:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273320", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.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: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:09]POST & json_proto [23:34:09]process_json_proto [23:34:09]json parsed OK: [23:34:09]protocol is kg_v1.0 [23:34:09]action value=close_receipt [23:34:09]process_action close_receipt [23:34:09]cmd_close_receipt [23:34:09]MH_GetDate [23:34:09]Write to MH i2c: F0 00 00 BC 00 AB [23:34:09]Write i2c OK [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: F0 [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: F0 09 00 [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: F0 09 00 BC 00 00 F2 87 19 67 E7 19 F8 65 0A [23:34:09]GetLastDocTimeStamp 1729725736 [23:34:09]current date 1729726450 [23:34:09]FM_GetShiftState [23:34:09]SAM_PROTO_GetShiftState [23:34:09]wFMCommunicate request_size=4 [23:34:09]MH_SAM_APDU [23:34:09]CAPDU: 80 13 01 00 [23:34:09]Write to MH i2c: E2 08 00 BD 00 80 13 01 00 00 00 00 00 3A [23:34:09]Write i2c OK [23:34:09]MH_I2C_Read... [23:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:09]Read from MH i2c: E2 [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: E2 0E 00 [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: E2 0E 00 BD 00 00 09 00 01 99 41 18 67 00 00 00 00 90 00 9F [23:34:09]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [23:34:09]wFMCommunicate OK [23:34:09]SAM_PROTO_GetShiftState done [23:34:09]FM_GetShiftState done [23:34:09]opened in 1729642905 [23:34:09]opened+sec_in_day 1729729305 [23:34:09]quantity*price = 2000 [23:34:09]sum+1 = 2001 [23:34:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.92 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 288 23.10.2024 23:34 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75555 ФПД: 146096478695584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233410&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75555&fm=146096478695584&tin=02508201610067®Number=0000000000161154&sum=15000 0 [23:34:10]StoreToDocumentArchive [23:34:10]shift 173 fd 75555 [23:34:10]save to /storage/0173/doc_00075555 [23:34:10]save last doc name /storage/0173/doc_00075555 to /storage/kkm_last_doc_name [23:34:10]save OK [23:34:10]Clear old archive folders... [23:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=435 [23:34:10]tlvbuf is 01EC6260 [23:34:10]SAM_PROTO_ClearQueue [23:34:10]wFMCommunicate request_size=4 [23:34:10]MH_SAM_APDU [23:34:10]CAPDU: 80 09 00 00 [23:34:10]Write to MH i2c: E2 08 00 CA 00 80 09 00 00 00 00 00 00 3C [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:10]Read from MH i2c: E2 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 03 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [23:34:10]RAPDU: 90 00 [23:34:10]wFMCommunicate OK [23:34:10]SAM_PROTO_ClearQueue done [23:34:10]KKMCreateOFDPacket [23:34:10]OFDProtocolAddRootSTLVToBuf [23:34:10]FM_MakeSignedData [23:34:10]FM_MakeSignedData [23:34:10]SAM_PROTO_SignData [23:34:10]wFMCommunicate request_size=4 [23:34:10]MH_SAM_APDU [23:34:10]CAPDU: 80 0D 01 02 [23:34:10]Write to MH i2c: E2 08 00 CB 00 80 0D 01 02 00 00 00 00 44 [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:10]Read from MH i2c: E2 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 03 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [23:34:10]RAPDU: 90 00 [23:34:10]wFMCommunicate OK [23:34:10]wFMCommunicate request_size=255 [23:34:10]MH_SAM_APDU [23:34:10]CAPDU: 80 0D 02 02 FA 03 00 B3 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 [23:34:10]Write to MH i2c: E2 02 01 CC 00 80 0D 02 02 FA 00 03 00 B3 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 00 00 1C [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:10]Read from MH i2c: E2 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 03 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [23:34:10]RAPDU: 90 00 [23:34:10]wFMCommunicate OK [23:34:10]wFMCommunicate request_size=194 [23:34:10]MH_SAM_APDU [23:34:10]CAPDU: 80 0D 02 02 BD 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 F2 87 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 27 01 00 35 04 06 00 84 DF BC B7 30 A0 [23:34:10]Write to MH i2c: E2 C5 00 CD 00 80 0D 02 02 BD 00 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 F2 87 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 27 01 00 35 04 06 00 84 DF BC B7 30 A0 00 00 CD [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:10]Read from MH i2c: E2 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 03 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [23:34:10]RAPDU: 90 00 [23:34:10]wFMCommunicate OK [23:34:10]wFMCommunicate request_size=4 [23:34:10]MH_SAM_APDU [23:34:10]CAPDU: 80 0D 03 02 [23:34:10]Write to MH i2c: E2 08 00 CE 00 80 0D 03 02 00 00 00 00 49 [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:10]Read from MH i2c: E2 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 0B 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 0B 00 CE 00 00 E6 DF 0A 66 ED EF A3 AF 90 00 AD [23:34:10]RAPDU: E6 DF 0A 66 ED EF A3 AF 90 00 [23:34:10]wFMCommunicate OK [23:34:10]SAM_PROTO_SignData done [23:34:10]FM_MakeSignedData done [23:34:10]CreateOFDProtocolMessage [23:34:10]wFMCommunicate request_size=4 [23:34:10]MH_SAM_APDU [23:34:10]CAPDU: 80 11 00 00 [23:34:10]Write to MH i2c: E2 08 00 CF 00 80 11 00 00 00 00 00 00 49 [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:10]Read from MH i2c: E2 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 17 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 17 00 CF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 96 [23:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:34:10]wFMCommunicate OK [23:34:10]CreateOFDProtocolMessage done [23:34:10]OFDSenderStorePacket 75555 [23:34:10]StoreOFDPacket docnum=75555 [23:34:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 C7 01 00 00 FF 44 BF 01 9A 5E 5A 03 01 00 03 00 B3 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 F2 87 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 27 01 00 35 04 06 00 84 DF BC B7 30 A0 E6 DF 0A 66 ED EF A3 AF [23:34:11]CheckFolder [23:34:11]dirname=/storage/ofd_packets [23:34:11]CheckFolder done [23:34:11]ProducePacketName [23:34:11]name=ofd_packets/00075555 [23:34:11]NVStorageSaveData ofd_packets/00075555 [23:34:11]File name is /storage/ofd_packets/00075555 [23:34:11]Write 485 bytes [23:34:11]NVStorageSaveData done [23:34:11]OFDSenderStorePacket done [23:34:11]KKMCreateOFDPacket done [23:34:11]NVStorageSaveData kkm_last_timestamp [23:34:11]File name is /storage/kkm_last_timestamp [23:34:11]Write 4 bytes [23:34:11]NVStorageSaveData done [23:34:11]ExternCall_PrintAddStr [23:34:11]wPrintStart [23:34:11]Write to MH i2c: 01 00 00 D0 00 D0 [23:34:11]Write i2c OK [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: 01 [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: 01 07 00 [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: 01 07 00 D0 00 00 00 00 00 00 FF 0F E5 [23:34:11]RasterBufferAndPrint [23:34:11]line Счет N : (3)273320 [23:34:11]line ИНН: 02508201610067 [23:34:11]line Контрольно-Кассовый Чек [23:34:11]line ПРОДАЖА [23:34:11]line Товар: 4700003730039 [23:34:11]line Снек Возд пшеница Бадырак сладкая 30гр [23:34:11]line 1.000 * 20.00 [23:34:11]line = 20.00 [23:34:11]line НДС 12% НСП 1% [23:34:11]line > о реализуемом товаре [23:34:11]line Товар: 2000032760017 [23:34:11]line Слойка DC треугольная мясо110г [23:34:11]line 2.000 * 65.00 [23:34:11]line = 130.00 [23:34:11]line НДС 12% НСП 1% [23:34:11]line > о реализуемом товаре [23:34:11]line ИТОГО: 150.00 [23:34:11]line НСП 1% : 1.33 [23:34:11]line НДС 12% : 15.92 [23:34:11]line Наличными: 0.00 [23:34:11]line Безнал.: 150.00 [23:34:11]line Место: АЗС № 133 "Партнер Нефть" [23:34:11]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:34:11]line СНО: Общий режим [23:34:11]line Чек 288 23.10.2024 23:34 [23:34:11]line Смена: 173 ФФД: 1.0 [23:34:11]line ЗНМ: 0300000020 [23:34:11]line РНМ: 0000000000161154 [23:34:11]line Версия ККМ: v1.0 [23:34:11]line Платежная система: Mbank [23:34:11]line ФМ: 0000000000963323 [23:34:11]line ФД: 75555 [23:34:11]line ФПД: 146096478695584 [23:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233410&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75555&fm=146096478695584&tin=02508201610067®Number=0000000000161154&sum=15000 [23:34:11]line 0 [23:34:11]written 0, free lines is 4095 [23:34:11]OFD Sender: Processing packet 75555 [packets to send 16, broken 15] [23:34:11]ProducePacketName [23:34:11]name=ofd_packets/00075555 [23:34:11]OFD Sender: To server: pG, [23:34:11]CommunicateWithHost lk.salyk.kg:30040 [23:34:11]ConnectInit lk.salyk.kg [23:34:11]Connected sock=10 [23:34:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 C7 01 00 00 FF 44 BF 01 9A 5E 5A 03 01 00 03 00 B3 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 F2 87 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 27 01 00 35 04 06 00 84 DF BC B7 30 A0 E6 DF 0A 66 ED EF A3 AF [23:34:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 E0 00 47 00 96 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 23 27 01 00 F4 03 04 00 CB 30 19 67 B6 04 01 00 00 74 F9 31 58 B9 35 DC BF [23:34:11]CommunicateWithHost err = 0 [23:34:11]CheckOFDResponse [23:34:11]1017 (14) - 77093643461234 [23:34:11]1041 (16) - 0000000000963323 [23:34:11]1040 (4) - 75555 [23:34:11]1012 (4) - 23.10.2024 17:22 [23:34:11]1206 (1) - 0 [23:34:11]OFD Sender: Remove packet 75555 [23:34:11]ProducePacketName [23:34:11]name=ofd_packets/00075555 [23:34:11]NVStorageDeleteData [23:34:11]Write to MH i2c: 01 00 00 00 01 01 [23:34:11]Write i2c OK [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: 01 [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: 01 07 00 [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 22 0C 36 [23:34:11]RasterBufferAndPrint [23:34:11]line [23:34:11]line [23:34:11]line [23:34:11]line [23:34:11]line [23:34:11]written 0, free lines is 3112 [23:34:11]MH_Cut [23:34:11]Write to MH i2c: D1 01 00 07 01 01 DA [23:34:11]Write i2c OK [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: D1 [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: D1 01 00 [23:34:11]MH_I2C_Read... [23:34:11]Read from MH i2c: D1 01 00 07 01 00 D9 [23:34:11]Write to MH i2c: 01 00 00 08 01 09 [23:34:11]Write i2c OK [23:34:11]MH_I2C_Read... [23:34:12]OFD Sender: No OFD packet to send [23:34:12]*** Cut start [23:34:12]*** Partial cut [23:34:12]*** CUTSNS_PIN = 1 [23:34:12]*** CUTSNS_PIN = 0 [23:34:13]*** Brake cut motor [23:34:13]Read from MH i2c: 01 [23:34:13]MH_I2C_Read... [23:34:13]*** Stop cut motor [23:34:13]*** Cut end [23:34:13]Read from MH i2c: 01 07 00 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: 01 07 00 08 01 00 00 00 00 00 FF 0F 1E [23:34:13]process_action close_receipt done [23:34:13]requested_data is exist [23:34:13]produce_requested_data [23:34:13]requested_item fm.sn is exist - process it [23:34:13]wFMCommunicate request_size=4 [23:34:13]MH_SAM_APDU [23:34:13]CAPDU: 80 11 00 00 [23:34:13]Write to MH i2c: E2 08 00 09 01 80 11 00 00 00 00 00 00 84 [23:34:13]Write i2c OK [23:34:13]MH_I2C_Read... [23:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:13]Read from MH i2c: E2 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: E2 17 00 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: E2 17 00 09 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 D1 [23:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:34:13]wFMCommunicate OK [23:34:13]requested_item fd.num is exist - process it [23:34:13]SAM_PROTO_GetFieldsCounters [23:34:13]wFMCommunicate request_size=4 [23:34:13]MH_SAM_APDU [23:34:13]CAPDU: 80 13 00 00 [23:34:13]Write to MH i2c: E2 08 00 0A 01 80 13 00 00 00 00 00 00 87 [23:34:13]Write i2c OK [23:34:13]MH_I2C_Read... [23:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:13]Read from MH i2c: E2 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: E2 62 00 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: E2 62 00 0A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 23 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [23:34:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 23 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:13]wFMCommunicate OK [23:34:13]SAM_PROTO_GetFieldsCounters done [23:34:13]requested_item shift.num is exist - process it [23:34:13]requested_item shift.opened is exist - process it [23:34:13]req_shift_opened [23:34:13]FM_GetShiftState [23:34:13]SAM_PROTO_GetShiftState [23:34:13]wFMCommunicate request_size=4 [23:34:13]MH_SAM_APDU [23:34:13]CAPDU: 80 13 01 00 [23:34:13]Write to MH i2c: E2 08 00 0B 01 80 13 01 00 00 00 00 00 89 [23:34:13]Write i2c OK [23:34:13]MH_I2C_Read... [23:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:13]Read from MH i2c: E2 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: E2 0E 00 [23:34:13]MH_I2C_Read... [23:34:13]Read from MH i2c: E2 0E 00 0B 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 EE [23:34:13]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [23:34:13]wFMCommunicate OK [23:34:13]SAM_PROTO_GetShiftState done [23:34:13]FM_GetShiftState done [23:34:13]req_shift_opened done [23:34:13]requested_item shift.open_date is exist - process it [23:34:13]req_shift_open_date [23:34:13]req_shift_open_date done [23:34:13]produce_requested_data done [23:34:13]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75555,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [23:34:13]process_action_free close_receipt [23:34:13]json_value_free [23:34:13]json_value_free done [23:34:13]process_json_proto returns [23:34:13]Send response to host [23:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75555,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [23:34:13]free response buf [23:34:13]execute_script done [23:34:13]execute_script returns [23:34:13]free content buf [23:34:13]Sock 8.Close socket [23:34:13]Sock 8.Thread stoped [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:35]accept exits with 9 [23:37:35]New connection [23:37:35]New thread 3066568036 created [23:37:35]Thread 3066711396 joined [23:37:35]Waiting for new connection... [23:37:35] Sock 9.Parse request [23:37:35]Sock 9.Check first char [23:37:35]Sock 9.First char is OK [23:37:35]request: POST /json_proto HTTP/1.0 [23:37:35]Method: POST [23:37:35]URL: /json_proto [23:37:35]Method is POST - this is cgi request [23:37:35]url: /json_proto [23:37:35]query_string will be loaded in cgi processing [23:37:35]execute_cgi json_proto POST (null) [23:37:35]execute_cgi path=json_proto method=POST [23:37:35]POST find Content-Length [23:37:35]Host: 172.17.44.196:8080 [23:37:35]Content-Length: 709 [23:37:35]Content-Type: application/json [23:37:35] [23:37:35]POST finish read [23:37:35]Found Content-Length = 709 [23:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273321", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:35]execute_script... [23: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 : (3)273321", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:35]POST & json_proto [23:37:35]process_json_proto [23:37:35]json parsed OK: [23:37:35]protocol is kg_v1.0 [23:37:35]action value=close_receipt [23:37:35]process_action close_receipt [23:37:35]cmd_close_receipt [23:37:35]MH_GetDate [23:37:35]Write to MH i2c: F0 00 00 0C 01 FC [23:37:35]Write i2c OK [23:37:35]MH_I2C_Read... [23:37:35]Read from MH i2c: F0 [23:37:35]MH_I2C_Read... [23:37:35]Read from MH i2c: F0 09 00 [23:37:35]MH_I2C_Read... [23:37:35]Read from MH i2c: F0 09 00 0C 01 00 C0 88 19 67 E7 19 F8 65 2A [23:37:35]GetLastDocTimeStamp 1729726450 [23:37:35]current date 1729726656 [23:37:35]FM_GetShiftState [23:37:35]SAM_PROTO_GetShiftState [23:37:35]wFMCommunicate request_size=4 [23:37:35]MH_SAM_APDU [23:37:35]CAPDU: 80 13 01 00 [23:37:35]Write to MH i2c: E2 08 00 0D 01 80 13 01 00 00 00 00 00 8B [23:37:35]Write i2c OK [23:37:35]MH_I2C_Read... [23:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:35]Read from MH i2c: E2 [23:37:35]MH_I2C_Read... [23:37:35]Read from MH i2c: E2 0E 00 [23:37:35]MH_I2C_Read... [23:37:35]Read from MH i2c: E2 0E 00 0D 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 F0 [23:37:35]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [23:37:35]wFMCommunicate OK [23:37:35]SAM_PROTO_GetShiftState done [23:37:35]FM_GetShiftState done [23:37:35]opened in 1729642905 [23:37:35]opened+sec_in_day 1729729305 [23:37:35]quantity*price = 9500 [23:37:35]sum+1 = 9501 [23:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 289 23.10.2024 23:37 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 ФМ: 0000000000963323 ФД: 75556 ФПД: 50628513769583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233736&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75556&fm=50628513769583&tin=02508201610067®Number=0000000000161154&sum=9500 0 [23:37:36]StoreToDocumentArchive [23:37:36]shift 173 fd 75556 [23:37:36]save to /storage/0173/doc_00075556 [23:37:36]save last doc name /storage/0173/doc_00075556 to /storage/kkm_last_doc_name [23:37:36]save OK [23:37:36]Clear old archive folders... [23:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=304 [23:37:36]tlvbuf is 01EC5680 [23:37:36]SAM_PROTO_ClearQueue [23:37:36]wFMCommunicate request_size=4 [23:37:36]MH_SAM_APDU [23:37:36]CAPDU: 80 09 00 00 [23:37:36]Write to MH i2c: E2 08 00 1A 01 80 09 00 00 00 00 00 00 8D [23:37:36]Write i2c OK [23:37:36]MH_I2C_Read... [23:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:36]Read from MH i2c: E2 [23:37:36]MH_I2C_Read... [23:37:36]Read from MH i2c: E2 03 00 [23:37:36]MH_I2C_Read... [23:37:36]Read from MH i2c: E2 03 00 1A 01 00 90 00 8F [23:37:36]RAPDU: 90 00 [23:37:36]wFMCommunicate OK [23:37:36]SAM_PROTO_ClearQueue done [23:37:36]KKMCreateOFDPacket [23:37:36]OFDProtocolAddRootSTLVToBuf [23:37:36]FM_MakeSignedData [23:37:36]FM_MakeSignedData [23:37:36]SAM_PROTO_SignData [23:37:36]wFMCommunicate request_size=4 [23:37:36]MH_SAM_APDU [23:37:36]CAPDU: 80 0D 01 02 [23:37:36]Write to MH i2c: E2 08 00 1B 01 80 0D 01 02 00 00 00 00 95 [23:37:36]Write i2c OK [23:37:36]MH_I2C_Read... [23:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:36]Read from MH i2c: E2 [23:37:36]MH_I2C_Read... [23:37:36]Read from MH i2c: E2 03 00 [23:37:36]MH_I2C_Read... [23:37:36]Read from MH i2c: E2 03 00 1B 01 00 90 00 90 [23:37:36]RAPDU: 90 00 [23:37:36]wFMCommunicate OK [23:37:36]wFMCommunicate request_size=255 [23:37:36]MH_SAM_APDU [23:37:36]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 C0 88 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 [23:37:36]Write to MH i2c: E2 02 01 1C 01 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 C0 88 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 00 00 72 [23:37:36]Write i2c OK [23:37:36]MH_I2C_Read... [23:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 1C 01 00 90 00 91 [23:37:37]RAPDU: 90 00 [23:37:37]wFMCommunicate OK [23:37:37]wFMCommunicate request_size=63 [23:37:37]MH_SAM_APDU [23:37:37]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 27 01 00 35 04 06 00 2E 0B DE 94 28 6F [23:37:37]Write to MH i2c: E2 42 00 1D 01 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 27 01 00 35 04 06 00 2E 0B DE 94 28 6F 00 00 63 [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 1D 01 00 90 00 92 [23:37:37]RAPDU: 90 00 [23:37:37]wFMCommunicate OK [23:37:37]wFMCommunicate request_size=4 [23:37:37]MH_SAM_APDU [23:37:37]CAPDU: 80 0D 03 02 [23:37:37]Write to MH i2c: E2 08 00 1E 01 80 0D 03 02 00 00 00 00 9A [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]OFD Sender: No OFD packet to send [23:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 0B 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 0B 00 1E 01 00 05 07 06 79 9C 2C B1 7C 90 00 1B [23:37:37]RAPDU: 05 07 06 79 9C 2C B1 7C 90 00 [23:37:37]wFMCommunicate OK [23:37:37]SAM_PROTO_SignData done [23:37:37]FM_MakeSignedData done [23:37:37]CreateOFDProtocolMessage [23:37:37]wFMCommunicate request_size=4 [23:37:37]MH_SAM_APDU [23:37:37]CAPDU: 80 11 00 00 [23:37:37]Write to MH i2c: E2 08 00 1F 01 80 11 00 00 00 00 00 00 9A [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 17 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 17 00 1F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 E7 [23:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:37:37]wFMCommunicate OK [23:37:37]CreateOFDProtocolMessage done [23:37:37]OFDSenderStorePacket 75556 [23:37:37]StoreOFDPacket docnum=75556 [23:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 44 01 00 00 B1 80 3C 01 9E 8A 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 C0 88 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 27 01 00 35 04 06 00 2E 0B DE 94 28 6F 05 07 06 79 9C 2C B1 7C [23:37:37]CheckFolder [23:37:37]dirname=/storage/ofd_packets [23:37:37]CheckFolder done [23:37:37]ProducePacketName [23:37:37]name=ofd_packets/00075556 [23:37:37]NVStorageSaveData ofd_packets/00075556 [23:37:37]File name is /storage/ofd_packets/00075556 [23:37:37]Write 354 bytes [23:37:37]NVStorageSaveData done [23:37:37]OFDSenderStorePacket done [23:37:37]KKMCreateOFDPacket done [23:37:37]NVStorageSaveData kkm_last_timestamp [23:37:37]File name is /storage/kkm_last_timestamp [23:37:37]Write 4 bytes [23:37:37]NVStorageSaveData done [23:37:37]ExternCall_PrintAddStr [23:37:37]wPrintStart [23:37:37]Write to MH i2c: 01 00 00 20 01 21 [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: 01 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: 01 07 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: 01 07 00 20 01 00 00 00 00 00 FF 0F 36 [23:37:37]RasterBufferAndPrint [23:37:37]line Счет N : (3)273321 [23:37:37]line ИНН: 02508201610067 [23:37:37]line Контрольно-Кассовый Чек [23:37:37]line ПРОДАЖА [23:37:37]line Товар: 4700000480302 [23:37:37]line Напиток энерг Nitro манго-клуб 0.45 ж/б [23:37:37]line 1.000 * 95.00 [23:37:37]line = 95.00 [23:37:37]line НДС 12% НСП 1% [23:37:37]line > о реализуемом товаре [23:37:37]line ИТОГО: 95.00 [23:37:37]line НСП 1% : 0.84 [23:37:37]line НДС 12% : 10.09 [23:37:37]line Наличными: 95.00 [23:37:37]line Безнал.: 0.00 [23:37:37]line Место: АЗС № 133 "Партнер Нефть" [23:37:37]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:37:37]line СНО: Общий режим [23:37:37]line Чек 289 23.10.2024 23:37 [23:37:37]line Смена: 173 ФФД: 1.0 [23:37:37]line ЗНМ: 0300000020 [23:37:37]line РНМ: 0000000000161154 [23:37:37]line Версия ККМ: v1.0 [23:37:37]line ФМ: 0000000000963323 [23:37:37]line ФД: 75556 [23:37:37]line ФПД: 50628513769583 [23:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233736&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75556&fm=50628513769583&tin=02508201610067®Number=0000000000161154&sum=9500 [23:37:37]line 0 [23:37:37]OFD Sender: Processing packet 75556 [packets to send 16, broken 15] [23:37:37]ProducePacketName [23:37:37]name=ofd_packets/00075556 [23:37:37]OFD Sender: To server: pG, [23:37:37]CommunicateWithHost lk.salyk.kg:30040 [23:37:37]ConnectInit lk.salyk.kg [23:37:37]written 0, free lines is 4095 [23:37:37]Connected sock=10 [23:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 44 01 00 00 B1 80 3C 01 9E 8A 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 C0 88 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 27 01 00 35 04 06 00 2E 0B DE 94 28 6F 05 07 06 79 9C 2C B1 7C [23:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 56 98 47 00 9C A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 24 27 01 00 F4 03 04 00 9A 31 19 67 B6 04 01 00 00 4A A9 9F E2 B7 F1 99 63 [23:37:38]CommunicateWithHost err = 0 [23:37:38]CheckOFDResponse [23:37:38]1017 (14) - 77093643461234 [23:37:38]1041 (16) - 0000000000963323 [23:37:38]1040 (4) - 75556 [23:37:38]1012 (4) - 23.10.2024 17:25 [23:37:38]1206 (1) - 0 [23:37:38]OFD Sender: Remove packet 75556 [23:37:38]ProducePacketName [23:37:38]name=ofd_packets/00075556 [23:37:38]NVStorageDeleteData [23:37:38]Write to MH i2c: 01 00 00 48 01 49 [23:37:38]Write i2c OK [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: 01 [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: 01 07 00 [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 C2 0C 1E [23:37:38]RasterBufferAndPrint [23:37:38]line [23:37:38]line [23:37:38]line [23:37:38]line [23:37:38]line [23:37:38]written 0, free lines is 3270 [23:37:38]MH_Cut [23:37:38]Write to MH i2c: D1 01 00 4F 01 01 22 [23:37:38]Write i2c OK [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: D1 [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: D1 01 00 [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: D1 01 00 4F 01 00 21 [23:37:38]Write to MH i2c: 01 00 00 50 01 51 [23:37:38]Write i2c OK [23:37:38]MH_I2C_Read... [23:37:38]OFD Sender: No OFD packet to send [23:37:39]*** Cut start [23:37:39]*** Partial cut [23:37:39]*** CUTSNS_PIN = 1 [23:37:39]*** CUTSNS_PIN = 0 [23:37:39]*** Brake cut motor [23:37:39]Read from MH i2c: 01 [23:37:39]MH_I2C_Read... [23:37:39]*** Stop cut motor [23:37:39]*** Cut end [23:37:39]Read from MH i2c: 01 07 00 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 FF 0F 66 [23:37:39]process_action close_receipt done [23:37:39]requested_data is exist [23:37:39]produce_requested_data [23:37:39]requested_item fm.sn is exist - process it [23:37:39]wFMCommunicate request_size=4 [23:37:39]MH_SAM_APDU [23:37:39]CAPDU: 80 11 00 00 [23:37:39]Write to MH i2c: E2 08 00 51 01 80 11 00 00 00 00 00 00 CC [23:37:39]Write i2c OK [23:37:39]MH_I2C_Read... [23:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:39]Read from MH i2c: E2 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: E2 17 00 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: E2 17 00 51 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 19 [23:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:37:39]wFMCommunicate OK [23:37:39]requested_item fd.num is exist - process it [23:37:39]SAM_PROTO_GetFieldsCounters [23:37:39]wFMCommunicate request_size=4 [23:37:39]MH_SAM_APDU [23:37:39]CAPDU: 80 13 00 00 [23:37:39]Write to MH i2c: E2 08 00 52 01 80 13 00 00 00 00 00 00 CF [23:37:39]Write i2c OK [23:37:39]MH_I2C_Read... [23:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:39]Read from MH i2c: E2 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: E2 62 00 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: E2 62 00 52 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 24 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [23:37:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 24 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:39]wFMCommunicate OK [23:37:39]SAM_PROTO_GetFieldsCounters done [23:37:39]requested_item shift.num is exist - process it [23:37:39]requested_item shift.opened is exist - process it [23:37:39]req_shift_opened [23:37:39]FM_GetShiftState [23:37:39]SAM_PROTO_GetShiftState [23:37:39]wFMCommunicate request_size=4 [23:37:39]MH_SAM_APDU [23:37:39]CAPDU: 80 13 01 00 [23:37:39]Write to MH i2c: E2 08 00 53 01 80 13 01 00 00 00 00 00 D1 [23:37:39]Write i2c OK [23:37:39]MH_I2C_Read... [23:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:40]Read from MH i2c: E2 [23:37:40]MH_I2C_Read... [23:37:40]Read from MH i2c: E2 0E 00 [23:37:40]MH_I2C_Read... [23:37:40]Read from MH i2c: E2 0E 00 53 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 36 [23:37:40]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [23:37:40]wFMCommunicate OK [23:37:40]SAM_PROTO_GetShiftState done [23:37:40]FM_GetShiftState done [23:37:40]req_shift_opened done [23:37:40]requested_item shift.open_date is exist - process it [23:37:40]req_shift_open_date [23:37:40]req_shift_open_date done [23:37:40]produce_requested_data done [23:37:40]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75556,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [23:37:40]process_action_free close_receipt [23:37:40]json_value_free [23:37:40]json_value_free done [23:37:40]process_json_proto returns [23:37:40]Send response to host [23:37:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75556,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [23:37:40]free response buf [23:37:40]execute_script done [23:37:40]execute_script returns [23:37:40]free content buf [23:37:40]Sock 9.Close socket [23:37:40]Sock 9.Thread stoped [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:18]accept exits with 8 [23:40:18]New connection [23:40:18]New thread 3066711396 created [23:40:18]Thread 3066568036 joined [23:40:18]Waiting for new connection... [23:40:18] Sock 8.Parse request [23:40:18]Sock 8.Check first char [23:40:18]Sock 8.First char is OK [23:40:18]request: POST /json_proto HTTP/1.0 [23:40:18]Method: POST [23:40:18]URL: /json_proto [23:40:18]Method is POST - this is cgi request [23:40:18]url: /json_proto [23:40:18]query_string will be loaded in cgi processing [23:40:18]execute_cgi json_proto POST (null) [23:40:18]execute_cgi path=json_proto method=POST [23:40:18]POST find Content-Length [23:40:18]Host: 172.17.44.196:8080 [23:40:18]Content-Length: 741 [23:40:18]Content-Type: application/json [23:40:18] [23:40:18]POST finish read [23:40:18]Found Content-Length = 741 [23:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273322", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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: Mbank", "payments": [ { "type": 1, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:18]execute_script... [23:40:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)273322", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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: Mbank", "payments": [ { "type": 1, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:18]POST & json_proto [23:40:18]process_json_proto [23:40:18]json parsed OK: [23:40:18]protocol is kg_v1.0 [23:40:18]action value=close_receipt [23:40:18]process_action close_receipt [23:40:18]cmd_close_receipt [23:40:18]MH_GetDate [23:40:18]Write to MH i2c: F0 00 00 54 01 44 [23:40:18]Write i2c OK [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: F0 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: F0 09 00 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: F0 09 00 54 01 00 64 89 19 67 E7 19 F8 65 17 [23:40:18]GetLastDocTimeStamp 1729726656 [23:40:18]current date 1729726820 [23:40:18]FM_GetShiftState [23:40:18]SAM_PROTO_GetShiftState [23:40:18]wFMCommunicate request_size=4 [23:40:18]MH_SAM_APDU [23:40:18]CAPDU: 80 13 01 00 [23:40:18]Write to MH i2c: E2 08 00 55 01 80 13 01 00 00 00 00 00 D3 [23:40:18]Write i2c OK [23:40:18]MH_I2C_Read... [23:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:18]Read from MH i2c: E2 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: E2 0E 00 [23:40:18]MH_I2C_Read... [23:40:18]Read from MH i2c: E2 0E 00 55 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 38 [23:40:18]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [23:40:18]wFMCommunicate OK [23:40:18]SAM_PROTO_GetShiftState done [23:40:18]FM_GetShiftState done [23:40:18]opened in 1729642905 [23:40:18]opened+sec_in_day 1729729305 [23:40:18]quantity*price = 11100 [23:40:18]sum+1 = 11101 [23:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 0.00 Безнал.: 111.00 Место: АЗС № 133 "Партнер Нефть" Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 СНО: Общий режим Чек 290 23.10.2024 23:40 Смена: 173 ФФД: 1.0 ЗНМ: 0300000020 РНМ: 0000000000161154 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963323 ФД: 75557 ФПД: 99066754147891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T234020&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75557&fm=99066754147891&tin=02508201610067®Number=0000000000161154&sum=11100 0 [23:40:20]StoreToDocumentArchive [23:40:20]shift 173 fd 75557 [23:40:20]save to /storage/0173/doc_00075557 [23:40:20]save last doc name /storage/0173/doc_00075557 to /storage/kkm_last_doc_name [23:40:20]save OK [23:40:20]Clear old archive folders... [23:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=266 [23:40:20]tlvbuf is 01ED1C30 [23:40:20]SAM_PROTO_ClearQueue [23:40:20]wFMCommunicate request_size=4 [23:40:20]MH_SAM_APDU [23:40:20]CAPDU: 80 09 00 00 [23:40:20]Write to MH i2c: E2 08 00 62 01 80 09 00 00 00 00 00 00 D5 [23:40:20]Write i2c OK [23:40:20]MH_I2C_Read... [23:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:20]Read from MH i2c: E2 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 03 00 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [23:40:20]RAPDU: 90 00 [23:40:20]wFMCommunicate OK [23:40:20]SAM_PROTO_ClearQueue done [23:40:20]KKMCreateOFDPacket [23:40:20]OFDProtocolAddRootSTLVToBuf [23:40:20]FM_MakeSignedData [23:40:20]FM_MakeSignedData [23:40:20]SAM_PROTO_SignData [23:40:20]wFMCommunicate request_size=4 [23:40:20]MH_SAM_APDU [23:40:20]CAPDU: 80 0D 01 02 [23:40:20]Write to MH i2c: E2 08 00 63 01 80 0D 01 02 00 00 00 00 DD [23:40:20]Write i2c OK [23:40:20]MH_I2C_Read... [23:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:20]Read from MH i2c: E2 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 03 00 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 03 00 63 01 00 90 00 D8 [23:40:20]RAPDU: 90 00 [23:40:20]wFMCommunicate OK [23:40:20]wFMCommunicate request_size=255 [23:40:20]MH_SAM_APDU [23:40:20]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 22 01 00 00 F4 03 04 00 64 89 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 [23:40:20]Write to MH i2c: E2 02 01 64 01 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 22 01 00 00 F4 03 04 00 64 89 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 00 00 27 [23:40:20]Write i2c OK [23:40:20]MH_I2C_Read... [23:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:20]Read from MH i2c: E2 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 03 00 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 03 00 64 01 00 90 00 D9 [23:40:20]RAPDU: 90 00 [23:40:20]wFMCommunicate OK [23:40:20]wFMCommunicate request_size=25 [23:40:20]MH_SAM_APDU [23:40:20]CAPDU: 80 0D 02 02 14 32 33 10 04 04 00 25 27 01 00 35 04 06 00 5A 19 C6 B0 A6 33 [23:40:20]Write to MH i2c: E2 1C 00 65 01 80 0D 02 02 14 00 32 33 10 04 04 00 25 27 01 00 35 04 06 00 5A 19 C6 B0 A6 33 00 00 D3 [23:40:20]Write i2c OK [23:40:20]MH_I2C_Read... [23:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:20]Read from MH i2c: E2 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 03 00 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 03 00 65 01 00 90 00 DA [23:40:20]RAPDU: 90 00 [23:40:20]wFMCommunicate OK [23:40:20]wFMCommunicate request_size=4 [23:40:20]MH_SAM_APDU [23:40:20]CAPDU: 80 0D 03 02 [23:40:20]Write to MH i2c: E2 08 00 66 01 80 0D 03 02 00 00 00 00 E2 [23:40:20]Write i2c OK [23:40:20]MH_I2C_Read... [23:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:20]Read from MH i2c: E2 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 0B 00 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 0B 00 66 01 00 74 23 58 C9 61 B9 4F 83 90 00 87 [23:40:20]RAPDU: 74 23 58 C9 61 B9 4F 83 90 00 [23:40:20]wFMCommunicate OK [23:40:20]SAM_PROTO_SignData done [23:40:20]FM_MakeSignedData done [23:40:20]CreateOFDProtocolMessage [23:40:20]wFMCommunicate request_size=4 [23:40:20]MH_SAM_APDU [23:40:20]CAPDU: 80 11 00 00 [23:40:20]Write to MH i2c: E2 08 00 67 01 80 11 00 00 00 00 00 00 E2 [23:40:20]Write i2c OK [23:40:20]MH_I2C_Read... [23:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:20]Read from MH i2c: E2 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 17 00 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: E2 17 00 67 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 2F [23:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:40:20]wFMCommunicate OK [23:40:20]CreateOFDProtocolMessage done [23:40:20]OFDSenderStorePacket 75557 [23:40:20]StoreOFDPacket docnum=75557 [23:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1E 01 00 00 AA FB 16 01 B3 2B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 22 01 00 00 F4 03 04 00 64 89 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 27 01 00 35 04 06 00 5A 19 C6 B0 A6 33 74 23 58 C9 61 B9 4F 83 [23:40:20]CheckFolder [23:40:20]dirname=/storage/ofd_packets [23:40:20]CheckFolder done [23:40:20]ProducePacketName [23:40:20]name=ofd_packets/00075557 [23:40:20]NVStorageSaveData ofd_packets/00075557 [23:40:20]File name is /storage/ofd_packets/00075557 [23:40:20]Write 316 bytes [23:40:20]NVStorageSaveData done [23:40:20]OFDSenderStorePacket done [23:40:20]KKMCreateOFDPacket done [23:40:20]NVStorageSaveData kkm_last_timestamp [23:40:20]File name is /storage/kkm_last_timestamp [23:40:20]Write 4 bytes [23:40:20]NVStorageSaveData done [23:40:20]ExternCall_PrintAddStr [23:40:20]wPrintStart [23:40:20]Write to MH i2c: 01 00 00 68 01 69 [23:40:20]Write i2c OK [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: 01 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: 01 07 00 [23:40:20]MH_I2C_Read... [23:40:20]Read from MH i2c: 01 07 00 68 01 00 00 00 00 00 FF 0F 7E [23:40:20]RasterBufferAndPrint [23:40:20]line Счет N : (3)273322 [23:40:20]line ИНН: 02508201610067 [23:40:20]line Контрольно-Кассовый Чек [23:40:20]line ПРОДАЖА [23:40:20]line Товар: 4870001570071 [23:40:20]line Напиток Pepsi 1л [23:40:20]line 1.000 * 111.00 [23:40:20]line = 111.00 [23:40:20]line НДС 12% НСП 1% [23:40:20]line > о реализуемом товаре [23:40:20]line ИТОГО: 111.00 [23:40:20]line НСП 1% : 0.98 [23:40:20]line НДС 12% : 11.79 [23:40:20]line Наличными: 0.00 [23:40:20]line Безнал.: 111.00 [23:40:20]line Место: АЗС № 133 "Партнер Нефть" [23:40:20]line Адрес: 720001, с. Масы, ул. Ленина 50, 41.064673,72.649161 [23:40:20]line СНО: Общий режим [23:40:20]line Чек 290 23.10.2024 23:40 [23:40:20]line Смена: 173 ФФД: 1.0 [23:40:20]line ЗНМ: 0300000020 [23:40:20]line РНМ: 0000000000161154 [23:40:20]line Версия ККМ: v1.0 [23:40:20]line Платежная система: Mbank [23:40:20]line ФМ: 0000000000963323 [23:40:20]line ФД: 75557 [23:40:20]line ФПД: 99066754147891 [23:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T234020&type=1&operation_type=1&fn_number=0000000000963323&fd_number=75557&fm=99066754147891&tin=02508201610067®Number=0000000000161154&sum=11100 [23:40:20]line 0 [23:40:20]OFD Sender: Processing packet 75557 [packets to send 16, broken 15] [23:40:20]ProducePacketName [23:40:20]name=ofd_packets/00075557 [23:40:20]OFD Sender: To server: pG, [23:40:20]CommunicateWithHost lk.salyk.kg:30040 [23:40:20]ConnectInit lk.salyk.kg [23:40:20]written 0, free lines is 4095 [23:40:20]Connected sock=10 [23:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 1E 01 00 00 AA FB 16 01 B3 2B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 22 01 00 00 F4 03 04 00 64 89 19 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 27 01 00 35 04 06 00 5A 19 C6 B0 A6 33 74 23 58 C9 61 B9 4F 83 [23:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 4F 00 00 00 A3 5E 47 00 4B 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 10 04 04 00 25 27 01 00 F4 03 04 00 3D 32 19 67 B6 04 01 00 00 76 C1 69 9E 9B FA 35 58 [23:40:21]CommunicateWithHost err = 0 [23:40:21]CheckOFDResponse [23:40:21]1017 (14) - 77093643461234 [23:40:21]1041 (16) - 0000000000963323 [23:40:21]1040 (4) - 75557 [23:40:21]1012 (4) - 23.10.2024 17:28 [23:40:21]1206 (1) - 0 [23:40:21]OFD Sender: Remove packet 75557 [23:40:21]ProducePacketName [23:40:21]name=ofd_packets/00075557 [23:40:21]NVStorageDeleteData [23:40:21]Write to MH i2c: 01 00 00 90 01 91 [23:40:21]Write i2c OK [23:40:21]MH_I2C_Read... [23:40:21]Read from MH i2c: 01 [23:40:21]MH_I2C_Read... [23:40:21]Read from MH i2c: 01 07 00 [23:40:21]MH_I2C_Read... [23:40:21]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 C7 0C 6B [23:40:21]RasterBufferAndPrint [23:40:21]line [23:40:21]line [23:40:21]line [23:40:21]line [23:40:21]line [23:40:21]written 0, free lines is 3275 [23:40:21]MH_Cut [23:40:21]Write to MH i2c: D1 01 00 97 01 01 6A [23:40:21]Write i2c OK [23:40:21]MH_I2C_Read... [23:40:21]Read from MH i2c: D1 [23:40:21]MH_I2C_Read... [23:40:21]Read from MH i2c: D1 01 00 [23:40:21]MH_I2C_Read... [23:40:21]Read from MH i2c: D1 01 00 97 01 00 69 [23:40:21]Write to MH i2c: 01 00 00 98 01 99 [23:40:21]Write i2c OK [23:40:21]MH_I2C_Read... [23:40:21]OFD Sender: No OFD packet to send [23:40:22]*** Cut start [23:40:22]*** Partial cut [23:40:22]*** CUTSNS_PIN = 1 [23:40:22]*** CUTSNS_PIN = 0 [23:40:22]*** Brake cut motor [23:40:22]Read from MH i2c: 01 [23:40:22]MH_I2C_Read... [23:40:22]*** Stop cut motor [23:40:22]*** Cut end [23:40:22]Read from MH i2c: 01 07 00 [23:40:22]MH_I2C_Read... [23:40:22]Read from MH i2c: 01 07 00 98 01 00 00 00 00 00 FF 0F AE [23:40:22]process_action close_receipt done [23:40:22]requested_data is exist [23:40:22]produce_requested_data [23:40:22]requested_item fm.sn is exist - process it [23:40:22]wFMCommunicate request_size=4 [23:40:22]MH_SAM_APDU [23:40:22]CAPDU: 80 11 00 00 [23:40:22]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [23:40:22]Write i2c OK [23:40:22]MH_I2C_Read... [23:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:22]Read from MH i2c: E2 [23:40:22]MH_I2C_Read... [23:40:22]Read from MH i2c: E2 17 00 [23:40:22]MH_I2C_Read... [23:40:22]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 61 [23:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 90 00 [23:40:22]wFMCommunicate OK [23:40:22]requested_item fd.num is exist - process it [23:40:22]SAM_PROTO_GetFieldsCounters [23:40:22]wFMCommunicate request_size=4 [23:40:22]MH_SAM_APDU [23:40:22]CAPDU: 80 13 00 00 [23:40:22]Write to MH i2c: E2 08 00 9A 01 80 13 00 00 00 00 00 00 17 [23:40:22]Write i2c OK [23:40:22]MH_I2C_Read... [23:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:23]Read from MH i2c: E2 [23:40:23]MH_I2C_Read... [23:40:23]Read from MH i2c: E2 62 00 [23:40:23]MH_I2C_Read... [23:40:23]Read from MH i2c: E2 62 00 9A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 25 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [23:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 31 35 34 10 04 04 00 25 27 01 00 0E 04 04 00 AD 00 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:40:23]wFMCommunicate OK [23:40:23]SAM_PROTO_GetFieldsCounters done [23:40:23]requested_item shift.num is exist - process it [23:40:23]requested_item shift.opened is exist - process it [23:40:23]req_shift_opened [23:40:23]FM_GetShiftState [23:40:23]SAM_PROTO_GetShiftState [23:40:23]wFMCommunicate request_size=4 [23:40:23]MH_SAM_APDU [23:40:23]CAPDU: 80 13 01 00 [23:40:23]Write to MH i2c: E2 08 00 9B 01 80 13 01 00 00 00 00 00 19 [23:40:23]Write i2c OK [23:40:23]MH_I2C_Read... [23:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:23]Read from MH i2c: E2 [23:40:23]MH_I2C_Read... [23:40:23]Read from MH i2c: E2 0E 00 [23:40:23]MH_I2C_Read... [23:40:23]Read from MH i2c: E2 0E 00 9B 01 00 09 00 01 99 41 18 67 00 00 00 00 90 00 7E [23:40:23]RAPDU: 09 00 01 99 41 18 67 00 00 00 00 90 00 [23:40:23]wFMCommunicate OK [23:40:23]SAM_PROTO_GetShiftState done [23:40:23]FM_GetShiftState done [23:40:23]req_shift_opened done [23:40:23]requested_item shift.open_date is exist - process it [23:40:23]req_shift_open_date [23:40:23]req_shift_open_date done [23:40:23]produce_requested_data done [23:40:23]produce_requested_data return {"fm.sn":"0000000000963323","fd.num":75557,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905} [23:40:23]process_action_free close_receipt [23:40:23]json_value_free [23:40:23]json_value_free done [23:40:23]process_json_proto returns [23:40:23]Send response to host [23:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963323","fd.num":75557,"shift.num":173,"shift.opened":1,"shift.open_date":1729642905}}} [23:40:23]free response buf [23:40:23]execute_script done [23:40:23]execute_script returns [23:40:23]free content buf [23:40:23]Sock 8.Close socket [23:40:23]Sock 8.Thread stoped [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]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:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send